joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4797f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], edi
cmp dword [eax + 0x240b0], ebx
jne 0x42a049
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ecx + 0x240b0]
jge 0x42a16d
lea eax, [ebx*8]
push 1
sub eax, ebx
push 0
push 0
push 0
lea esi, [eax + eax*4]
shl esi, 3
mov eax, dword [esi + ecx + 0x20a04]
test eax, eax
jne 0x42a096
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [edi + 4]
mov dword [esi + ecx + 0x20a00], eax
jmp 0x42a0aa
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edx, dword [edi + 4]
mov dword [esi + edx + 0x20a00], eax
mov eax, dword [edi + 4]
mov word [ebp - 0x34], 2
mov cx, word [esi + eax + 0x20b14]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x32], ax
mov eax, dword [edi + 4]
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x34]
mov ecx, dword [esi + eax + 0x20a00]
push 0x10
push edx
push ecx
call dword [sym.imp.WS2_32.dll_bind]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x42a167
mov edx, dword [edi + 4]
mov eax, dword [esi + edx + 0x20a00]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x18]
push 0x4869b0
push eax
mov edx, dword [esi + ecx + 0x20b14]
mov dword [ebp - 0x18], edx
call fcn.0045985d
mov ecx, dword [ebp - 0x14]
lea edi, [ecx - 1]
test edi, edi
jle 0x42a145
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
xor esi, esi
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov ecx, dword [esi + eax + 0x20a00]
push ecx
call ebx
add esi, 0x118
dec edi
jne 0x42a12c
mov edx, dword [ebp - 0x24]
mov eax, 0x42a153
neg edx
mov dword [ebp - 0x1c], edx
ret
inc ebx
jmp 0x42a04c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
push edi
push 0x429fb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [edi + 0x30], eax
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ab40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, 0x201c
call fcn.00457d20
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x1a
mov esi, str.HTTP_1.0_200_OK_r_nServer:_Youngzsoft.com_r_nContent_Type:_application_octet_stream_r_nAccept_Ranges:_bytes_r_n_r_n
lea edi, [esp + 0x1024]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x3e5
lea edi, [esp + 0x108e]
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 4]
or ecx, 0xffffffff
stosw word es:[edi], ax
stosb byte es:[edi], al
add edx, 0xb9d8
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42abaa
mov eax, dword [esp + 0x202c]
push edx
push eax
mov ecx, ebx
call fcn.0041c1a0
pop edi
pop esi
pop ebx
add esp, 0x201c
ret 4
mov cl, byte [0x493b50]
xor eax, eax
mov byte [esp + 0x20], cl
mov ecx, 0x400
lea edi, [esp + 0x21]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
push ebp
mov ebp, dword [esp + 0x2030]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x1b]
and eax, 0xff
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0x1a]
push edx
mov edx, dword [esp + 0x1d]
push eax
mov eax, dword [esp + 0x20]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
push eax
lea ecx, [esp + 0x38]
push str.function_FindProxyForURL_url__host__r_n_r_nreturn__PROXY__d._d._d._d:_d__
push ecx
call fcn.00457c43
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1028]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1028]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
mov ecx, ebx
call fcn.0041c1a0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x201c
ret 4
Function at 0x42b2e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0xffffffffffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
add esp, 0x10c
ret 4
Function at 0x434a10
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
mov esi, dword [esp + 0x424]
push edi
mov ebp, ecx
mov eax, dword [esi]
test eax, 0x800000
je 0x434a3b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret 0xc
and eax, 0xf0ffffff
lea ebx, [ebp + 0xa0]
mov dword [esi], eax
lea edi, [esi + 0xc]
mov dword [ebx], esi
mov eax, dword [esi]
add ebx, 4
test eax, 0x780000
jne 0x434c02
mov ax, word [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 1
jne 0x434bec
test dword [esi + 4], 0xffff0000
jne 0x434bec
test dword [esi + 8], 0xffffffff
jne 0x434bec
test byte [edi], 0xc0
jne 0x434a96
mov dword [ebx], edi
add ebx, 4
mov edx, dword [esp + 0x42c]
lea ecx, [esp + 0x20]
mov dword [ebx], 0
push 0x401
push ecx
lea ebx, [esi + edx]
push edi
push ebx
push esi
mov ecx, ebp
call fcn.00434020
test eax, eax
jl 0x434bf4
add edi, eax
xor eax, eax
xor ecx, ecx
mov ah, byte [edi]
mov ch, byte [edi + 2]
mov al, byte [edi + 1]
mov cl, byte [edi + 3]
add edi, 2
mov dword [esp + 0x14], eax
add edi, 2
mov dword [esp + 0x18], ecx
cmp edi, ebx
jbe 0x434afa
mov edx, dword [esi]
and edx, 0xf1ffffff
or edx, 0x1000000
mov dword [esi], edx
jmp 0x434c02
cmp eax, 0xfc
jne 0x434b14
mov dword [ebp + 0xa0], 0
mov eax, dword [esi]
and eax, 0xfffeffff
mov dword [esi], eax
mov eax, dword [esp + 0x42c]
mov ecx, dword [esp + 0x430]
sub ecx, eax
lea edx, [esp + 0x20]
mov dword [esp + 0x430], ecx
lea ecx, [esp + 0x20]
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x434b57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret 0xc
push eax
mov ecx, ebp
call fcn.004349d0
mov ebx, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x430]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push esi
push eax
sub edi, esi
push ecx
push ebx
mov ecx, ebp
mov dword [esp + 0x2c], edi
call fcn.004347c0
mov edx, dword [ebx]
mov edi, eax
push edx
call fcn.00459a6a
mov eax, dword [ebx + 0xc]
push eax
call fcn.00459a6a
push ebx
call fcn.00459a6a
add esp, 0xc
test edi, edi
je 0x434c02
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x430]
mov ebx, dword [esp + 0x42c]
mov ecx, eax
and eax, 0xffff
and ecx, 0xffff0000
sub ebp, edi
shl edx, 0x10
add ecx, edx
add ebx, edi
xor ecx, eax
mov dword [esp + 0x430], ebp
mov dword [esp + 0x42c], ebx
mov dword [esi + 4], ecx
jmp 0x434c02
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [esi]
and eax, 0xf1ffffff
or eax, 0x1000000
mov dword [esi], eax
mov ecx, dword [esi + 4]
mov edi, dword [esi]
shr ecx, 0x10
or edi, 0x80800000
push ecx
mov dword [esi], edi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 4]
and eax, 0xffff
shl eax, 0x10
and edx, 0xffff
pop edi
or eax, edx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x428]
pop esi
pop ebp
pop ebx
add esp, 0x414
ret 0xc
Function at 0x4353a0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0xa4], 0
mov ecx, dword [esi + 0x7c]
push 0
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x4be
mov ecx, esi
call fcn.0046db89
mov ecx, eax
call fcn.0046ddbc
push 0
push 0x3e9
mov ecx, esi
call fcn.0046db89
mov ecx, eax
call fcn.0046ddbc
pop esi
ret
Function at 0x436210
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x479aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x4362ba
mov eax, dword [0x491ac4]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0046e592
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0046e5e1
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0046e53e
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4362a1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4362a1
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046e162
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4362d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x436332
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x436540
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
lea eax, [esp]
push esi
push edi
push eax
push str..htm
mov esi, ecx
push bind
call fcn.004362d0
test eax, eax
jne 0x436601
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 8]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 8]
lea eax, [esp + 8]
push edx
push eax
push bind
mov ecx, esi
call fcn.004362d0
test eax, eax
jne 0x436601
lea ecx, [esp + 8]
push 0x48e5b4
push ecx
call fcn.00459611
mov esi, eax
add esp, 8
test esi, esi
jne 0x4365d3
lea edx, [esp + 8]
push 0x48e5b0
push edx
call fcn.00457ca0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4365d3
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 7]
jmp 0x4365d6
mov byte [esi], 0
push 0x48d1cc
push esi
call edi
mov ecx, dword [esp + 0x214]
push ecx
push esi
call edi
lea edx, [esp + 8]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
add esp, 0x208
ret 8
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret 8
Function at 0x437c90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
lea eax, [esp]
push edi
push eax
push str..htm
push bind
call fcn.00418290
add esp, 0xc
test eax, eax
jne 0x437d49
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 4]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 4]
lea eax, [esp + 4]
push edx
push eax
push bind
call fcn.00418290
add esp, 0xc
test eax, eax
jne 0x437d49
push esi
lea ecx, [esp + 8]
push 0x48e5b4
push ecx
call fcn.00459611
mov esi, eax
add esp, 8
test esi, esi
jne 0x437d25
lea edx, [esp + 8]
push 0x48e5b0
push edx
call fcn.00457ca0
mov esi, eax
add esp, 8
test esi, esi
jne 0x437d25
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 7]
jmp 0x437d28
mov byte [esi], 0
push 0x48d1cc
push esi
call edi
mov ecx, dword [esp + 0x214]
push ecx
push esi
call edi
lea edx, [esp + 8]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop edi
add esp, 0x208
ret
Function at 0x43ac40
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Start service
Stop service

Disassembly:
mov eax, 0x101c
call fcn.00457d20
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
mov ebx, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x43acd5
lea eax, [ebx + 0x8c]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x43acce
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x43acc0
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
je 0x43acc0
cmp dword [esp + 0x14], 3
jne 0x43acc0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push esi
call ebp
test eax, eax
jne 0x43aca2
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x43acf5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x101c
ret
lea ecx, [esp + 0x2c]
push 0x7d0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43ad16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x101c
ret
lea edx, [esp + 0x2c]
push str._service
push edx
lea eax, [esp + 0x834]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x82c]
lea ebp, [ebx + 0x8c]
add ebx, 0x28
push 0
push 0
push 0
push 0
push 0
push ecx
push 1
push 2
push 0x110
push 0xf01ff
push ebx
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x43ad80
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x101c
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call ebx
push esi
call ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x43adf2
push 0x14
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x43adef
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
je 0x43adec
cmp dword [esp + 0x14], 2
jne 0x43adec
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push esi
call ebp
test eax, eax
jne 0x43adce
push esi
call ebx
push edi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x101c
ret
Function at 0x43ae10
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0
mov ecx, 0x493b80
call fcn.00414c30
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x43ae68
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
mov ecx, 0x493b80
call fcn.00414c30
push eax
call esi
test eax, eax
je 0x43ae68
push 0x3e8
call ebp
jmp 0x43ae4c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x43aef6
add edi, 0x8c
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x43aee2
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x43aed4
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
je 0x43aed4
cmp dword [esp + 0x14], 3
jne 0x43aed4
push 0x3e8
call ebp
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x43aeba
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret

Function at 0x43b1e0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
lea eax, [esp]
push ebx
push esi
push eax
call fcn.00413e30
mov esi, dword [eax]
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x43b26f
push 0x14
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x43b222
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x43b26f
push ebp
push edi
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
je 0x43b261
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], 2
jne 0x43b261
push 0x3e8
call ebp
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x43b247
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop ebp
lea ecx, [esp + 8]
call fcn.0046e162
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x43c320
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x47a17b
push eax
mov eax, 0x2014
mov dword fs:[0], esp
call fcn.00457d20
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
mov eax, dword [ebx + 0x78]
push 0
push 0
push 0x14b
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x43c418
mov eax, dword [esi + 0xc]
xor edi, edi
cmp dword [eax], 0
je 0x43c418
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x14]
call fcn.0046e1d0
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x78]
push eax
push 0
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor ebp, ebp
mov esi, 0x49eab0
cmp dword [esi], 0
je 0x43c3d5
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [esi], eax
je 0x43c3d0
add esi, 4
cmp esi, 0x49ead8
jl 0x43c3af
jmp 0x43c3d5
mov ebp, 1
mov eax, dword [ebx + 0x78]
push ebp
push edi
push 0x151
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
mov dword [esp + 0x202c], 0xffffffff
cmp edi, 0xa
lea ecx, [esp + 0x10]
jge 0x43c413
call fcn.0046e162
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
cmp dword [eax + edi*4], 0
jne 0x43c37c
jmp 0x43c418
call fcn.0046e162
push 0x48d23c
push 0x49e6ac
lea ecx, [esp + 0x20]
call fcn.00442a00
lea ecx, [esp + 0x18]
call fcn.00442a60
mov edx, dword [ebx + 0x78]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x14c
push edx
call esi
push 0
push eax
mov eax, dword [ebx + 0x78]
push 0x14e
push eax
call esi
mov ecx, ebx
call fcn.0043c5d0
mov ecx, dword [esp + 0x2024]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2020
ret
Function at 0x43c900
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x4905b4]
push esi
mov word [0x4940f4], ax
inc eax
mov dword [0x4905b4], eax
mov eax, dword [0x4905b8]
mov word [0x4940f6], ax
inc eax
push edi
mov dword [0x4905b8], eax
mov edi, ecx
mov byte [0x4940f0], 8
mov byte [0x4940f1], 0
mov word [0x4940f2], 0
xor eax, eax
mov cl, al
add cl, 0x20
mov byte [eax + 0x4940fd], cl
inc eax
cmp eax, 0x20
jl 0x43c93f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2d
push 0x4940f0
mov ecx, edi
mov dword [0x4940f9], eax
call fcn.0043cb20
mov edx, dword [esp + 0x10]
push 0x10
push edx
mov word [0x4940f2], ax
mov eax, dword [esp + 0x14]
push 0
push 0x2d
push 0x4940f0
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43c99d
push str.sendto__
mov ecx, edi
call fcn.0043ca80
mov eax, esi
pop edi
pop esi
ret 8

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

Disassembly:
sub esp, 0x148
push esi
mov esi, ecx
mov ecx, dword [esp + 0x154]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x154]
push ecx
push 0
lea edx, [esp + 0x14]
push 0x141
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x43ca14
push str.recvfrom__
mov ecx, esi
call fcn.0043ca80
mov ecx, dword [esp + 0x158]
mov dl, byte [esp + 0x10]
mov eax, dword [esp + 0x25]
pop esi
mov byte [ecx], dl
add esp, 0x148
ret 0xc
mov eax, dword [esp + 0x158]
mov cl, byte [esp + 0x10]
pop esi
mov byte [eax], cl
mov eax, dword [esp + 0x21]
add esp, 0x148
ret 0xc

Function at 0x43ca30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_select]
add esp, 0x10c
ret 4

Function at 0x43ca80
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x404
mov al, byte [0x493b50]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov byte [esp + 0x10], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x418]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s___WSAError:__ld_r_n
push edx
call fcn.00457c43
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 8]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret 4