joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430a00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x27c], 1
cmp dword [esi + 0x38], 0xffffffff
je 0x430a45
pop edi
pop esi
mov eax, 0xfffff00e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x27c]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x430a74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x430a9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
push 0
push edi
push dword [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x430a83
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], 0x274
push eax
lea eax, [ebp - 0x278]
push eax
push 0x2005
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x430a83
cmp dword [ebp - 0x250], 1
jne 0x430b0a
push 3
push edi
call dword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x430b2d
or dword [esi + 0x2c], 0x20000
mov dword [esi + 0x114], 0x440820
mov dword [esi + 0x118], 0x440990
cmp dword [ebp + 0x14], 0x17
mov dword [esi + 0x38], edi
jne 0x430b1a
or dword [esi + 0x2c], 0x400000
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 1
je 0x430b0a
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x430b50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
test dword [esi + 0x2c], 0x400000
jne 0x430c48
push 4
push 0x10
push 0x797b40
push esi
call fcn.004304a0
add esp, 0x10
test eax, eax
jne 0x430c1b
mov dword [ebp - 8], eax
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
test edi, edi
je 0x430bcc
lea eax, [ebp - 8]
push eax
push edi
push 2
call fcn.004411b0
add esp, 0xc
test eax, eax
je 0x430bd7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
cmp eax, 1
jne 0x430bf5
mov eax, 0xf
jmp 0x430bfe
test eax, eax
jne 0x430c48
mov eax, 0x10
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x430c35
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042bce0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xfffff019
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x430c60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x12c], eax
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 0x2c]
and eax, 0x402000
cmp eax, 0x2000
je 0x430da8
push 4
push 0x1c
push 0x797b20
push esi
call fcn.004304a0
add esp, 0x10
test eax, eax
jne 0x430d7b
push 0x104
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00482150
add esp, 0xc
test edi, edi
je 0x430cf0
lea eax, [ebp - 0x20]
push eax
push 0
push edi
call fcn.00427210
add esp, 0xc
test eax, eax
jne 0x430dad
mov eax, dword [ebp - 8]
mov dword [ebp - 0x128], eax
jmp 0x430cfa
mov dword [ebp - 0x128], 0
movups xmm0, xmmword [ebx]
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x12c]
movups xmmword [ebp - 0x120], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [ebp - 0x110], xmm0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x18]
movq qword [ebp - 0x90], xmm0
cmp eax, 1
jne 0x430d4f
mov eax, 0x2d
jmp 0x430d58
test eax, eax
jne 0x430da8
mov eax, 0x2e
push 0x108
lea ecx, [ebp - 0x128]
push ecx
push eax
push 0x29
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x430d95
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042bce0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
mov eax, 0xfffff019
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x430dc0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
test esi, esi
je 0x430e06
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00440020
add esp, 8
test eax, eax
jne 0x430ed1
lea esi, [ebp - 0x84]
cmp dword [ebx + 0x34], 0
je 0x430e21
pop esi
mov eax, 0xfffff008
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
test dword [ebx + 0x2c], 0x2000
push edi
mov edi, dword [ebp + 0x18]
jne 0x430e85
cmp edi, 0x10
jne 0x430e3a
mov eax, 0x797b40
jmp 0x430e44
cmp edi, 0x1c
jne 0x430e6f
mov eax, 0x797b20
push 0
push edi
push eax
push ebx
call fcn.004304a0
add esp, 0x10
test eax, eax
je 0x430e85
push eax
call fcn.0042bce0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffff019
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
push esi
push 0
lea eax, [ebp - 0x8c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x88]
push dword [ebx + 0x38]
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x430eca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042bce0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x8c]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x431cd0
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x50d5d8
xor edi, edi
call fcn.0042c9e0
add esp, 4
mov eax, 2
mov ecx, 0x50d5a0
xchg dword [ecx], eax
cmp eax, 1
je 0x431d24
push 0x50d5d8
call fcn.0042c990
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str.conout_
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, 1
cmp esi, 0xffffffff
je 0x431d74
push 0x50d5a8
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x431d6f
mov eax, 0x50d5a4
mov ecx, 1
lock or dword [eax], ecx
mov eax, ecx
jmp 0x431d74
mov eax, 1
push 0
push 0xd
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0xd0001
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [ebp - 0xc], ax
mov eax, 0xd
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 8], edi
push eax
push dword [ebx + 0x90]
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x431dc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x431dce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0047f334
mov esp, ebp
pop ebp
ret

Function at 0x432630
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx], 0
je 0x432660
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x432688
call esi
mov dword [ebx], eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push edi
call fcn.004325b0
add esp, 0x18
push eax
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x4326d1
call esi
cmp eax, 0x57
je 0x432670
call esi
pop esi
mov dword [ebx], eax
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x4329a0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x2c]
mov ecx, edx
and ecx, 0xffffefff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
mov eax, ecx
jne 0x4329eb
test cl, 1
jne 0x4329eb
test dl, 4
je 0x4329eb
mov eax, edx
and eax, 0xffffeffb
mov dword [esi + 0x2c], eax
test al, 8
je 0x4329eb
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov eax, dword [esi + 0x2c]
test eax, 0x10000
je 0x432a5a
test eax, 0x2000000
je 0x432a3f
xorps xmm0, xmm0
mov dword [ebp - 8], 0
mov eax, 0x10
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x432a5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
test eax, 0x200000
jne 0x432a5a
push esi
call fcn.00431cd0
add esp, 4
test eax, eax
jne 0x432a5c
or dword [esi + 0x2c], 0x200000
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x432a70
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ax, word [0x50a038]
movzx ecx, ax
cmp dword [ebx], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
je 0x432ab3
pop edi
mov eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
movzx eax, ax
push eax
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x432ae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp - 0x20]
push esi
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x432b5d
nop word [eax + eax]
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x432b5d
movsx eax, word [ebp - 0x1c]
movsx ecx, word [ebp - 0x1a]
imul ecx, eax
lea eax, [ebp - 0x24]
push eax
push esi
push ecx
push 0x20
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x432b52
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x432b79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x432b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov dword [ebx], eax
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [0x50a01c], 0
push eax
call fcn.004331a0
add esp, 4
push 0x50d5e0
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
test eax, eax
je 0x432b5d
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x437050
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 2
jbe 0x437080
movzx eax, word [ebx]
cmp eax, 0x5c
je 0x43706e
cmp eax, 0x2f
jne 0x437085
movzx eax, word [ebx + 2]
cmp eax, 0x5c
je 0x43707c
cmp eax, 0x2f
jne 0x437085
xor esi, esi
jmp 0x4370f6
cmp edi, 1
jb 0x437099
movzx eax, word [ebx]
cmp eax, 0x2f
je 0x437092
cmp eax, 0x5c
jne 0x437099
mov esi, 2
jmp 0x4370f6
cmp edi, 2
jb 0x4370f3
cmp word [ebx + 2], 0x3a
jne 0x4370df
lea eax, [ebx + 4]
mov dword [ebp + 0xc], eax
cmp edi, 3
jb 0x4370bd
movzx eax, word [eax]
cmp eax, 0x2f
je 0x4370e4
cmp eax, 0x5c
je 0x4370e4
mov esi, dword [ebp + 0x24]
cmp esi, 2
jb 0x43707c
push 2
push ebx
push dword [ebp + 0x20]
call fcn.004af169
add esp, 0xc
test eax, eax
jne 0x43707c
mov ebx, dword [ebp + 0xc]
sub edi, 2
jmp 0x4370f6
cmp edi, 2
jbe 0x4370f3
mov esi, dword [ebp + 0x24]
xor eax, eax
cmp word [ebx + 2], 0x3a
cmove esi, eax
jmp 0x4370f6
mov esi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x14]
add eax, edi
add eax, dword [ebp + 0x1c]
add eax, esi
lea eax, [eax*2 + 8]
push eax
call fcn.00425da0
push esi
push dword [ebp + 0x20]
mov dword [ebp + 0xc], eax
push eax
call fcn.004aef5e
mov eax, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
lea eax, [eax + esi*2]
mov dword [ebp + 0x24], eax
mov esi, eax
je 0x43714d
movzx eax, word [esi - 2]
push eax
push 0x4e6c60
call fcn.0048235a
add esp, 8
test eax, eax
jne 0x43714d
mov eax, 0x5c
mov word [esi], ax
add esi, 2
push edi
push ebx
push esi
call fcn.004aef5e
add esp, 0xc
lea esi, [esi + edi*2]
test edi, edi
je 0x437180
movzx eax, word [esi - 2]
push eax
push 0x4e6c60
call fcn.0048235a
add esp, 8
test eax, eax
jne 0x437180
mov eax, 0x5c
mov word [esi], ax
add esi, 2
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push esi
call fcn.004aef5e
mov ebx, dword [ebp + 0x1c]
lea esi, [esi + edi*2]
add esp, 0xc
test ebx, ebx
je 0x4371c0
test edi, edi
je 0x4371b0
cmp word [esi - 2], 0x2e
je 0x4371b0
mov eax, 0x2e
mov word [esi], ax
add esi, 2
push ebx
push dword [ebp + 0x18]
push esi
call fcn.004aef5e
add esp, 0xc
lea esi, [esi + ebx*2]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4371df
test al, 0x10
jne 0x4371df
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push ebx
call fcn.00425c40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x437290
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 0x1c
ja 0x437341
cmp eax, 0xf
ja case.0x4372af.1
movzx eax, byte [eax + 0x437354]
jmp dword [eax*4 + 0x437348]
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x437301
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
jne 0x4372f5
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4372f5
cmp dword [ebp + 0xc], 0x103
je 0x4372f5
mov eax, 0xfffff038
pop edi
pop ebp
ret
push edi
call fcn.0042bce0
add esp, 4
pop edi
pop ebp
ret
xor eax, eax
pop ebp
ret
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x437327
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042bce0
add esp, 4
pop ebp
ret
xor eax, eax
mov ecx, 0xfffff038
cmp dword [ebp + 0xc], 0x103
cmovne eax, ecx
pop ebp
ret
mov eax, 0xfffff02a
pop ebp
ret
mov eax, 0xfffff019
pop ebp
ret
Function at 0x43b800
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push 0x50d658
mov dword [0x795e70], eax
call fcn.0042c800
add esp, 4
test eax, eax
jne 0x43b85b
mov eax, 0x795674
mov ecx, 0x50d670
mov edx, 0x100
nop dword [eax + eax]
mov dword [eax], ecx
lea eax, [eax + 8]
add ecx, 0x2880
mov dword [eax - 0xc], 0
sub edx, 1
jne 0x43b840
mov esp, ebp
pop ebp
ret
push str.uv_mutex_init
push eax
call fcn.0042bc50
int3
Function at 0x43f4e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x43f502
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43f4f4
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
pop ebx
mov dword [eax], 0
xor eax, eax
pop ebp
ret
push edi
mov edi, ebx
lea ecx, [edi + 2]
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x43f510
sub edi, ecx
sar edi, 1
push esi
mov esi, edi
test esi, esi
je 0x43f53a
movzx eax, word [ebx + esi*2 - 2]
dec esi
cmp eax, 0x5c
je 0x43f536
cmp eax, 0x2f
jne 0x43f522
test esi, esi
jne 0x43f5a0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43f58b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x43f583
lea eax, [edi + edi]
push eax
call fcn.00425da0
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x43f61f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x43f58b
push dword [esi]
call fcn.00425c40
add esp, 4
mov dword [esi], 0
pop esi
pop edi
or eax, 0xffffffff
pop ebx
pop ebp
ret
push ebx
call fcn.004ba5f5
mov ecx, dword [ebp + 0x10]
add esp, 4
pop esi
pop edi
mov dword [ecx], eax
xor eax, eax
pop ebx
pop ebp
ret
cmp dword [ebp + 0xc], 0
lea eax, [esi + esi]
mov dword [ebp + 8], eax
je 0x43f5dd
add eax, 4
push eax
call fcn.00425da0
mov edx, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
test edx, edx
je 0x43f61f
lea ecx, [esi + 1]
push ecx
push ebx
push edx
call fcn.004aef5e
mov eax, dword [ebp + 0xc]
add esp, 0xc
xor ecx, ecx
mov eax, dword [eax]
mov word [eax + esi*2 + 2], cx
sub edi, esi
lea esi, [edi + edi]
push esi
call fcn.00425da0
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
test ecx, ecx
je 0x43f61f
lea eax, [edi - 1]
push eax
mov eax, dword [ebp + 8]
add eax, 2
add eax, ebx
push eax
push ecx
call fcn.004aef5e
mov eax, dword [ebp + 0x10]
add esp, 0xc
xor ecx, ecx
mov eax, dword [eax]
mov word [esi + eax - 2], cx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
push str.uv__malloc
push 0xe
call fcn.0042bc50
int3
Function at 0x4406b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x797b40
push 0
push str.0.0.0.0
call fcn.004271b0
add esp, 0xc
test eax, eax
jne 0x44080e
push 0x797b20
push eax
push 0x4e6e14
call fcn.00427210
add esp, 0xc
test eax, eax
jne 0x44080e
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x440800
lea eax, [ebp - 0x408]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x440813
push esi
push eax
push 1
push 2
mov dword [0x797b54], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x440792
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0x274
push eax
lea eax, [ebp - 0x278]
push eax
push 0x2005
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x44078b
test dword [ebp - 0x278], 0x20000
mov ecx, 0
mov eax, dword [0x797b54]
cmovne eax, ecx
mov dword [0x797b54], eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push 1
push 0x17
mov dword [0x797b50], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4407ff
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0x274
push eax
lea eax, [ebp - 0x278]
push eax
push 0x2005
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4407f8
test dword [ebp - 0x278], 0x20000
mov ecx, 0
mov eax, dword [0x797b50]
cmovne eax, ecx
mov dword [0x797b50], eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
call fcn.004ade1a
push str.WSAStartup
push eax
call fcn.0042bc50
int3

Function at 0x47eaac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004ba133
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x47eaeb
sub eax, 1
je 0x47eae6
sub eax, 1
je 0x47eae2
xor eax, eax
leave
ret
push 3
jmp 0x47eaed
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x480f89
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x480fc8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x480fc8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x480fc8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x480fc8
cmp dword [ecx + 0x74], 0xe
jbe 0x480fc8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret