joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c530
Capabilities:
Get number of processors

Disassembly:
mov dword [ecx], 0x4b5f70
jmp fcn.00492200

Function at 0x44e510
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4afae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00499780
lea edi, [esi + 0x1c]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00499830
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x2c], eax
mov dword [edi], 0x4b6114
mov dword [esi + 0x28], edx
mov byte [esi + 0x62], bl
mov dword [esi + 0x64], ebx
mov dword [esi], 0x4b610c
mov byte [esi + 0x30], bl
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x458d20
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b097b
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebp
push esi
push edi
mov esi, ecx
push str.config_sleeplist.dta
call fcn.00485230
add esp, 4
test al, al
je 0x458d67
push str.config_sleeplist.dta
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x458d67
xor al, al
jmp 0x458e7b
lea ecx, [esp + 0xc]
call fcn.00489cd0
push 0
push 1
push 1
push str.config_sleeplist.dta
lea ecx, [esp + 0x1c]
mov dword [esp + 0x140], 0
call fcn.00489d20
test al, al
jne 0x458dae
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.00489d10
xor al, al
jmp 0x458e7b
lea eax, [esp + 0x1c]
push 4
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 1
call fcn.00489f00
test al, al
jne 0x458de5
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.00489d10
xor al, al
jmp 0x458e7b
mov ebp, dword [sym.imp.kernel32.dll_GetTempFileNameA]
xor edi, edi
mov eax, dword [esi + 0x48]
test eax, eax
je 0x458e65
mov ecx, dword [esi + 0x4c]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x458e65
lea edx, [esp + 0x20]
mov byte [esp + 0x20], 0
push edx
push 0
push 0x4d83ac
push str.temp_
call ebp
mov eax, dword [esi + 0x48]
lea ecx, [esp + 0x20]
push ecx
mov edx, dword [eax + edi*4]
mov ecx, dword [edx]
call fcn.0041e3f0
test al, al
je 0x458e62
lea eax, [esp + 0x20]
push 0x105
push eax
lea ecx, [esp + 0x14]
call fcn.00489f00
test al, al
je 0x458dca
mov eax, dword [esi + 0x48]
push 4
mov ecx, dword [eax + edi*4]
add ecx, 4
push ecx
lea ecx, [esp + 0x14]
call fcn.00489f00
test al, al
je 0x458dca
inc edi
jmp 0x458ded
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.00489d10
mov al, 1
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x128
ret

Function at 0x458f40
Capabilities:
Get number of processors

Disassembly:
mov dword [ecx], 0x4b6d08
jmp fcn.00492200
Function at 0x4619a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b1120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4d5f90]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x1c], 1
test eax, eax
je 0x4619f2
push eax
lea eax, [esp + 0x14]
push str.Domain__s__
push eax
call fcn.004a0e91
add esp, 0xc
mov esi, dword [esp + 0x34]
test esi, esi
je 0x461a20
push str.Host_
lea ecx, [esp + 0x14]
call fcn.004a37e2
push esi
lea ecx, [esp + 0x14]
call fcn.004a37e2
push 0x4d3058
lea ecx, [esp + 0x14]
call fcn.004a37e2
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
mov ecx, edi
call fcn.0041c9b0
mov ecx, eax
call fcn.0044bcd0
mov ecx, dword [esp + 0x24]
push eax
push esi
push ecx
lea edx, [esp + 0x18]
push str._s:__sFrom__s___To_
push edx
call fcn.004a0e91
mov esi, dword [esp + 0x40]
add esp, 0x14
test esi, esi
jne 0x461af3
mov ecx, edi
call fcn.0041c980
test eax, eax
jle 0x461aa5
push esi
mov ecx, edi
call fcn.0041c9a0
mov ecx, eax
call fcn.0044bcd0
push eax
lea ecx, [esp + 0x10]
call fcn.004a37e2
mov ecx, edi
call fcn.0041c980
dec eax
cmp esi, eax
jge 0x461a99
push 0x4ca628
lea ecx, [esp + 0x10]
call fcn.004a37e2
mov ecx, edi
inc esi
call fcn.0041c980
cmp esi, eax
jl 0x461a66
push 0x4d244c
lea ecx, [esp + 0x10]
call fcn.004a37e2
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 0x50]
push edx
call fcn.0045da20
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call fcn.004a3625
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004a3625
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
xor edi, edi
mov eax, dword [esi + 4]
test eax, eax
je 0x461aa5
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x461aa5
mov ecx, dword [eax + edi*4]
call fcn.0044bcd0
push eax
lea ecx, [esp + 0x10]
call fcn.004a37e2
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x461b25
xor eax, eax
jmp 0x461b2d
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
dec eax
cmp edi, eax
jae 0x461b40
push 0x4ca628
lea ecx, [esp + 0x10]
call fcn.004a37e2
inc edi
jmp 0x461af5

Function at 0x4661a0
Capabilities:
Delete file

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
mov ebp, dword [sym.imp.kernel32.dll_DeleteFileA]
mov cl, byte [esi + 0x18]
push edi
lea eax, [esi + 0x18]
mov dword [esi], 0x4b8430
test cl, cl
je 0x4661bf
push eax
call ebp
xor edi, edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4661ee
mov ecx, dword [esi + 0x10]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x4661ee
mov edx, eax
mov eax, dword [edx + edi*4]
push eax
call ebp
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + edi*4]
push edx
call fcn.004a2a3d
add esp, 4
inc edi
jmp 0x4661c1
mov eax, dword [esi + 0xc]
push eax
mov dword [esp + 0x10], eax
call fcn.004a2a3d
add esp, 4
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x466760
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov esi, ecx
xor edi, edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x466808
mov ecx, dword [esi + 0x10]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x466808
mov edx, dword [eax + edi*4]
push ebx
add edx, 0x105
push edx
call fcn.0047f7d0
add esp, 8
test eax, eax
je 0x4667a0
inc edi
jmp 0x46676b
mov eax, dword [esi + 0xc]
shl edi, 2
mov eax, dword [edi + eax]
push eax
call fcn.00485230
add esp, 4
test al, al
je 0x4667c7
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + eax]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
je 0x466808
mov edx, dword [esi + 0xc]
mov eax, dword [edx + edi]
push eax
call fcn.004a2a3d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
add ecx, edi
add esp, 4
lea eax, [ecx + 4]
cmp eax, edx
je 0x4667f3
sub ecx, eax
mov edi, dword [eax]
mov dword [ecx + eax], edi
add eax, 4
cmp eax, edx
jne 0x4667e7
mov eax, dword [esi + 0x10]
pop edi
add eax, 0xfffffffc
mov dword [esi + 0x10], eax
mov dword [esp + 0xc], eax
pop esi
mov al, 1
pop ebx
ret 4
pop edi
pop esi
xor al, al
pop ebx
ret 4

Function at 0x466810
Capabilities:
Delete file

Disassembly:
mov al, byte [ecx + 0x18]
push esi
lea esi, [ecx + 0x18]
test al, al
je 0x466822
push esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [esp + 8]
push 0x105
push eax
push esi
call fcn.00486310
add esp, 0xc
pop esi
ret 4
Function at 0x47a319
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47a371
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4d83ac
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x47a364
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
jmp 0x47a373
xor eax, eax
pop esi
leave
ret 4

Function at 0x48018d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d6be0
cmp edx, dword [eax]
je 0x4801af
add eax, 8
inc ecx
cmp eax, 0x4d6c70
jl 0x4801a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d6be0]
jne 0x4802dd
mov eax, dword [0x4da430]
cmp eax, 1
je 0x4802b7
test eax, eax
jne 0x4801e0
cmp dword [0x4d64d4], 1
je 0x4802b7
cmp edx, 0xfc
je 0x4802dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x480217
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004802e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0047e9f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x48025a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0047e9f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4d4278
push edi
call fcn.004824f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004802e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004802f0
lea eax, [ebp - 0xa0]
push 0x4d0af0
push eax
call fcn.004802f0
push dword [esi + 0x4d6be4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004802f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00482465
add esp, 0x2c
pop edi
jmp 0x4802dd
lea eax, [ebp + 8]
lea esi, [esi + 0x4d6be4]
push 0
push eax
push dword [esi]
call fcn.0047e9f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret

Function at 0x483a20
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
push 2
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x483a80
mov eax, dword [esp + 0x10]
push 0
mov ecx, dword [esp + 0x10]
push 0
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push eax
push 1
push 2
push 0x110
push 0xf003f
push ecx
push edx
push esi
call dword [sym.imp.advapi32.dll_CreateServiceA]
test eax, eax
je 0x483a79
push edi
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
mov al, 1
pop esi
ret 0xc
push esi
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
xor al, al
pop esi
ret 0xc
Function at 0x483d20
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x483d89
mov eax, dword [esp + 0x28]
push 0xf003f
push eax
push edi
call dword [sym.imp.advapi32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x483d82
lea ecx, [esp + 8]
push ebx
push ecx
push esi
xor bl, bl
call dword [sym.imp.advapi32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x483d6b
cmp dword [esp + 0x10], 4
jne 0x483d6b
mov bl, 1
push esi
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov al, bl
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 4
push edi
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
pop edi
xor al, al
pop esi
add esp, 0x1c
ret 4

Function at 0x483da0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x483e04
mov eax, dword [esp + 0x28]
push 0xf003f
push eax
push edi
call dword [sym.imp.advapi32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x483dfd
lea ecx, [esp + 8]
push ebx
push ecx
push 1
push esi
xor bl, bl
call dword [sym.imp.advapi32.dll_ControlService]
cmp eax, 1
jne 0x483de6
mov bl, al
push esi
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov al, bl
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 4
push edi
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
pop edi
xor al, al
pop esi
add esp, 0x1c
ret 4

Function at 0x483e10
Capabilities:
Start service

Disassembly:
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x483e6b
mov eax, dword [esp + 0xc]
push 0xf003f
push eax
push edi
call dword [sym.imp.advapi32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x483e64
push ebx
push 0
push 0
push esi
xor bl, bl
call dword [sym.imp.advapi32.dll_StartServiceA]
cmp eax, 1
jne 0x483e50
mov bl, al
push esi
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov al, bl
pop ebx
pop edi
pop esi
ret 4
push edi
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
pop edi
xor al, al
pop esi
ret 4

Function at 0x483f90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
add esp, 0x190
ret

Function at 0x483fd0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0xc]
push 6
push 1
push 2
call dword [sym.imp.ws2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x484016
lea ecx, [esp + 4]
mov dword [esp + 4], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
test eax, eax
jne 0x48400f
mov al, 1
pop esi
pop ecx
ret
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
mov dword [esi + 0x2c], 1
xor al, al
pop esi
pop ecx
ret
Function at 0x484030
Capabilities:
Connect socket
Get socket status

Disassembly:
sub esp, 0x120
xor eax, eax
push ebx
mov ebx, dword [esp + 0x128]
push ebp
push esi
mov esi, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x484189
mov ecx, esi
call fcn.00483fd0
test al, al
je 0x484189
lea eax, [esp + 0x28]
mov ecx, esi
push eax
push ebx
call fcn.00484720
test al, al
jne 0x48408b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x120
ret 8
mov edx, dword [esp + 0x138]
mov ecx, dword [esp + 0x28]
xor eax, eax
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.ws2_32.dll_htons_1]
mov ecx, dword [esi + 4]
mov word [esp + 0x1a], ax
lea eax, [esp + 0x18]
push 0x10
push eax
push ecx
call dword [sym.imp.ws2_32.dll_connect]
test eax, eax
jne 0x4840f2
mov ecx, esi
call fcn.00484320
mov ebx, 1
pop edi
mov dword [esi + 0x30], ebx
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x120
ret 8
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x48417b
mov edi, dword [sym.imp.ws2_32.dll_select]
mov ebx, 1
xor ebp, ebp
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
push ebp
push ecx
push ebp
push ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call edi
test eax, eax
jg 0x484162
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebp
push ebp
push ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call edi
test eax, eax
jg 0x48417b
push 2
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x48410c
mov ecx, esi
call fcn.00484320
mov dword [esi + 0x30], ebx
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x120
ret 8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
mov dword [esi + 0x2c], 3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x120
ret 8
Function at 0x484320
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.ws2_32.dll_getpeername]
mov edi, dword [sym.imp.ws2_32.dll_inet_ntoa]
mov ebx, dword [sym.imp.ws2_32.dll_htons]
test eax, eax
jne 0x48438d
mov eax, dword [esp + 0x14]
push 0x10
push eax
call edi
lea ecx, [esi + 8]
push eax
push ecx
call fcn.00486310
mov edx, dword [esp + 0x1e]
add esp, 0xc
push edx
call ebx
mov cl, byte [esp + 0x17]
mov word [esi + 0x18], ax
mov eax, dword [esp + 0x14]
mov byte [esi + 0x43], cl
mov byte [esi + 0x40], al
mov al, byte [esp + 0x16]
mov byte [esi + 0x41], ah
mov byte [esi + 0x42], al
mov ecx, dword [esi + 4]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.ws2_32.dll_getsockname]
test eax, eax
jne 0x4843e6
mov edx, dword [esp + 0x14]
push 0x10
push edx
call edi
push eax
lea eax, [esi + 0x1a]
push eax
call fcn.00486310
mov ecx, dword [esp + 0x1e]
add esp, 0xc
push ecx
call ebx
mov dl, byte [esp + 0x16]
mov word [esi + 0x2a], ax
mov eax, dword [esp + 0x14]
mov byte [esi + 0x3e], dl
mov byte [esi + 0x3c], al
mov al, byte [esp + 0x17]
mov byte [esi + 0x3d], ah
mov byte [esi + 0x3f], al
pop edi
pop esi
pop ebx
add esp, 0x14
ret

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

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x30], 1
je 0x4844c2
mov eax, dword [esp + 0x10]
mov dword [esi + 0x2c], 8
pop edi
pop esi
mov dword [eax], 0
xor al, al
ret 8
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 4]
push 0
mov ecx, dword [edi]
push ecx
push edx
push eax
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x484509
mov dword [edi], 0
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x48450c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
mov dword [esi + 0x2c], 0xa
pop edi
xor al, al
pop esi
ret 8
add dword [esi + 0x38], eax
pop edi
mov al, 1
pop esi
ret 8

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

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x30], 1
je 0x484542
mov eax, dword [esp + 0x10]
mov dword [esi + 0x2c], 8
pop edi
pop esi
mov dword [eax], 0
xor al, al
ret 8
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 4]
push 0
mov ecx, dword [edi]
push ecx
push edx
push eax
call dword [sym.imp.ws2_32.dll_recv]
test eax, eax
mov dword [edi], eax
jne 0x484575
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
mov dword [esi + 0x2c], 0xa
pop edi
xor al, al
pop esi
ret 8
cmp eax, 0xffffffff
jne 0x4845a2
mov dword [edi], 0
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4845a5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov dword [esi + 0x2c], 0xa
pop edi
xor al, al
pop esi
ret 8
add dword [esi + 0x34], eax
pop edi
mov al, 1
pop esi
ret 8
Function at 0x484720
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ebx, ecx
push esi
call dword [sym.imp.ws2_32.dll_inet_addr]
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
mov dword [edi], eax
call dword [sym.imp.ws2_32.dll_htonl]
cmp dword [edi], eax
jne 0x484769
push esi
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
jne 0x48475c
pop edi
mov dword [ebx + 0x2c], 2
pop esi
xor al, al
pop ebx
ret 8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x48474d
mov ecx, dword [eax]
mov dword [edi], ecx
pop edi
pop esi
mov al, 1
pop ebx
ret 8

Function at 0x484780
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.ws2_32.dll_inet_addr]
push 0xffffffffffffffff
call dword [sym.imp.ws2_32.dll_htonl]
test eax, eax
je 0x4847b2
push esi
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
jne 0x4847a7
xor al, al
pop esi
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4847a3
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push ecx
push eax
call dword [sym.imp.ws2_32.dll_inet_ntoa]
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.00486310
add esp, 0xc
mov al, 1
pop esi
ret
Function at 0x484ed0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b2d0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebp
push esi
lea ecx, [esp + 8]
call fcn.00489cd0
mov esi, dword [esp + 0x434]
xor ebp, ebp
push esi
mov dword [esp + 0x430], ebp
call fcn.00485230
add esp, 4
test al, al
je 0x484f39
push esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x484f39
lea ecx, [esp + 8]
mov dword [esp + 0x42c], 0xffffffff
call fcn.00489d10
xor al, al
jmp 0x485098
push ebp
push 1
push 1
push esi
lea ecx, [esp + 0x18]
call fcn.00489d20
test al, al
jne 0x484f67
lea ecx, [esp + 8]
mov dword [esp + 0x42c], 0xffffffff
call fcn.00489d10
xor al, al
jmp 0x485098
mov eax, dword [esp + 0x440]
lea ecx, [esp + 0x18]
push 0xc
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0xb5759a2
mov dword [esp + 0x24], 1
call fcn.00489eb0
test eax, eax
jne 0x484fb1
lea ecx, [esp + 8]
mov dword [esp + 0x42c], 0xffffffff
call fcn.00489d10
xor al, al
jmp 0x485098
mov edx, dword [esp + 0x438]
push 0x18
push edx
lea ecx, [esp + 0x10]
call fcn.00489eb0
cmp eax, 0x18
je 0x484fe4
lea ecx, [esp + 8]
mov dword [esp + 0x42c], 0xffffffff
call fcn.00489d10
xor al, al
jmp 0x485098
mov eax, dword [esp + 0x43c]
push 0x18
push eax
lea ecx, [esp + 0x10]
call fcn.00489eb0
cmp eax, 0x18
je 0x485017
lea ecx, [esp + 8]
mov dword [esp + 0x42c], 0xffffffff
call fcn.00489d10
xor al, al
jmp 0x485098
push ebx
push edi
call fcn.0047b11b
mov ebx, eax
and ebx, 0x800fffff
jns 0x485030
dec ebx
or ebx, 0xfff00000
inc ebx
cmp ebx, ebp
jle 0x485080
call fcn.0047b11b
xor edx, edx
mov ecx, 0x3ff
div ecx
xor edi, edi
mov esi, edx
inc esi
test esi, esi
jle 0x485067
call fcn.0047b11b
and eax, 0x800000ff
jns 0x48505e
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + edi + 0x2c], al
inc edi
cmp edi, esi
jl 0x48504b
lea edx, [esp + 0x2c]
push esi
push edx
lea ecx, [esp + 0x18]
call fcn.00489eb0
cmp eax, esi
jne 0x485080
add ebp, esi
cmp ebp, ebx
jl 0x485034
lea ecx, [esp + 0x10]
mov dword [esp + 0x434], 0xffffffff
call fcn.00489d10
pop edi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x424]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x428
ret 0x10