joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0510
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4010
call fcn.004e6bc0
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x400c], eax
push esi
mov esi, dword [esp + 0x4018]
push edi
mov edi, dword [esp + 0x4020]
xor eax, eax
push 0x3ffe
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.004e5fc0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4a05f6
cmp eax, 0x3fff
ja 0x4a05f6
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4a05f6
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push 0x5bda1c
lea ecx, [esp + 0x20]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a05f6
mov esi, dword [esp + 0x4024]
lea edx, [esi + esi]
push edx
push 0
push edi
call fcn.004e5fc0
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
dec esi
push esi
push edi
call fcn.0041c890
add esp, 0x28
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x400c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x4010
ret
mov ecx, dword [esp + 0x4014]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004e5fb0
add esp, 0x4010
ret

Function at 0x4a0bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5ab838
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x18], esi
mov ebx, dword [esp + 0x30]
cmp ebx, esi
je 0x4a0cd0
mov ebp, dword [esp + 0x34]
cmp ebp, esi
je 0x4a0cd0
mov edi, dword [esp + 0x38]
cmp edi, esi
je 0x4a0cd0
push 0x5e8ee8
lea ecx, [esp + 0x34]
call fcn.0040e080
xor ecx, ecx
mov eax, 0x800
mov dword [esp + 0x14], eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], 1
neg ecx
or ecx, eax
push ecx
call fcn.004a3d20
mov esi, eax
add esp, 4
test esi, esi
je 0x4a0c8d
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.004e5fc0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x20]
push eax
push edi
push ebp
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push esi
lea ecx, [esp + 0x34]
call fcn.0040d680
push esi
call fcn.004a3d2b
add esp, 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
push eax
call fcn.0040c050
mov esi, dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a0ce0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4a0ce0
mov esi, dword [esp + 0x2c]
push 0x5e8ee8
mov ecx, esi
call fcn.0040e080
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4a2b20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x40c], 0
jne 0x4a2c18
mov eax, dword [esi + 0x410]
push eax
call fcn.004887d0
add esp, 4
test eax, eax
je 0x4a2b55
mov eax, dword [esi + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
mov eax, dword [esi]
test eax, eax
je 0x4a2b7a
push str.EngLib_Init
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4a2b81
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
xor eax, eax
pop esi
add esp, 0x14
ret
lea ecx, [esi + 8]
push ecx
mov dword [ecx], 0x404
call eax
test eax, eax
jne 0x4a2b9f
mov ecx, esi
call fcn.004a2a50
xor eax, eax
pop esi
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push str.ProxyEnable
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 4
mov dword [esp + 0x20], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp dword [esp + 4], 0
jne 0x4a2c0e
lea ecx, [esp + 0x10]
push ecx
push 3
mov ecx, esi
mov dword [esp + 0x18], 1
call fcn.004a27a0
lea edx, [esp + 0x14]
push edx
push 4
mov ecx, esi
mov dword [esp + 0x1c], 4
call fcn.004a2770
mov dword [esi + 0x40c], 1
mov eax, 1
pop esi
add esp, 0x14
ret

Function at 0x4a30a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5aba20
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
call fcn.004238b0
add esp, 4
push 0x17
push 0x5c149c
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.0040c9c0
call fcn.004387c0
test eax, eax
je 0x4a3140
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a3140
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.0040c050
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4a31a5
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.0040e2c0
mov esi, dword [esp + 0x28]
push str.deepscancloudsec3.dll
push eax
push esi
mov byte [esp + 0x2c], 1
call fcn.0040d150
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a3189
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a31b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4a6b3e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x61ac94]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4a6bd6
push 0x5cd2d4
push 4
push eax
call fcn.004e73e5
push eax
call fcn.0040b280
add esp, 0x10
push ebx
push edi
call fcn.004eb68d
mov edi, dword [eax]
call fcn.004eb68d
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004eb550
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004eb68d
cmp dword [eax], ebx
je 0x4a6bed
call fcn.004eb68d
push dword [eax]
call fcn.004a4aa7
pop ecx
jmp 0x4a6bf4
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4a6b81
jmp 0x4a6c7b
call fcn.004eb68d
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x4a6c77
cmp dword [ebp - 0x234], esi
jae 0x4a6c77
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.004e5fc0
add esp, 0xc
push 0x5cd034
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4a6c66
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4a6c66
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4a6c66
push ebx
push ebx
push esi
jmp 0x4a6c6f
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4a6c79
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e5fb0
leave
ret

Function at 0x4a84f4
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 0x4a8518
cmp dword [edi + 0x54], 0
jne 0x4a8518
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004b1643
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.004a84b5
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 0x4af091
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 0x4af0d8
call fcn.004b1643
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4af0d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4af0f4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004aec09
mov esi, eax
test edi, edi
je 0x4af0f2
test ebx, ebx
je 0x4af0f2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4b03ba
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5ac729
call fcn.004eb287
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4b03df
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4b0425
lea ecx, [ebp - 0x10]
call fcn.0040c120
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.004a3eb6
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040b6b0
mov eax, esi
call fcn.004eb35f
ret 8

Function at 0x4b3bcc
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 0x4b3c14
call fcn.004b1643
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b3c14
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4b3c57
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 0x4b3c40
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 0x4b3c40
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4b3c54
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 0x4be523
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5ad84f
call fcn.004eb287
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e080
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4be585
call fcn.004b0a6f
cmp eax, 1
jne 0x4be585
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x5ce560
push eax
call fcn.0040d230
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040cb00
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040b6b0
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040b6b0
mov eax, esi
call fcn.004eb35f
ret 0x10

Function at 0x4be5ae
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5ad87a
call fcn.004eb287
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e080
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4be610
call fcn.004b0a6f
cmp eax, 1
jne 0x4be610
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x5ce560
push eax
call fcn.0040d230
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040cb00
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040b6b0
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040b6b0
mov eax, esi
call fcn.004eb35f
ret 0x14

Function at 0x4be63c
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x5ad8a5
call fcn.004eb287
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e080
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4be69e
call fcn.004b0a6f
cmp eax, 1
jne 0x4be69e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x5ce560
push eax
call fcn.0040d230
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040cb00
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040b6b0
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040b6b0
mov eax, esi
call fcn.004eb35f
ret 8
Function at 0x4e3391
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x61ac94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4e33c6
xor eax, eax
jmp 0x4e3419
lea eax, [ebp - 0x210]
push eax
call fcn.004eb464
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4e33f7
push 0x5bda1c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004eb20a
add esp, 0xc
test eax, eax
jne 0x4e33c2
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004eb20a
add esp, 0xc
test eax, eax
jne 0x4e33c2
lea eax, [ebp - 0x210]
push eax
call fcn.004bc0ae
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e5fb0
leave
ret

Function at 0x4e5fb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x61ac94]
jne 0x4e5fba
repz ret
jmp fcn.004f248e

Function at 0x504630
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.004f16a5
and dword [ebp - 4], 0
cmp dword [0x6226a0], 0
mov ebx, eax
jne 0x5046e1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x504792
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x504792
push eax
call fcn.004f1633
mov dword [esp], 0x5d5778
push edi
mov dword [0x6226a0], eax
call esi
push eax
call fcn.004f1633
mov dword [esp], 0x5d5764
push edi
mov dword [0x6226a4], eax
call esi
push eax
call fcn.004f1633
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6226a8], eax
call esi
push eax
call fcn.004f1633
pop ecx
mov dword [0x6226b0], eax
test eax, eax
je 0x5046e1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004f1633
pop ecx
mov dword [0x6226ac], eax
mov eax, dword [0x6226ac]
cmp eax, ebx
je 0x504739
cmp dword [0x6226b0], ebx
je 0x504739
push eax
call fcn.004f16ae
push dword [0x6226b0]
mov esi, eax
call fcn.004f16ae
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x504739
test edi, edi
je 0x504739
call esi
test eax, eax
je 0x504730
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x504730
test byte [ebp - 0xc], 1
jne 0x504739
or dword [ebp + 0x10], 0x200000
jmp 0x504772
mov eax, dword [0x6226a4]
cmp eax, ebx
je 0x504772
push eax
call fcn.004f16ae
pop ecx
test eax, eax
je 0x504772
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x504772
mov eax, dword [0x6226a8]
cmp eax, ebx
je 0x504772
push eax
call fcn.004f16ae
pop ecx
test eax, eax
je 0x504772
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6226a0]
call fcn.004f16ae
pop ecx
test eax, eax
je 0x504792
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x504794
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x521ad0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x5b07c4
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x48]
test eax, eax
je 0x521be3
push eax
lea ecx, [esp + 0xc]
call fcn.0051c8c0
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.0051ffb0
lea eax, [esi + 0x154]
push eax
mov ecx, esi
call fcn.0051ecd0
mov eax, dword [esp + 8]
test eax, eax
je 0x521b35
mov eax, dword [eax]
jmp 0x521b37
xor eax, eax
mov ecx, dword [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00520a00
test eax, eax
je 0x521bda
test byte [0x622b24], 1
jne 0x521b7e
or dword [0x622b24], 1
mov byte [esp + 0x40], 1
call fcn.00520eb0
mov ecx, eax
call fcn.00519690
mov ecx, eax
call fcn.00552f10
mov dword [0x622b20], eax
mov byte [esp + 0x40], 0
mov eax, 2
test byte [0x622b24], al
jne 0x521bad
or dword [0x622b24], eax
mov byte [esp + 0x40], al
call fcn.00520eb0
mov ecx, eax
call fcn.00519690
mov ecx, eax
call fcn.00552f20
mov dword [0x622b1c], eax
push esi
push 0x521250
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [esp + 8]
call fcn.0051c970
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x3c
ret 4
lea ecx, [esp + 8]
call fcn.0051c970
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x3c
ret 4
Function at 0x531789
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x1c], 0
push edi
mov edi, dword [esp + 0x30]
je 0x531868
push 0
mov ecx, esi
call fcn.005312b0
mov ecx, dword [eax]
call fcn.0052bf20
test al, al
je 0x531868
push 0
mov ecx, esi
call fcn.005312b0
mov esi, dword [eax]
mov ecx, esi
call fcn.0052bf60
cmp eax, 8
je 0x5316d3
call fcn.0052bf60
cmp eax, 0x10
je 0x5316d3
call fcn.0052bf60
cmp eax, 0x18
je 0x5316d3
call fcn.0052bf60
cmp eax, 0x20
jne 0x531868
push 0x5dbed4
push edi
call fcn.00558040
mov edi, eax
add esp, 8
test edi, edi
je 0x531868
xor eax, eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov byte [esp + 0x25], al
mov eax, str.PhoXo____TGA
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x531710
sub eax, ecx
push ebx
mov ecx, esi
mov byte [esp + 0x18], al
call fcn.0052bf60
cmp eax, 8
sete al
mov byte [esp + 0x19], al
call fcn.0052bf60
cmp eax, 8
setne cl
inc cl
mov byte [esp + 0x1a], cl
mov edx, 0x100
mov ecx, esi
mov word [esp + 0x1d], dx
mov byte [esp + 0x1f], 0x18
call fcn.0052bf40
mov word [esp + 0x24], ax
call fcn.0052bf50
mov word [esp + 0x26], ax
call fcn.0052bf60
push edi
push 0x12
mov byte [esp + 0x30], al
lea eax, [esp + 0x20]
push 1
push eax
mov byte [esp + 0x39], 0x20
call fcn.004ef5d6
movzx ecx, byte [esp + 0x28]
push edi
push ecx
push 1
push str.PhoXo____TGA
call fcn.004ef5d6
add esp, 0x20
mov ecx, esi
call fcn.0052bf60
cmp eax, 8
jne 0x5317fe
xor ecx, ecx
mov eax, 0x100
mov edx, 4
mul edx
seto cl
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.004a3d20
mov ebx, eax
add esp, 4
push ebx
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.0052c1e0
mov ebp, 0x100
push edi
push 3
push 1
push ebx
call fcn.004ef5d6
add esp, 0x10
add ebx, 4
sub ebp, 1
jne 0x5317d6
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x5317fe
push eax
call fcn.004a3d2b
add esp, 4
mov ecx, esi
xor ebx, ebx
call fcn.0052bf50
test eax, eax
jle 0x531849
jmp 0x531810
push edi
mov ecx, esi
call fcn.0052bf60
mov edx, eax
call fcn.0052bf40
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
push 1
push ebx
call fcn.0052c030
push eax
call fcn.004ef5d6
add esp, 0x10
mov ecx, esi
inc ebx
call fcn.0052bf50
cmp ebx, eax
jl 0x531810
push edi
call fcn.004eeffe
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.004e5fb0
add esp, 0x24
ret 0xc
Function at 0x535ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x535edf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
push eax
push ebx
call fcn.0052f210
pop edi
pop esi
pop ebx
ret

Function at 0x5370c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, dword [esp + 0x420]
lea eax, [esp + 8]
push eax
push 0x104
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x210]
push ecx
push 0
push 0x5dc028
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x210]
push eax
mov ecx, esi
call fcn.0051ab80
mov ecx, dword [esp + 0x418]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004e5fb0
add esp, 0x418
ret