joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4418e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x475923
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00468e91
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046e530
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046fa4c
test eax, eax
je 0x4419fc
mov ecx, dword [esp + 0x3c]
call fcn.0046e55d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4419c0
push edi
mov ecx, esi
call fcn.0046bbc4
mov ecx, esi
call fcn.00441b60
cmp dword [esp + 0x38], 1
jne 0x4419f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046bcff
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444410
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444443
push esi
call fcn.00447500
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44443c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4444c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4444b2
mov eax, dword [esi + 8]
test eax, eax
je 0x444467
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4444ae
cmp eax, 2
je 0x4444b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44445a
cmp eax, 3
je 0x44448d
cmp eax, 1
jne 0x44445a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44445a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44445a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004444f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4444d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004444f0
add esp, 4
pop esi
ret

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

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44f896
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44f896
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44f877
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4503d0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00450520
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4503f0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4503d1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00450520
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4503f0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x450420
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x450477
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x45048d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.004504b0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x4504b0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x450540
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x450589
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x450a00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475e50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004505b0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00450630
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00450630
lea ecx, [esi + 0xc]
call fcn.0046786e
lea ecx, [esi + 0x10]
call fcn.0046786e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00452e60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00452e60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00452e60
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004678e3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004678e3
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4516a8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476078
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4516b8
call fcn.00451bd0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x45179b
cmp byte [edi], 0
je 0x45179b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4516dd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004503d0
test eax, eax
jne 0x4516fd
push 0x4bf480
lea ecx, [esi + 0x38]
call fcn.00467a20
jmp 0x45179b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00450420
test eax, eax
jne 0x45172c
mov ecx, esi
call fcn.00450520
push edi
add esi, 0x38
push 0x4bf45c
push esi
call fcn.004656e7
add esp, 0xc
jmp 0x45179b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00452450
test eax, eax
je 0x451794
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00451870
test eax, eax
jne 0x4517b0
push edi
lea eax, [esi + 0x38]
push 0x4bf438
push eax
call fcn.004656e7
add esp, 0xc
mov ecx, esi
call fcn.00451bd0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x451858
mov ecx, dword [0x4bf790]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004656e7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.004504d0
test eax, eax
jne 0x45181a
push 0x4bf41c
lea ecx, [esi + 0x38]
call fcn.00467a20
jmp 0x45182a
push 0xfa
mov ecx, esi
call fcn.00452450
test eax, eax
jne 0x451847
mov ecx, esi
call fcn.00451bd0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004678e3
jmp 0x45179b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004678e3
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x453980
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x453a23
test eax, eax
jbe 0x453a23
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x453a23
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4539ce
xor esi, esi
jmp 0x4539d4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4539ff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004559a0
add esi, eax
push esi
mov ebx, esi
call fcn.004559a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4539e0
pop ebp
test edi, edi
pop edi
jne 0x453a23
test ebx, ebx
je 0x453a23
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00458050
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x453b65
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x453c7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x453c7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004692e3
mov esi, eax
test esi, esi
je 0x453c7d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x453c7d
mov ecx, esi
call fcn.00453ad0
cmp edi, eax
jge 0x453c7d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x453c03
mov dword [esp + 0x34], 1
jmp 0x453c5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x453c7d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004530b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x469c87
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x469cbf
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.00467d3e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00467d16
jmp 0x469ccb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46b379
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 0x46b3bb
call fcn.00470ef1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46b3bb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46b3b2
xor eax, eax
jmp 0x46b3c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046b3c9
pop edi
pop esi
pop ebx
ret 4

Function at 0x471421
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 0x47144f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47146d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471387
jmp 0x47146d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47146d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471387
test edi, edi
mov eax, edi
jne 0x471457
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x4ca96f
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
lea eax, [edi + 1]
shr eax, 1
push eax
push esi
push 0
call fcn.004ca9fc
add esp, 0xc
cmp word [esi], 0x5a4d
movzx ecx, ax
jne 0x4ca9f5
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x4ca9f5
mov dx, word [eax + 0x18]
cmp dx, 0x10b
je 0x4ca9b3
cmp dx, 0x20b
jne 0x4ca9f5
mov edx, dword [eax + 0x58]
mov esi, 0xffff
cmp cx, dx
jb 0x4ca9c9
push ebx
movzx ebx, dx
sub ecx, ebx
pop ebx
jmp 0x4ca9ce
sub ecx, edx
and ecx, esi
dec ecx
shr edx, 0x10
cmp cx, dx
jb 0x4ca9dd
movzx edx, dx
sub ecx, edx
jmp 0x4ca9e2
sub ecx, edx
and ecx, esi
dec ecx
mov edx, dword [esp + 0x18]
add ecx, edi
mov dword [edx], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x58]
mov dword [edx], ecx
jmp 0x4ca9f7
xor eax, eax
pop edi
pop esi
ret 0x10
Function at 0x410000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x440059]
shl eax, 2
mov dword [0x44005d], eax
push edi
push ecx
xor eax, eax
mov edi, 0x4489b0
mov ecx, 0x449164
cmp ecx, edi
jbe 0x410024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov eax, dword [edx - 8]
mov dword [0x440061], eax
mov eax, dword [edx - 4]
mov dword [0x440065], eax
sub edx, 4
mov dword [0x448d1c], edx
sub edx, 4
cmp edx, esp
jae 0x41004e
mov esp, edx
push 0
call fcn.0042c0d3
pop ecx
push 0x44002c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x44006a], eax
push 0
jmp fcn.0042fb78
Function at 0x414753
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x4489b0]
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebx + 0x2c]
push dword [eax + 0x10]
call sub.USER32.dll_SetWindowTextA
mov dword [ebp - 0xc], 0x5fb
push 0xa
push dword [ebp - 0xc]
mov eax, dword [ebx]
mov eax, dword [eax + 0x68]
push dword [eax + 0xc]
call sub.KERNEL32.dll_FindResourceA
mov edi, eax
test edi, edi
jne 0x41479f
mov esi, 3
jmp 0x4148c9
mov esi, edi
push esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x68]
push dword [eax + 0xc]
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 4], eax
push dword [ebp - 4]
call sub.KERNEL32.dll_LockResource
mov dword [ebp - 8], eax
push dword [0x4420d8]
mov eax, dword [0x4489b0]
push dword [eax + 0x24]
lea eax, [ebp - 0x90]
push eax
call fcn.0042d310
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebx + 0x2c]
push dword [eax + 0x10]
call sub.USER32.dll_SetWindowTextA
mov ax, word [ebp + 0xc]
push eax
mov esi, edi
push esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x68]
push dword [eax + 0xc]
call sub.KERNEL32.dll_SizeofResource
push eax
push dword [ebp - 8]
push ebx
call fcn.004152e0
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x414873
cmp dword [0x440310], 0
je 0x414873
push dword [0x4420d8]
mov eax, dword [0x4489b0]
push dword [eax + 0x1b0]
lea eax, [ebp - 0x90]
push eax
call fcn.0042d310
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebx + 0x2c]
push dword [eax + 0x10]
call sub.USER32.dll_SetWindowTextA
mov ax, word [ebp + 0xc]
push eax
mov esi, edi
push esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x68]
push dword [eax + 0xc]
call sub.KERNEL32.dll_SizeofResource
push eax
push dword [ebp - 8]
push ebx
call fcn.004153d1
add esp, 0x10
mov esi, eax
cmp dword [0x4489d6], 2
jne 0x4148c1
cmp dword [0x4489d6], 2
jne 0x4148c1
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0x90020
push dword [0x441fd0]
call sub.KERNEL32.dll_DeviceIoControl
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0x9001c
push dword [0x441fd0]
call sub.KERNEL32.dll_DeviceIoControl
push dword [ebp - 4]
call sub.KERNEL32.dll_FreeResource
cmp dword [0x441fd0], 0
je 0x4148ed
cmp dword [0x441fd0], 0xffffffff
je 0x4148ed
push dword [0x441fd0]
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov dword [0x441fd0], eax
push esi
push ebx
call fcn.00414900
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417d0a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0x200
mov ebx, 1
cmp dword [0x441fd0], 0
jne 0x417de2
cmp dword [0x4489d6], 1
jne 0x417d5e
push 0
push 0x4000000
push 0
push 0
push 0
push 0xc0000000
push 0x442022
call sub.KERNEL32.dll_CreateFileA
mov dword [0x441fd0], eax
jmp 0x417dcb
push 0x44202d
lea eax, [ebp - 0x3c]
push eax
call fcn.0042a26c
add esp, 8
test di, di
jne 0x417d87
push 0x442032
lea eax, [ebp - 0x3c]
push eax
call fcn.0042a204
add esp, 8
jmp 0x417d98
push 0x442035
lea eax, [ebp - 0x3c]
push eax
call fcn.0042a204
add esp, 8
mov dword [ebp - 0x18], 0xc
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 3
lea eax, [ebp - 0x18]
push eax
push 3
push 0xc0000000
lea eax, [ebp - 0x3c]
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [0x441fd0], eax
cmp dword [0x441fd0], 0xffffffff
jne 0x417de2
xor eax, eax
mov dword [0x441fd0], eax
xor eax, eax
jmp 0x417eab
cmp dword [0x4489d6], 1
jne 0x417e73
lea eax, [ebp - 0xb]
push eax
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 9]
push eax
mov ax, word [ebp + 0x14]
push eax
call fcn.00417b14
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
movzx eax, di
xor edx, edx
mov dl, byte [ebp - 0xa]
shl edx, 8
or eax, edx
mov dword [ebp - 0x54], eax
xor eax, eax
mov al, byte [ebp - 9]
shl eax, 8
xor edx, edx
mov dl, byte [ebp - 0xb]
or eax, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0x201
mov dword [ebp - 0x40], 1
push 0
lea eax, [ebp - 8]
push eax
push 0x1c
lea eax, [ebp - 0x58]
push eax
push 0x1c
lea eax, [ebp - 0x58]
push eax
push 4
push dword [0x441fd0]
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
je 0x417e6c
test byte [ebp - 0x40], 1
jne 0x417e6c
mov byte [esi], 0
jmp 0x417ea9
xor ebx, ebx
mov byte [esi], 0x80
jmp 0x417ea9
xor eax, eax
mov dword [ebp - 0x20], eax
movzx eax, word [ebp + 0x14]
shl eax, 9
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [0x441fd0]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x417ea9
xor ebx, ebx
mov byte [esi], 0x80
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41813a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, 1
cmp dword [0x4489d6], 1
jne 0x4181fc
push esi
push edi
mov esi, 0x441fd4
lea edi, [ebp - 0x28]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 0x1c
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0042a1d4
add esp, 0xc
lea eax, [ebp - 7]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 5]
push eax
push esi
call fcn.00417b14
add esp, 0x10
xor eax, eax
mov al, byte [ebp + 0x14]
or eax, 0x300
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], edi
xor eax, eax
mov al, byte [ebp - 5]
shl eax, 8
xor edx, edx
mov dl, byte [ebp - 7]
or eax, edx
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 6]
shl eax, 8
xor edx, edx
mov dl, byte [ebp + 8]
dec edx
or eax, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 1
push 0
lea eax, [ebp - 4]
push eax
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 4
push dword [0x441fd0]
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
je 0x4181f8
test byte [ebp - 0x10], 1
je 0x418242
xor ebx, ebx
jmp 0x418242
movzx eax, word [ebp + 0x14]
shl eax, 9
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x30], eax
shl esi, 9
mov dword [ebp - 0x34], esi
xor eax, eax
mov dword [ebp - 0x2c], eax
push 1
call sub.KERNEL32.dll_SetErrorMode
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push dword [0x441fd0]
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x41823c
xor ebx, ebx
push esi
call sub.KERNEL32.dll_SetErrorMode
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret