joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020e0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5578b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5b8584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0x10
call fcn.00402560
push eax
push 0x2712
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call fcn.0051d8f0
add esp, 0xc
push str.Mozilla_5.0__Linux__Android_10__HLK_AL00_Build_HONORHLK_AL00__wv__AppleWebKit_537.36__KHTML__like_Gecko__Version_4.0_Chrome_86.0.4240.99_XWEB_4313_MMWEBSDK_20220805_Mobile_Safari_537.36_MMWEBID_2095_MicroMessenger_8.0.27.2220_0x28001B3F__WeChat_arm64_Weixin_NetType_WIFI_Language_zh_CN_ABI_arm64
lea ecx, [ebp - 0x2c]
call fcn.00402440
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402560
push eax
push 0x2722
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
push eax
call fcn.0051d8f0
add esp, 0xc
push 5
push 0x44
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
push edx
call fcn.0051d8f0
add esp, 0xc
push 1
push 0x34
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call fcn.0051d8f0
add esp, 0xc
push 1
push 0x63
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
push eax
call fcn.0051d8f0
add esp, 0xc
push 0
push 0x2f
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
push edx
call fcn.0051d8f0
add esp, 0xc
push 0x402300
push 0x4e2b
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call fcn.0051d8f0
add esp, 0xc
mov edx, dword [ebp - 0x30]
push edx
push 0x2711
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call fcn.0051d8f0
add esp, 0xc
push 0
push 0x40
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
push eax
call fcn.0051d8f0
add esp, 0xc
push 0
push 0x51
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
push edx
call fcn.0051d8f0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004024c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050342b
mov esp, ebp
pop ebp
ret

Function at 0x402330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00503aef
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403a00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004039e0
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x34]
mov cl, byte [eax]
mov byte [ebp - 0x39], cl
add dword [ebp - 0x34], 1
cmp byte [ebp - 0x39], 0
jne 0x403a28
mov edx, dword [ebp - 0x34]
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
push 0x56634c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00503981
add esp, 8
mov dword [ebp - 0xc], eax
push 0x566350
mov edx, dword [ebp + 0xc]
push edx
call fcn.00503981
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00504872
add esp, 4
test eax, eax
jne 0x403ae1
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 1
lea edx, [ebp - 1]
push edx
call fcn.00504855
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.00504872
add esp, 4
test eax, eax
jne 0x403adf
mov eax, dword [ebp - 8]
cdq
idiv dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + edx]
mov byte [ebp - 0xd], dl
movsx eax, byte [ebp - 1]
movsx ecx, byte [ebp - 0xd]
xor eax, ecx
mov byte [ebp - 1], al
mov edx, dword [ebp - 0x30]
push edx
push 1
push 1
lea eax, [ebp - 1]
push eax
call fcn.00503aef
add esp, 0x10
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x403a71
mov edx, dword [ebp - 0xc]
push edx
call fcn.00503851
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
call fcn.00503851
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x403b00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5b8584]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x566349
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040bc20
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403b34
xor eax, eax
jmp 0x403c2f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040bd50
add esp, 8
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x403b66
mov eax, dword [ebp - 4]
push eax
call fcn.0040bdb0
add esp, 4
xor eax, eax
jmp 0x403c2f
lea ecx, [ebp - 0x138]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call fcn.0040bc40
add esp, 0xc
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x403b9d
mov eax, dword [ebp - 4]
push eax
call fcn.0040bdb0
add esp, 4
xor eax, eax
jmp 0x403c2f
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x144], 0
jmp 0x403bc4
mov edx, dword [ebp - 0x144]
add edx, 1
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
cmp eax, dword [ebp - 0x140]
jge 0x403c14
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x144]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0040bc40
add esp, 0xc
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x144]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0040bd30
add esp, 0xc
mov dword [ebp - 0x13c], eax
jmp 0x403bb5
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040bdb0
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050342b
mov esp, ebp
pop ebp
ret
Function at 0x407c70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x407c80
xor eax, eax
jmp 0x407e1d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x407dde
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x5681e8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5681e8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x5681e8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x5681e8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5681e8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x5681e8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x5681e8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5681e8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x407c89
cmp dword [ebp + 0x10], 0
je 0x407e17
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x5681e8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x407de4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x407e20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5681e8]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x5681e8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x408d50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x408d9f
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x408d95
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x408df9
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x408dbf
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00503b70
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40a4a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40a4bb
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x40a4c5
mov eax, 0x1000000
jmp 0x40a5d0
mov edx, dword [ebp - 0x18]
add edx, 0x140
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp - 0x18]
add eax, 0x140
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov al, byte [edx]
mov byte [ebp - 0x21], al
add dword [ebp - 0x1c], 1
cmp byte [ebp - 0x21], 0
jne 0x40a4ee
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x28]
mov al, byte [edx + 0x13f]
mov byte [ebp - 5], al
movsx ecx, byte [ebp - 5]
cmp ecx, 0x5c
je 0x40a554
movsx edx, byte [ebp - 5]
cmp edx, 0x2f
je 0x40a554
mov eax, dword [ebp - 0x18]
add eax, 0x13f
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x2d], dl
add dword [ebp - 0x2c], 1
cmp byte [ebp - 0x2d], 0
jne 0x40a535
mov edi, dword [ebp - 0x2c]
mov ax, word [0x568680]
mov word [edi], ax
cmp dword [ebp + 0x10], 1
jne 0x40a588
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
xor edx, edx
cmp dword [ebp - 0x10], 0xffffffff
setne dl
mov byte [ebp - 0x11], dl
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x40a588
mov eax, 0x2000000
jmp 0x40a5d0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408a30
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a5ae
mov eax, dword [ebp - 0xc]
jmp 0x40a5d0
mov edx, dword [ebp - 4]
push edx
call fcn.00409100
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
jne 0x40a5ce
mov eax, 0x200
jmp 0x40a5d0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420f77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x420f91
call fcn.0043d227
mov esi, dword [eax + 0xc]
push dword [0x5bb248]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x420faf
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x420fa7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x420fdc
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x420fa9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00420ea5
mov esi, eax
jmp 0x420fce

Function at 0x42d879
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 0x42d8c0
call fcn.0043d227
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42d8c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42d8dc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042d37e
mov esi, eax
test edi, edi
je 0x42d8da
test ebx, ebx
je 0x42d8da
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42e394
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x55db52
call fcn.00505052
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42e3b9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42e40b
call fcn.00410f81
push eax
lea ecx, [ebp - 0x10]
call fcn.00401590
mov ecx, dword [esi + 0x6c]
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.005057d4
push eax
call fcn.0040c26d
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401670
mov eax, esi
call fcn.0050512a
ret 8

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0042bcfc
call fcn.004010e0
cmp eax, esi
pop esi
jne 0x44746c
mov ecx, 0x5bd400
jmp fcn.00455d25
ret
Function at 0x4490fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0043d227
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x449135
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00448d3e
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x449193
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 + 0x78], ebx
test ebx, 0xffff0000
jne 0x4491b7
cmp dword [edi + 0x74], 0
jne 0x4491b7
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0043d227
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.00449154
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 0x449c34
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004498f3
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x449c7e
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00410e7b
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040e15f
jmp 0x449c89
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00453c4c
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x449c8f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0042e05e
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x449ccc
call fcn.004498f3
mov dword [esi + 0xc], 1
jmp 0x449cd1
call fcn.004498f3
cmp dword [esi], 0
je 0x449d1a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x449cf2
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00410e7b
jmp 0x449d04
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401810
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040e15f
jmp 0x449d3e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x449d3e
push dword [esi]
push dword [ebp + 8]
call fcn.00453c4c
pop esi
pop ebp
ret 0xc

Function at 0x4a5b65
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4a5b7d
mov edi, dword [esi + 0xc]
jmp 0x4a5bbd
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4a5b96
call fcn.0044b8f7
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4a5bab
call fcn.0044b8f7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4a5bbd
call fcn.0044b8f7
call fcn.0043d227
cmp dword [eax + 0x3c], 0
je 0x4a5bd2
push edi
mov ecx, ebx
call fcn.004a4a2b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004a5a7f
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4a5bf0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a5bfc
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50342b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b8584]
jne 0x503435
repz ret
jmp fcn.0050bf2c
Function at 0x5195d7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b8584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0050b925
and dword [ebp - 0x14], 0
cmp dword [0x5c0b8c], 0
mov dword [ebp - 0x18], eax
jne 0x51968a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x519732
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x519732
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x58e9b4
push ebx
mov dword [0x5c0b8c], eax
call edi
push eax
call esi
push 0x58e9a0
push ebx
mov dword [0x5c0b90], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5c0b94], eax
call edi
push eax
call esi
mov dword [0x5c0b9c], eax
test eax, eax
je 0x51968a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5c0b98], eax
mov eax, dword [0x5c0b98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5196e3
cmp dword [0x5c0b9c], ecx
je 0x5196e3
push eax
call esi
push dword [0x5c0b9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5196e3
test ebx, ebx
je 0x5196e3
call edi
test eax, eax
je 0x5196da
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5196da
test byte [ebp - 8], 1
jne 0x5196e3
or dword [ebp + 0x10], 0x200000
jmp 0x519716
mov eax, dword [0x5c0b90]
cmp eax, dword [ebp - 0x18]
je 0x519716
push eax
call esi
test eax, eax
je 0x519716
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x519716
mov eax, dword [0x5c0b94]
cmp eax, dword [ebp - 0x18]
je 0x519716
push eax
call esi
test eax, eax
je 0x519716
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5c0b8c]
call esi
test eax, eax
je 0x519732
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x519734
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050342b
leave
ret

Function at 0x51d730
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5b8584]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x51d785
mov eax, dword [esp]
cmp al, 2
jne 0x51d77f
shr eax, 8
cmp al, 2
jne 0x51d77f
call fcn.0051db40
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0050342b
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0050342b
add esp, 0x194
ret