joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416482
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4164b0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4164b7
cmp ebx, dword [eax + 4]
jae 0x4164b7
xor eax, eax
jmp 0x4166a7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4164c8
xor eax, eax
inc eax
jmp 0x4166a6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4164de
cmp ecx, edx
jae 0x416623
cmp dword [eax + 4], 0
je 0x4164e7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4164cf
cmp dword [ebp + 8], 0
je 0x416509
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x416623
cmp eax, esi
jae 0x416623
mov eax, dword [0x4236e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41652e
cmp dword [esi*4 + 0x4236f0], edi
je 0x416627
inc esi
cmp esi, eax
jl 0x41651c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4166a3
cmp dword [ebp - 8], 0x1000000
jne 0x4166a3
test byte [ebp - 0xc], 0xcc
je 0x4165ac
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4166a3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4166a3
cmp word [eax + 0x18], 0x10b
jne 0x4166a3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4166a3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4165ac
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4165ac
test byte [ecx + 0x27], 0x80
jne 0x416623
push 1
push 0x423730
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4164c0
mov ecx, dword [0x4236e8]
test ecx, ecx
mov edx, ecx
jle 0x4165e0
lea eax, [ecx*4 + 0x4236ec]
cmp dword [eax], edi
je 0x4165e0
dec edx
sub eax, 4
test edx, edx
jg 0x4165d4
test edx, edx
jne 0x416611
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4165ed
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x416605
lea eax, [edx*4 + 0x4236f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4165f3
cmp ecx, 0x10
jge 0x416611
inc ecx
mov dword [0x4236e8], ecx
push 0
push 0x423730
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4164c0
xor eax, eax
jmp 0x4166a6
test esi, esi
jle 0x4164c0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x423730
call ebx
test eax, eax
jne 0x4164c0
cmp dword [esi*4 + 0x4236f0], edi
je 0x41667d
mov eax, dword [0x4236e8]
lea esi, [eax - 1]
test esi, esi
jl 0x41666b
cmp dword [esi*4 + 0x4236f0], edi
je 0x416667
dec esi
jns 0x41665b
test esi, esi
jge 0x41667b
cmp eax, 0x10
jge 0x416676
inc eax
mov dword [0x4236e8], eax
lea esi, [eax - 1]
jmp 0x41667d
je 0x416695
xor ecx, ecx
test esi, esi
jl 0x416695
lea eax, [ecx*4 + 0x4236f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x416683
push 0
push 0x423730
call ebx
jmp 0x4164c0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416d54
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42375c], ebx
push esi
push edi
jne 0x416dd4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416e0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e70c
push edi
call esi
test eax, eax
mov dword [0x42375c], eax
je 0x416e0f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x423760], eax
call esi
cmp dword [0x4233f4], 2
mov dword [0x423764], eax
jne 0x416dd4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42376c], eax
je 0x416dd4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x423768], eax
mov eax, dword [0x423768]
test eax, eax
je 0x416e19
call eax
test eax, eax
je 0x416e00
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42376c]
test eax, eax
je 0x416e00
test byte [ebp - 8], 1
jne 0x416e19
cmp dword [0x423400], 4
jb 0x416e13
or byte [ebp + 0x12], 0x20
jmp 0x416e38
xor eax, eax
jmp 0x416e48
or byte [ebp + 0x12], 4
jmp 0x416e38
mov eax, dword [0x423760]
test eax, eax
je 0x416e38
call eax
mov ebx, eax
test ebx, ebx
je 0x416e38
mov eax, dword [0x423764]
test eax, eax
je 0x416e38
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42375c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417681
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x42119c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4176b2
xor eax, eax
jmp 0x41783b
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x424900]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4176ee
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00418ea9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4177c9
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x417807
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x417752
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x417743
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x417723
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417792
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41779b
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x417714
jmp 0x41779d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x417836
cmp dword [ebp - 0x6c], edi
je 0x417807
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4177fc
call fcn.00414ce3
mov dword [eax], 9
call fcn.00414cec
mov dword [eax], esi
jmp 0x417831
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4177f1
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41779d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41779d
push dword [ebp - 0x6c]
call fcn.00414cf5
pop ecx
jmp 0x417831
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41781f
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41781f
xor eax, eax
jmp 0x417839
call fcn.00414ce3
mov dword [eax], 0x1c
call fcn.00414cec
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x417839
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004120e8
add ebp, 0x3a0
leave
ret
Function at 0x418353
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00412100
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4183ee
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4233f4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4183ee
cmp eax, 1
je 0x41840f
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4183ee
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4183bb
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4183ea
xor eax, eax
inc eax
jmp 0x41842e
cmp edi, eax
jae 0x4183f2
xor eax, eax
jmp 0x41842e
cmp eax, esi
jae 0x4183f9
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4233f4]
jmp 0x418412
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
xor edx, edx
push ebp
push esi
cmp eax, edx
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
jl 0x4010e2
jg 0x40102b
cmp ecx, edx
jbe 0x4010e2
mov ebp, dword [esp + 0x1c]
test eax, eax
mov edi, 0x400
jl 0x4010ef
jg 0x401046
cmp ecx, edi
jb 0x4010ef
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
lea ebx, [ecx + eax]
mov edx, dword [ebp]
push 0
push edi
push ebx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp esi, 0xffffffff
jne 0x401097
cmp eax, 0x2733
jne 0x4010e7
cmp dword [esp + 0x1c], 0x3e8
jge 0x40116c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x1c]
jmp 0x401059
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, esi
cdq
add ecx, eax
adc ebx, edx
sub edi, esi
test edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
jg 0x401046
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
sub ecx, eax
mov eax, esi
mov edx, ebx
sbb eax, edx
cmp edx, esi
jl 0x40102f
jg 0x4010e2
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
cmp esi, edx
jb 0x40102f
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
test ecx, ecx
mov edi, ecx
jle 0x4010e2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
lea ebx, [ecx + eax]
mov edx, dword [ebp]
push 0
push edi
push ebx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp esi, 0xffffffff
jne 0x401142
cmp eax, 0x2733
jne 0x4010e7
cmp dword [esp + 0x1c], 0x3e8
jge 0x40116c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x1c]
jmp 0x401108
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, esi
cdq
add ecx, eax
adc ebx, edx
sub edi, esi
test edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
jg 0x4010f5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0x2733
pop ebx
add esp, 8
ret
Function at 0x401180
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push esi
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x40119b
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], eax
push ecx
mov word [esp + 8], 2
call dword [sym.imp.WSOCK32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0x12], ax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4011e5
or eax, eax
pop esi
add esp, 0x10
ret
lea edx, [esp + 0x18]
push 4
push edx
push 0x100
push 0xffff
push esi
mov dword [esp + 0x2c], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x401219
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
lea eax, [esp + 4]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x40123b
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x4012d0
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x412050]
sub esp, 0x204
push ebx
or ebx, 0xffffffff
cmp eax, ebx
je 0x4012f0
mov eax, 2
pop ebx
add esp, 0x204
ret
mov eax, dword [esp + 0x210]
mov ecx, dword [esp + 0x20c]
push eax
push ecx
call fcn.00401180
add esp, 8
cmp eax, ebx
mov dword [0x412050], eax
je 0x4014b2
push ebp
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x224]
mov ecx, ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov dx, word [esp + 0x220]
mov dword [esp + 0x16], 1
not ecx
dec ecx
mov word [esp + 0x14], dx
mov edx, ecx
mov eax, ecx
lea edi, [esp + 0x18]
mov byte [esp + 0x17], dl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x228]
mov ecx, ebx
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + edx + 0x19]
mov eax, ecx
mov ebp, ecx
shr ecx, 2
mov byte [esp + edx + 0x18], al
lea eax, [eax + edx + 5]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
cdq
rep movsb byte es:[edi], byte [esi]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x412050
call section..text
add esp, 0x10
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push eax
mov eax, dword [0x412050]
lea edx, [esp + 0x18]
push 0x200
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
pop edi
pop esi
test eax, eax
pop ebp
jle 0x401400
mov al, byte [esp + 8]
cmp al, 0xff
jne 0x401441
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x401250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40141b
mov ecx, dword [0x412050]
push 2
push ecx
call dword [sym.imp.WSOCK32.dll_shutdown]
mov edx, dword [0x412050]
push edx
jmp 0x4014a6
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 9]
mov edx, dword [esp + 0x224]
pop ebx
mov dword [eax], ecx
mov ax, word [esp + 9]
mov word [edx], ax
xor eax, eax
add esp, 0x204
ret
test al, al
jne 0x401491
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x401250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401491
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 9]
mov eax, dword [esp + 0x224]
pop ebx
mov dword [ecx], edx
mov cx, word [esp + 9]
mov word [eax], cx
mov eax, 1
add esp, 0x204
ret
mov edx, dword [0x412050]
push 2
push edx
call dword [sym.imp.WSOCK32.dll_shutdown]
mov eax, dword [0x412050]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [0x412050], ebx
mov eax, ebx
pop ebx
add esp, 0x204
ret
Function at 0x401820
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x40efa7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebp
push esi
mov esi, dword [esp + 0x80]
lea eax, [esp + 0x5c]
push esi
xor ebp, ebp
push 0x412080
push eax
mov dword [esp + 0x14], ebp
call fcn.004061b0
push 0x41207c
lea ecx, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x8c], 1
call fcn.00406300
mov edx, dword [esp + 0x9c]
mov byte [esp + 0x8c], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00406430
push 0x412078
lea ecx, [esp + 0x74]
push eax
push ecx
mov byte [esp + 0xa4], 3
call fcn.00406300
push esi
lea edx, [esp + 0x70]
push eax
push edx
mov byte [esp + 0xb0], 4
call fcn.00406430
push 0x41207c
push eax
lea eax, [esp + 0x70]
mov byte [esp + 0xb8], 5
push eax
call fcn.00406300
add esp, 0x48
mov esi, dword [esp + 0x7c]
push 0x412074
push eax
push esi
mov byte [esp + 0x80], 6
call fcn.00406300
add esp, 0xc
mov dword [esp + 8], 1
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 5
call fcn.00405d00
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 4
call fcn.00405d00
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 3
call fcn.00405d00
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x40194c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401943
cmp al, 0xff
je 0x401943
dec al
mov byte [ecx], al
jmp 0x40194c
push ecx
call fcn.00408147
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ebp
cmp eax, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
je 0x40197d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401974
cmp al, 0xff
je 0x401974
dec al
mov byte [ecx], al
jmp 0x40197d
push ecx
call fcn.00408147
add esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], ebp
cmp eax, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
je 0x4019bf
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4019b6
cmp al, 0xff
je 0x4019b6
dec al
mov byte [ecx], al
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
push ecx
call fcn.00408147
add esp, 4
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x70
ret
Function at 0x401ed0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x2820
call fcn.00408680
mov eax, dword [esp + 0x2830]
mov edx, dword [0x410198]
push ebp
push esi
mov cl, byte [eax]
push edi
push edx
mov byte [esp + 0x10], cl
push 0
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.00405950
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
jne 0x401f26
mov edi, 0x41019c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x2838]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov word [esp + 0x20], 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0x2834]
lea ecx, [esp + 0x1c]
push 0x10
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2838]
push 0
lea edx, [esp + 0x38]
push ebp
push edx
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
mov ecx, dword [esp + 0x10]
mov esi, eax
test ecx, ecx
je 0x401fcb
mov al, byte [ecx - 1]
test al, al
je 0x401fc1
cmp al, 0xff
je 0x401fc1
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebp
add esp, 0x2820
ret
dec ecx
push ecx
call fcn.00408147
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x2820
ret

Function at 0x402250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40f0f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xc], esi
push ebx
mov byte [esi], al
call fcn.00405d00
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x10]
push ebx
mov dword [esp + 0x1c], ebx
mov byte [ecx], dl
call fcn.00405d00
mov al, byte [esp + 0xb]
lea ecx, [esi + 0x20]
push ebx
mov byte [esp + 0x1c], 1
mov byte [ecx], al
call fcn.00405d00
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x30]
push ebx
mov byte [esp + 0x1c], 2
mov byte [ecx], dl
call fcn.00405d00
mov al, byte [esp + 0xb]
mov dword [esi + 0x44], ebx
mov byte [esi + 0x40], al
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x50]
push ebx
mov byte [esp + 0x1c], 4
mov byte [ecx], dl
call fcn.00405d00
mov al, byte [esp + 0xb]
mov dword [esi + 0x64], ebx
mov byte [esi + 0x60], al
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov cl, byte [esp + 0xb]
mov dword [esi + 0x70], 1
mov byte [esi + 0x74], cl
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x84]
push ebx
mov byte [esp + 0x1c], 7
mov byte [ecx], dl
call fcn.00405d00
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x94], ebx
mov byte [esi + 0x98], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404960
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f4e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
lea eax, [ebp - 0x138]
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x100
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x404afa
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x404a93
cmp word [edi + 0xa], 4
jne 0x404a93
mov edx, dword [edi + 0xc]
cmp dword [edx], 0
je 0x404a93
mov al, byte [ebp - 0x19]
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00405d00
mov ecx, dword [edi + 0xc]
mov byte [ebp - 4], 1
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov edi, esi
or ecx, 0xffffffff
lea ebx, [eax + 0x74]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [ebp - 0x20], edi
call fcn.00405d70
test al, al
je 0x404a43
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x94], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x404a68
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404a79
cmp al, 0xff
je 0x404a79
dec al
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.00408147
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x415758
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esi + 0x74]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [ebp - 0x14], edi
call fcn.00405d70
test al, al
je 0x404adf
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
mov esi, 0x415758
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov esi, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x94], 0
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x415758
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esi + 0x74]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [ebp - 0x14], edi
call fcn.00405d70
test al, al
je 0x404adf
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
mov esi, 0x415758
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404ad2