joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405470
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51dcb8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x575db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
push 0xffffffffffffffff
push ebx
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], ebx
call fcn.00402570
push 0x20
push 1
lea ecx, [ebp - 0x60]
call fcn.00404b60
push 0xffffffffffffffff
push ebx
lea edi, [esi + 0x20]
push edi
lea ecx, [ebp - 0x60]
call fcn.004049a0
push 2
push 0x52d2b8
lea ecx, [ebp - 0x60]
call fcn.00404c10
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x4054f4
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 0x50]
push ebx
mov ebx, dword [ebp + 8]
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp dword [edi + 0x14], 0x10
jb 0x40550c
mov edi, dword [edi]
push 4
push str.401
push edi
call fcn.0050692c
add esp, 0xc
test eax, eax
jne 0x40554d
push 0x3b
push str.WWW_Authenticate:_Basic_realm_FDM_Remote_control_server__r_n
lea ecx, [ebp - 0x60]
call fcn.00402a20
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x40553b
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 0x50]
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push edx
push eax
push ebx
call edi
jmp 0x405553
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0x10
push str.Content_Length:
lea ecx, [ebp - 0x60]
call fcn.00402a20
mov ecx, dword [esi + 0x40]
push 0xa
lea eax, [ebp - 0x44]
push eax
push ecx
call fcn.0051d674
lea eax, [ebp - 0x44]
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405580
sub eax, edx
push eax
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x60]
call fcn.00404c10
push 2
push 0x52d2b8
lea ecx, [ebp - 0x60]
call fcn.00404c10
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x4055b1
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 0x50]
push 0
push ecx
push eax
push ebx
call edi
push 0
push 2
push 0x52d2b8
push ebx
call edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x405600
mov esi, dword [esi + 0x40]
mov edi, eax
test esi, esi
je 0x405600
mov eax, 0x3e8
cmp esi, 0x3e8
ja 0x4055e6
mov eax, esi
push 0
push eax
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x405635
cmp eax, 0xffffffff
je 0x40564b
add edi, eax
sub esi, eax
jne 0x4055d7
cmp dword [ebp - 0x4c], 0x10
jb 0x405612
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0040700c
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050558a
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x4c], 0x10
jb 0x405647
mov edx, dword [ebp - 0x60]
push edx
call fcn.0040700c
add esp, 4
xor eax, eax
jmp 0x405617
cmp dword [ebp - 0x4c], 0x10
jb 0x405647
mov eax, dword [ebp - 0x60]
push eax
call fcn.0040700c
add esp, 4
xor eax, eax
jmp 0x405617
Function at 0x405b80
Capabilities:
Create tcp socket
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x575db0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x405baa
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050558a
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
je 0x405b99
mov eax, 2
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
movzx ecx, word [esi + 0x14]
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 4
lea edx, [ebp - 0x18]
push edx
push 4
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0x10]
push 0xffff
push eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 0x10]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x405b99
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
push 0x405910
push 0
push 0
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0050558a
mov esp, ebp
pop ebp
ret

Function at 0x405c50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
push 0
mov esi, ecx
push 0
mov dword [esi], vtable.vmsSingleInstance.0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405c8b
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x405f10
Capabilities:
Initialize winsock library
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51dd61
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x575db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xb8]
call fcn.00405cb0
test eax, eax
je 0x40600b
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x114]
push 0x5c
push ecx
call fcn.00506b20
add esp, 8
lea edx, [ebp - 0x114]
push edx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
call fcn.0040dec7
add esp, 4
push str.FreeDownloadManager.ORG
mov ecx, esi
call fcn.0040b9cc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x3dc]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
lea ecx, [ebp - 0x24c]
call fcn.00406380
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0
mov dword [esi + 0x20], ecx
call fcn.00406620
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], 2
call fcn.004058a0
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 1
call fcn.004020c0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040cb88
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050558a
mov esp, ebp
pop ebp
ret
Function at 0x406070
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x575db0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push str.http
push esi
mov dword [ebp - 0x458], 0x3e8
call fcn.00508020
add esp, 0xc
test eax, eax
jne 0x4060b9
mov eax, dword [str.http]
mov cl, byte [0x52d4a0]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], cl
jmp 0x4060e9
push 5
push str.https
push esi
call fcn.00508020
add esp, 0xc
test eax, eax
jne 0x4060e2
mov edx, dword [str.https]
mov ax, word [0x52d498]
mov dword [ebp - 0x68], edx
mov word [ebp - 0x64], ax
jmp 0x4060e9
mov dword [ebp - 0x68], 0x707466
lea eax, [ebp - 0x68]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4060f0
mov ecx, dword [str._shellopencommand]
mov edx, dword [0x52d484]
mov dword [eax], ecx
mov ecx, dword [0x52d488]
mov dword [eax + 4], edx
mov edx, dword [0x52d48c]
mov dword [eax + 8], ecx
mov ecx, dword [0x52d490]
mov dword [eax + 0xc], edx
lea edx, [ebp - 0x454]
push edx
push 1
mov dword [eax + 0x10], ecx
push 0
lea eax, [ebp - 0x68]
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
test eax, eax
jne 0x4061de
mov eax, dword [ebp - 0x454]
lea ecx, [ebp - 0x458]
push ecx
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406180
mov ecx, dword [ebp - 0x454]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4061de
mov edx, dword [ebp - 0x454]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x450]
push eax
call fcn.0051d850
lea ecx, [ebp - 0x450]
push str..exe
push ecx
call fcn.00506a70
add esp, 0xc
test eax, eax
je 0x4061de
mov byte [eax + 4], 0
cmp byte [ebp - 0x450], 0x22
lea eax, [ebp - 0x44f]
je 0x4061ca
lea eax, [ebp - 0x450]
push 5
push 0
push esi
push eax
push str.open
push 0
call edi
cmp eax, 0x20
jg 0x406203
push 5
push 0
push 0
push esi
push str.open
push 0
call edi
cmp eax, 0x20
jg 0x406203
push 0x10
push str.failed_to_open
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050558a
mov esp, ebp
pop ebp
ret
Function at 0x406620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51dea8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x575db0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x80]
mov ebx, dword [esi + 0x7c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
call fcn.004078d6
cmp dword [esi + 0x78], 0
mov edi, dword [eax + 0xc]
je 0x40668f
call fcn.004078d6
mov ecx, dword [esi + 0x78]
mov edi, dword [eax + 0xc]
push 5
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
mov ebx, eax
test ebx, ebx
je 0x40669d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4066b8
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040ce6c
mov ebx, eax
mov dword [ebp - 0x24], ebx
call fcn.00410f0a
mov dword [ebp - 0x20], 0
test ebx, ebx
je 0x4066ef
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4066ef
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x30]
call fcn.00407b47
mov dword [ebp - 4], 0
push esi
mov byte [ebp - 4], 1
call fcn.0041346c
push ebx
call fcn.00410e4f
mov edx, dword [ebp - 0x14]
push edi
push eax
push edx
mov ecx, esi
call fcn.0040d163
test eax, eax
je 0x406781
test byte [esi + 0x58], 0x10
je 0x406742
mov ecx, esi
xor edi, edi
call fcn.00414b2b
test eax, 0x100
je 0x40673a
mov edi, 1
push edi
mov ecx, esi
call fcn.0041092e
cmp dword [esi + 0x20], 0
je 0x406781
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.00414e65
jmp 0x406781
mov dword [ebp - 4], 0xffffffff
call fcn.00407b5f
cmp dword [ebp - 0x20], 0
je 0x40679c
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x4067b2
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4067b2
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
mov ecx, esi
call fcn.0040ceae
cmp dword [esi + 0x78], 0
je 0x4067d2
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4069e0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51df0b
mov eax, dword fs:[0]
push eax
mov eax, 0x2718
call fcn.00506e30
mov eax, dword [0x575db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x2710
lea eax, [ebp - 0x2720]
push eax
mov edi, ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [ebp - 0x2720]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 1
push 0
push 0x3e8
mov ecx, edi
mov ebx, eax
call fcn.00414a4c
mov esi, eax
call fcn.00408a2a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406a61
push 0x80004005
call fcn.00401600
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2724], eax
mov dword [ebp - 4], 0
cmp esi, 0x50
jne 0x406aad
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
movzx edx, byte [eax + 3]
movzx ecx, byte [eax + 2]
push edx
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push edx
push eax
lea ecx, [ebp - 0x2724]
push str.http:___d._d._d._d_
push ecx
call fcn.004069b0
add esp, 0x18
jmp 0x406ada
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
push esi
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
lea eax, [ebp - 0x2724]
push str.http:___d._d._d._d:_d_
push eax
call fcn.004069b0
add esp, 0x1c
mov esi, dword [ebp - 0x2724]
push esi
push 0x3ea
mov ecx, edi
call fcn.00414aa3
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050558a
mov esp, ebp
pop ebp
ret
Function at 0x40a029
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x575db0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x40a071
push 0x52dd60
push 4
push eax
call fcn.005078b9
push eax
call fcn.00401530
add esp, 0x10
jmp 0x40a087
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40a10a
push edi
call fcn.005076c1
mov edi, dword [eax]
call fcn.005076c1
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00507997
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.005076c1
cmp dword [eax], 0
je 0x40a0de
call fcn.005076c1
push dword [eax]
call fcn.00407ff8
pop ecx
jmp 0x40a0e5
call fcn.005076c1
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x40a10a
cmp dword [ebp - 0x11c], esi
jae 0x40a10a
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40a10c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050558a
leave
ret
Function at 0x40a119
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x575db0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00409058
pop ecx
cmp eax, esi
je 0x40a203
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x40a203
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.005069f0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x40a203
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x40a203
cmp esi, 0x14
jge 0x40a203
push 0x10
push 0
push edi
call fcn.00507e65
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40a1f2
call fcn.005076c1
cmp dword [eax], 0x22
je 0x40a1f2
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00507282
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x40a1c8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5773c8], 0
jne 0x40a28e
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x40a2b7
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0040a029
pop ecx
pop ecx
test eax, eax
jne 0x40a2b9
inc edi
cmp edi, esi
jl 0x40a294
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050558a
leave
ret 8

Function at 0x40d521
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.004078d6
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 0x40d55a
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.0040d163
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 0x40d5b8
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 0x40d5dc
cmp dword [edi + 0x74], 0
jne 0x40d5dc
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004078d6
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.0040d579
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 0x40dab3
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 0x40dafb
call fcn.004078d6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40dafb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40db3e
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 0x40db27
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 0x40db27
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40db3b
mov ecx, dword [esi + 0x68]
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 0x414917
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 0x41495e
call fcn.004078d6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41495e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41497a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041441c
mov esi, eax
test edi, edi
je 0x414978
test ebx, ebx
je 0x414978
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4151d9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x528d26
call fcn.0050715b
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4151fe
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x415250
call fcn.00408a2a
push eax
lea ecx, [ebp - 0x10]
call fcn.00401b40
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.00507265
push eax
call fcn.00401530
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.00401820
mov eax, esi
call fcn.00507233
ret 8

Function at 0x419a3c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x575db0]
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 0x419a71
xor eax, eax
jmp 0x419ac4
lea eax, [ebp - 0x210]
push eax
call fcn.00507282
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x419aa2
push 0x52f1f4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050a62e
add esp, 0xc
test eax, eax
jne 0x419a6d
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050a62e
add esp, 0xc
test eax, eax
jne 0x419a6d
lea eax, [ebp - 0x210]
push eax
call fcn.0040fe6d
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050558a
leave
ret
Function at 0x42a4a2
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.0042a161
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x42a4ec
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408924
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401af0
jmp 0x42a4f7
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041caec
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42a4fd
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.00414a23
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 0x42a53a
call fcn.0042a161
mov dword [esi + 0xc], 1
jmp 0x42a53f
call fcn.0042a161
cmp dword [esi], 0
je 0x42a588
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x42a560
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408924
jmp 0x42a572
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401e90
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401af0
jmp 0x42a5ac
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 0x42a5ac
push dword [esi]
push dword [ebp + 8]
call fcn.0041caec
pop esi
pop ebp
ret 0xc

Function at 0x454f55
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004dcb3c
call fcn.004072f3
cmp dword [eax + 0x14], 0
jne 0x454f72
mov ecx, esi
pop esi
jmp fcn.00454a5a
pop esi
ret

Function at 0x4584c5
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0047fb76
call fcn.004072f3
cmp dword [eax + 0x14], 0
jne 0x4584e2
mov ecx, esi
pop esi
jmp fcn.00457e98
pop esi
ret