joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004378
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x1004ee7
call fcn.010047b9
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
jne 0x100444d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
shr eax, 1
lea eax, [eax + ecx + 1]
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp + 0x14]
jbe 0x10043e5
push 0x6f
pop edi
cmp dword [0x1006138], ebx
je 0x100444d
push dword [ebp + 0xc]
push 0x10020c8
push ebx
call fcn.01003510
add esp, 0xc
jmp 0x100444d
lea edi, [eax + eax]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
lea ecx, [ebp - 0x10]
call fcn.01002447
cmp dword [ebp - 0x10], ebx
jne 0x1004404
push 0xe
pop edi
jmp 0x100444d
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 1
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
call esi
mov edi, eax
cmp edi, ebx
jne 0x100443f
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x1004434
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10], ebx
mov dword [ecx], eax
cmp dword [ebp - 0x10], ebx
je 0x100444d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
call fcn.010047f1
ret 0x18
Function at 0x1004771
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1004fc0
call fcn.01004a44
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x10064a0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1004528
cmp eax, esi
jne 0x100451b
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100452b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004502
xor esi, esi
inc esi
mov eax, dword [0x100649c]
cmp eax, esi
jne 0x100453e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100456d
mov eax, dword [0x100649c]
test eax, eax
jne 0x1004567
mov dword [0x100649c], esi
push 0x10011b0
push 0x10011a4
call fcn.01004467
pop ecx
pop ecx
test eax, eax
je 0x100456d
jmp 0x1004695
mov dword [0x1006160], esi
mov eax, dword [0x100649c]
cmp eax, esi
jne 0x1004591
push 0x10011a0
push 0x1001194
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100649c], 2
test ebx, ebx
jne 0x100459d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10064a4], 0
je 0x10045c1
push 0x10064a4
call fcn.010049b9
pop ecx
test eax, eax
je 0x10045c1
push 0
push 2
push 0
call dword [0x10064a4]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x100461d
test al, al
je 0x10045db
cmp dword [ebp - 0x1c], 0
jne 0x100461d
mov al, byte [esi]
test al, al
je 0x10045eb
cmp al, 0x20
ja 0x10045eb
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10045db
test byte [ebp - 0x3c], 1
je 0x10045f7
movzx eax, word [ebp - 0x38]
jmp 0x10045fa
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100615c], eax
cmp dword [0x1006150], 0
jne 0x1004671
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x100462c
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x100463f
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10045c8
cmp dword [0x1006160], 0
jne 0x1004680
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100615c]
jmp 0x10046a1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01004a89
ret
call fcn.01004b91
jmp 0x10044c8
Function at 0x1004d35
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004d92
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0x14], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004d90
cmp dword [ebp + 0xc], 4
je 0x1004d97
push 0xd
mov dword [esi], edi
pop eax
jmp 0x1004d97
mov dword [esi], edi
cmp eax, 2
je 0x1004da9
mov esi, eax
lea ecx, [ebp - 4]
call fcn.010022aa
pop edi
mov eax, esi
pop esi
leave
ret 0x10
xor esi, esi
jmp 0x1004d99
Function at 0x10002450
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x200
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
invalid

Function at 0x100025dc
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__beginthread]
push edi
lea ebp, [ebx + 0x70]
xor edi, edi
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.10003fe0
test eax, eax
je 0x10002699
mov eax, dword [esp + 0x10]
cmp eax, 0x7532
ja 0x10002646
je 0x10002663
lea ecx, [eax - 0x1f41]
cmp ecx, 0x13
ja case.0x10002584.8012
jmp dword [ecx*4 + 0x100026a8]
mov ecx, dword [esp + 0x14]
push ecx
push edi
push 0x10001e20
call esi
add esp, 0xc
jmp case.0x10002584.8012
mov edx, dword [esp + 0x14]
push edx
push edi
push 0x10001ca0
call esi
add esp, 0xc
jmp case.0x10002584.8012
mov eax, dword [esp + 0x14]
push eax
push edi
push 0x10001d10
call esi
add esp, 0xc
jmp case.0x10002584.8012
mov ecx, dword [esp + 0x14]
push ecx
push edi
push 0x10001d80
call esi
add esp, 0xc
jmp case.0x10002584.8012
mov edx, dword [esp + 0x14]
push edx
push edi
push 0x10001e90
call esi
add esp, 0xc
jmp case.0x10002584.8012
mov eax, dword [esp + 0x14]
push eax
push edi
push 0x10001f30
call esi
add esp, 0xc
jmp case.0x10002584.8012
push eax
push edi
push 0x10001fa0
call esi
add esp, 0xc
jmp case.0x10002584.8012
push eax
push edi
push 0x100020e0
call esi
add esp, 0xc
jmp case.0x10002584.8012
push eax
push edi
push 0x10002180
call esi
add esp, 0xc
jmp case.0x10002584.8012
push eax
push edi
push 0x10002260
call esi
add esp, 0xc
jmp case.0x10002584.8012
push ebx
push edi
push 0x10002300
call esi
add esp, 0xc
jmp case.0x10002584.8012
sub eax, 0x7534
je 0x10002687
dec eax
je 0x10002674
push edi
push edi
push edi
mov ecx, ebp
call fcn.100038f0
test eax, eax
je 0x10002699
jmp 0x10002544
mov ecx, ebx
call fcn.10002450
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 1
mov ecx, ebx
call fcn.10002b00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push edi
mov ecx, ebx
call fcn.10002b00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x10002700
Capabilities:
Create service
Persist via windows service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 2
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x10002732
ret 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret 0xc
Function at 0x10002820
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10002846
pop esi
add esp, 0x1c
ret 8
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret 8

Function at 0x10002b00
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
push esi
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
lea eax, [esp + 8]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push 2
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
lea eax, [esp + 4]
push eax
push 1
push 0x20
push esi
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edx, dword [esp + 4]
push 0
push 0
lea ecx, [esp + 0x18]
push 0x10
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x24]
pop esi
test eax, eax
push 4
je 0x10002b87
push 8
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x1c
ret 4
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x1c
ret 4

Function at 0x10002c00
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x114
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x124]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0x1c]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002c9a
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10002c9a
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0xe], ecx
lea edi, [esp + 0x10]
mov dword [esp + 0x12], ecx
mov esi, dword [edx]
mov dword [esp + 0x16], ecx
mov word [esp + 0x1a], cx
movsx ecx, word [eax + 0xa]
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 [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x114
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x114
ret
Function at 0x100031e0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
mov esi, dword [esp + 0x120]
mov ebp, ecx
push edi
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
cmp ebx, eax
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], 0x2dc6c0
mov dword [esp + 0x18], eax
jbe 0x10003279
mov edi, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1000328b
mov eax, dword [ebp + 4]
push 0
push ebx
push esi
push eax
call edi
test eax, eax
jle 0x1000328b
mov ecx, dword [esp + 0x10]
add esi, eax
add ecx, eax
sub ebx, eax
mov eax, dword [esp + 0x128]
mov dword [esp + 0x10], ecx
cmp ecx, eax
jb 0x10003229
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 8

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

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
mov esi, dword [esp + 0x120]
mov ebp, ecx
push edi
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
cmp ebx, eax
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], 0x2dc6c0
mov dword [esp + 0x18], eax
jbe 0x10003339
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x24], eax
push 0
lea edx, [esp + 0x24]
push 0
inc eax
push edx
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1000334b
mov eax, dword [ebp + 4]
push 0
push ebx
push esi
push eax
call edi
test eax, eax
jle 0x1000334b
mov ecx, dword [esp + 0x10]
add esi, eax
add ecx, eax
sub ebx, eax
mov eax, dword [esp + 0x128]
mov dword [esp + 0x10], ecx
cmp ecx, eax
jb 0x100032e9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 8
Function at 0x10003440
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x1214
call fcn.1000c4f0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x224], bl
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x18], ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1228]
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], 0x493e0
mov dword [esp + 0x18], ebx
lea ebp, [edi + 1]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ebx
push ebx
push ecx
push ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x10003589
push ebx
lea edx, [esp + 0x17]
push 1
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10003589
mov al, byte [esp + 0x13]
cmp esi, 4
mov byte [esp + esi + 0x224], al
jl 0x10003507
cmp al, 0xa
jne 0x10003507
cmp byte [esp + esi + 0x223], 0xd
jne 0x10003507
cmp byte [esp + esi + 0x222], 0xa
jne 0x10003507
cmp byte [esp + esi + 0x221], 0xd
je 0x10003513
mov eax, esi
inc esi
cmp eax, 0x1000
jge 0x10003589
jmp 0x10003497
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x120]
lea edx, [esp + 0x224]
stosw word es:[edi], ax
push ecx
push str.Content_Length
push edx
stosb byte es:[edi], al
call fcn.10003360
add esp, 0xc
test eax, eax
je 0x10003596
mov esi, dword [esp + 0x122c]
cmp esi, ebx
je 0x10003569
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [esi], eax
cmp dword [esp + 0x1230], ebx
je 0x10003596
lea ecx, [esp + 0x224]
push str.200_Ok_r_n
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x10003596
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1214
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1214
ret
Function at 0x10003eb0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x2000
mov byte [esp + 0x17], 0
xor esi, esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x1c], eax
rep stosd dword es:[edi], eax
mov ecx, 0x800
mov edi, ebp
mov dword [esp + 0x18], 0x50
mov dword [esp + 0x1c], eax
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x28], eax
push 0
lea edx, [esp + 0x28]
push 0
inc eax
push edx
push eax
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x10003fbb
mov eax, dword [esp + 0x14]
push 0
test eax, eax
jne 0x10003f8b
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x17]
push 1
push eax
push ecx
call edi
test eax, eax
jle 0x10003fbb
mov dl, byte [esp + 0x13]
cmp esi, 4
mov byte [esi + ebp], dl
jl 0x10003f7c
cmp byte [esp + 0x13], 0xa
jne 0x10003f7c
cmp byte [esi + ebp - 1], 0xd
jne 0x10003f7c
cmp byte [esi + ebp - 2], 0xa
jne 0x10003f7c
cmp byte [esi + ebp - 3], 0xd
jne 0x10003f7c
mov dword [esp + 0x14], 1
jmp 0x10003f02
mov eax, esi
inc esi
cmp eax, 0x1ffe
jg 0x10003fbb
jmp 0x10003f02
mov ecx, dword [esp + 0x12c]
mov edx, dword [ebx + 4]
push 8
push ecx
push edx
call edi
cmp eax, 8
push ebp
jne 0x10003fbc
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4
Function at 0x10004000
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1000c8fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push edi
lea ecx, [esp + 8]
call fcn.10002ba0
mov eax, dword [esp + 0x12c]
push 0
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0
call fcn.10003760
test eax, eax
jne 0x10004073
lea ecx, [esp + 8]
mov dword [esp + 0x124], 0xffffffff
call fcn.10002bf0
xor eax, eax
pop edi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
add esp, 0x124
ret
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
lea ecx, [esp + 0xc]
call fcn.10003420
test eax, eax
jne 0x100040b9
lea ecx, [esp + 8]
mov dword [esp + 0x124], 0xffffffff
call fcn.10002bf0
xor eax, eax
pop edi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
add esp, 0x124
ret
mov edx, dword [esp + 4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push eax
push edi
call fcn.100032a0
test eax, eax
jne 0x10004110
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x124], 0xffffffff
call fcn.10002bf0
xor eax, eax
pop edi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
add esp, 0x124
ret
mov al, byte [edi]
push esi
mov esi, dword [esp + 0x134]
test al, al
jne 0x1000412a
mov dword [esi + 0x400], 5
jmp 0x10004134
mov dword [esi + 0x400], 0
push esi
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_d0EXE
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x18]
lea edx, [edi + 1]
dec ecx
push ecx
push edx
push esi
call fcn.10007820
push edi
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x20
lea ecx, [esp + 0xc]
mov dword [esp + 0x128], 0xffffffff
call fcn.10002bf0
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x100042a0
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.10004970
mov esi, dword [esp + 0xc0]
xor ebp, ebp
mov ecx, 8
lea edi, [esp + 0x38]
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esp + 0x34], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, ebx
call fcn.10004a00
mov ecx, dword [esp + 0x48]
mov dword [esi + 4], eax
mov dword [esi + 0x1c], ecx
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
lea edi, [esi + 0xc8]
push ecx
push edi
mov dword [esi + 8], eax
mov dword [esp + 0x18], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp dword [esi], 0x1f40
jne 0x1000433c
mov ecx, ebx
call fcn.10004b00
movsx edx, al
mov dword [esi + 0x14], edx
mov ebx, dword [esp + 0xc4]
lea ebp, [ebx + 0x220]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x1000435b
lea eax, [esi + 0x48]
push edi
push eax
jmp 0x10004360
lea ecx, [esi + 0x48]
push ebp
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
lea edx, [ebx + 0x3f4]
lea eax, [esi + 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
lea ecx, [esi + 0x148]
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
lea eax, [ebx + 0x3d0]
push eax
push ecx
call edi
add ebx, 0x3b0
lea edx, [esi + 0x188]
push ebx
push edx
call edi
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov dword [esi + 0x10], eax
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x5a]
mov word [esp + 0x58], 0
push 0x62
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
push eax
push 0x10010906
call fcn.100077c0
mov cx, word [esp + 0x64]
add esp, 0xc
mov word [esi + 0x1c8], cx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 8
Function at 0x10004400
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 4], eax
push esi
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0xc], 0x5265c00
mov dword [esp + 0x1c], eax
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004451
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
lea edx, [esp + 0xc]
push 0x10
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10004473
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 8]
push 4
push eax
push 0x1005
push 0xffff
push esi
call edi
cmp eax, 0xffffffff
jne 0x100044a1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
lea ecx, [esp + 8]
push 4
push ecx
push 0x1006
push 0xffff
push esi
call edi
cmp eax, 0xffffffff
jne 0x100044c9
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
push bind
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x100044e9
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, esi
pop edi
pop esi
add esp, 0x14
ret