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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
cmp dword [ecx], 0xffffffff
mov esi, dword [esp + 0x60]
mov dword [esp + 0x38], 1
jne 0x4e07e0
mov ebp, eax
lea eax, [esp + 0x38]
mov edi, ecx
mov ebx, edx
mov dword [esp + 4], 0x8004667e
mov dword [esp], esi
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4e0710
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
sub esp, 0xc
test eax, eax
je 0x4e0701
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov eax, dword [ebp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
sub esp, 0x10
test eax, eax
je 0x4e0780
mov eax, dword [ebx]
mov ecx, dword [0x8630c8]
cmp dword [esp + 0x64], 0x17
mov edx, dword [0x86311c]
cmovne edx, dword [0x863120]
test ecx, ecx
je 0x4e06ac
mov ebp, eax
and ebp, 0x100000
or ebp, edx
je 0x4e0720
test eax, 0x2000000
jne 0x4e07a0
test eax, 0x4000000
jne 0x4e0750
cmp dword [esp + 0x64], 0x17
mov dword [edi], esi
je 0x4e0770
mov edx, dword [ebx]
xor eax, eax
and edx, 0x1000000
je 0x4e0707
mov dword [esp + 8], 0x96
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7532e0
mov dword [esp + 0x2c], eax
call fcn.0053e6a0
mov eax, dword [esp + 0x2c]
jmp 0x4e0707
call dword [sym.imp.KERNEL32.DLL_GetLastError]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 3
mov dword [esp], esi
call ecx
sub esp, 8
test eax, eax
je 0x4e0800
mov eax, dword [ebx]
or eax, 0x40000
mov dword [ebx], eax
jmp 0x4e06ac
mov ecx, 0x3c
mov edx, 1
mov eax, esi
call fcn.004e0560
test eax, eax
je 0x4e06c2
jmp 0x4e0707
or dword [ebx], 0x1000000
xor eax, eax
jmp 0x4e0707
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4e0701
mov eax, dword [ebx]
or eax, 0x100000
mov dword [ebx], eax
jmp 0x4e0684
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x10], 4
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov dword [esp + 0xc], eax
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
cmp eax, 0xffffffff
je 0x4e07f0
mov eax, dword [ebx]
jmp 0x4e06b7
mov eax, 0xfffff00e
jmp 0x4e0707
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4e0707
jmp 0x4e07d9
mov ebp, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebp
cmp eax, 1
jne 0x4e0814
mov eax, dword [ebx]
jmp 0x4e06ac
call ebp
jmp 0x4e0707
Function at 0x4e0820
Capabilities:
Set socket configuration

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
mov eax, dword [eax + 0x90]
movzx edx, word [edx]
cmp eax, 0xffffffff
je 0x4e0875
cmp dx, 0x17
je 0x4e08f0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_bind]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4e0940
or dword [ebx + 0x2c], 0x200
xor ecx, ecx
add esp, 0x4c
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [esp + 0x60], 1
je 0x4e0887
cmp dx, 0x17
mov ecx, 0x57
jne 0x4e086b
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], edx
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
mov ebp, eax
je 0x4e0932
movzx eax, word [esi]
lea ecx, [ebx + 0x90]
lea edx, [ebx + 0x2c]
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
call fcn.004e05f0
test eax, eax
jne 0x4e0962
movzx edx, word [esi]
mov eax, dword [ebx + 0x90]
cmp dx, 0x17
jne 0x4e0845
lea esi, [esi]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 0x29
mov dword [esp], eax
and edx, 1
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0xc], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebx + 0x90]
sub esp, 0x14
jmp 0x4e0845
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x4e086b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
mov ecx, eax
jne 0x4e086b
mov dword [ebx + 0x94], 0x2740
jmp 0x4e0862
mov dword [esp + 0x2c], eax
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
mov ecx, dword [esp + 0x2c]
jmp 0x4e086b

Function at 0x4e1770
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov edx, dword [eax + 0x90]
cmp edx, 0xffffffff
je 0x4e17c5
mov eax, dword [eax + 0x94]
test eax, eax
jne 0x4e17b8
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
jne 0x4e17b2
add esp, 0x18
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x20], eax
add esp, 0x18
pop ebx
jmp fcn.004cc7f0
mov eax, 0xfffff019
jmp 0x4e17ad
Function at 0x4e2420
Capabilities:
Set socket configuration

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
cmp dword [ebx + 8], 0xc
je 0x4e244f
mov dword [esp + 8], 0x45d
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], str.handle__type__UV_TCP
call fcn.0053e6a0
mov eax, dword [esi + 0x3c]
cmp eax, 0xffffffff
je 0x4e24e0
mov edx, dword [esi + 0x20]
test edx, edx
js 0x4e249b
lea edx, [ebx + 0x90]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0x700b
mov dword [esp + 4], 0xffff
mov dword [esp], eax
mov dword [esp + 0xc], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
test eax, eax
je 0x4e25a0
mov eax, dword [esi + 0x3c]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test byte [ebx + 0x2d], 8
mov dword [esi + 0x3c], 0xffffffff
jne 0x4e25d2
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4e2551
sub eax, 1
mov edx, dword [ebx + 0x2c]
test eax, eax
mov dword [ebx + 0x3c], eax
jne 0x4e24d9
test dl, 1
jne 0x4e2575
add esp, 0x24
pop ebx
pop esi
ret
mov eax, dword [ebx + 0x2c]
test ah, 8
je 0x4e24b8
mov edx, eax
and dh, 0xf7
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], edx
jne 0x4e25e0
test al, 1
jne 0x4e2520
test al, 0x40
je 0x4e2520
mov edx, eax
and edx, 0xfffff7bf
test al, 0x20
mov dword [ebx + 0x2c], edx
je 0x4e2520
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
nop
lea esi, [esi]
mov ecx, dword [ebx + 0x88]
test ecx, ecx
je 0x4e24b8
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.004ee440
mov esi, dword [ebx + 0x88]
mov dword [esp], eax
call fcn.004cc7f0
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
jmp 0x4e24b8
mov dword [esp + 8], 0x485
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7533a3
call fcn.0053e6a0
mov eax, dword [ebx + 0x3c]
jmp 0x4e24c3
test dl, 8
jne 0x4e24d9
mov eax, dword [esp + 0x30]
or edx, 8
mov dword [ebx + 0x2c], edx
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [eax + 0x2c], ebx
add esp, 0x24
pop ebx
pop esi
ret
mov eax, dword [ebx + 0xa0]
mov dword [esi + 0x168], eax
mov eax, dword [ebx + 0x88]
mov dword [ebx + 0xa0], esi
test eax, eax
je 0x4e24b8
mov dword [esp + 4], 0
mov dword [esp], ebx
call eax
jmp 0x4e24b8
mov edx, esi
mov eax, ebx
call fcn.004dff10
jmp 0x4e24b8
jns 0x4e2520
mov dword [esp + 8], 0x466
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7534d9
call fcn.0053e6a0
jmp 0x4e2520
Function at 0x4e2610
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 0x4e2645
mov dword [esp + 8], 0x48d
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], str.handle__type__UV_TCP
call fcn.0053e6a0
sub dword [ebx + 0x40], 1
jne 0x4e2742
mov eax, dword [ebx + 0x2c]
test al, 1
je 0x4e2791
lea eax, [edi + 0x10]
cmp dword [edi + 0x10], eax
je 0x4e2770
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 0x4e27c0
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 0x4e27b5
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 fcn.004cc7f0
mov dword [esp], esi
mov dword [esp + 4], eax
call ebp
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4e27d0
sub eax, 1
mov edx, dword [ebx + 0x2c]
test eax, eax
mov dword [ebx + 0x3c], eax
jne 0x4e273a
test dl, 1
jne 0x4e27f4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
jns 0x4e265a
mov dword [esp + 8], 0x48f
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x75336c
call fcn.0053e6a0
lea eax, [edi + 0x10]
cmp dword [edi + 0x10], eax
jne 0x4e2666
mov dword [esp + 8], 0x48f
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x753387
call fcn.0053e6a0
jmp 0x4e2666
test al, 0x40
je 0x4e265a
mov edx, eax
and edx, 0xffffffbf
test al, 0x20
mov dword [ebx + 0x2c], edx
je 0x4e265a
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
jmp 0x4e265a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4e2705
mov dword [esp], eax
call fcn.004ee440
jmp 0x4e2705
mov dword [esp + 8], 0x4a3
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7533a3
call fcn.0053e6a0
mov eax, dword [ebx + 0x3c]
jmp 0x4e2724
test dl, 8
jne 0x4e273a
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 0x4e2930
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 0x4e2970
test esi, esi
mov eax, dword [ebx + 0x2c]
jne 0x4e2960
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 0x4e2948
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4e2959
jmp 0x4e2948

Function at 0x4e5ae0
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 0x4e5b40
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 fcn.004e5880
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 0x4e5b70
call ebp
cmp eax, 0x57
jne 0x4e5b80
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 0x4e5b05
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [esp + 0x68]
mov dword [edx], eax
jmp 0x4e5b05
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 0x4ea180
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 0x4ea1e1
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 0x4ea1d4
mov eax, dword [esp + 0x30]
mov ecx, esi
mov edx, ebx
mov dword [esp], eax
mov eax, edi
call fcn.004ea010
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 0x4ea1cd
Function at 0x4ebc30
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 0x4ebd80
test esi, esi
je 0x4ebd80
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 0x4ebd45
cmp eax, 0x104
ja 0x4ebd90
xor edx, edx
mov word [esp + eax*2 + 0x28], dx
lea edx, [eax - 1]
cmp word [esp + edx*2 + 0x28], 0x5c
je 0x4ebd60
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 0x4ebd45
mov edx, dword [esi]
cmp edx, eax
jl 0x4ebd97
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 0x4ebd45
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 fcn.004cc7f0
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 3
je 0x4ebd71
xor eax, eax
mov word [esp + edx*2 + 0x28], ax
jmp 0x4ebc99
cmp word [esp + 0x2a], 0x3a
jne 0x4ebd65
jmp 0x4ebc99
mov eax, 0xfffff019
jmp 0x4ebd53
mov eax, 0xfffff01a
jmp 0x4ebd53
mov dword [esi], eax
mov eax, 0xfffff024
jmp 0x4ebd53

Function at 0x4ebf30
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x5c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], pe_nt_image_headers32
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
sub esp, 4
test eax, eax
je 0x4ebf60
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 0x4ebf70
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x5c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], pe_nt_image_headers32
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
sub esp, 4
test eax, eax
je 0x4ebfa0
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 0x4ebfb0
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 sub.KERNEL32.DLL_CreateToolhelp32Snapshot
sub esp, 8
mov ebx, eax
lea esi, [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], esi
call sub.KERNEL32.DLL_Process32First
sub esp, 8
test eax, eax
jne 0x4ec013
jmp 0x4ec035
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.DLL_Process32Next
sub esp, 8
test eax, eax
je 0x4ec035
cmp dword [esp + 0x20], edi
jne 0x4ec000
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 0x4ec01d
Function at 0x4ed6c0
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 0x4ed830
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 0x4ed7b5
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 0x4ed764
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 0x4ed858
mov dword [esp], ebx
call fcn.004cc7f0
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 0x4ed7d0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
je 0x4ed858
mov dword [esp], eax
call fcn.004cc7f0
add esp, 0x440
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], eax
call fcn.004cc7f0
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 fcn.004ecf90
test eax, eax
jne 0x4ed75a
mov dword [ebx], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call fcn.004ecf90
test eax, eax
jne 0x4ed840
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 8], 0xffffffff
jmp 0x4ed75a
mov eax, 0xfffff019
jmp 0x4ed75a
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp], edx
call fcn.004c95f0
mov eax, dword [esp + 0x1c]
jmp 0x4ed75a
mov eax, 0xfffff027
jmp 0x4ed75a
Function at 0x4ee1e0
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 0x4ee42b
mov dword [esp + 8], 0x86310c
mov dword [esp + 4], 0
mov dword [esp], str.0.0.0.0
call fcn.004ca670
test eax, eax
jne 0x4ee3fa
mov dword [esp + 8], 0x8630f0
mov dword [esp + 4], 0
mov dword [esp], 0x75457b
call fcn.004ca6e0
test eax, eax
jne 0x4ee3fa
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 0x4ee390
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 0x4ee3ff
test byte [esp + 0x1be], 2
je 0x4ee370
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
cmp eax, 0xffffffff
je 0x4ee415
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 0x4ee3d0
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 0x4ee3ff
test byte [esp + 0x1be], 2
je 0x4ee380
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
cmp eax, 0xffffffff
je 0x4ee415
add esp, 0x434
pop ebx
pop esi
ret
mov dword [0x863120], 1
jmp 0x4ee2cb
mov dword [0x86311c], 1
jmp 0x4ee351
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
lea edx, [eax - 0x273b]
cmp edx, 1
jbe 0x4ee2e0
sub eax, 0x273e
cmp eax, 1
jbe 0x4ee2e0
call ebx
mov dword [esp + 4], 0x754595
mov dword [esp], eax
call fcn.004cc730
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 0x4ee366
sub eax, 0x273e
cmp eax, 1
ja 0x4ee3b5
add esp, 0x434
pop ebx
pop esi
ret
call sub.msvcrt.dll_exit
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 4], str.getsockopt
mov dword [esp], eax
call fcn.004cc730
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 4], str.closesocket
mov dword [esp], eax
call fcn.004cc730
mov dword [esp + 4], str.WSAStartup
mov dword [esp], eax
call fcn.004cc730
nop
lea esi, [esi]
Function at 0x5016d0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x40
mov dword [esp], str.HWLOC_PCI_LOCALITY
call sub.msvcrt.dll_iswctype
test eax, eax
je 0x50176a
mov ebx, eax
mov eax, dword [esp + 0x50]
mov dword [eax + 0x1f4], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__read]
test eax, eax
mov esi, eax
js 0x501771
lea eax, [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__fullpath]
cmp eax, 0xffffffff
je 0x501761
test eax, eax
mov edi, dword [esp + 0x30]
jne 0x501761
cmp edi, 0x10000
jg 0x501783
lea eax, [edi + 1]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], edi
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__snwprintf]
cmp eax, edi
je 0x5017a5
mov dword [esp], ebx
call fcn.00548438
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__close]
add esp, 0x40
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x50]
mov edx, ebx
call fcn.00500ea0
add esp, 0x40
pop ebx
pop esi
pop edi
ret
mov eax, dword [sym.imp.msvcrt.dll__lseeki64]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Ignoring_HWLOC_PCI_LOCALITY_file___s_too_large___lu_bytes__n
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fseek
jmp 0x501761
mov byte [ebx + eax], 0
mov eax, dword [esp + 0x50]
mov edx, ebx
call fcn.00500ea0
jmp 0x501759
Function at 0x515c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 0x10]
cmp edx, eax
jae 0x515c44
lea eax, [edx + 0x10]
cmp ecx, eax
jb 0x515cd5
mov edi, ecx
mov dword [esp + 0xc], 0
shr edi, 3
and edi, 1
je 0x515c68
mov eax, dword [edx]
xor dword [ecx], eax
mov eax, dword [edx + 4]
xor dword [ecx + 4], eax
mov dword [esp + 0xc], 1
mov eax, 0x80
mov dword [ebp + 8], ecx
xor ebx, ebx
sub eax, edi
shl edi, 3
mov dword [esp + 8], eax
shr eax, 1
lea esi, [ecx + edi]
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
add edi, edx
xor eax, eax
lea esi, [esi]
movdqu xmm0, xmmword [edi + eax]
add ebx, 1
pxor xmm0, xmmword [esi + eax]
movaps xmmword [esi + eax], xmm0
add eax, 0x10
cmp ebx, ecx
jb 0x515c90
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, edi
and eax, 0xfffffffe
add ebx, eax
cmp edi, eax
je 0x515ccd
lea eax, [ecx + ebx*8]
mov ecx, dword [edx + ebx*8]
xor dword [eax], ecx
mov edx, dword [edx + ebx*8 + 4]
xor dword [eax + 4], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov esi, esi
lea edi, [edi]
mov ebx, dword [edx + eax*8]
xor dword [ecx + eax*8], ebx
mov ebx, dword [edx + eax*8 + 4]
xor dword [ecx + eax*8 + 4], ebx
add eax, 1
cmp eax, 0x80
jne 0x515ce0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret