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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
cmp dword [ebx + 8], 0xc
je 0x6e0ff5
mov dword [esp + 8], 0x48d
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], str.handle__type__UV_TCP
call dbg._assert
sub dword [ebx + 0x40], 1
jne 0x6e10f2
mov eax, dword [ebx + 0x2c]
test al, 1
je 0x6e1141
lea eax, [edi + 0x10]
cmp dword [edi + 0x10], eax
je 0x6e1120
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [eax], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [eax + 4], edx
mov eax, dword [esi + 0x20]
test eax, eax
js 0x6e1170
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7010
mov dword [esp + 4], 0xffff
mov eax, dword [ebx + 0x90]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
test eax, eax
jne 0x6e1165
mov edx, dword [ebx + 0x2c]
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x48], 0xe
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0xffffffff
or edx, 0x19000
mov dword [ebx + 0x44], ebx
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x2c], edx
add dword [edi + 0x58], 1
mov ebp, dword [esi + 0x3c]
mov dword [esp], eax
call dbg.uv_translate_sys_error
mov dword [esp], esi
mov dword [esp + 4], eax
call ebp
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x6e1180
sub eax, 1
mov edx, dword [ebx + 0x2c]
test eax, eax
mov dword [ebx + 0x3c], eax
jne 0x6e10ea
test dl, 1
jne 0x6e11a4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
jns 0x6e100a
mov dword [esp + 8], 0x48f
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x86b00c
call dbg._assert
lea eax, [edi + 0x10]
cmp dword [edi + 0x10], eax
jne 0x6e1016
mov dword [esp + 8], 0x48f
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x86b027
call dbg._assert
jmp 0x6e1016
test al, 0x40
je 0x6e100a
mov edx, eax
and edx, 0xffffffbf
test al, 0x20
mov dword [ebx + 0x2c], edx
je 0x6e100a
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
jmp 0x6e100a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x6e10b5
mov dword [esp], eax
call dbg.uv_ntstatus_to_winsock_error
jmp 0x6e10b5
mov dword [esp + 8], 0x4a3
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x86b043
call dbg._assert
mov eax, dword [ebx + 0x3c]
jmp 0x6e10d4
test dl, 8
jne 0x6e10ea
mov eax, dword [edi + 0x2c]
or edx, 8
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x28], eax
mov dword [edi + 0x2c], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6e12e0
Capabilities:
Set socket configuration

Disassembly:
push esi
push ebx
sub esp, 0x34
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov eax, dword [ebx + 0x90]
cmp eax, 0xffffffff
jne 0x6e1320
test esi, esi
mov eax, dword [ebx + 0x2c]
jne 0x6e1310
and eax, 0xfdffffff
mov dword [ebx + 0x2c], eax
xor eax, eax
add esp, 0x34
pop ebx
pop esi
ret
or eax, 0x2000000
mov dword [ebx + 0x2c], eax
add esp, 0x34
xor eax, eax
pop ebx
pop esi
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], 4
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov dword [esp + 0xc], edx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x6e12f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x6e1309
jmp 0x6e12f8
Function at 0x6e4490
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, eax
movzx eax, cl
sub esp, 0x4c
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], edx
movzx edi, byte [esp + 0x64]
lea ebx, [esp + 0x2a]
mov dword [esp + 0x18], eax
jmp 0x6e44f0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, ebx
call sym._uv_tty_make_real_coord.constprop.10
mov dword [esp + 4], eax
mov eax, dword [esi + 0x90]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
sub esp, 8
test eax, eax
jne 0x6e4520
call ebp
cmp eax, 0x57
jne 0x6e4530
mov eax, dword [esi + 0x90]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
sub esp, 8
test eax, eax
jne 0x6e44b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x68]
mov dword [edx], eax
jmp 0x6e44b5
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call ebp
mov ecx, dword [esp + 0x68]
mov dword [ecx], eax
add esp, 0x4c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6e8b30
Capabilities:
Set socket configuration

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
cmp dword [edx + 0x38], 0xffffffff
mov dword [esp + 0x1c], 1
jne 0x6e8b91
mov edi, eax
lea eax, [esp + 0x1c]
mov esi, ecx
mov ebx, edx
mov dword [esp + 4], 0x8004667e
mov dword [esp], ecx
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x6e8b84
mov eax, dword [esp + 0x30]
mov ecx, esi
mov edx, ebx
mov dword [esp], eax
mov eax, edi
call sym._uv_udp_set_socket.part.0
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov eax, 0xfffff00e
jmp 0x6e8b7d
Function at 0x6ea5e0
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x23c
mov edi, dword [esp + 0x250]
mov esi, dword [esp + 0x254]
test edi, edi
je 0x6ea730
test esi, esi
je 0x6ea730
lea ebx, [esp + 0x28]
mov dword [esp], 0x104
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub esp, 8
test eax, eax
je 0x6ea6f5
cmp eax, 0x104
ja 0x6ea740
xor edx, edx
mov word [esp + eax*2 + 0x28], dx
lea edx, [eax - 1]
cmp word [esp + edx*2 + 0x28], 0x5c
je 0x6ea710
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebp
sub esp, 0x20
test eax, eax
je 0x6ea6f5
mov edx, dword [esi]
cmp edx, eax
jl 0x6ea747
test edx, edx
mov eax, 0x7fffffff
mov dword [esp + 0x1c], 0
cmovs edx, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call ebp
sub esp, 0x20
test eax, eax
je 0x6ea6f5
sub eax, 1
mov dword [esi], eax
add esp, 0x23c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call dbg.uv_translate_sys_error
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 3
je 0x6ea721
xor eax, eax
mov word [esp + edx*2 + 0x28], ax
jmp 0x6ea649
cmp word [esp + 0x2a], 0x3a
jne 0x6ea715
jmp 0x6ea649
mov eax, 0xfffff019
jmp 0x6ea703
mov eax, 0xfffff01a
jmp 0x6ea703
mov dword [esi], eax
mov eax, 0xfffff024
jmp 0x6ea703
Function at 0x6ea750
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebx
sub esp, 0x238
mov eax, dword [esp + 0x240]
test eax, eax
je 0x6ea8a0
lea ebx, [esp + 0x28]
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp + 0x10], ebx
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub esp, 0x18
test eax, eax
jne 0x6ea7c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x6ea8b0
mov dword [esp], eax
call dbg.uv_translate_sys_error
add esp, 0x238
pop ebx
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
sub esp, 4
test eax, eax
je 0x6ea880
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub esp, 8
test eax, eax
je 0x6ea880
cmp eax, 0x104
ja 0x6ea8ba
lea edx, [eax - 1]
cmp word [esp + edx*2 + 0x28], 0x5c
je 0x6ea820
cmp eax, 1
jbe 0x6ea813
cmp word [esp + 0x2a], 0x3a
je 0x6ea830
add esp, 0x238
xor eax, eax
pop ebx
ret
cmp eax, 3
jne 0x6ea890
cmp word [esp + 0x2a], 0x3a
jne 0x6ea890
lea esi, [esi]
movzx eax, word [esp + 0x28]
lea edx, [eax - 0x41]
cmp dx, 0x19
jbe 0x6ea84a
lea edx, [eax - 0x61]
sub eax, 0x20
cmp dx, 0x19
ja 0x6ea813
mov word [esp + 0x22], ax
lea eax, [esp + 0x20]
mov edx, 0x3d
mov word [esp + 0x20], dx
mov dword [esp + 0x24], 0x3a
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
test eax, eax
jne 0x6ea813
lea esi, [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6ea7ad
xor ecx, ecx
mov eax, edx
mov word [esp + edx*2 + 0x28], cx
jmp 0x6ea806
mov eax, 0xfffff019
jmp 0x6ea7b5
mov eax, 0xfffff020
jmp 0x6ea7b5
mov eax, 0xfffff01a
jmp 0x6ea7b5

Function at 0x6ea8e0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x5c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x40
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
sub esp, 4
test eax, eax
je 0x6ea910
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 0x5c
ret
mov eax, 0xffffffff
mov edx, 0xffffffff
add esp, 0x5c
ret

Function at 0x6ea920
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x5c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x40
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
sub esp, 4
test eax, eax
je 0x6ea950
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 0x5c
ret
mov eax, 0xffffffff
mov edx, 0xffffffff
add esp, 0x5c
ret
Function at 0x6ea960
Capabilities:
Enumerate processes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x140
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], 0
mov dword [esp], 2
mov edi, eax
mov dword [esp + 0x18], 0x128
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov ebx, eax
lea esi, [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], esi
call sym._Process32First_8
sub esp, 8
test eax, eax
jne 0x6ea9c3
jmp 0x6ea9e5
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._Process32Next_8
sub esp, 8
test eax, eax
je 0x6ea9e5
cmp dword [esp + 0x20], edi
jne 0x6ea9b0
mov esi, dword [esp + 0x30]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, esi
add esp, 0x140
pop ebx
pop esi
pop edi
ret
mov esi, 0xffffffff
jmp 0x6ea9cd
Function at 0x6eb7a0
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x23c
mov edi, dword [esp + 0x250]
mov ebx, dword [esp + 0x254]
test edi, edi
je 0x6eb8f0
test ebx, ebx
je 0x6eb8f0
mov edx, dword [ebx]
test edx, edx
je 0x6eb8f0
lea esi, [esp + 0x26]
mov dword [esp], 0x105
mov dword [esp + 4], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
test eax, eax
je 0x6eb8b0
cmp eax, 0x105
ja 0x6eb910
lea edx, [eax - 1]
cmp word [esp + edx*2 + 0x26], 0x5c
je 0x6eb8d0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebp
sub esp, 0x20
test eax, eax
je 0x6eb8b0
mov edx, dword [ebx]
cmp edx, eax
jb 0x6eb900
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call ebp
sub esp, 0x20
test eax, eax
je 0x6eb8b0
sub eax, 1
mov dword [ebx], eax
add esp, 0x23c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call dbg.uv_translate_sys_error
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 3
je 0x6eb8e1
xor eax, eax
mov word [esp + edx*2 + 0x26], ax
jmp 0x6eb80c
cmp word [esp + 0x28], 0x3a
jne 0x6eb8d5
jmp 0x6eb80c
mov eax, 0xfffff019
jmp 0x6eb8be
mov dword [ebx], eax
mov eax, 0xfffff024
jmp 0x6eb8be
mov eax, 0xfffff01a
jmp 0x6eb8be
Function at 0x6ec070
Capabilities:
Get common file path
Get session user name

Disassembly:
push edi
push esi
push ebx
sub esp, 0x440
mov ebx, dword [esp + 0x450]
test ebx, ebx
je 0x6ec1e0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x2c]
mov dword [esp + 4], 0x20008
mov dword [esp], eax
mov dword [esp + 8], edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
je 0x6ec165
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x30]
lea edi, [esp + 0x238]
mov dword [esp + 0x30], 0x104
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
sub esp, 0xc
test eax, eax
jne 0x6ec114
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp ebx, 0x7a
je 0x6ec208
mov dword [esp], ebx
call dbg.uv_translate_sys_error
add esp, 0x440
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 4], esi
lea esi, [esp + 0x36]
mov dword [esp + 0x30], 0x101
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
sub esp, 8
test eax, eax
jne 0x6ec180
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x6ec208
mov dword [esp], eax
call dbg.uv_translate_sys_error
add esp, 0x440
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call dbg.uv_translate_sys_error
add esp, 0x440
pop ebx
pop esi
pop edi
ret
lea eax, [ebx + 0x10]
mov dword [ebx + 0x10], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.uv__convert_utf16_to_utf8
test eax, eax
jne 0x6ec10a
mov dword [ebx], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dbg.uv__convert_utf16_to_utf8
test eax, eax
jne 0x6ec1f0
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 8], 0xffffffff
jmp 0x6ec10a
mov eax, 0xfffff019
jmp 0x6ec10a
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp], edx
call dbg.uv__free
mov eax, dword [esp + 0x1c]
jmp 0x6ec10a
mov eax, 0xfffff027
jmp 0x6ec10a
Function at 0x6ec220
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x25c
mov edi, dword [esp + 0x270]
mov ebx, dword [esp + 0x274]
test edi, edi
je 0x6ec3b2
test ebx, ebx
je 0x6ec3b2
mov eax, dword [ebx]
test eax, eax
je 0x6ec3b2
lea esi, [esp + 0x48]
mov dword [esp + 8], 0x104
mov dword [esp], str.USERPROFILE
mov dword [esp + 4], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
je 0x6ec350
cmp eax, 0x104
ja 0x6ec3c0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebp
sub esp, 0x20
test eax, eax
je 0x6ec330
mov edx, dword [ebx]
cmp edx, eax
jb 0x6ec3d0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call ebp
sub esp, 0x20
test eax, eax
je 0x6ec330
sub eax, 1
xor esi, esi
mov dword [ebx], eax
add esp, 0x25c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call dbg.uv_translate_sys_error
add esp, 0x25c
mov esi, eax
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x6ec336
lea ebp, [esp + 0x34]
mov dword [esp], ebp
call dbg.uv__getpwuid_r
test eax, eax
mov esi, eax
jne 0x6ec31c
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
mov dword [esp + 0x2c], ecx
call sym._strlen
mov edx, eax
cmp dword [ebx], edx
lea eax, [eax + 1]
mov ecx, dword [esp + 0x2c]
jbe 0x6ec3dc
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [esp + 0x2c], edx
call sym._memcpy
mov edx, dword [esp + 0x2c]
mov eax, ebp
mov dword [ebx], edx
call sym._uv_os_free_passwd.part.1
jmp 0x6ec31c
mov esi, 0xfffff019
jmp 0x6ec31c
mov esi, 0xfffff01a
jmp 0x6ec31c
mov dword [ebx], eax
mov esi, 0xfffff024
jmp 0x6ec31c
mov dword [ebx], eax
mov eax, ebp
mov esi, 0xfffff024
call sym._uv_os_free_passwd.part.1
jmp 0x6ec31c
Function at 0x6ecb90
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push esi
push ebx
sub esp, 0x434
lea eax, [esp + 0x2c]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
jne 0x6ecddb
mov dword [esp + 8], 0x9492b0
mov dword [esp + 4], 0
mov dword [esp], str.0.0.0.0
call dbg.uv_ip4_addr
test eax, eax
jne 0x6ecdaa
mov dword [esp + 8], 0x949290
mov dword [esp + 4], 0
mov dword [esp], 0x86c21b
call dbg.uv_ip6_addr
test eax, eax
jne 0x6ecdaa
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov esi, dword [sym.imp.WS2_32.dll_socket]
call esi
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x6ecd40
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x274
mov dword [esp + 8], 0x2005
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1bc]
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
sub esp, 0x14
cmp eax, 0xffffffff
je 0x6ecdaf
test byte [esp + 0x1be], 2
je 0x6ecd20
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
cmp eax, 0xffffffff
je 0x6ecdc5
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0x17
call esi
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x6ecd80
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x274
mov dword [esp + 8], 0x2005
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1bc]
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
sub esp, 0x14
cmp eax, 0xffffffff
je 0x6ecdaf
test byte [esp + 0x1be], 2
je 0x6ecd30
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
cmp eax, 0xffffffff
je 0x6ecdc5
add esp, 0x434
pop ebx
pop esi
ret
mov dword [0x94928c], 1
jmp 0x6ecc7b
mov dword [0x9492ac], 1
jmp 0x6ecd01
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
lea edx, [eax - 0x273b]
cmp edx, 1
jbe 0x6ecc90
sub eax, 0x273e
cmp eax, 1
jbe 0x6ecc90
call ebx
mov dword [esp + 4], str.socket
mov dword [esp], eax
call dbg.uv_fatal_error
mov esi, esi
lea edi, [edi]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
lea edx, [eax - 0x273b]
cmp edx, 1
jbe 0x6ecd16
sub eax, 0x273e
cmp eax, 1
ja 0x6ecd65
add esp, 0x434
pop ebx
pop esi
ret
call sym._abort
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 4], str.getsockopt
mov dword [esp], eax
call dbg.uv_fatal_error
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 4], str.closesocket
mov dword [esp], eax
call dbg.uv_fatal_error
mov dword [esp + 4], str.WSAStartup
mov dword [esp], eax
call dbg.uv_fatal_error
nop
lea esi, [esi]
Function at 0x6f9210
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x948780]
test esi, esi
jle 0x6f9320
mov edi, dword [0x948784]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6f9244
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6f92c5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x6f9230
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x6f9347
mov eax, dword [0x948784]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x948784]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6f9327
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6f92be
sub eax, 4
and eax, 0xfffffffb
jne 0x6f92d0
add dword [0x948780], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x948784]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6f92be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
xor esi, esi
jmp 0x6f924e
mov eax, dword [0x948784]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
mov esi, esi
lea edi, [edi]

Function at 0x6f9780
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x948798
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x948790]
sub esp, 4
test ebx, ebx
je 0x6f97d5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6f97ce
test esi, esi
je 0x6f97ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6f97b0
mov dword [esp], 0x948798
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6fee20
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 8], ebx
pop ebx
jmp dbg.getopt_internal
Function at 0x704370
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x7043c3
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x7043b0
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x704440
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call dbg.__pformat_emit_float
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call dbg.__pformat_putc
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym.___pformat_int.isra.0
mov eax, dword [0x7ee0d0]
cmp eax, 0xffffffff
je 0x704475
test eax, eax
je 0x704465
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x7043cb
mov dword [0x7ee0d0], 0
call dbg._get_output_format
test al, 1
mov edx, 3
jne 0x70444e
jmp 0x704453
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sym._getenv
test eax, eax
je 0x70445b
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x70445b
mov dword [0x7ee0d0], 1
jmp 0x70444e