joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10036180
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ce41d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4c
mov eax, dword [0x10100230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x101083bc]
test eax, eax
je 0x100361d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x101083bc], 0
movaps xmm0, xmmword [0x100ebf90]
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0x1c1e7355
mov word [ebp - 0x48], 0x1f1e
mov byte [ebp - 0x46], 0
mov dword [ebp - 4], 0
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x5b]
xor al, byte [ebp - 0x5c]
mov byte [ebp + ecx - 0x45], al
inc ecx
cmp ecx, 0x15
jb 0x10036200
xorps xmm0, xmm0
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x45]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10036230
sub ecx, edx
lea eax, [ebp - 0x45]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000ad50
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
test esi, esi
jne 0x100362b4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x10036295
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003628b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100362e8
push ecx
push edx
call fcn.10091f2c
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10091bd4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x10036295
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003628b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003628b
call fcn.1009dddf
int3
Function at 0x10039ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ceaec
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x10100230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x101083bc]
test eax, eax
je 0x1003a03d
push 0x3e8
push eax
call esi
cmp eax, 0x102
je 0x10039ed2
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101075c4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101085e4]
cmp eax, dword [ecx + 4]
jle 0x10039f4a
push 0x101085e4
call fcn.100920b6
add esp, 4
cmp dword [0x101085e4], 0xffffffff
jne 0x10039f4a
mov dword [ebp - 4], 0
call fcn.1002e240
push 0x100d6550
call fcn.10091f17
push 0x101085e4
mov dword [ebp - 4], 0xffffffff
call fcn.1009206c
add esp, 8
push ecx
lea ecx, [ebp - 0xec]
mov byte [0x10108963], 0
call fcn.100045c0
mov edx, str._TID:
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.10006770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001e850
mov edx, 0x100e846c
mov ecx, eax
call fcn.10006770
movaps xmm0, xmmword [0x100ebef0]
mov esi, eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x41504d08
mov word [ebp - 0x28], 0x5c
mov byte [ebp - 4], 2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x3b]
xor al, byte [ebp - 0x3c]
mov byte [ebp + ecx - 0x26], al
inc ecx
cmp ecx, 0x14
jb 0x10039fb0
lea edx, [ebp - 0x26]
mov byte [ebp - 0x12], 0
mov ecx, esi
call fcn.10006770
mov byte [ebp - 4], 1
call fcn.100037a0
mov esi, eax
lea ecx, [ebp - 0xec]
lea eax, [ebp - 0x2c]
push eax
call fcn.100044d0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x10039ff5
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 2
call fcn.10003ef0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x1003a032
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a028
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a057
push ecx
push edx
call fcn.10091f2c
add esp, 8
lea ecx, [ebp - 0xec]
call fcn.10004400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10091bd4
mov esp, ebp
pop ebp
ret
call fcn.1009dddf
int3
Function at 0x10055330
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d0d3c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10100230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x100553e4
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
push 9
mov byte [edi + 0x68], 9
call fcn.10057730
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea ecx, [edi + 0x10]
mov byte [ebp - 0xd], 1
call fcn.100552e0
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x10055428
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x10058f50
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d11fd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x10100230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x88], eax
mov eax, 3
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
nop word [eax + eax]
movaps xmm0, xmmword [0x100ebe30]
dec eax
mov dword [ebp - 0x88], eax
xor eax, eax
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x74], 0x52585d41
mov dword [ebp - 0x70], 0x5e584550
mov dword [ebp - 0x6c], 0x425b1e5f
mov word [ebp - 0x68], 0x5f5e
mov byte [ebp - 0x66], 0
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x83]
xor cl, byte [ebp - 0x84]
mov byte [ebp + eax - 0x65], cl
inc eax
cmp eax, 0x1d
jb 0x10059030
cmp dword [esi + 0x14], 0x10
mov ecx, esi
mov byte [ebp - 0x48], 0
jb 0x10059055
mov ecx, dword [esi]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1005905f
mov eax, dword [edi]
lea edx, [ebp - 0x44]
push edx
push 0x10059240
push 0x1388
push 0x1388
push 1
lea edx, [ebp - 0x65]
push edx
push ecx
push eax
call dword [sym.imp.HttpClient.dll_HTTPAPI_RequestPost]
add esp, 0x20
cmp dword [ebp - 0x34], 0
jne 0x1005909f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x88]
test eax, eax
jne 0x10058ff0
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
call fcn.10003430
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x100590e0
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100590d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059142
push ecx
push edx
call fcn.10091f2c
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x10059122
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10059118
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059142
push ecx
push edx
call fcn.10091f2c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10091bd4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1009dddf
int3
Function at 0x1005a8e0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10100230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push edi
mov edi, ecx
mov dword [edi + 0xc], 0
mov dword [edi + 0x54], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi], vtable.speed::core::CTCPHandle.0
movups xmmword [edi + 0x5c], xmm0
movq qword [edi + 0x6c], xmm0
mov dword [edi + 0x74], 0
movups xmmword [edi + 0x78], xmm0
movq qword [edi + 0x88], xmm0
mov dword [edi + 0x90], 0
mov dword [edi + 0x58], eax
mov eax, dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [edi + 0x94], 0
cmp dword [0x101083c0], 0
jne 0x1005aa78
push 1
push 0
push 0
push 0
push 1
push 2
call eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1005aa8f
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAIoctl]
lea eax, [ebp - 0x18]
push 0
push 0
push eax
push 4
push 0x101083c0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xb5367df1
push eax
push 0xc8000006
push ebx
mov dword [ebp - 0x10], 0x11cfcbac
mov dword [ebp - 0xc], 0x8000ca95
mov dword [ebp - 8], 0x92a1485f
mov dword [ebp - 0x18], 0
call esi
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x25a207b9
push eax
push 4
push 0x101083c4
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x4660ddf3
push eax
push 0xc8000006
push ebx
mov dword [ebp - 0xc], 0xe576e98e
mov dword [ebp - 8], 0x3e06748c
mov dword [ebp - 0x18], 0
call esi
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0xb5367df2
push eax
push 4
push 0x101083c8
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x11cfcbac
push eax
push 0xc8000006
push ebx
mov dword [ebp - 0xc], 0x8000ca95
mov dword [ebp - 8], 0x92a1485f
mov dword [ebp - 0x18], 0
call esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [sym.imp.WS2_32.dll_WSASocketW]
pop esi
push 1
push 0
push 0
push 6
push 1
push dword [ebp + 8]
call eax
cmp eax, 0xffffffff
je 0x1005aa8f
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.10091bd4
mov esp, ebp
pop ebp
ret 4
Function at 0x1005ab80
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10100230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x58]
cmp eax, 2
je 0x1005abe4
cmp eax, 0x17
jne 0x1005ac4d
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov word [ebp - 0x20], ax
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1005ac4d
push 0x1c
lea eax, [ebp - 0x20]
jmp 0x1005ac18
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x14], xmm0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
push edi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1005ac4d
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1005ac4d
push bind
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
setne al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10091bd4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.10091bd4
mov esp, ebp
pop ebp
ret 8
Function at 0x1005b2b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d15ff
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10100230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], edi
cmp byte [ebp + 0x10], 0
mov dword [ebp - 4], 0
je 0x1005b361
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x1005b313
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
push edi
mov edx, ebx
mov byte [ebp - 4], 0
mov ecx, 2
call fcn.1005a490
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x1005b3ba
xor bl, bl
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x1005b34b
mov esi, dword [ecx]
lea eax, [ebp + 0x14]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
push 0x100dc776
push 0x58
call fcn.100922aa
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x1005b331
sub esp, 0x28
mov edi, esp
mov dword [ebp - 0x18], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x1005b39f
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp - 0x10]
push ebx
push 2
call fcn.1005a3c0
mov edi, eax
test edi, edi
je 0x1005b331
mov ecx, dword [ebp - 0x14]
lea eax, [edi + 0x4c]
push 0
push edi
push 0
push 0
push 1
push eax
mov dword [edi + 0x14], ecx
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xffffffff
jne 0x1005b42f
cmp eax, 0x3e5
je 0x1005b42f
cmp byte [edi + 0x48], 0
je 0x1005b400
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1005b400
push eax
call fcn.10091f5d
add esp, 4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005b41f
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
push 0x58
push edi
call fcn.10091f2c
add esp, 8
jmp 0x1005b331
mov bl, 1
jmp 0x1005b333
Function at 0x1005b440
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d164f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10100230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x1005b4e9
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1005b49d
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
xor edx, edx
mov byte [ebp - 4], 0
push edi
lea ecx, [edx + 3]
call fcn.1005a490
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x1005b542
xor bl, bl
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1005b4d3
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
push 0x100dc776
push 0x58
call fcn.100922aa
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x1005b4b9
sub esp, 0x28
mov edi, esp
mov dword [ebp - 0x18], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1005b527
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp - 0x10]
push ebx
push 3
call fcn.1005a3c0
mov edi, eax
test edi, edi
je 0x1005b4b9
mov ecx, dword [ebp - 0x14]
lea eax, [edi + 0x54]
push 0
push edi
push eax
push 0
push 1
lea eax, [edi + 0x4c]
mov dword [edi + 0x14], ecx
push eax
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xffffffff
jne 0x1005b5b9
cmp eax, 0x3e5
je 0x1005b5b9
cmp byte [edi + 0x48], 0
je 0x1005b58a
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1005b58a
push eax
call fcn.10091f5d
add esp, 4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005b5a9
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
push 0x58
push edi
call fcn.10091f2c
add esp, 8
jmp 0x1005b4b9
mov bl, 1
jmp 0x1005b4bb
Function at 0x1005baf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d177d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x10100230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x58]
cmp eax, 2
je 0x1005bb51
cmp eax, 0x17
jne 0x1005bc5e
push 0x100dc776
push 0x58
call fcn.100922aa
mov edi, eax
add esp, 8
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x1005bc5e
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x1005bb96
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push edx
mov eax, dword [eax]
call eax
mov dword [ebp - 0x2c], eax
lea ecx, [edi + 0x20]
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 1
call fcn.100582e0
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x50], eax
mov eax, dword [ebx + 0x14]
mov byte [edi + 0x48], 0
mov dword [edi + 0x4c], eax
mov dword [edi + 0x54], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1005bbfe
mov edx, dword [ecx]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x2c], 0
test edi, edi
je 0x1005bc5e
push 0
push edi
push dword [ebp - 0x18]
lea eax, [edi + 0x54]
push dword [ebp - 0x1c]
push eax
push 0
push 1
lea eax, [edi + 0x4c]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xffffffff
jne 0x1005bc94
cmp eax, 0x3e5
je 0x1005bc94
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005bc53
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
push 0x58
push edi
call fcn.10091f2c
add esp, 8
xor al, al
mov ecx, dword [ebx + 0x3c]
mov byte [ebp - 0x11], al
test ecx, ecx
je 0x1005bc7e
mov esi, dword [ecx]
lea eax, [ebx + 0x18]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x38
mov al, 1
jmp 0x1005bc60
Function at 0x1005ced0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d19fd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10100230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.10091be2
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov edx, dword [edx]
mov dword [eax], edx
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x1005d1d0
push 0
push 0
call fcn.100a8ff2
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x1005cf4a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [edi], 0
call fcn.1008e89a
int3

Function at 0x1005d230
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 5
push 0
push 0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x1005d2c9
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
push 0x30
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov edi, dword [ebp - 8]
add edi, 0x2c
push edi
call fcn.100a44d7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005d2c9
push edi
push 0
push ebx
call fcn.100942c0
add esp, 0xc
lea eax, [ebp - 4]
push 0
push 0
push eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 3
push 0x30
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
push esi
test eax, eax
jne 0x1005d2d3
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call fcn.1009ece6
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
cmp dword [ebp - 4], esi
jbe 0x1005d2fc
mov edi, ebx
push dword [ebp - 0xc]
push dword [edi]
call fcn.100a90ff
add esp, 8
test eax, eax
je 0x1005d30e
inc esi
add edi, 0x2c
cmp esi, dword [ebp - 4]
jb 0x1005d2e2
push ebx
call fcn.1009ece6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
imul eax, esi, 0x2c
push ebx
mov esi, dword [eax + ebx + 0x24]
call fcn.1009ece6
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret