joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442f86
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x442fb1
call fcn.00448214
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x442fd4
push eax
push dword [esi + 4]
call fcn.00442f0c
push esi
push eax
mov ecx, 0x4bbda4
call fcn.00442b8c
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x443a54
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x490bd6
call fcn.00465d51
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00443a14
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401b90
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x443abb
push eax
push dword [esi + 8]
call fcn.00442f0c
push dword [esi + 0xc]
mov ecx, 0x4bbda4
push eax
call fcn.00442b8c
mov eax, esi
call fcn.00465e29
ret 0x1c

Function at 0x446807
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 0x44684f
call fcn.00448214
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44684f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x446892
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 0x44687b
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 0x44687b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44688f
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 0x448b7a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x490f35
call fcn.00465d51
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x448b9f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x448be5
lea ecx, [ebp - 0x10]
call fcn.00401b90
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.004427c0
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.00401180
mov eax, esi
call fcn.00465e29
ret 8

Function at 0x44ec5f
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 0x44eca6
call fcn.00448214
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44eca6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44ecc2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044e7d7
mov esi, eax
test edi, edi
je 0x44ecc0
test ebx, ebx
je 0x44ecc0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x45fa81
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 0x45faa5
cmp dword [edi + 0x54], 0
jne 0x45faa5
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00448214
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.0045fa42
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 0x461095
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b9a40]
jne 0x46109f
repz ret
jmp fcn.0046a49e
Function at 0x47632f
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.00469e02
and dword [ebp - 4], 0
cmp dword [0x4be864], 0
mov ebx, eax
jne 0x4763e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x476491
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x476491
push eax
call fcn.00469d90
mov dword [esp], 0x49ccf0
push edi
mov dword [0x4be864], eax
call esi
push eax
call fcn.00469d90
mov dword [esp], 0x49ccdc
push edi
mov dword [0x4be868], eax
call esi
push eax
call fcn.00469d90
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4be86c], eax
call esi
push eax
call fcn.00469d90
pop ecx
mov dword [0x4be874], eax
test eax, eax
je 0x4763e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00469d90
pop ecx
mov dword [0x4be870], eax
mov eax, dword [0x4be870]
cmp eax, ebx
je 0x476438
cmp dword [0x4be874], ebx
je 0x476438
push eax
call fcn.00469e0b
push dword [0x4be874]
mov esi, eax
call fcn.00469e0b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x476438
test edi, edi
je 0x476438
call esi
test eax, eax
je 0x47642f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47642f
test byte [ebp - 0xc], 1
jne 0x476438
or dword [ebp + 0x10], 0x200000
jmp 0x476471
mov eax, dword [0x4be868]
cmp eax, ebx
je 0x476471
push eax
call fcn.00469e0b
pop ecx
test eax, eax
je 0x476471
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x476471
mov eax, dword [0x4be86c]
cmp eax, ebx
je 0x476471
push eax
call fcn.00469e0b
pop ecx
test eax, eax
je 0x476471
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4be864]
call fcn.00469e0b
pop ecx
test eax, eax
je 0x476491
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x476493
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x481b39e0
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..rdata
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x2efc4034
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4032c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x40818c]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
call fcn.00403280
lea ecx, [esp + 4]
push ecx
xor eax, eax
push 0x202
mov dword [esi], vtable.CHardwareTCP32.0
mov word [esi + 4], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40332a
mov eax, dword [esp + 4]
cmp al, 2
jne 0x403324
shr eax, 8
cmp al, 2
jne 0x403324
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov edx, 2
mov dword [esi + 0x10], eax
mov word [esi + 4], dx
jmp 0x40332a
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
mov dword [esi + 0x14], 0xffffffff
mov eax, esi
pop esi
xor ecx, esp
call fcn.00404406
add esp, 0x194
ret

Function at 0x403481
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
cmp word [esi + 4], 2
push edi
lea edi, [esi + 4]
je 0x403498
pop edi
mov eax, 5
pop esi
pop ecx
ret
cmp dword [esi + 0x14], 0xffffffff
je 0x4034a3
call fcn.00403350
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x2712
mov dword [esi + 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [esi + 6], ax
mov eax, dword [esi + 0x14]
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x40348f
mov edx, dword [esi + 0x14]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x1005
push 0xffff
push edx
mov dword [esp + 0x1c], 0x1388
call edi
mov ecx, dword [esi + 0x14]
push 4
lea eax, [esp + 0xc]
push eax
push 0x1006
push 0xffff
push ecx
call edi
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x404406
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40818c]
jne 0x404410
repz ret
jmp fcn.004048a7
Function at 0x4022e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3c
push ebx
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40230f
xor al, al
pop ebx
add esp, 0x3c
ret
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
xor ecx, ecx
mov dword [esp + 0x1c], ecx
push ecx
lea edx, [esp + 0x14]
push edx
push 6
lea eax, [esp + 0x28]
push eax
push ebx
mov word [esp + 0x34], cx
call esi
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
push ecx
lea edx, [esp + 0x14]
push edx
push 0x10
lea eax, [esp + 0x30]
push eax
push ebx
mov dword [esp + 0x44], ecx
call esi
mov eax, dword [esp + 0x2c]
mov ebp, eax
push eax
mov dword [esp + 0x18], ebp
call fcn.004175d5
mov ecx, dword [esp + 0x34]
add esp, 4
push 0
push 0
push ecx
mov edi, eax
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x14]
push edx
push ebp
push edi
push ebx
call esi
test eax, eax
jne 0x40239f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x3c
ret
mov cx, word [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
push 0x18
mov word [esp + 0x3c], cx
mov word [esp + 0x38], ax
mov word [esp + 0x3a], 1
mov dword [esp + 0x48], edx
mov word [esp + 0x4c], ax
call fcn.004175d5
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov edi, eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ecx
add esp, 4
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x54]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0x18
push edi
mov edi, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push 0
push 1
mov esi, eax
push 0xe
push esi
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0
push 1
push 3
push esi
call edi
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x402395
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x3c
ret
Function at 0x404190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4041a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4041bd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4041de
cmp esi, eax
jae 0x4041b7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4041d0
cmp esi, eax
jae 0x4041b7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x405e80
Capabilities:
Copy file

Disassembly:
sub esp, 0x208
mov eax, dword [0x43f350]
push ebp
push esi
mov esi, dword [esp + 0x214]
push 0
push esi
mov dword [esp + 0x214], eax
call fcn.0041701d
mov ebp, dword [esp + 0x220]
add esp, 8
cmp eax, 0xffffffff
je 0x405edb
push 0
push ebp
call fcn.0041701d
add esp, 8
cmp eax, 0xffffffff
je 0x405edb
push ebp
call fcn.00405a70
add esp, 4
cmp ax, 0x2710
jb 0x405edb
cmp ax, 0x4e20
jb 0x405f8b
push 0
push ebp
call fcn.0041701d
add esp, 8
cmp eax, 0xffffffff
je 0x405f0d
push 0
push esi
call fcn.0041701d
add esp, 8
cmp eax, 0xffffffff
jne 0x405f0d
push 1
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x405fa2
mov esi, dword [esp + 0x21c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
xor edi, edi
mov edi, edi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f25
sub eax, edx
mov dword [esp + 0x10], eax
je 0x405f54
push esi
call fcn.004044c0
add esp, 4
test eax, eax
jle 0x405f54
push esi
call fcn.00404c60
add esp, 4
push 0x64
call ebx
inc edi
cmp edi, 5
jl 0x405f20
push 0x104
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push ebp
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
pop edi
pop ebx
je 0x405fa2
mov edx, dword [esp + 0x214]
push edx
push ebp
call fcn.004025f0
add esp, 8
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x204]
call fcn.00416fcd
add esp, 0x208
ret
mov ecx, dword [esp + 0x20c]
pop esi
mov eax, 1
pop ebp
call fcn.00416fcd
add esp, 0x208
ret
Function at 0x4088e0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x104
mov eax, dword [0x43f350]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
push eax
lea ecx, [esp + 4]
push 0x433088
push ecx
call fcn.00416ca1
add esp, 0xc
lea edx, [esp]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4402c8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x100]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
call fcn.00416fcd
add esp, 0x104
ret
Function at 0x40e2f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40e34b
call fcn.0042e3de
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40e34b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40e341
xor eax, eax
jmp 0x40e464
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40e37b
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40e37b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40e461
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40e3a8
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040d1ee
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40e461
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40e3f1
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40e3f1
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40e3eb
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040d1ee
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40e451
and dword [ebp + 0xc], 0
jmp 0x40e451
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40e451
push 0xc
call fcn.004282a9
mov esi, eax
test esi, esi
pop ecx
je 0x40e433
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40e435
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40e44c
push dword [ebp - 8]
call fcn.00423d53
jmp 0x40e451
call fcn.00423d2a
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40e3b6
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41701d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41703d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00419a3e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x417060
test byte [esp + 8], 2
je 0x417060
call fcn.00419a2c
mov dword [eax], 0xd
call fcn.00419a35
mov dword [eax], 5
jmp 0x417039
xor eax, eax
ret
Function at 0x41768d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00416fe0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417728
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x44b2e8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x417728
cmp eax, 1
je 0x417749
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417728
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4176f5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x417724
xor eax, eax
inc eax
jmp 0x417768
cmp edi, eax
jae 0x41772c
xor eax, eax
jmp 0x417768
cmp eax, esi
jae 0x417733
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44b2e8]
jmp 0x41774c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417a4b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4361a0
call fcn.00418e5c
push 8
call fcn.0041a709
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44b328], esi
jne 0x417a7f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44b324], esi
mov al, byte [ebp + 0x10]
mov byte [0x44b320], al
cmp dword [ebp + 0xc], edi
jne 0x417ac9
cmp dword [0x44cbcc], edi
je 0x417ab9
mov eax, dword [0x44cbc8]
sub eax, 4
mov dword [0x44cbc8], eax
cmp eax, dword [0x44cbcc]
jb 0x417ab9
mov eax, dword [eax]
cmp eax, edi
je 0x417a9a
call eax
jmp 0x417a9a
push 0x43e098
mov eax, 0x43e090
call fcn.004179c9
pop ecx
push 0x43e0a4
mov eax, 0x43e09c
call fcn.004179c9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x417afa
cmp dword [ebp + 0x10], edi
jne 0x417b08
mov dword [0x44b328], esi
push dword [ebp + 8]
call fcn.00417987
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x417b07
push 8
call fcn.0041a654
pop ecx
ret
call fcn.00418e97
ret
Function at 0x418396
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4361c0
call fcn.00418e5c
mov edi, 0x94
mov eax, edi
call fcn.00416fe0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x44b2e8], ecx
mov eax, dword [esi + 4]
mov dword [0x44b2f4], eax
mov edx, dword [esi + 8]
mov dword [0x44b2f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44b2ec], esi
cmp ecx, 2
je 0x4183f6
or esi, 0x8000
mov dword [0x44b2ec], esi
shl eax, 8
add eax, edx
mov dword [0x44b2f0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x418431
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418431
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x418449
cmp eax, 0x20b
je 0x418436
mov dword [ebp - 0x1c], esi
jmp 0x41845d
cmp dword [ecx + 0x84], 0xe
jbe 0x418431
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x418457
cmp dword [ecx + 0x74], 0xe
jbe 0x418431
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041c5d6
pop ecx
test eax, eax
jne 0x418471
push 0x1c
call fcn.00418372
pop ecx
call fcn.0041c415
test eax, eax
jne 0x418482
push 0x10
call fcn.00418372
pop ecx
call fcn.0041d38e
mov dword [ebp - 4], esi
call fcn.0041dee0
test eax, eax
jge 0x41849b
push 0x1b
call fcn.0041834d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44cbc0], eax
call fcn.0041ddbe
mov dword [0x44b32c], eax
call fcn.0041dd1c
test eax, eax
jge 0x4184c1
push 8
call fcn.0041834d
pop ecx
call fcn.0041dae9
test eax, eax
jge 0x4184d2
push 9
call fcn.0041834d
pop ecx
push 1
call fcn.004179e1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4184e8
push eax
call fcn.0041834d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041da8c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x418509
movzx eax, word [ebp - 0x40]
jmp 0x41850c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004238e0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41852a
push edi
call fcn.00417b0e
call fcn.00417b30
jmp 0x41855c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00418e97
ret