joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ac00
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0046b940
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0046b940
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x46ac60
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x46f070]
test esi, esi
jle 0x46ad80
mov eax, dword [0x46f074]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x46ac94
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x46ad17
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x46ac80
mov dword [esp], ebx
call fcn.0046b650
mov edi, eax
test eax, eax
je 0x46ada7
mov eax, dword [0x46f074]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0046b790
mov edx, dword [0x46f074]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x46ad87
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x46ad10
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x46ad20
add dword [0x46f070], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x46f074]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x46ad10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0046ac00
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x46ac9e
mov eax, dword [0x46f074]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0046ac00
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0046ac00
lea esi, [esi]
nop
Function at 0x46b2c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x46f08c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x46f084]
sub esp, 4
test ebx, ebx
je 0x46b315
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x46b30e
test esi, esi
je 0x46b30e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x46b2f0
mov dword [esp], 0x46f08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x46b650
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x46b675
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x46b680
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x46b675
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x46b6c8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x46b6be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x46b6ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x46b6b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x407b40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test dword [ebx + 0x74], ecx
xor al, 0x3b
inc ebp
fsub qword [0xcf99127]
in eax, dx
cmp eax, dword [ebx + 0x50]
mov dword [eax], ecx
call dword [ebp + 8]
add esp, 4
test eax, eax
jne 0xfd7bc3
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
xchg esp, eax
inc eax
add al, 0x89
inc ebp
fcom qword [edi]
push ebp
hlt
dec ebp
in al, dx
sub cl, byte [eax + edi]
mov ecx, ebx
in al, dx
jne 0x407afd
mov eax, 0xc985c964
je 0x407b9f
jne 0x407b96
rol byte [ecx - 0x74ae8a37], 0x55
cwde
mov ecx, dword [ebp - 4]
cmp edx, ecx
jbe 0x407b03
test eax, eax
je 0x407b36
cld
inc ebp
fdiv qword [edx + 0x20]
mov edi, esp
or dword [ebx + 0x16], esi
retf 0x2f02
Function at 0x401163
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, dword [ebp + 0x10]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 1]
mov byte [ebp - 8], al
mov dword [ebp - 0xc], 0
jmp 0x40118d
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jge 0x401286
mov eax, dword [ebp - 4]
and eax, 0xff
add eax, 1
cdq
mov ecx, 0x235
idiv ecx
mov byte [ebp - 4], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x437cf0]
xor ecx, ecx
mov cl, byte [eax + edx]
mov eax, ecx
mov edx, dword [ebp - 8]
and edx, 0xff
add eax, edx
cdq
mov ecx, 0x235
idiv ecx
mov byte [ebp - 8], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [0x437cf0]
add eax, edx
push eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [0x437cf0]
add edx, ecx
push edx
call fcn.0040129c
add esp, 8
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [0x437cf0]
xor edx, edx
mov dl, byte [ecx + eax]
mov eax, edx
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [0x437cf0]
xor ebx, ebx
mov bl, byte [edx + ecx]
add eax, ebx
cdq
mov ecx, 0x235
idiv ecx
mov byte [ebp - 0x10], dl
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov ecx, dword [0x437cf0]
mov al, byte [eax]
xor al, byte [ecx + edx]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], al
jmp 0x401184
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 8]
mov byte [ecx + 1], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40381d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x40382d
mov al, 1
jmp 0x4038a5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, 1
test eax, eax
je 0x4038a3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jb 0x40385b
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 4]
cmp edx, dword [ebp + 8]
jbe 0x40385d
jmp 0x4038a3
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x403899
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4038a1
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403836
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x409911
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x437098
cmp edx, dword [eax]
je 0x409933
add eax, 8
inc ecx
cmp eax, 0x437128
jl 0x409924
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x437098]
jne 0x409a61
mov eax, dword [0x439d20]
cmp eax, 1
je 0x409a3b
test eax, eax
jne 0x409964
cmp dword [0x436bd4], 1
je 0x409a3b
cmp edx, 0xfc
je 0x409a61
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40999b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409b00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405a40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4099de
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405a40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f5ac
push edi
call fcn.0040ad30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409b00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409b10
lea eax, [ebp - 0xa0]
push 0x42f58c
push eax
call fcn.00409b10
push dword [esi + 0x43709c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409b10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ac99
add esp, 0x2c
pop edi
jmp 0x409a61
lea eax, [ebp + 8]
lea esi, [esi + 0x43709c]
push 0
push eax
push dword [esi]
call fcn.00405a40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x411d51
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x411d73
cmp dword [edi + 0x3c], 0
jne 0x411d73
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00424bfb
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00411da0
pop edi
pop esi
pop ebx
ret 8

Function at 0x411dee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00424bfb
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411e1f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00411e32
pop edi
pop esi
pop ebx
ret 8
Function at 0x4140ee
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x414126
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00416d38
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00416d10
jmp 0x414132
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x415cc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x415d06
call fcn.00424bfb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x415d06
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x415cfd
xor eax, eax
jmp 0x415d0e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00415d14
pop edi
pop esi
pop ebx
ret 4

Function at 0x425475
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00424bfb
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4254b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4254b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4254b6
xor eax, eax
jmp 0x425534
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004131dd
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4254ee
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4254d8
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00425625
push ebx
mov edi, eax
call fcn.00413206
test edi, edi
pop ecx
je 0x425530
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004253ee
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00425539
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x425c3a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x425c68
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x425c86
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00425ba0
jmp 0x425c86
mov eax, dword [esi + 0x14]
test eax, eax
je 0x425c86
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00425ba0
test edi, edi
mov eax, edi
jne 0x425c70
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401020
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x44c69c]
xor eax, esp
mov dword [esp + 0x160], eax
cmp dword [esp + 0x168], 0
je 0x40104f
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
jmp 0x40105e
push 0x4000
push 0x160
lea ecx, [esp + 8]
push ecx
push 0
push 0x43c628
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00420bb4
add esp, 0x164
ret 4

Function at 0x401100
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x44c69c]
xor eax, esp
mov dword [esp + 0x160], eax
cmp dword [esp + 0x168], 0
je 0x401136
push 0x111
push 0x160
lea eax, [esp + 8]
push eax
push 0x10
push str.Doesnt_matter
jmp 0x40114c
push 0x110
push 0x160
lea ecx, [esp + 8]
push ecx
push 0x10
push str.Does_not_matter
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x160]
mov eax, dword [esp]
xor ecx, esp
call fcn.00420bb4
add esp, 0x164
ret 4

Function at 0x401190
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 0x4011a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4011e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011d0
cmp esi, eax
jb 0x4011ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4077fa
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 0x40781e
cmp dword [edi + 0x54], 0
jne 0x40781e
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040f83a
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.004077bb
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 0x408466
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 0x4084ae
call fcn.0040f83a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4084ae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4084f1
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 0x4084da
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 0x4084da
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4084ee
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 0x40e300
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 0x40e347
call fcn.0040f83a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e347
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40e363
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040de7a
mov esi, eax
test edi, edi
je 0x40e361
test ebx, ebx
je 0x40e361
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40eada
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x439c9d
call fcn.00421e0b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40eaff
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40eb45
lea ecx, [ebp - 0x10]
call fcn.00402630
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.00403eca
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.00401240
mov eax, esi
call fcn.00421ee3
ret 8

Function at 0x420bb4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c69c]
jne 0x420bbe
repz ret
jmp fcn.00425808
Function at 0x43154b
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.00426e93
and dword [ebp - 4], 0
cmp dword [0x45068c], 0
mov ebx, eax
jne 0x4315fc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4316ad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44204c
push edi
call esi
test eax, eax
je 0x4316ad
push eax
call fcn.00426e21
mov dword [esp], 0x44203c
push edi
mov dword [0x45068c], eax
call esi
push eax
call fcn.00426e21
mov dword [esp], 0x442028
push edi
mov dword [0x450690], eax
call esi
push eax
call fcn.00426e21
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x450694], eax
call esi
push eax
call fcn.00426e21
pop ecx
mov dword [0x45069c], eax
test eax, eax
je 0x4315fc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00426e21
pop ecx
mov dword [0x450698], eax
mov eax, dword [0x450698]
cmp eax, ebx
je 0x431654
cmp dword [0x45069c], ebx
je 0x431654
push eax
call fcn.00426e9c
push dword [0x45069c]
mov esi, eax
call fcn.00426e9c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x431654
test edi, edi
je 0x431654
call esi
test eax, eax
je 0x43164b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43164b
test byte [ebp - 0xc], 1
jne 0x431654
or dword [ebp + 0x10], 0x200000
jmp 0x43168d
mov eax, dword [0x450690]
cmp eax, ebx
je 0x43168d
push eax
call fcn.00426e9c
pop ecx
test eax, eax
je 0x43168d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43168d
mov eax, dword [0x450694]
cmp eax, ebx
je 0x43168d
push eax
call fcn.00426e9c
pop ecx
test eax, eax
je 0x43168d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45068c]
call fcn.00426e9c
pop ecx
test eax, eax
je 0x4316ad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4316af
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x4d763f5c
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x37635087
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x8ea370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x8ea38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x913074
push ecx
mov edi, eax
call fcn.008fe198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8ea3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.008fe02e
push esi
call fcn.008fdfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret