joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003140
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x1000315e
inc ebx
push edi
je 0x100031b7
pop eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 1
push 2
push 1
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003197
xor eax, eax
jmp 0x100031a6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x100031ce
inc ebx
push edi
je 0x10003227
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100031ef
xor eax, eax
jmp 0x1000320d
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov dword [ebp - 0x48], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x1000323e
inc ebx
push edi
je 0x10003297
pop eax
mov byte [ebp - 0x44], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
push str.._s
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10003291
xor eax, eax
jmp 0x100032b0
cmp dword [ebp + 0xc], 0
je 0x100032a1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x100032ab
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100032c0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x100032de
inc ebx
push edi
je 0x10003337
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100032ff
xor eax, eax
jmp 0x1000331f
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x1000334e
inc ebx
push edi
je 0x100033a7
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000336f
xor eax, eax
jmp 0x10003389
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov dword [ebp - 8], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x100033be
inc ebx
push edi
je 0x10003417
pop eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.100032c0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
call fcn.10003330
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x1000342e
inc ebx
push edi
je 0x10003487
pop eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.10003140
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.100031b0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.10003220
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003730
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x1000374e
inc ebx
push edi
je 0x100037a7
pop eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 2
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
lea eax, [ebp - 0x20]
push eax
push 1
push 0x20
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
push 0
push 0
push 0x10
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp + 8], 0
je 0x100037c5
push 4
push 8
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100037cf
push 4
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100038a0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x100038be
inc ebx
push edi
je 0x10003917
pop eax
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10003983
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x10003983
mov ebp, 0xfffffef4
add byte [esp + 0x66], dh
mov dword [ebp - 0x11c], 0xc9330000
mov word [ebp - 0x11c], 0
xor ecx, ecx
mov dword [ebp - 0x11a], ecx
mov dword [ebp - 0x116], ecx
mov dword [ebp - 0x112], ecx
mov word [ebp - 0x10e], cx
mov edx, dword [ebp - 0x10c]
movsx ecx, word [edx + 0xa]
mov eax, dword [ebp - 0x10c]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
lea edi, [ebp - 0x118]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004150
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x124], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x10004174
inc ebx
push edi
je 0x100041cd
pop eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x110], 0
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], 0x2dc6c0
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp + 0xc]
jae 0x1000430d
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x120], 0
jmp 0x1000420b
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp - 0x108]
jae 0x10004235
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp + eax*4 - 0x104]
cmp edx, dword [ecx + 4]
jne 0x10004233
jmp 0x10004235
jmp 0x100041fc
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x108]
jne 0x10004271
cmp dword [ebp - 0x108], 0x40
jae 0x10004271
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 4]
mov dword [ebp + ecx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
test edx, edx
jne 0x100041f0
lea eax, [ebp - 0x110]
push eax
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 4]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x100042a8
xor eax, eax
jmp 0x10004312
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jg 0x100042d8
xor eax, eax
jmp 0x10004312
mov edx, dword [ebp - 0x118]
add edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x114]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x11c]
sub ecx, dword [ebp - 0x114]
mov dword [ebp - 0x11c], ecx
jmp 0x100041d7
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10004320
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x124], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x10004344
inc ebx
push edi
je 0x1000439d
pop eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x110], 0
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], 0x2dc6c0
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp + 0xc]
jae 0x100044dd
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x120], 0
jmp 0x100043db
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp - 0x108]
jae 0x10004405
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp + eax*4 - 0x104]
cmp edx, dword [ecx + 4]
jne 0x10004403
jmp 0x10004405
jmp 0x100043cc
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x108]
jne 0x10004441
cmp dword [ebp - 0x108], 0x40
jae 0x10004441
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 4]
mov dword [ebp + ecx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
test edx, edx
jne 0x100043c0
lea eax, [ebp - 0x110]
push eax
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 4]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x10004478
xor eax, eax
jmp 0x100044e2
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jg 0x100044a8
xor eax, eax
jmp 0x100044e2
mov edx, dword [ebp - 0x118]
add edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x114]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x11c]
sub ecx, dword [ebp - 0x114]
mov dword [ebp - 0x11c], ecx
jmp 0x100043a7
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100045d0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x100045ec
inc ebx
push edi
je 0x10004645
pop eax
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call fcn.10004610
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test esp, edi
out dx, al
invalid
Function at 0x10005840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x1000585c
inc ebx
push edi
je 0x100058b5
pop eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000586a
xor eax, eax
jmp 0x10005876
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.100054f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
invalid
Function at 0x10005880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011a3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push esi
push edi
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x100058b3
inc ebx
push edi
je 0x1000590c
pop eax
lea ecx, [ebp - 0x12c]
call fcn.100037e0
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x12c]
call fcn.10004b20
test eax, eax
jne 0x10005902
mov dword [ebp - 0x130], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.10003860
mov eax, dword [ebp - 0x130]
jmp 0x10005a6c
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.100045d0
test eax, eax
jne 0x10005943
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.10003860
mov eax, dword [ebp - 0x134]
jmp 0x10005a6c
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x12c]
call fcn.10004320
test eax, eax
jne 0x100059b4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x140], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.10003860
mov eax, dword [ebp - 0x140]
jmp 0x10005a6c
mov edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx]
test eax, eax
jne 0x100059ce
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x400], 5
jmp 0x100059db
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x400], 0
mov eax, dword [ebp + 0xc]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._d_d.exe
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 0xc]
add edx, eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [ebp - 0x18]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1000a5c0
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x148], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.10003860
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005b80
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
push esi
push edi
mov dword [ebp - 0xb0], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x10005ba4
inc ebx
push edi
je 0x10005bfd
pop eax
mov ecx, dword [ebp - 0xb0]
call fcn.100063f0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov dword [ebp - 0xac], 0
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0xa8]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0xb0]
call fcn.100064e0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x98]
mov dword [edx + 0x1c], eax
mov dword [ebp - 0x20], 0
mov ecx, 7
add byte [eax], al
add byte [ecx + 7], bh
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
mov dword [ebp - 0x88], 0x10
lea ecx, [ebp - 0x88]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xc8
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, dword [ebp + 8]
cmp dword [eax], 0x1f40
jne 0x10005c5f
mov ecx, dword [ebp - 0xb0]
call fcn.100065f0
movsx ecx, al
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp + 0xc]
add eax, 0x220
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x10005c8b
mov ecx, dword [ebp + 8]
add ecx, 0xc8
push ecx
mov edx, dword [ebp + 8]
add edx, 0x48
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10005ca1
mov eax, dword [ebp + 0xc]
add eax, 0x220
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x48
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0xc]
add edx, 0x3f4
mov eax, dword [ebp + 8]
add eax, 0x24
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0xc]
add eax, 0x3d0
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x148
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0xc]
add edx, 0x3b0
push edx
mov eax, dword [ebp + 8]
add eax, 0x188
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
mov word [ebp - 0x84], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x82]
rep stosd dword es:[edi], eax
push 0x62
lea eax, [ebp - 0x84]
push eax
push 0x10015906
call fcn.1000a540
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dx, word [ebp - 0x84]
mov word [ecx + 0x1c8], dx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005d60
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x10005d7b
inc ebx
push edi
je 0x10005dd4
pop eax
mov dword [ebp - 8], 0x5265c00
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 0x18], 2
mov cx, word [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10005dc2
xor eax, eax
jmp 0x10005e64
push 0x10
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10005de5
push dword [ebp + 0xe]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10005e64
push 4
lea edx, [ebp - 8]
push edx
push 0x1005
push 0xffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10005e12
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10005e64
push 4
lea edx, [ebp - 8]
push edx
push 0x1006
push 0xffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10005e3f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10005e64
push accept
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10005e61
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10005e64
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret