joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d230
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a4c20
push 0x10058bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100ae254]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
push str.AddServiceToGroup
call fcn.10007df0
add esp, 4
mov esi, dword [ebp + 0xc]
push esi
mov ebx, dword [ebp + 8]
push ebx
call fcn.1001bd10
mov dword [ebp + 0xc], eax
push str.CreateOrOpenService
call fcn.10007df0
add esp, 4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.1001d660
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x1001d38f
cmp dword [ebp - 0x1c], edi
je 0x1001d2e6
push str.ModifyServiceConfig
call fcn.10007df0
add esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x1c]
call fcn.1001f1d0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001d2f6
push dword [ebp + 0x18]
push eax
call fcn.1001f2d0
push str.StartService
call fcn.10007df0
add esp, 4
push 0
push 0
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1001d355
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.cs_start_svc_f
push 0x1008a498
call fcn.10021880
add esp, 0xc
call esi
push eax
push str.StartService___d_
call fcn.10007df0
push dword [ebp + 8]
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s2
push dword [ebp + 0x24]
call fcn.10008430
add esp, 0x18
jmp 0x1001d369
push esi
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s1
push dword [ebp + 0x24]
call fcn.10008430
add esp, 0x10
push str.cs_done
push 0x1008a498
call fcn.10021760
mov edi, 1
mov dword [ebp - 0x28], edi
push str.CreateLudashiService_suc
call fcn.10007df0
add esp, 0xc
jmp 0x1001d392
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xfffffffe
call fcn.1001d3ba
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x1001d410
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a4bc0
push 0x10058bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x100ae254]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x438], eax
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x43c], ebx
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x440], edi
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x444], ecx
xor esi, esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 4], esi
mov dword [eax], esi
mov dword [ebx], esi
mov dword [edi], esi
mov dword [ecx], esi
push 0x200
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.10058a20
push dword [ebp - 0x430]
push str.__SystemRoot__System32_svchost.exe__k__s
push 0xff
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov eax, dword [ebp - 0x424]
mov dword [eax], ecx
test ecx, ecx
jne 0x1001d50a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager___d_
call fcn.10007df0
add esp, 8
jmp 0x1001d5ed
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
push 1
push 3
push 0x20
push 0xf01ff
push dword [ebp - 0x434]
push dword [ebp - 0x420]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebx], eax
test eax, eax
jne 0x1001d55a
push 0xf01ff
push dword [ebp - 0x420]
mov eax, dword [ebp - 0x424]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebx], eax
push 0x200
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.10058a20
push dword [ebp - 0x420]
push str.SYSTEMCurrentControlSetServices_s
push 0xff
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
push edi
push 0xf023f
push 0
lea eax, [ebp - 0x41c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001d5bb
push eax
push str.RegOpenKeyEx___d_
call fcn.10007df0
add esp, 8
jmp 0x1001d5ed
push dword [ebp - 0x428]
push str.Parameters
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1001d5e2
push eax
push str.RegCreateKey___d_
call fcn.10007df0
add esp, 8
jmp 0x1001d5ed
mov esi, 1
mov dword [ebp - 0x42c], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
call fcn.1001d643
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1001e3c0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100833e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100ae254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10008ad0
push 1
mov ecx, eax
call fcn.10047400
test al, al
jne 0x1001e403
xor eax, eax
jmp 0x1001e512
call fcn.100195e0
mov ecx, eax
call fcn.10014500
test eax, eax
je 0x1001e3fc
lea eax, [ebp - 0x34]
push eax
call fcn.100195e0
mov ecx, eax
call fcn.10014490
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
jne 0x1001e43d
xor esi, esi
jmp 0x1001e4f1
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 0
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.100195e0
mov ecx, eax
call fcn.10014420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push dword [eax]
push dword [ebp - 0x34]
push str.netsvcs
call fcn.1001d410
mov esi, eax
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001e4ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001e4dc
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 1
push esi
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1001e530
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1001e510
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 4
Function at 0x1001f1d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100ae254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push 0x200
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.10058a20
push esi
push str.__SystemRoot__System32_svchost.exe__k__s
lea eax, [ebp - 0x204]
push 0xff
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push 2
push 0
push str.ImagePath
push dword [ebp - 0x208]
call esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push 0x1008b524
push dword [ebp - 0x208]
call esi
xor eax, eax
cmp dword [ebp + 0x14], eax
push 4
setne al
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push str.DelayedAutostart
push dword [ebp - 0x208]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.Description
push dword [ebp - 0x208]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1001f2d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100ae254]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push esi
mov esi, dword [ebp + 8]
push 0x210
push 0
push eax
mov dword [ebp - 0x218], esi
call fcn.10058a20
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x107
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x214]
push eax
push 2
push 0
push str.ServiceDll
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.ServiceMain
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 8
Function at 0x1001f490
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x100ae254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x250
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x674]
push 0
push eax
mov dword [ebp - 0x67c], ebx
call fcn.10058a20
add esp, 0xc
xor eax, eax
test esi, esi
je 0x1001f603
test ebx, ebx
je 0x1001f603
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x424]
push ebx
push eax
call edi
test eax, eax
je 0x1001f600
push dword [ebp - 0x678]
lea eax, [ebp - 0x424]
push eax
call edi
test eax, eax
je 0x1001f600
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001f600
nop dword [eax + eax]
push dword [ebp - 0x67c]
xor eax, eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x1001f5cb
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x1001f5cb
test dword [ebp - 0x674], 0x10
jne 0x1001f592
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.1001e590
jmp 0x1001f5cb
cmp word [ebp - 0x648], 0x2e
jne 0x1001f5b8
mov ax, word [ebp - 0x646]
test ax, ax
je 0x1001f5cb
cmp ax, 0x2e
jne 0x1001f5b8
cmp word [ebp - 0x644], 0
je 0x1001f5cb
push dword [ebp - 0x678]
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.1001f490
lea ecx, [ebp - 0x674]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001f540
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001f620
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a4b08
push 0x10058bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100ae254]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], esi
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], ebx
xor edi, edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], edi
push 0x1008bcc4
call fcn.10007df0
add esp, 4
test ebx, ebx
je 0x1001f81f
push 1
push esi
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x1001f6ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1008bce0
call fcn.10007df0
add esp, 8
jmp 0x1001f81f
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], esi
mov edi, 0x1ffe
mov dword [ebp - 0x58], edi
xor esi, esi
mov dword [ebp - 0x60], esi
cmp esi, 2
jb 0x1001f6e8
mov word [ebx + esi], 0
cmp edi, 0x1ffe
jne 0x1001f6ee
movzx edi, word [ebx]
mov dword [ebp - 0x58], edi
push edi
push 0x1008bd18
call fcn.10007df0
add esp, 8
cmp edi, 0x1ffe
jbe 0x1001f702
push 0x1008bd34
call fcn.10007df0
add esp, 4
jmp 0x1001f7eb
cmp esi, edi
jl 0x1001f718
push str.____n
call fcn.10007df0
add esp, 4
jmp 0x1001f7eb
push 0
push dword [ebp + 0x18]
push 0
lea eax, [ebp - 0x68]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, eax
cmp ebx, 2
jae 0x1001f7d3
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp + ebx*4 - 0x68]
jne 0x1001f751
push 0x1008bda4
call fcn.10007df0
add esp, 4
jmp 0x1001f7e8
push 0x2c
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.10058a20
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x5c]
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test dword [ebp - 0x48], 1
jne 0x1001f789
push str.___._n
call fcn.10007df0
add esp, 4
jmp 0x1001f7e8
push 0
mov eax, edi
sub eax, esi
push eax
mov ebx, dword [ebp - 0x4c]
lea eax, [ebx + esi]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1001f7ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.___:_:_u_n
call fcn.10007df0
add esp, 8
jmp 0x1001f7eb
add esi, eax
mov dword [ebp - 0x60], esi
push esi
push eax
push str.___:_u_u._n
call fcn.10007df0
add esp, 0xc
jmp 0x1001f6c1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push 0x1008bd70
call fcn.10007df0
add esp, 0xc
mov ebx, dword [ebp - 0x4c]
cmp esi, 2
jb 0x1001f802
movzx ecx, word [ebx]
mov edx, ecx
cmp esi, ecx
jne 0x1001f805
mov edi, 1
mov eax, ecx
jmp 0x1001f80a
movzx edx, word [ebx]
xor edi, edi
movzx eax, dx
mov dword [ebp - 0x54], edi
push esi
movzx eax, ax
push eax
push str._____u_u._n
call fcn.10007df0
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
call fcn.1001f84e
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10021560
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a4ae8
push 0x10058bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100ae254]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x58], esi
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], ebx
xor edi, edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], edi
push 0x1008bb6c
call fcn.10007df0
add esp, 4
test ebx, ebx
je 0x1002170a
push 2
push esi
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x100215eb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1008bb88
call fcn.10007df0
add esp, 8
jmp 0x1002170a
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], esi
movzx edi, word [ebx]
xor esi, esi
mov dword [ebp - 0x5c], esi
nop dword [eax]
push 0
push dword [ebp + 0x18]
push 0
lea eax, [ebp - 0x64]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, eax
cmp ebx, 2
jae 0x100216be
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp + ebx*4 - 0x64]
jne 0x10021639
push 0x1008bbf8
call fcn.10007df0
add esp, 4
jmp 0x100216d3
push 0x2c
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.10058a20
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
mov ebx, dword [ebp + 0x10]
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test dword [ebp - 0x48], 2
jne 0x10021672
push 0x1008bc0c
call fcn.10007df0
add esp, 4
jmp 0x100216d3
cmp esi, edi
jge 0x100216d3
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 0x4c]
add eax, esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10021695
add esi, eax
mov dword [ebp - 0x5c], esi
jmp 0x10021672
cmp esi, edi
jge 0x100216d3
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
je 0x10021600
call ebx
push eax
push 0x1008bc28
call fcn.10007df0
add esp, 8
jmp 0x100216d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push 0x1008bbc4
call fcn.10007df0
add esp, 0xc
mov eax, dword [ebp - 0x4c]
cmp esi, 2
jb 0x100216ed
movzx ecx, word [eax]
mov edx, ecx
cmp esi, ecx
jne 0x100216f0
mov edi, 1
mov eax, ecx
jmp 0x100216f5
movzx edx, word [eax]
xor edi, edi
movzx eax, dx
mov dword [ebp - 0x54], edi
push esi
movzx eax, ax
push eax
push 0x1008bc50
call fcn.10007df0
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
call fcn.10021739
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10021b60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x100214c0
push 0
push 0
call fcn.100600a4
add esp, 0x18
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10025ea0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100845cb
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x100ae254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x20], 8
lea edi, [esi + 0xc]
jb 0x10025edb
mov edi, dword [edi]
push 0x180
push 0x40
push 0x8101
lea ebx, [esi + 0x24]
push edi
push ebx
call fcn.10062acd
add esp, 0x14
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10025f99
push 1
push 2
lea ecx, [ebp - 0xc4]
call fcn.10004050
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc4]
push 0x1008d1d0
push dword [ebp - 0x2c]
push str._error.__
push edi
push str.open
push eax
call fcn.100027f0
add esp, 8
push eax
call fcn.100027f0
add esp, 8
push eax
call fcn.100027f0
add esp, 8
mov ecx, eax
call fcn.10006ba0
push eax
call fcn.100027f0
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xc4]
push eax
call fcn.10026040
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x10025f74
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100058f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.10006f70
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x10025faf
push 2
push 0
push eax
call fcn.10062ef6
add esp, 0xc
jmp 0x10025fb2
or eax, 0xffffffff
mov dword [esi + 4], eax
test eax, eax
jne 0x1002601e
push 3
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
push 0x1008d200
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.10011d00
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebx]
cmovae eax, dword [ebp - 0x28]
cmp ecx, 0xffffffff
je 0x10026005
push dword [ebp - 0x18]
push eax
push ecx
call fcn.100634ac
add esp, 0xc
mov edi, eax
jmp 0x10026008
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005870
test edi, edi
jle 0x1002601e
add dword [esi + 4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10051ab7
mov esp, ebp
pop ebp
ret
Function at 0x10026130
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084669
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100ae254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
cmp byte [esi + 8], 0
je 0x10026176
call fcn.10025ea0
mov byte [esi + 8], 0
cmp dword [esi + 4], 0x40000000
jle 0x100261b2
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x10026197
push eax
call fcn.10062b97
add esp, 4
mov dword [esi + 0x24], 0xffffffff
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x100261a2
mov eax, dword [eax]
push eax
call fcn.100621bf
add esp, 4
mov ecx, esi
call fcn.10025ea0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov eax, dword [edi + 0x10]
push 0
add eax, eax
push eax
call fcn.10024ed0
mov edx, dword [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 0x2c], 1
test edx, edx
je 0x10026210
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, edi
cmovae ecx, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x100261ee
mov eax, dword [edi]
push 0
push 0
push edx
push ecx
push dword [edi + 0x10]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10013250
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x1002621b
mov ebx, dword [ebx]
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x10026232
push ecx
push ebx
push eax
call fcn.100634ac
add esp, 0xc
mov ebx, eax
jmp 0x10026235
or ebx, 0xffffffff
mov eax, 1
mov dword [ebp - 0x2c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005870
test ebx, ebx
jle 0x1002625b
add dword [esi + 4], ebx
jmp 0x1002626a
cmp dword [edi + 0x14], 8
jb 0x10026263
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 4