joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411e20
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ecx, ecx
lea edx, [esp + 4]
push edx
push ecx
push ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push ecx
inc eax
push eax
mov dword [esp + 0x20], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x411e75
mov eax, dword [esi + 4]
lea edx, [esp + 0xc]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x411e75
mov al, 1
pop esi
add esp, 0x10c
ret
xor al, al
pop esi
add esp, 0x10c
ret

Function at 0x411e80
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ecx, ecx
lea edx, [esp + 4]
push edx
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
push ecx
inc eax
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x411ed5
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x411ed5
mov al, 1
pop esi
add esp, 0x10c
ret
xor al, al
pop esi
add esp, 0x10c
ret

Function at 0x411ee0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
lea edx, [esp + 4]
push edx
mov esi, ecx
mov eax, dword [esi + 4]
xor ecx, ecx
lea edx, [esp + 0x10]
push edx
push ecx
mov dword [esp + 0x1c], eax
push ecx
inc eax
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x411f53
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x411f53
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [0x4f4838]
push eax
add esi, 0x2c
push esi
push str._s:_Socket_except_error___d_n
push edx
call fcn.00441300
add esp, 0x10
mov al, 1
pop esi
add esp, 0x10c
ret
xor al, al
pop esi
add esp, 0x10c
ret

Function at 0x411f70
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
mov ecx, dword [esi + 4]
push 0x8004667e
push ecx
mov dword [esp + 0x10], 1
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x411fb2
mov edx, dword [0x4f482c]
push eax
add esi, 0x2c
push esi
push str._s:_set_nonblocking_mode_failed_IOCTLSOCKET___d
push edx
call fcn.00441300
add esp, 0x10
xor al, al
pop esi
pop ecx
ret
mov al, 1
pop esi
pop ecx
ret

Function at 0x4120c0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
call fcn.00411e80
test al, al
jne 0x4120d2
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 8]
mov ecx, dword [esi + 4]
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
push eax
push ecx
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x412100
call sub.WS2_32.dll_WSAGetLastError
sub eax, 0x2733
neg eax
pop edi
sbb eax, eax
pop esi
ret 8
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
add edx, edi
mov dword [esi + 0xc], edx
add ecx, edi
mov dword [esi + 0x14], ecx
mov edx, dword [0x4a9014]
mov ecx, dword [0x4a901c]
add edx, edi
add ecx, edi
pop edi
mov dword [0x4a9014], edx
mov dword [0x4a901c], ecx
pop esi
ret 8
Function at 0x412140
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
call fcn.00411e20
test al, al
jne 0x412152
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 8]
mov ecx, dword [esi + 4]
push ebx
push edi
mov edi, dword [esp + 0x14]
push 0
push edi
push eax
push ecx
call sub.WS2_32.dll_recv
mov ebx, eax
test ebx, ebx
je 0x412180
cmp ebx, 0xffffffff
jne 0x412189
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x412189
pop edi
pop ebx
or eax, 0xffffffff
pop esi
ret 8
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
add eax, edi
mov dword [esi + 0x10], eax
add edx, edi
mov dword [esi + 0x18], edx
mov eax, dword [0x4a9020]
mov ecx, dword [0x4a9018]
add eax, edi
add ecx, edi
pop edi
mov dword [0x4a9020], eax
mov eax, ebx
pop ebx
mov dword [0x4a9018], ecx
pop esi
ret 8

Function at 0x4171f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462f58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x487140]
push ebx
xor ebx, ebx
xor eax, ebp
push esi
mov dword [ebp - 0x14], eax
push edi
mov eax, 0xf
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x68], 0x469ef8
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], 0x469e8c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 0x18], ebx
lea esi, [edi + 0x3c3c]
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.004249c0
cmp al, bl
jne 0x4172c9
push 0x46a29c
mov ecx, 0x4dddd4
call fcn.00402f70
push esi
mov ecx, eax
call fcn.004133d0
push 0x469f2c
mov ecx, eax
call fcn.00402f70
push 2
push 0x46a068
mov ecx, 0x4df0a8
call fcn.00424bf0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.00413850
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043049e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x68]
call fcn.00424810
cmp dword [esi + 0x18], 0x10
jb 0x4172dc
mov eax, dword [esi + 4]
jmp 0x4172df
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x417306
mov ecx, dword [esi + 0x18]
or eax, 2
cmp ecx, 0x10
jb 0x4172fb
mov esi, dword [esi + 4]
jmp 0x4172fe
add esi, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, edi
mov byte [edi + 0x7924], 1
call fcn.00402ff0
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x417320
mov dword [0x4df0bc], eax
push ebx
mov ecx, 0x4df0a8
call fcn.00416370
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.00413850
mov al, 1
jmp 0x4172ae
Function at 0x422700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4638c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x487140]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov edi, ecx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004060b0
push esi
mov ecx, edi
mov dword [esp + 0x38], ebx
call fcn.00422260
lea eax, [esp + 0xc]
push eax
call fcn.00420ee0
mov bl, al
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, 0x10
jb 0x42277c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0044f7c9
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x20]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0043049e
add esp, 0x2c
ret 4

Function at 0x422ea0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x487140]
xor eax, esp
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x68], eax
mov eax, 0xf
push edi
mov edi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x46aa54
mov dword [esp + 0x18], 0x469ef8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x469e8c
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x48], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x68], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 2
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
push 0x4693c0
mov dword [esp + 0x9c], ebx
mov byte [ecx + 4], bl
call fcn.00406220
push esi
lea ecx, [esp + 0x30]
call fcn.0041d100
cmp al, bl
jne 0x422f66
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
call fcn.0041c9a0
mov eax, 4
jmp 0x422f87
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00422da0
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x78], 0xffffffff
call fcn.0041c9a0
mov eax, esi
mov ecx, dword [esp + 0x70]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x68]
pop esi
pop ebx
xor ecx, esp
call fcn.0043049e
add esp, 0x70
ret 4
Function at 0x423ca0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x463a9b
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
push edi
mov ebx, ecx
call fcn.00422090
test al, al
jne 0x423dd5
mov al, byte [esp + 0x20]
test al, al
je 0x423d25
push 0x78
call fcn.0044f799
add esp, 4
test eax, eax
je 0x423ced
mov ecx, eax
call fcn.00423470
mov esi, eax
jmp 0x423cef
xor esi, esi
test esi, esi
je 0x423dd5
push 0xfa00000
mov ecx, esi
call fcn.00420f70
test al, al
jne 0x423d43
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push 0x9c
call fcn.0044f799
add esp, 4
test eax, eax
je 0x423d3f
mov ecx, eax
call fcn.00422400
jmp 0x423d41
xor eax, eax
mov esi, eax
test esi, esi
je 0x423dd5
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x30]
test al, al
je 0x423d07
mov edx, dword [esi]
mov dword [esi + 4], 1
mov eax, dword [str.GAME_PACK]
mov ecx, dword [str.WRITEPACK]
push 0
push eax
push ecx
mov ecx, esi
call dword [edx + 4]
mov edx, dword [esi]
push 0
push 0xa
mov ecx, esi
call dword [edx + 0x14]
push 0xe4
call fcn.0044f799
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x423da7
mov ecx, eax
call fcn.004209f0
mov edi, eax
jmp 0x423da9
xor edi, edi
test edi, edi
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x20], edi
je 0x423d07
lea ecx, [ebx + 0x1c]
push ecx
push esi
mov ecx, edi
call fcn.0041bee0
test al, al
jne 0x423deb
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov edx, dword [edi]
push 0xffffffffffffffff
push 0
mov ecx, edi
call dword [edx + 0x54]
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + 0x10]
call fcn.004232e0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x42e9a9
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 0x42e9fc
call fcn.0045e09a
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x42e9fc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x42e9f2
xor eax, eax
jmp 0x42eb15
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 0x42ea2c
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 0x42ea2c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x42eb12
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42ea59
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00426633
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x42eb12
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x42eaa2
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x42eaa2
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x42ea9c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00426633
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x42eb02
and dword [ebp + 0xc], 0
jmp 0x42eb02
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x42eb02
push 0xc
call fcn.0044f799
mov esi, eax
test esi, esi
pop ecx
je 0x42eae4
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 0x42eae6
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x42eafd
push dword [ebp - 8]
call fcn.0044e0af
jmp 0x42eb02
call fcn.0044e086
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x42ea67
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x430143
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.00430430
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4301de
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 [0x4e10f4]
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 0x4301de
cmp eax, 1
je 0x4301ff
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 0x4301de
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4301ab
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4301da
xor eax, eax
inc eax
jmp 0x43021e
cmp edi, eax
jae 0x4301e2
xor eax, eax
jmp 0x43021e
cmp eax, esi
jae 0x4301e9
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 [0x4e10f4]
jmp 0x430202
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 0x430de1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x430e01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004340ea
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x430e24
test byte [esp + 8], 2
je 0x430e24
call fcn.004340d8
mov dword [eax], 0xd
call fcn.004340e1
mov dword [eax], 5
jmp 0x430dfd
xor eax, eax
ret

Function at 0x430e27
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x430e35
xor ecx, ecx
jmp 0x430e53
cmp eax, 0x1a
jbe 0x430e3f
push 0x57
pop eax
pop ebp
ret
add al, 0x40
lea ecx, [ebp + 8]
mov byte [ebp + 8], al
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
mov eax, dword [ebp + 0xc]
push eax
lea edx, [eax + 4]
push edx
lea edx, [eax + 0xc]
push edx
add eax, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x430e75
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebp
ret

Function at 0x430e79
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x430ea7
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x430eac
cmp eax, 1
je 0x430eac
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430eb0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x487140]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x430f42
push ebx
call fcn.00430e79
test eax, eax
pop ecx
jne 0x430f17
call fcn.004340e1
mov dword [eax], 0xf
call fcn.004340d8
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043049e
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x430f51
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x430efe
inc eax
cmp eax, 0x104
ja 0x430efe
test edi, edi
mov ecx, edi
jne 0x430f8e
cmp eax, dword [ebp + 0xa0]
jg 0x430f71
mov eax, dword [ebp + 0xa0]
push eax
call fcn.004300c0
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x430fa6
call fcn.004340d8
mov dword [eax], 0xc
jmp 0x430efe
cmp eax, dword [ebp + 0xa0]
jle 0x430fa6
call fcn.004340d8
mov dword [eax], 0x22
jmp 0x430efe
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.00437230
pop ecx
pop ecx
jmp 0x430f00

Function at 0x430ffd
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x46f9a0
call fcn.00433864
mov eax, dword [0x487140]
xor eax, ebp
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x4310a3
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00430430
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x431090
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4310a3
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4310be
cmp byte [edi + 1], 0x3a
jne 0x4310be
movzx eax, byte [edi]
push eax
call fcn.004373f1
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x4310ce
push edi
call fcn.004300d2
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043049e
call fcn.0043389f
ret
Function at 0x431e4b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x46fa30
call fcn.00433864
push 8
call fcn.00434805
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4e1134], esi
jne 0x431e7f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4e1130], esi
mov al, byte [ebp + 0x10]
mov byte [0x4e112c], al
cmp dword [ebp + 0xc], edi
jne 0x431ec9
cmp dword [0x4f4cec], edi
je 0x431eb9
mov eax, dword [0x4f4ce8]
sub eax, 4
mov dword [0x4f4ce8], eax
cmp eax, dword [0x4f4cec]
jb 0x431eb9
mov eax, dword [eax]
cmp eax, edi
je 0x431e9a
call eax
jmp 0x431e9a
push 0x484160
mov eax, 0x484158
call fcn.00431dc9
pop ecx
push 0x48416c
mov eax, 0x484164
call fcn.00431dc9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x431efa
cmp dword [ebp + 0x10], edi
jne 0x431f08
mov dword [0x4e1134], esi
push dword [ebp + 8]
call fcn.00431d87
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x431f07
push 8
call fcn.00434750
pop ecx
ret
call fcn.0043389f
ret
Function at 0x432a8b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x46fad8
call fcn.00433864
mov edi, 0x94
mov eax, edi
call fcn.00430430
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 [0x4e10f4], ecx
mov eax, dword [esi + 4]
mov dword [0x4e1100], eax
mov edx, dword [esi + 8]
mov dword [0x4e1104], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4e10f8], esi
cmp ecx, 2
je 0x432aeb
or esi, 0x8000
mov dword [0x4e10f8], esi
shl eax, 8
add eax, edx
mov dword [0x4e10fc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x432b26
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x432b26
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x432b3e
cmp eax, 0x20b
je 0x432b2b
mov dword [ebp - 0x1c], esi
jmp 0x432b52
cmp dword [ecx + 0x84], 0xe
jbe 0x432b26
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x432b4c
cmp dword [ecx + 0x74], 0xe
jbe 0x432b26
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00434850
pop ecx
test eax, eax
jne 0x432b66
push 0x1c
call fcn.00432a67
pop ecx
call fcn.00436254
test eax, eax
jne 0x432b77
push 0x10
call fcn.00432a67
pop ecx
call fcn.0043908a
mov dword [ebp - 4], esi
call fcn.00438df1
test eax, eax
jge 0x432b90
push 0x1b
call fcn.00432a42
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4f4ce0], eax
call fcn.0043a84f
mov dword [0x4e1140], eax
call fcn.0043a7ad
test eax, eax
jge 0x432bb6
push 8
call fcn.00432a42
pop ecx
call fcn.0043a57a
test eax, eax
jge 0x432bc7
push 9
call fcn.00432a42
pop ecx
push 1
call fcn.00431de1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x432bdd
push eax
call fcn.00432a42
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043a51d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x432bfe
movzx eax, word [ebp - 0x40]
jmp 0x432c01
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0044c70c
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x432c1f
push edi
call fcn.00431f0e
call fcn.00431f30
jmp 0x432c51
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0043389f
ret