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

Disassembly:
push 0xffffffffffffffff
push 0x480d00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0xc], eax
jle 0x401759
test eax, eax
jl 0x401754
cmp eax, dword [esi + 0xc]
jge 0x401754
mov ecx, dword [esi + 8]
mov ebp, dword [ecx + eax*4]
jmp 0x40175b
call fcn.00442afc
xor ebp, ebp
test ebp, ebp
je 0x4018ce
call fcn.00442c05
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40177d
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0
call fcn.00442c05
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4017af
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 1
mov edx, dword [ebp]
mov eax, dword [edx + 0x80]
push 1
mov ecx, ebp
call eax
mov ebx, dword [esp + 0x34]
push 0
mov ecx, esi
call fcn.004279b0
mov esi, eax
test esi, esi
je 0x401872
lea ebx, [ebx]
mov edx, dword [ebp]
mov edx, dword [edx + 0x60]
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call edx
test eax, eax
je 0x40182e
mov eax, dword [esp + 0x14]
push eax
lea edi, [esp + 0x1c]
xor eax, eax
call fcn.00425b70
add esp, 4
test eax, eax
je 0x40182e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00401900
mov eax, esi
call fcn.00427ac0
test eax, eax
jne 0x4017f0
mov eax, dword [esi + 4]
test eax, eax
je 0x401849
push eax
call fcn.00442886
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x401859
push eax
call fcn.00442886
add esp, 4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401869
push eax
call fcn.00442886
add esp, 4
push esi
call fcn.00442886
add esp, 4
mov edx, dword [ebp]
mov eax, dword [edx + 0x80]
push 0
mov ecx, ebp
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x2c]
push 0
xor ebx, ebx
call fcn.00401400
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x4029c0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x48113a
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
push str.CreateControlWindow
push str.CInstallNaviApp
call fcn.00420ef0
add esp, 8
lea eax, [esp + 0x24]
push eax
push 0x407540
mov dword [esp + 0x2c], 0
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x402a86
mov esi, dword [esp + 0x24]
test esi, esi
je 0x402a86
push ebp
call fcn.00402b00
test eax, eax
jne 0x402a86
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x402a6f
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x402a68
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
push 0x2d4
call fcn.0044285b
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x1c], 0
je 0x402aad
push eax
call fcn.00405a10
mov edi, eax
jmp 0x402aaf
xor edi, edi
mov eax, edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.00405d30
mov esi, eax
test esi, esi
je 0x402ac7
mov dword [ebp + 0x20], edi
push esi
push str.CreateControlWindow
push str.CInstallNaviApp
call fcn.00421170
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x404460
Capabilities:
Get geographical location

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x220
call fcn.0044288b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, eax
add esp, 4
xor eax, eax
mov dword [esi], eax
push 0x104
mov dword [esi + 4], eax
lea edi, [esi + 0x18]
push edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 0x11
mov dword [esi + 0x10], eax
push ebp
mov dword [esi + 0x14], eax
call ebx
push edi
call fcn.004256a0
add esp, 4
push 0x104
push edi
push 0x12
push ebp
mov dword [esi], eax
call ebx
push edi
call fcn.004256a0
add esp, 4
push 0x104
push edi
push 0x10
push ebp
mov dword [esi + 4], eax
call ebx
cmp word [edi], 0
mov ebx, edi
je 0x404517
cmp word [ebx], 0x3b
push ebx
jne 0x4044fd
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
push ebx
call fcn.004256a0
add esp, 4
test eax, eax
jbe 0x404508
mov ecx, dword [esi + 8]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*2]
mov dword [esi + 8], edx
jmp 0x404508
call fcn.004256a0
add esp, 4
mov dword [esi + 8], eax
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
cmp word [ebx], 0
jne 0x4044d3
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x104
push edi
push 0x1010
push ebp
call ebx
push edi
call fcn.004256a0
add esp, 4
push 0x104
push edi
push 0xe
push ebp
mov dword [esi + 0x14], eax
call ebx
push 0x104
mov dword [esi + 0xc], edi
lea edi, [edi + eax*2 + 2]
push edi
push 0xf
push ebp
call ebx
mov dword [esi + 0x10], edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x404560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x481b20
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax + 4], 0x100
jne 0x404697
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call ebx
test ax, ax
jge 0x404697
push 0x11
call ebx
test ax, ax
jge 0x404697
push 0x20
call ebx
test ax, ax
jge 0x404697
mov ecx, esi
call fcn.00402f90
test eax, eax
je 0x404697
mov edx, dword [esi]
mov eax, dword [edx + 0x134]
mov ecx, esi
call eax
mov ecx, dword [eax + 0x20]
push edi
push edi
push 0x7f0c
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x404617
mov eax, dword [eax + 0x18c]
test al, 0x10
jne 0x404697
test al, 8
jne 0x404697
lea ecx, [esp + 0x20]
call fcn.00448a4b
mov dword [esp + 0x40], 0
mov edi, dword [esi + 0x5c]
lea ebx, [esp + 0x20]
call fcn.004016c0
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x14]
push edx
mov eax, ebx
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 1
call fcn.0041e6c0
mov ecx, dword [esp + 0x1c]
mov esi, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40466f
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0xffffffff
call fcn.00448a62
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x404c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404ca9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404ce4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404ce0
lea ebx, [ebx]
cmp esi, eax
jae 0x404ce4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404cd0
cmp esi, eax
jb 0x404cea
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x405be0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x47ee94
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CInstallNaviWnd.0
mov dword [esp + 0x18], 7
mov ecx, dword [esi + 0x2b8]
test ecx, ecx
je 0x405c29
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esi + 0x2cc]
test ecx, ecx
je 0x405c3c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov edi, dword [esi + 0x2c4]
test edi, edi
je 0x405c5a
push edi
call fcn.00428110
add esp, 4
test eax, eax
je 0x405c5a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x18], 6
mov eax, dword [esi + 0x2c4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x28c]
mov byte [esp + 0x18], 5
call fcn.0041f040
mov byte [esp + 0x18], 4
mov eax, dword [esi + 0x288]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x258]
mov byte [esp + 0x18], 3
call fcn.0041ffd0
lea edi, [esi + 0x250]
mov byte [esp + 0x18], 2
mov dword [edi], vtable.CFontPackage.0
call fcn.0041de70
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x405cee
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
lea ecx, [esi + 0x68]
mov byte [esp + 0x18], 1
call fcn.00425e40
lea ecx, [esi + 0x54]
mov byte [esp + 0x18], 0
call fcn.00448a62
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0044633f
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40ba30
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4a4a28]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.004692d0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x40baa0
mov eax, dword [esp + 4]
cmp eax, 6
jae 0x40ba86
cmp eax, 5
jne 0x40baa0
cmp dword [esp + 8], 1
jb 0x40baa0
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00467769
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
xor eax, eax
call fcn.00467769
add esp, 0x120
ret
Function at 0x40ebc0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40ec15
cmp dword [esi + 0x48], 0
je 0x40ec15
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
mov edx, dword [esi + 0x3c]
lea ecx, [esi - 0xfc]
call fcn.004138c0
mov ecx, dword [esi + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x44]
mov eax, dword [edx + 0x2c]
pop esi
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret 4

Function at 0x4126b0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
test byte [esi + 0xc], 6
je 0x4126c3
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
pop esi
ret 4
Function at 0x412c40
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f56b
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4a4a28]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x13c]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebp, ebp
push ebp
push ebp
mov ebx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call edi
add eax, 0x104
xor ecx, ecx
mov dword [esp + 0x14], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044288b
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push eax
call edi
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.00404a50
push esi
push ebp
mov dword [esp + 0x13c], ebp
mov ecx, dword [esp + 0x20]
push 0x48c9d4
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebp
push ebp
push 2
push ebp
push ebp
push 0xc0000000
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x412dc6
mov ecx, dword [ebx + 0x100]
mov ebp, 0x192
call fcn.0044c9a3
test eax, 0x400000
je 0x412d28
mov ebp, 0x193
call fcn.0044bc48
mov eax, dword [eax + 8]
push 0x104
lea edx, [esp + 0x28]
push edx
push ebp
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jbe 0x412d7b
lea eax, [esp + 0x24]
mov dword [esp + 0x14], 0
lea edx, [eax + 1]
jmp 0x412d60
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412d60
push 0
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x30]
push edx
push edi
call ebx
mov edx, dword [esp + 0x1c]
mov eax, edx
mov dword [esp + 0x14], 0
lea ebp, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412d90
push 0
lea ecx, [esp + 0x18]
push ecx
sub eax, ebp
push eax
push edx
push edi
call ebx
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
push esi
je 0x412dc0
mov ecx, dword [esp + 0x24]
call fcn.00404e00
jmp 0x412dc6
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00442886
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412dfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00467769
add esp, 0x124
ret 4
Function at 0x4138c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x4a4a28]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov ebx, edx
call fcn.00413a60
mov eax, ebx
call fcn.00439bd0
mov esi, eax
add esi, 0x104
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044288b
add esp, 4
cmp esi, 0x7fffffff
mov edi, eax
mov dword [esp + 0x10], edi
ja 0x41392d
mov eax, ebx
mov edx, esi
mov ecx, edi
call fcn.00402c70
push 0x48f044
mov eax, edi
call fcn.004254d0
add esp, 4
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x413a2a
jmp 0x413960
test dword [esp + 0x20], 0x10
jne 0x413a0f
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
add edi, 0x120
push ecx
mov ebx, edi
call fcn.00428770
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, SysReAllocString
lea eax, [esp + 0x4c]
xor edx, edx
cmp word [eax], 0
je 0x4139a6
add eax, 2
sub ecx, 1
jne 0x413996
jmp 0x4139ae
test ecx, ecx
jne 0x413a48
mov edx, 0x80070057
xor eax, eax
xor ecx, ecx
test edx, edx
setl cl
mov edx, 2
sub ecx, 1
and ecx, eax
add ecx, 1
mov esi, ecx
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044288b
add esp, 4
cmp esi, 0x7fffffff
mov ebx, eax
ja 0x4139f8
lea eax, [esp + 0x4c]
mov edx, esi
mov ecx, ebx
call fcn.00402c70
mov eax, dword [esp + 0x1c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.00448bc6
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x413960
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.00442886
mov ecx, dword [esp + 0x278]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00467769
mov esp, ebp
pop ebp
ret
mov eax, SysReAllocString
sub eax, ecx
jmp 0x4139b5
Function at 0x41632b
Capabilities:
Create thread
Get disk size
Resume thread

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4a4a28]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x234]
push ebx
push ebp
mov ebp, dword [esp + 0x240]
mov ebx, dword [esp + 0x244]
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
push edi
mov edi, dword [esp + 0x240]
mov dword [esi + 0x54], ebp
neg ecx
or ecx, eax
push ecx
call fcn.0044288b
lea ecx, [ebp*4]
push ecx
push ebx
push eax
mov dword [esi + 0x58], eax
call fcn.0046dec0
xor ebp, ebp
add esp, 0x10
cmp edi, ebp
je 0x416393
cmp dword [edi + 0x20], ebp
je 0x416393
push 0x4af
mov ecx, edi
call fcn.0044c912
cmp eax, ebp
je 0x416393
cmp dword [eax + 0x20], ebp
je 0x416393
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x60]
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x134]
push 0x4af
push edi
push eax
push 0x50000000
mov ecx, esi
call edx
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x4164f8
push 0x104
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, 1
jne 0x416414
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edx, 0x3ff
adc eax, ebp
shrd edx, eax, 0xa
shr eax, 0xa
mov edi, edx
add edi, 0x3ff
adc eax, ebp
shrd edi, eax, 0xa
shr eax, 0xa
mov ebx, dword [esi + 0x54]
xor eax, eax
cmp ebx, ebp
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], ebp
jle 0x416435
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
add dword [esi + 0x60], edx
add eax, 1
add ecx, 4
cmp eax, ebx
jl 0x416426
mov ecx, dword [esi + 0x60]
cmp edi, ecx
mov dword [esi + 0x64], 0x64
jae 0x416485
mov eax, edi
imul eax, eax, 0x64
xor edx, edx
div ecx
xor ecx, ecx
cmp ebx, ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], eax
jle 0x416485
mov edi, dword [esi + 0x58]
jmp 0x416460
mov edx, dword [edi + ecx*4]
imul edx, dword [esi + 0x64]
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov dword [edi + ecx*4], edx
mov edi, dword [esi + 0x58]
mov eax, dword [edi + ecx*4]
add dword [esi + 0x60], eax
add ecx, 1
cmp ecx, dword [esi + 0x54]
jl 0x416460
cmp dword [esi + 0x60], ebp
jbe 0x41649e
movzx ecx, word [esi + 0x60]
mov edx, dword [esi + 0x20]
shl ecx, 0x10
push ecx
push ebp
push 0x401
push edx
jmp 0x4164c4
mov edi, dword [esi + 0x20]
mov ecx, esi
call fcn.0044c989
or eax, 8
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 0x20]
push 0xa0000
push ebp
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x1c]
push ecx
push 4
push esi
push 0x416520
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebp
mov dword [esi + 0x68], eax
je 0x4164f4
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x4164f8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00467769
add esp, 0x22c
ret 0x10
Function at 0x41cef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x47f313
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
push 0x4a9394
mov dword [esi], vtable.ATL::CImage.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x4a93ac], 1
push 0x4a9394
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
push ecx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.CBackImage.0
mov dword [esi + 0x30], eax
call fcn.00404a50
mov edx, dword [esp + 0x28]
push edx
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 1
call fcn.00404a50
call fcn.00442c05
cmp eax, ebx
jne 0x41cfa6
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
xor ecx, ecx
cmp dword [esp + 0x2c], ebx
mov dword [esi + 0x3c], eax
sete cl
mov eax, esi
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0x14
Function at 0x41ebc0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp dword [ebp + 4], 0
push esi
push edi
mov ebx, eax
mov esi, 1
jne 0x41ec4a
mov ecx, ebp
call fcn.0041ec60
mov esi, eax
test esi, esi
je 0x41ec4a
mov eax, dword [ebx]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ec0d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0x48cd14
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x41ec3a
mov dword [ebp + 4], edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4