joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442a10
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047b24b
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004423b0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047b179
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00477a37
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00477a37
push 1
push 0
push 0
mov ecx, esi
call fcn.004779df
push 1
push 0
push 1
mov ecx, esi
call fcn.004779df
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047b2bd
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x442b90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047b24b
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004423b0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047b179
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x442c54
cmp dword [esp + 0x40], 1
jne 0x442c52
cmp ecx, eax
jge 0x442c54
mov eax, ecx
cmp eax, 0xc8
jge 0x442c60
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00442a10
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047b2bd
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4433e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482f33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00475e54
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047b4f3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047ca52
test eax, eax
je 0x4434fc
mov ecx, dword [esp + 0x3c]
call fcn.0047b520
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4434c0
push edi
mov ecx, esi
call fcn.00478b82
mov ecx, esi
call fcn.00443660
cmp dword [esp + 0x38], 1
jne 0x4434f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00478cbd
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x445f10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445f43
push esi
call fcn.00449000
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x445f3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x445fc9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x445fb2
mov eax, dword [esi + 8]
test eax, eax
je 0x445f67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x445fae
cmp eax, 2
je 0x445fb2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x445f5a
cmp eax, 3
je 0x445f8d
cmp eax, 1
jne 0x445f5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x445f5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x445f5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445ff0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x445fd8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445ff0
add esp, 4
pop esi
ret

Function at 0x453900
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x453966
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x453966
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x453947
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x453cf0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x453d28
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4549b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4549f9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x454e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x483640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00454a20
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00454aa0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00454aa0
lea ecx, [esi + 0xc]
call fcn.00474831
lea ecx, [esi + 0x10]
call fcn.00474831
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00456030
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00456030
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00456030
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004748a6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004748a6
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45d000
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x45d04c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x45d04c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x45d036
push eax
call ebp
test ax, ax
jl 0x45d044
inc esi
add edi, 4
cmp esi, 6
jb 0x45d028
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0045cd00
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x460c90
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x460cf0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x460cf0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x460cf0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x460cf0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x460d00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x476c4a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x476c82
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00474d01
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00474cd9
jmp 0x476c8e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47833f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x478381
call fcn.0047e283
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x478381
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x478378
xor eax, eax
jmp 0x478389
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047838f
pop edi
pop esi
pop ebx
ret 4

Function at 0x47e7b3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47e7e1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e7ff
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047e719
jmp 0x47e7ff
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e7ff
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047e719
test edi, edi
mov eax, edi
jne 0x47e7e9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x71e22170
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
push ebx
push 1
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x71e2219f
lea eax, [ebp - 8]
push eax
call fcn.71e2205f
test eax, eax
jne 0x71e221a6
xor al, al
jmp 0x71e22306
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x71e221c2
mov byte [ebp - 1], bl
jmp 0x71e222ed
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x86c]
push 0x71e21320
push eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], ebx
call esi
push edi
lea eax, [ebp - 0x254]
push 0x71e212c0
push eax
call esi
push edi
lea eax, [ebp - 0x45c]
push 0x71e21260
push eax
call esi
push edi
lea eax, [ebp - 0x664]
push 0x71e21200
push eax
call esi
add esp, 0x30
lea eax, [ebp - 0x664]
push eax
mov eax, dword [ebp + 0x14]
add eax, 0x1c
push eax
push ebx
push 4
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov esi, dword [ebp + 8]
mov dword [esi], eax
je 0x71e222eb
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0x254]
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
call edi
cmp eax, ebx
mov dword [esi + 4], eax
je 0x71e222eb
lea eax, [ebp - 0x45c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
call edi
cmp eax, ebx
mov dword [esi + 8], eax
je 0x71e222eb
lea eax, [ebp - 0x86c]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x71e222eb
push ebx
push ebx
push ebx
push 2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x71e222eb
cmp byte [ebp + 0x10], bl
je 0x71e222e7
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x48]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x10]
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x10]
mov dword [eax + 0x10], ebx
mov eax, dword [esi + 0x10]
mov byte [eax + 0x18], bl
mov eax, dword [esi + 0x10]
mov byte [eax + 0x19], bl
mov byte [ebp - 1], 1
pop edi
pop esi
cmp dword [ebp - 8], ebx
je 0x71e22303
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 1]
pop ebx
leave
ret 0x10
Function at 0x71e22363
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0x71e21388
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
test edi, edi
je 0x71e223ba
push 0xa
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
test eax, eax
je 0x71e223b3
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
push dword [ebp + 8]
push 0xe
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
leave
ret 8

Function at 0x71e223bf
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.RPCRT4.dll_UuidCreate]
cmp eax, esi
jne 0x71e2245e
cmp dword [ebp + 8], esi
jne 0x71e223e4
xor eax, eax
jmp 0x71e2245e
lea eax, [ebp - 8]
push eax
push 0xf003f
push esi
push 0x71e213bc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x71e2245e
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
mov edi, eax
cmp edi, esi
je 0x71e22423
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x71e2245d
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 4]
push 1
push esi
push 0x71e21398
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x71e22463
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x10]
and dword [esi], 0
push edi
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x71e224d4
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
mov word [ebp - 0x10], 2
call sub.WSOCK32.dll_bind
mov edi, eax
test edi, edi
jne 0x71e224b4
push 5
push ebx
call sub.WSOCK32.dll_listen
mov edi, eax
test edi, edi
je 0x71e224be
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, edi
jmp 0x71e224d6
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + eax*4], 6
inc dword [esi]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x71e224dd
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], 5
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10c], ebx
jle 0x71e22529
cmp dword [ebp - 0x10c], 0x40
jae 0x71e22523
mov edx, dword [ebp - 0x10c]
mov ecx, dword [edi + eax*4]
mov dword [ebp + edx*4 - 0x108], ecx
inc dword [ebp - 0x10c]
inc eax
cmp eax, dword [ebp + 0xc]
jl 0x71e22504
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x40
call sub.WSOCK32.dll_select
cmp eax, ebx
jne 0x71e2254e
push 0x102
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x71e22553
cmp eax, 0xffffffff
jne 0x71e22558
or eax, 0xffffffff
jmp 0x71e2257d
push esi
xor esi, esi
cmp dword [ebp + 0xc], ebx
jle 0x71e22579
lea eax, [ebp - 0x10c]
push eax
push dword [edi + esi*4]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x71e22583
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x71e22560
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret 8
push ebx
push ebx
push dword [edi + esi*4]
call sub.WSOCK32.dll_accept
jmp 0x71e2257c

Function at 0x71e2258f
Capabilities:
Get hostname
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x14], 6
je 0x71e225a3
push 0x57
pop eax
jmp 0x71e22638
push esi
push 0x10
pop esi
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0x14], esi
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
jne 0x71e225c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x71e22637
cmp dword [ebp + 0x14], esi
jbe 0x71e225d3
mov eax, 0xc7ff0001
jmp 0x71e22637
push esi
lea eax, [ebp - 0x10]
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x71e225bf
lea eax, [ebp - 0x10]
push eax
call sub.WSOCK32.dll_gethostbyname
mov edx, dword [ebp + 0xc]
and dword [edx], 0
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x71e22635
push ebx
push edi
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov ebx, ecx
shr ecx, 2
lea esi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax + 0xc]
mov ecx, dword [edx]
mov ecx, dword [esi + ecx*4]
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
add dword [ebp + 8], 0x10
mov dword [esi + 4], ecx
inc dword [edx]
mov ecx, dword [edx]
mov esi, dword [eax + 0xc]
cmp dword [esi + ecx*4], 0
jne 0x71e225fb
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x71e2328f
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push 0x71e215a4
lea eax, [ebp - 0x20c]
push eax
call fcn.71e22853
xor esi, esi
cmp eax, esi
jne 0x71e23315
lea eax, [ebp - 4]
push eax
push 0x30006
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
cmp ecx, esi
je 0x71e232dc
dec eax
dec eax
neg eax
sbb eax, eax
and eax, ecx
jmp 0x71e23315
cmp dword [ebp + 8], esi
je 0x71e232fa
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x71e21588
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x71e23308
push 0x71e21588
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4

Function at 0x71e2354b
Capabilities:
Get system information on windows

Disassembly:
push 0xe8
push 0x71e21c68
call fcn.71e25664
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x71e23686
cmp dword [ebp + 0xc], eax
je 0x71e23686
cmp dword [ebp + 0x14], eax
je 0x71e23686
lea edi, [esi + 0x5c]
mov dword [edi], 0xa
lea ebx, [esi + 0xc]
push edi
lea eax, [esi + 0x34]
push eax
push ebx
call fcn.71e22463
test eax, eax
jne 0x71e235df
mov byte [esi + 9], 1
and dword [ebp - 0x28], eax
cmp dword [edi], eax
jle 0x71e235df
push dword [ebx + 0x28]
push dword [ebx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
shl eax, 4
lea eax, [ebp + eax - 0xcc]
push eax
call fcn.71e2258f
test eax, eax
jne 0x71e23689
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x24], eax
inc dword [ebp - 0x28]
add ebx, 4
mov eax, dword [ebp - 0x28]
cmp eax, dword [edi]
jl 0x71e235a8
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp + 0x10]
lea edi, [eax + ecx - 1]
dec eax
not eax
and edi, eax
cmp byte [esi + 8], 0
je 0x71e2361d
lea eax, [edi + edi*4]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esi + 0x78]
push eax
call fcn.71e22170
mov byte [esi + 0xa], al
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + 0xa]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x24]
lea eax, [esi + 9]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi + 4]
call fcn.71e23368
mov dword [ebp - 0xf4], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0xf4]
jmp 0x71e23689
push 0x57
pop eax
call fcn.71e2569d
ret 0x10