joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484ab2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6120eb
call fcn.0060bcd8
push ecx
push ecx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], ecx
mov dword [ebp - 4], ecx
mov eax, vtable.CBkBitmap.0
movsd xmm0, qword [0x6a0388]
mov dword [edi], vtable.CBkPngSkin.0
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
movsd qword [edi + 0x10], xmm0
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], ecx
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], ecx
mov dword [edi + 0x48], ecx
mov dword [edi + 0x44], eax
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], ecx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x58], ecx
mov dword [edi + 0x60], ecx
mov dword [edi + 0x5c], eax
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x64], ecx
mov dword [edi + 0x68], ecx
mov byte [ebp - 4], 2
lea esi, [edi + 0x74]
mov dword [edi + 0x70], ecx
mov dword [ebp - 0x14], esi
mov dword [esi], ecx
mov dword [esi + 4], ecx
call fcn.004069f1
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x488a31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x61226f
call fcn.0060bcd8
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x424], edi
push 0x60
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x488a93
push 2
push edi
push dword [ebp + 8]
call ebx
mov esi, eax
mov dword [ebp - 0x14], eax
test esi, esi
jne 0x488a93
call fcn.0046d44e
mov edi, eax
jmp 0x488b72
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x488ab0
call fcn.0046d44e
jmp 0x488b65
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x488aa6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp + 8], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x488add
mov edi, 0x8007000e
jmp 0x488b67
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.00487cd1
cmp eax, 0x400
jbe 0x488afe
push eax
lea ecx, [ebp - 0x424]
call fcn.004877d5
jmp 0x488b1a
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x488b1a
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x488ad3
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp + 0x10]
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x488aa6
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00488907
mov edi, eax
test esi, esi
je 0x488b72
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x488b8b
lea ecx, [ebp - 0x424]
call fcn.004877c0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x48920a
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 0x20c]
push esi
push 0x208
xor esi, esi
push esi
push eax
call fcn.005e1720
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x489249
inc eax
jmp 0x4892ae
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.jcqgxkg.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 4]
call fcn.00406173
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48929e
push dword [ebp - 4]
push 1
push str.switch
push str.updatecheck
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x4892a1
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00404ea9
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4893ec
Capabilities:
Delete file

Disassembly:
mov eax, 0x6122c1
call fcn.0060bcd8
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
and dword [ebp - 4], 0
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push esi
call fcn.0046f5f7
pop ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.DownloadNewVersion
push 0x6c8880
call fcn.0048de14
push 0x12c
push 0
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
mov edx, esi
call fcn.004733ee
mov ecx, dword [ebp + 8]
add esp, 0x14
xor ebx, ebx
test eax, eax
sete bl
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404ea9
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x48948d
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x6122c1
call fcn.0060bcd8
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
lea esi, [ebx + 0x30]
xor edi, edi
push esi
mov dword [ebp - 4], edi
call fcn.0046f5f7
pop ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48950e
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push str._s__update:0
push eax
call fcn.00406cc8
mov esi, dword [ebp - 0x10]
mov edx, esi
pop ecx
pop ecx
mov ecx, dword [ebx + 0x30]
push edi
push 0xffffffffffffffff
call fcn.0046e601
add esp, 0xc
lea ecx, [esi - 0x10]
neg eax
sbb edi, edi
neg edi
call fcn.00404ea9
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48952a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x6122db
call fcn.0060bcd8
sub esp, 0x218
push ebx
push esi
push edi
mov edi, ecx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x18]
call fcn.004065d8
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x224]
push esi
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.005e1720
add esp, 0xc
push esi
call fcn.005f13bf
pop ecx
push edx
push eax
lea eax, [ebp - 0x18]
push str.http:__2398.35go.net_defend_o1_jcqgx.ini
push eax
call fcn.00413d50
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0046dd80
pop ecx
pop ecx
test eax, eax
jne 0x4895f8
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4895f8
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4895f8
push str.jcqgx.ini
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0x24]
call fcn.004060f8
mov ecx, dword [edi + 0x24]
lea edx, [ebp - 0x14]
call fcn.0046e06d
test eax, eax
jne 0x4895fa
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x489620
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x61230d
call fcn.0060bcd8
sub esp, 0xc18
push ebx
push esi
push edi
push 0x800
xor esi, esi
lea eax, [ebp - 0xc24]
push esi
push eax
mov edi, ecx
call fcn.005e1720
mov ebx, 0x208
lea eax, [ebp - 0x21c]
push ebx
push esi
push eax
call fcn.005e1720
push ebx
lea eax, [ebp - 0x424]
push esi
push eax
call fcn.005e1720
mov ebx, dword [ebp + 8]
add esp, 0x24
mov dword [ebx], esi
call fcn.00404f47
push eax
lea ecx, [ebp + 8]
call fcn.004065d8
mov dword [ebp - 4], esi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
mov byte [ebp - 4], 1
lea eax, [ebp - 0xc24]
push dword [edi + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x400
push eax
push 0x693da4
push 0x69f2b0
push dword [edi + 0x18]
call esi
push dword [edi + 0x24]
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0x693da4
push 0x69f2b8
push dword [edi + 0x18]
call esi
push dword [edi + 0x24]
lea eax, [ebp - 0x424]
push 0x104
push eax
push 0x693da4
push 0x69f2c0
push dword [edi + 0x18]
call esi
lea eax, [ebp - 0xc24]
push eax
call fcn.005f0068
pop ecx
test eax, eax
jne 0x489713
mov dword [ebx], 0x162
xor esi, esi
jmp 0x48980d
lea eax, [ebp - 0x21c]
push eax
call fcn.005f0068
pop ecx
test eax, eax
jne 0x48972c
mov dword [ebx], 0x164
jmp 0x48970c
lea eax, [ebp - 0x424]
push eax
call fcn.005f0068
xor esi, esi
pop ecx
test eax, eax
jne 0x48974a
mov dword [ebx], 0x163
jmp 0x48980d
push dword [edi + 0x24]
push esi
push str.probability
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x28]
lea eax, [ebp - 0xc24]
push eax
call fcn.004060f8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [edi + 0x2c]
call fcn.004060f8
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp + 8]
call fcn.004060f8
lea eax, [ebp + 8]
push eax
call fcn.0046f5f7
mov edx, dword [ebp + 8]
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0046f562
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea eax, [ebp - 0x10]
push eax
call fcn.00489841
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0040b545
pop ecx
push eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 4
call fcn.00406123
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
xor esi, esi
inc esi
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x48db0c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x18
mov esi, ecx
call fcn.00430c2b
mov edx, eax
pop ecx
test edx, edx
je 0x48db45
xor ecx, ecx
mov dword [edx], esi
push ecx
push ecx
push edx
mov dword [edx + 0x10], ecx
mov eax, dword [ebp + 8]
push 0x48db48
push ecx
mov dword [edx + 8], eax
mov eax, dword [ebp + 0xc]
push ecx
mov dword [edx + 0xc], eax
call fcn.005f3950
add esp, 0x18
pop esi
pop ebp
ret

Function at 0x48dc80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0xe8
cmp dword [0x6c88b8], eax
je 0x48dc99
inc eax
jmp 0x48dd90
push ebx
push edi
xor ebx, ebx
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], bl
stosd dword es:[edi], eax
push 0xc8
push ebx
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xe8]
push eax
call fcn.005e1720
add esp, 0xc
call fcn.0048e1d5
push dword [ebp + 8]
mov ecx, 0x6c8894
mov dword [0x6c88bc], eax
call fcn.004060f8
call fcn.0048e11e
xor edi, edi
lea eax, [ebp - 0x20]
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0xc
push 0x6c8898
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xe8]
push 0x69f5a0
push eax
call fcn.0048e384
add esp, 0xc
lea eax, [ebp - 0xe8]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push edi
push ebx
mov dword [0x6c8888], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x6c888c], eax
cmp dword [0x6c8888], ebx
je 0x48dd8c
test eax, eax
je 0x48dd8c
push ebx
push ebx
push 0x6c8880
push 0x48df79
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6c8890], eax
test eax, eax
je 0x48dd8c
mov dword [0x6c88b8], edi
mov eax, edi
jmp 0x48dd8e
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48dd96
Capabilities:
Terminate thread

Disassembly:
push edi
xor edi, edi
mov dword [0x6c8880], 1
cmp dword [0x6c8890], edi
je 0x48dde0
mov eax, dword [0x6c888c]
test eax, eax
je 0x48ddbb
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xea60
push dword [0x6c8890]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48dde0
push edi
push dword [0x6c8890]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x6c888c]
test eax, eax
je 0x48ddf6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x6c888c], edi
mov eax, dword [0x6c8890]
test eax, eax
je 0x48de0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x6c8890], edi
mov dword [0x6c88b8], edi
pop edi
ret
Function at 0x48df8a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x612731
call fcn.0060bcd8
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0048e2e3
mov esi, eax
mov dword [ebp - 0x14], esi
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x48e103
mov ebx, dword [ebp - 0x10]
lea ecx, [edi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x14]
lea ecx, [edi + 0x30]
cmp eax, ecx
je 0x48dff1
mov eax, esi
mov esi, dword [ecx]
mov dword [ecx], eax
mov eax, ebx
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
mov dword [ecx + 4], eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x48e0e8
cmp dword [edi + 4], 0
jne 0x48e02c
push 0x69f624
push dword [edi + 0x14]
call fcn.005e877e
mov dword [edi + 4], eax
pop ecx
pop ecx
test eax, eax
je 0x48e0e8
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
add eax, 8
cmp ecx, eax
je 0x48e055
push 0xffffffffffffffff
push 0
push eax
call fcn.00409916
mov esi, dword [esi]
dec ebx
push 0
push 1
mov dword [ebp - 0x10], ebx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea ecx, [esi + 8]
call fcn.004097fa
push 0x20
push 1
push esi
call fcn.00403f7c
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
cmp dword [edi + 4], 0
je 0x48e0b6
push dword [edi + 4]
push dword [ebp - 0x1c]
push 1
push eax
call fcn.005f2439
push dword [edi + 4]
push 2
push 1
push 0x6961b0
call fcn.005f2439
add esp, 0x20
mov esi, dword [ebp - 0x14]
test ebx, ebx
jne 0x48e03f
cmp dword [edi + 4], 0
je 0x48e0d0
push dword [edi + 4]
call fcn.005e4e6d
and dword [edi + 4], 0
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004097fa
mov esi, dword [ebp - 0x14]
jmp 0x48dfc9
cmp dword [edi], 0
jne 0x48e103
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [edi + 0x18]
test eax, eax
je 0x48dfcc
lea ecx, [ebp - 0x14]
call fcn.0048e22b
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x48e11e
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
mov eax, 0x60c9f5
call fcn.0060bcd8
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push dword [0x6c8894]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x48e1c2
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x80000
jb 0x48e1c1
mov eax, dword [0x6c8894]
add eax, 0xfffffff0
push eax
call fcn.004067cf
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0048e276
mov esi, dword [ebp - 0x10]
mov ebx, dword [0x6c8894]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esi - 0x10]
call fcn.00404ea9
pop esi
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
inc eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48e411
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x612790
call fcn.0060bcd8
sub esp, 0x90
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x9c], vtable.KMD5.0
push edi
mov esi, ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov dword [ebp - 0x18], ebx
lea eax, [esi + 4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], eax
lea ebx, [esi + 0x14]
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push edi
call fcn.0048e5bc
test eax, eax
je 0x48e592
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x48e58d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48e58d
push 0x5c
push esi
call fcn.005e3330
pop ecx
pop ecx
test eax, eax
je 0x48e58d
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x48e58d
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040a965
push eax
lea ecx, [ebx - 0xc]
mov byte [ebp - 4], 2
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00404ea9
mov byte [ebp - 0x3c], 0
lea edi, [ebp - 0x3b]
xor eax, eax
stosd dword es:[edi], eax
push ecx
push ecx
push esi
stosd dword es:[edi], eax
lea ecx, [ebp - 0x9c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00413262
test eax, eax
je 0x48e58d
push 0x10
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.005e0220
add esp, 0xc
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
mov byte [ebp - 4], 3
xor edi, edi
movzx eax, byte [ebp + edi - 0x3c]
push eax
lea eax, [ebp - 0x14]
push 0x69c318
push eax
call fcn.004090e5
add esp, 0xc
inc edi
cmp edi, 0x10
jl 0x48e52b
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
je 0x48e55c
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00406123
mov eax, dword [ebp - 0x18]
lea ecx, [edi - 0x10]
mov dword [ebp - 0x28], eax
call fcn.00404ea9
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00404ea9
mov edi, dword [ebp - 0x1c]
add ebx, 4
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, 3
jge 0x48e59d
mov edi, dword [ebp - 0x28]
jmp 0x48e452
lea ecx, [esi - 0x10]
jmp 0x48e598
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404ea9
lea ecx, [ebp - 0x9c]
call fcn.00413231
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48e5bc
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, ecx
push esi
xor esi, esi
mov dword [ebp - 8], eax
cmp dword [eax], esi
jne 0x48e5d8
xor eax, eax
jmp 0x48e708
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
push ebx
mov ebx, esi
test eax, eax
je 0x48e705
cmp eax, 4
je 0x48e705
cmp eax, 8
je 0x48e705
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x48e705
push edi
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push esi
push ecx
call dword [eax]
test eax, eax
jne 0x48e6f2
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x48e6f2
cmp edi, 8
je 0x48e6f2
push edi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x48e6f2
push 0x208
lea eax, [ebp - 0x228]
push esi
push eax
call fcn.005e1720
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x103
push eax
push esi
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x48e6d7
push 0x208
lea eax, [ebp - 0x430]
push esi
push eax
call fcn.005e1720
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x104
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x48e6f2
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.0048e70f
test eax, eax
je 0x48e6f2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x48e6e0
mov dword [eax], edi
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x228]
push eax
call fcn.004060f8
xor esi, esi
inc esi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test ebx, ebx
je 0x48e704
push ebx
call edi
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc