joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072d0
Capabilities:
Get number of processors
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43f458
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454810]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x407306
mov eax, dword [eax + 0x20]
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push 0
push 0
push eax
call esi
push 0
push 0
push 0
push eax
call esi
mov ebp, eax
test ebp, ebp
je 0x4074c7
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x24]
sub eax, 0x64
mov dword [esp + 0x1c], eax
sub esi, 0x64
call fcn.00415286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407368
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
push ecx
push edx
push edi
push ebx
lea eax, [esp + 0x24]
push 0x443630
push eax
mov dword [esp + 0x50], 0
call fcn.00403190
mov ecx, dword [esp + 0x2c]
add esp, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x50]
add edi, eax
cmp edi, esi
jle 0x4073f3
mov eax, dword [esp + 0x40]
mov edx, edi
sub edx, esi
mov esi, dword [esp + 0x18]
push edx
push 2
push eax
mov ecx, esi
call fcn.00406500
mov ecx, dword [esp + 0x40]
push 2
push ecx
mov ecx, esi
call fcn.004065e0
mov ecx, eax
mov eax, dword [esp + 0x50]
cdq
sub eax, edx
sar eax, 1
neg ecx
sub ecx, eax
add edi, ecx
jmp 0x407400
mov esi, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
neg eax
add edi, eax
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jle 0x40742b
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x40]
push edx
push 1
push eax
mov ecx, esi
call fcn.00406500
mov ecx, dword [esp + 0x40]
push 1
push ecx
mov ecx, esi
call fcn.004065e0
sub ebx, eax
mov eax, dword [esp + 0x4c]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push edi
lea edx, [esi + ebx]
push edx
lea eax, [esp + 0x1c]
push 0x443614
push eax
call fcn.00403190
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esi, ebx
movzx edx, di
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
movzx esi, si
shl edx, 0x10
or esi, edx
push esi
push 1
push 0x200
push ebp
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
call ebx
push esi
push 1
push 0x201
push ebp
call edi
push 0xa
call ebx
push esi
push 1
push 0x202
push ebp
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4074c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x14
Function at 0x407b30
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43f54b
mov eax, dword fs:[0]
push eax
mov eax, 0x271c
call fcn.0042ad10
mov eax, dword [0x454810]
xor eax, esp
mov dword [esp + 0x2718], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454810]
xor eax, esp
push eax
lea eax, [esp + 0x2730]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2740]
mov ebx, dword [esp + 0x2744]
call fcn.00415286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407b97
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x2710
lea ecx, [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x2744], 0
call fcn.00428200
add esp, 0xc
test esi, esi
jne 0x407bce
xor eax, eax
jmp 0x407bdc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407bd3
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00402a90
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x407c10
push esi
lea ecx, [esp + 0x18]
call fcn.004025a0
mov ecx, dword [esp + 0x14]
mov byte [edi + ecx], 0x5c
test esi, esi
jl 0x407d5c
cmp esi, dword [ecx - 8]
jg 0x407d5c
mov dword [ecx - 0xc], esi
mov byte [esi + ecx], 0
test ebx, ebx
jne 0x407c34
xor eax, eax
jmp 0x407c49
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c40
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00405f90
mov ebp, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407cc6
mov dword [esp + 0x2738], eax
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407c9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2730]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2718]
xor ecx, esp
call fcn.0042827a
add esp, 0x2728
ret 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0x40
mov edi, eax
push esi
sub edi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
jbe 0x407d24
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x407cf0
push 0
cmp edi, 0x2710
jbe 0x407d16
lea ecx, [esp + 0x1c]
push ecx
push 0x2710
lea edx, [esp + 0x28]
push edx
push esi
call ebx
sub edi, 0x2710
jne 0x407cf0
jmp 0x407d24
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x2738], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407d52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x407c9c
push 0x80070057
call fcn.00401000
int3
Function at 0x409520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f749
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x454810]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
call fcn.00415286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40956f
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [esp + 0x20]
add eax, 0x10
mov dword [esi], eax
push 0
push esi
push 8
push 2
push 0xd3
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 1
call fcn.004123c4
add esp, 0x18
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4116cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x411712
call fcn.00415d17
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x411712
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41172e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00411245
mov esi, eax
test edi, edi
je 0x41172c
test ebx, ebx
je 0x41172c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4120e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41210d
cmp dword [edi + 0x54], 0
jne 0x41210d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00415d17
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004120aa
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4128f9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43fea7
call fcn.0042b39b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41291e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x412964
lea ecx, [ebp - 0x10]
call fcn.00402820
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409697
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401030
mov eax, esi
call fcn.0042b473
ret 8
Function at 0x4131bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x413203
call fcn.00415d17
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413203
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x413246
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41322f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41322f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x413243
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42827a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454810]
jne 0x428284
repz ret
jmp fcn.0042e5e3
Function at 0x438ce2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042e85a
and dword [ebp - 4], 0
cmp dword [0x45862c], 0
mov ebx, eax
jne 0x438d93
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x438e44
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x447e20
push edi
call esi
test eax, eax
je 0x438e44
push eax
call fcn.0042e7e8
mov dword [esp], 0x447e10
push edi
mov dword [0x45862c], eax
call esi
push eax
call fcn.0042e7e8
mov dword [esp], 0x447dfc
push edi
mov dword [0x458630], eax
call esi
push eax
call fcn.0042e7e8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x458634], eax
call esi
push eax
call fcn.0042e7e8
pop ecx
mov dword [0x45863c], eax
test eax, eax
je 0x438d93
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042e7e8
pop ecx
mov dword [0x458638], eax
mov eax, dword [0x458638]
cmp eax, ebx
je 0x438deb
cmp dword [0x45863c], ebx
je 0x438deb
push eax
call fcn.0042e863
push dword [0x45863c]
mov esi, eax
call fcn.0042e863
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x438deb
test edi, edi
je 0x438deb
call esi
test eax, eax
je 0x438de2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x438de2
test byte [ebp - 0xc], 1
jne 0x438deb
or dword [ebp + 0x10], 0x200000
jmp 0x438e24
mov eax, dword [0x458630]
cmp eax, ebx
je 0x438e24
push eax
call fcn.0042e863
pop ecx
test eax, eax
je 0x438e24
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x438e24
mov eax, dword [0x458634]
cmp eax, ebx
je 0x438e24
push eax
call fcn.0042e863
pop ecx
test eax, eax
je 0x438e24
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45862c]
call fcn.0042e863
pop ecx
test eax, eax
je 0x438e44
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x438e46
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43d0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x45868c]
mov dword [ebp - 4], eax
jmp 0x43d0b9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x43d0d6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x43d0b0
mov esp, ebp
pop ebp
ret
Function at 0x43d0e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x45869c], eax
je 0x43d0fe
mov eax, 0x10dd
jmp 0x43d1df
mov eax, dword [0x4586ac]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43d17c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x43d15a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x43d15a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.0043d250
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00409612
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x43d106
mov dword [0x4586ac], 0
call fcn.0043d1f0
mov ecx, dword [0x4586a8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x43d1c9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00409612
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x43d194
mov dword [0x4586a8], 0
mov dword [0x45869c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x43d750
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x43d765
xor eax, eax
jmp 0x43d7da
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x43d792
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x43d7d5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x43d7d3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x43d7cf
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x43d7d3
xor eax, eax
jmp 0x43d7da
jmp 0x43d789
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x43d880
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x4586a0], 0
je 0x43d899
mov eax, dword [0x4586a0]
jmp 0x43d939
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x43d8ab
xor eax, eax
jmp 0x43d939
push 8
call fcn.004095d8
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43d901
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x43d8ea
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00409612
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x4586a0], eax
mov dword [0x4586a4], 0
mov eax, dword [ebp - 4]
jmp 0x43d939
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x43d91b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x43d8cb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x4586a8]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x4586a8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x43e150
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.0043e220
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x43e20c
cmp dword [ebp - 4], 0x50000000
jb 0x43e18c
cmp dword [ebp - 4], 0x80000000
ja 0x43e18c
mov dword [ebp - 4], 0x80010000
jmp 0x43e165
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.00428200
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x43e1b2
jmp 0x43e20c
cmp dword [ebp - 0x10], 0x10000
jne 0x43e1f5
cmp dword [ebp - 0x14], 0x10000
jb 0x43e1f5
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x43e1e8
mov eax, dword [ebp - 0x24]
jmp 0x43e20e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x43e207
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.0043e220
add esp, 4
mov dword [ebp - 4], eax
jmp 0x43e165
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x43e250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.0043e320
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x43e314
cmp dword [ebp - 4], 0x50000000
jb 0x43e291
cmp dword [ebp - 4], 0x80000000
ja 0x43e291
mov dword [ebp - 4], 0x4fff0000
jmp 0x43e26a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.00428200
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x43e2b7
jmp 0x43e314
cmp dword [ebp - 0x10], 0x10000
jne 0x43e2fa
cmp dword [ebp - 0x14], 0x10000
jb 0x43e2fa
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x43e2ed
mov eax, dword [ebp - 0x24]
jmp 0x43e316
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x43e30f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.0043e320
add esp, 4
mov dword [ebp - 4], eax
jmp 0x43e26a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x438cad
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
and ebx, ebx
or edx, edx
call fcn.00438ced
mov edx, 0x906a9ce4
sub edx, 0x774e8a0f
or edx, ebx
xor dword [edi], ecx
sub ebx, edx
or ebx, ebx
dec ebx
inc edi
or edx, edx
add edx, edx
sub esp, 4
mov dword [esp], 0x7f2d4827
mov edx, dword [esp]
add esp, 4
cmp edi, esi
jne fcn.00438cad
add ebx, ebx
dec edx
ret
Function at 0x406ac0
Capabilities:
Check os version
Print debug messages

Disassembly:
sub esp, 0x118
mov eax, dword [0x480aa4]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x114
lea eax, [esp + 8]
push 0
push eax
call fcn.00447500
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406bac
mov eax, dword [esp + 0x14]
sub eax, 2
je 0x406b1b
mov esi, dword [esp + 8]
push str.Os_is_not_default
jmp 0x406bb9
mov eax, dword [esp + 8]
cmp eax, 6
jne 0x406bc1
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x406b56
push str.Os_is_Vista
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 6
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044746c
add esp, 0x118
ret
cmp ecx, 1
jne 0x406b81
push str.Os_is_Windows7
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 6
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044746c
add esp, 0x118
ret
cmp ecx, 2
jne 0x406bc1
push str.Os_is_Windows8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 6
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044746c
add esp, 0x118
ret
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Os_is_not
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.0044746c
add esp, 0x118
ret
Function at 0x406be0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f270
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x480aa4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [0x4822c0]
test esi, esi
mov dword [ebp - 4], 0
jne 0x406c2b
cmp byte [ebp + 0xc], 1
jne 0x406c2b
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
movzx eax, word [ebp + 8]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x406d23
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x406c7e
push str.Can_not_allocate_enough_memory_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.00447a50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea edx, [ebp - 0x14]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x406cd2
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
push 0x471458
push 0
push edi
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
xor edi, edi
mov dword [ebp + 8], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [ebp + 8]
push 4
push edi
push edi
push edi
push ecx
call dword [sym.imp.USER32.dll_CopyImage]
mov esi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 8]
push ecx
mov dword [ebp + 0xc], edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8