joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7be568
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x7be596
mov eax, ebx
call fcn.007bf024
cmp dword [ebx + 0x40], 0
je 0x7be58f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x7be607
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x7be5f9
cmp dword [ebx + 8], 0
je 0x7be5b8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x7be5ca
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x7be5f9
cmp dword [ebx + 8], 0
je 0x7be5ab
cmp eax, 3
je 0x7be5dd
dec eax
jne 0x7be5ab
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x7be5ab
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x7be5ab
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x7be625
cmp dword [ebx + 0x14], 0xcc
je 0x7be625
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.007be630
pop ebx
ret
Function at 0x85feb8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 8]
mov edx, dword [0x427f34]
call fcn.0040b644
xor eax, eax
push ebp
push 0x85ffc4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 4
call fcn.00407eb4
test ebx, ebx
je 0x85ff9e
xor edi, edi
mov esi, ebx
test esi, esi
je 0x85ff08
sub esi, 4
mov esi, dword [esi]
push 0
push 0
push esi
mov eax, ebx
call fcn.0040aff0
push eax
push 0
call sub.kernel32.dll_IdnToAscii
mov edx, eax
lea eax, [ebp - 4]
call fcn.0040b180
mov edx, dword [ebp - 4]
mov eax, edx
test eax, eax
je 0x85ff34
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x85ff90
mov esi, ebx
test esi, esi
je 0x85ff43
sub esi, 4
mov esi, dword [esi]
mov edi, edx
test edi, edi
je 0x85ff4e
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 4]
call fcn.0040aff0
push eax
push esi
mov eax, ebx
call fcn.0040aff0
push eax
push 0
call sub.kernel32.dll_IdnToAscii
mov edx, eax
lea eax, [ebp - 4]
call fcn.0040b180
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004392a0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
call fcn.00410758
push eax
call sub.ws2_32.dll_gethostbyname
mov edi, eax
test edi, edi
je 0x85ff9e
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x85ffcb
lea eax, [ebp - 8]
mov edx, dword [0x427f34]
call fcn.0040b9f8
lea eax, [ebp - 4]
call fcn.0040a52c
pop eax
jmp eax
Function at 0x86042c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x860448
mov eax, ebx
call fcn.00865834
jmp 0x86044a
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x86045a
mov eax, esi
call fcn.00865834
jmp 0x86045c
xor eax, eax
mov dword [ebp - 8], eax
test edi, edi
je 0x86046c
mov eax, edi
call fcn.00865834
jmp 0x86046e
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x86047f
cmp dword [ebp + 8], 0
jb 0x8604b3
jmp 0x860481
jl 0x8604b3
push 0
push 0xf4240
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.0040c954
mov dword [ebp - 0x14], eax
push 0
push 0xf4240
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.0040ca34
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x8604b8
xor eax, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x8604c7
mov eax, ebx
call fcn.00865838
mov ebx, eax
jmp 0x8604c9
xor ebx, ebx
test esi, esi
je 0x8604d8
mov eax, esi
call fcn.00865838
mov esi, eax
jmp 0x8604da
xor esi, esi
test edi, edi
je 0x8604e7
mov eax, edi
call fcn.00865838
jmp 0x8604e9
xor eax, eax
cmp eax, esi
jge 0x8604ef
mov eax, esi
cmp eax, ebx
jge 0x8604f5
mov eax, ebx
mov edx, dword [ebp - 0x18]
push edx
mov edx, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push edx
inc eax
push eax
call sub.ws2_32.dll_select
mov ebx, eax
mov edx, 0x86053c
mov eax, ebx
call fcn.0085fcfc
test ebx, ebx
jne 0x860522
mov al, 1
jmp 0x860524
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x8638a4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
add esp, 0xfffffbfc
mov ebx, eax
test byte [ebx + 8], 1
jne 0x8638ca
mov ecx, dword [0x8a3ba0]
mov dl, 1
mov eax, dword [0x85c1d4]
call fcn.004302f0
call fcn.00409be8
test dl, dl
jne 0x86390a
movzx eax, byte [ebx + 0x1c]
test al, al
je 0x8638dc
add al, 0xfe
sub al, 3
jae 0x86390a
push 2
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_shutdown
mov edx, 0x86393c
call fcn.0085fcfc
push 0
push 0x401
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_recv
test eax, eax
jg 0x8638f1
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_closesocket
mov edx, 0x86395c
call fcn.0085fcfc
mov dword [ebx + 4], 0xffffffff
mov byte [ebx + 8], 0
add esp, 0x404
pop ebx
ret
Function at 0x864114
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
xor eax, eax
push ebp
push 0x86423f
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx], 2
test esi, esi
je 0x864168
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00864458
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
jmp 0x8641f4
cmp dword [ebp - 8], 0
je 0x8641da
call fcn.00431360
cmp eax, 6
jl 0x8641a2
lea eax, [ebx + 4]
push eax
push ebp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.008640c0
pop ecx
mov eax, dword [ebp - 0x14]
push eax
push 2
call sub.ws2_32.dll_inet_pton
cmp eax, 1
je 0x8641bb
mov dword [ebx + 4], 0xffffffff
jmp 0x8641bb
push ebp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.008640c0
pop ecx
mov eax, dword [ebp - 0x18]
push eax
call sub.ws2_32.dll_inet_addr
mov dword [ebx + 4], eax
cmp dword [ebx + 4], 0xffffffff
jne 0x8641f4
mov ecx, dword [0x8a38cc]
mov dl, 1
mov eax, dword [0x85c1d4]
call fcn.004302f0
call fcn.00409be8
jmp 0x8641f4
cmp byte [ebp + 0xc], 0
je 0x8641e9
mov dword [ebx + 4], 0xffffffff
jmp 0x8641f4
cmp byte [ebp + 0x10], 0
jne 0x8641f4
xor eax, eax
mov dword [ebx + 4], eax
test edi, edi
je 0x86420e
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0086446c
push eax
call sub.ws2_32.dll_htons
mov word [ebx + 2], ax
jmp 0x86421c
movzx eax, word [ebp + 0x14]
push eax
call sub.ws2_32.dll_htons
mov word [ebx + 2], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x864246
lea eax, [ebp - 0x18]
mov edx, dword [0x404c40]
mov ecx, 2
call fcn.0040bc0c
pop eax
jmp eax

Function at 0x864668
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
test byte [ebx + 8], 1
je 0x8646f3
movzx edx, byte [0x864708]
mov eax, ebx
call fcn.00865560
cmp esi, 0xffffffff
jne 0x8646ae
lea eax, [ebp - 4]
push eax
push 0x4004667f
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_ioctlsocket
mov edx, 0x864718
call fcn.0085fcfc
jmp 0x8646fa
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_ioctlsocket
test eax, eax
jne 0x8646d2
cmp dword [ebp - 8], 0
jle 0x8646d2
cmp esi, dword [ebp - 8]
jle 0x8646d2
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_recv
mov dword [ebp - 4], eax
mov edx, 0x86473c
mov eax, dword [ebp - 4]
call fcn.0085fcfc
jmp 0x8646fa
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x864a4c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
test byte [ebx + 8], 1
je 0x864afe
test esi, esi
jge 0x864a87
lea eax, [ebp - 0x14]
push eax
push 0x4004667f
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_ioctlsocket
mov edx, 0x864b20
call fcn.0085fcfc
jmp 0x864b05
lea eax, [ebp - 0x18]
push eax
push 0x4004667f
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_ioctlsocket
test eax, eax
jne 0x864aab
cmp dword [ebp - 0x18], 0
jle 0x864aab
cmp esi, dword [ebp - 0x18]
jle 0x864aab
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x10
call fcn.00407eb4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_recvfrom
mov dword [ebp - 0x14], eax
mov edx, 0x864b44
mov eax, dword [ebp - 0x14]
call fcn.0085fcfc
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x864b05
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x864e5c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
test byte [ebx + 8], 1
je 0x864efa
test esi, esi
jge 0x864e97
lea eax, [ebp - 0x14]
push eax
push 0x4004667f
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_ioctlsocket
mov edx, 0x864f1c
call fcn.0085fcfc
jmp 0x864f01
lea eax, [ebp - 0x18]
push eax
push 0x4004667f
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_ioctlsocket
test eax, eax
jne 0x864ebb
cmp dword [ebp - 0x18], 0
jle 0x864ebb
cmp esi, dword [ebp - 0x18]
jle 0x864ebb
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x10
call fcn.00407eb4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_recvfrom
mov dword [ebp - 0x14], eax
mov edx, 0x864f40
mov eax, dword [ebp - 0x14]
call fcn.0085fcfc
jmp 0x864f01
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4065a0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
add eax, 0xffff3fac
cmp eax, 0x170
ja case.0x4065bb.49237
movzx eax, byte [eax + 0x406a28]
jmp dword [eax*4 + 0x4068b0]
xor eax, eax
ret 4
mov eax, 1
ret 4
mov eax, 2
ret 4
mov eax, 3
ret 4
mov eax, 4
ret 4
mov eax, 5
ret 4
mov eax, 6
ret 4
mov eax, 7
ret 4
mov eax, 8
ret 4
mov eax, 9
ret 4
mov eax, 0xa
ret 4
mov eax, 0xb
ret 4
mov eax, 0xc
ret 4
mov eax, 0xd
ret 4
mov eax, 0xe
ret 4
mov eax, 0xf
ret 4
mov eax, 0x10
ret 4
mov eax, 0x11
ret 4
mov eax, 0x12
ret 4
mov eax, 0x13
ret 4
mov eax, 0x14
ret 4
mov eax, 0x15
ret 4
mov eax, 0x16
ret 4
mov eax, 0x17
ret 4
mov eax, 0x18
ret 4
mov eax, 0x19
ret 4
mov eax, 0x1a
ret 4
mov eax, 0x1b
ret 4
mov eax, 0x1c
ret 4
mov eax, 0x1d
ret 4
mov eax, 0x1e
ret 4
mov eax, 0x1f
ret 4
mov eax, 0x20
ret 4
mov eax, 0x21
ret 4
mov eax, 0x22
ret 4
mov eax, 0x23
ret 4
mov eax, 0x24
ret 4
mov eax, 0x25
ret 4
mov eax, 0x26
ret 4
mov eax, 0x27
ret 4
mov eax, 0x28
ret 4
mov eax, 0x29
ret 4
mov eax, 0x2a
ret 4
mov eax, 0x2b
ret 4
mov eax, 0x2c
ret 4
mov eax, 0x2d
ret 4
mov eax, 0x2e
ret 4
mov eax, 0x2f
ret 4
mov eax, 0x30
ret 4
mov eax, 0x31
ret 4
mov eax, 0x32
ret 4
mov eax, 0x33
ret 4
mov eax, 0x34
ret 4
mov eax, 0x35
ret 4
mov eax, 0x36
ret 4
mov eax, 0x37
ret 4
mov eax, 0x38
ret 4
mov eax, 0x39
ret 4
mov eax, 0x3a
ret 4
mov eax, 0x3b
ret 4
mov eax, 0x3c
ret 4
mov eax, 0x3d
ret 4
mov eax, 0x3e
ret 4
mov eax, 0x3f
ret 4
mov eax, 0x40
ret 4
mov eax, 0x41
ret 4
mov eax, 0x42
ret 4
mov eax, 0x43
ret 4
mov eax, 0x44
ret 4
mov eax, 0x45
ret 4
mov eax, 0x46
ret 4
mov eax, 0x47
ret 4
mov eax, 0x48
ret 4
mov eax, 0x49
ret 4
mov eax, 0x4a
ret 4
mov eax, 0x4b
ret 4
mov eax, 0x4c
ret 4
mov eax, 0x4d
ret 4
mov eax, 0x4e
ret 4
mov eax, 0x4f
ret 4
mov eax, 0x50
ret 4
mov eax, 0x51
ret 4
mov eax, 0x52
ret 4
mov eax, 0x53
ret 4
mov eax, 0x54
ret 4
mov eax, 0x55
ret 4
mov eax, 0x56
ret 4
mov eax, 0x57
ret 4
mov eax, 0x58
ret 4
mov eax, 0x59
ret 4
mov eax, 0x5a
ret 4
mov eax, 0x5b
ret 4
mov eax, 0x5c
ret 4
or eax, 0xffffffff
ret 4

Function at 0x408270
Capabilities:
Check os version
Create directory

Disassembly:
sub esp, 0x120
push ebx
lea eax, [esp + 4]
push eax
push 0x104
push esi
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
mov ebx, eax
test ebx, ebx
je 0x4082ed
push edi
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x11c
call edi
test eax, eax
jne 0x4082c9
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x114
call edi
cmp dword [esp + 0x10], 5
pop edi
jb 0x4082d8
push 0x403828
jmp 0x4082dd
push 0x403820
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, ebx
pop ebx
add esp, 0x120
ret
Function at 0x408300
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push 0x403880
lea eax, [esp + 0xc]
push eax
call ebx
mov esi, 0x419320
call fcn.00408270
push 0x403868
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call esi
push 0x419320
lea ecx, [esp + 0xc]
push ecx
call esi
mov eax, dword [esp + 0x218]
cmp dword [eax], 0x4000
jne 0x4083a8
mov eax, dword [eax + 0xc]
sub eax, 2
jne 0x4083a8
push edi
push 0x104
xor eax, eax
mov ecx, 0x41
mov edi, 0x419528
push 0x419528
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x40384c
push 0x419528
call esi
lea edx, [esp + 0xc]
push edx
push 0x418320
call ebx
push 0
push 0x418320
push 0x403830
push 0x419528
push 1
call fcn.004085e4
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x208
ret 0x10
Function at 0x40840f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4038c0
call fcn.004094ec
mov edi, 0x94
mov eax, edi
call fcn.00409650
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 [0x419758], ecx
mov eax, dword [esi + 4]
mov dword [0x419764], eax
mov edx, dword [esi + 8]
mov dword [0x419768], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41975c], esi
cmp ecx, 2
je 0x40846f
or esi, 0x8000
mov dword [0x41975c], esi
shl eax, 8
add eax, edx
mov dword [0x419760], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4084aa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4084aa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4084c2
cmp eax, 0x20b
je 0x4084af
mov dword [ebp - 0x1c], esi
jmp 0x4084d6
cmp dword [ecx + 0x84], 0xe
jbe 0x4084aa
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4084d0
cmp dword [ecx + 0x74], 0xe
jbe 0x4084aa
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00409498
pop ecx
test eax, eax
jne 0x4084ea
push 0x1c
call fcn.004083eb
pop ecx
call fcn.0040938f
test eax, eax
jne 0x4084fb
push 0x10
call fcn.004083eb
pop ecx
call fcn.00409129
mov dword [ebp - 4], esi
call fcn.00408f2b
test eax, eax
jge 0x408514
push 0x1b
call fcn.004083c6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41c074], eax
call fcn.00408e09
mov dword [0x419748], eax
call fcn.00408d67
test eax, eax
jge 0x40853a
push 8
call fcn.004083c6
pop ecx
call fcn.00408b34
test eax, eax
jge 0x40854b
push 9
call fcn.004083c6
pop ecx
push 1
call fcn.00408656
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x408561
push eax
call fcn.004083c6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00408ad7
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x408582
movzx eax, word [ebp - 0x40]
jmp 0x408585
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040dac0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4085a3
push edi
call fcn.00408783
call fcn.004087a5
jmp 0x4085d5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00409527
ret
Function at 0x4086c0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4038e8
call fcn.004094ec
push 8
call fcn.00409976
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x419798], esi
jne 0x4086f4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x419794], esi
mov al, byte [ebp + 0x10]
mov byte [0x419790], al
cmp dword [ebp + 0xc], edi
jne 0x40873e
cmp dword [0x41c068], edi
je 0x40872e
mov eax, dword [0x41c064]
sub eax, 4
mov dword [0x41c064], eax
cmp eax, dword [0x41c068]
jb 0x40872e
mov eax, dword [eax]
cmp eax, edi
je 0x40870f
call eax
jmp 0x40870f
push 0x416020
mov eax, 0x41601c
call fcn.0040863e
pop ecx
push 0x416028
mov eax, 0x416024
call fcn.0040863e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40876f
cmp dword [ebp + 0x10], edi
jne 0x40877d
mov dword [0x419798], esi
push dword [ebp + 8]
call fcn.004085fc
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40877c
push 8
call fcn.004098c1
pop ecx
ret
call fcn.00409527
ret

Function at 0x4087c3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x417b30]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4178a8]
je 0x4087f8
inc eax
cmp eax, 0x13
jb 0x4087e9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4178a8]
jne 0x40891e
mov eax, dword [0x419750]
cmp eax, 1
je 0x4088f6
cmp eax, edx
jne 0x408828
cmp dword [0x4178a4], 1
je 0x4088f6
cmp ecx, 0xfc
je 0x40891e
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40885e
lea eax, [ebp - 0x80]
push 0x403ce4
push eax
call fcn.00409ba0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00409dd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408892
mov eax, edi
push eax
call fcn.00409dd0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x403ce0
push edi
call fcn.00409ca0
add esp, 0x10
push edi
call fcn.00409dd0
push dword [esi + 0x4178ac]
mov ebx, eax
call fcn.00409dd0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00409650
mov ebx, esp
push 0x403cc4
push ebx
call fcn.00409ba0
push edi
push ebx
call fcn.00409bb0
push 0x403cc0
push ebx
call fcn.00409bb0
push dword [esi + 0x4178ac]
push ebx
call fcn.00409bb0
push 0x12010
push 0x403c98
push ebx
call fcn.00409a99
add esp, 0x2c
jmp 0x40891e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4178ac]
push dword [esi]
call fcn.00409dd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00409e8c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x409a99
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x419a10], ebx
push esi
push edi
jne 0x409b19
push 0x403e30
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409b54
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e24
push edi
call esi
test eax, eax
mov dword [0x419a10], eax
je 0x409b54
push 0x403e14
push edi
call esi
push 0x403e00
push edi
mov dword [0x419a14], eax
call esi
cmp dword [0x419758], 2
mov dword [0x419a18], eax
jne 0x409b19
push 0x403de4
push edi
call esi
test eax, eax
mov dword [0x419a20], eax
je 0x409b19
push 0x403dcc
push edi
call esi
mov dword [0x419a1c], eax
mov eax, dword [0x419a1c]
test eax, eax
je 0x409b5e
call eax
test eax, eax
je 0x409b45
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x419a20]
test eax, eax
je 0x409b45
test byte [ebp - 8], 1
jne 0x409b5e
cmp dword [0x419764], 4
jb 0x409b58
or byte [ebp + 0x12], 0x20
jmp 0x409b7d
xor eax, eax
jmp 0x409b8d
or byte [ebp + 0x12], 4
jmp 0x409b7d
mov eax, dword [0x419a14]
test eax, eax
je 0x409b7d
call eax
mov ebx, eax
test ebx, ebx
je 0x409b7d
mov eax, dword [0x419a18]
test eax, eax
je 0x409b7d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x419a10]
pop edi
pop esi
pop ebx
leave
ret