joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc36f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004bc2eb
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4bc4de
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4bc4de
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4bc493
jg 0x4bc3cb
test eax, eax
je 0x4bc489
push 1
push 0x1000
call fcn.004b7de8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4bc3ee
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bc480
push 0x8000
push ebx
call fcn.004b5c9f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4bc417
jg 0x4bc412
cmp ecx, 0x1000
jb 0x4bc417
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b727a
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bc45c
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4bc412
jl 0x4bc443
test ecx, ecx
jne 0x4bc404
push dword [ebp - 0xc]
push ebx
call fcn.004b5c9f
push esi
call fcn.004b7d60
add esp, 0xc
xor ebx, ebx
jmp 0x4bc4ec
cmp byte [edi + 0x24], 0
je 0x4bc473
cmp dword [edi + 0x20], 5
jne 0x4bc473
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4bc47e
mov ebx, dword [edi + 0x18]
jmp 0x4bc480
xor ebx, ebx
push esi
call fcn.004b7d60
pop ecx
jmp 0x4bc4ec
test ecx, ecx
jg 0x4bc455
jl 0x4bc493
test eax, eax
jae 0x4bc455
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b4335
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bc4b3
cmp byte [edi + 0x1c], 0
je 0x4bc455
jmp 0x4bc4e4
push ebx
call fcn.004bc281
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4bc455
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bc4ec
cmp byte [edi + 0x1c], 0
je 0x4bc4e9
mov ebx, dword [edi + 0x18]
jmp 0x4bc4ec
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b4335
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bced8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x509380]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4bcf23
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004bd073
test al, al
jne 0x4bcf1d
sub edx, 2
cmp edx, edi
jne 0x4bcf03
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4bcf45
lea eax, [edi + 2]
cmp edx, eax
je 0x4bcf45
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004bce24
add esp, 0x10
jmp 0x4bd03f
push esi
lea ecx, [ebp - 0x255]
call fcn.004bd073
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bcf88
push dword [ebp - 0x25c]
jmp 0x4bcf35
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4bcfc5
cmp word [ebp - 0x226], 0
je 0x4bcfe6
cmp word [ebp - 0x226], ax
jne 0x4bcfc5
cmp word [ebp - 0x224], 0
je 0x4bcfe6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004bce24
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4bd032
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4bcf9f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4bd01a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4bd03f
push 0x4bcc54
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004b21b0
add esp, 0x10
jmp 0x4bd00f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049cd8d
leave
ret

Function at 0x4bd955
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4bd966
pop esi
ret
push ebx
push edi
push esi
call fcn.004bd91e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b7d9a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4bd98e
push ebx
push esi
push edi
call fcn.0049e400
add esp, 0xc
push 0
call fcn.004b7d60
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4bdd5e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bd9a3
Function at 0x4c227a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x509380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4c22bd
call fcn.004a0e3d
mov dword [eax], 0xf
call fcn.004a0e50
mov dword [eax], 0xd
call fcn.004a745a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049cd8d
leave
ret
test eax, eax
jne 0x4c22c4
inc eax
jmp 0x4c22b1
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4c22af
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4c22b1

Function at 0x4c3270
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c329d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c329d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4040b2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b2c4]
jne 0x4040bc
repz ret
jmp fcn.00405345

Function at 0x40c254
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004066b7
xor ebx, ebx
cmp dword [0x41d038], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40c329
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40c294
xor eax, eax
jmp 0x40c3ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x415bec
push edi
call esi
cmp eax, ebx
je 0x40c28d
push eax
call fcn.00406654
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41d038], eax
call esi
push eax
call fcn.00406654
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d03c], eax
call esi
push eax
call fcn.00406654
mov dword [0x41d040], eax
lea eax, [ebp - 8]
push eax
call fcn.0040434e
test eax, eax
pop ecx
pop ecx
je 0x40c2f7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004047e1
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40c329
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00406654
cmp eax, ebx
pop ecx
mov dword [0x41d048], eax
je 0x40c329
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406654
pop ecx
mov dword [0x41d044], eax
mov eax, dword [0x41d044]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40c3a2
cmp dword [0x41d048], esi
je 0x40c3a2
push eax
call fcn.004066c0
pop ecx
call eax
cmp eax, ebx
je 0x40c36f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41d048]
call fcn.004066c0
pop ecx
call eax
test eax, eax
je 0x40c36f
test byte [ebp - 0x18], 1
jne 0x40c3a2
lea eax, [ebp - 0xc]
push eax
call fcn.00404385
test eax, eax
pop ecx
je 0x40c38a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004047e1
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40c399
or dword [ebp + 0x10], 0x200000
jmp 0x40c3d3
or dword [ebp + 0x10], 0x40000
jmp 0x40c3d3
mov eax, dword [0x41d03c]
cmp eax, esi
je 0x40c3d3
push eax
call fcn.004066c0
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c3d3
mov eax, dword [0x41d040]
cmp eax, esi
je 0x40c3d3
push dword [ebp - 4]
push eax
call fcn.004066c0
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41d038]
call fcn.004066c0
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408e54
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x36910e91
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3272d64
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402560
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test ebp, ebp
je 0x4025a9
push ebx
push edi
mov edi, dword [ecx + 6]
movzx eax, word [ecx]
mov edx, dword [esp + 0x14]
mov ebx, eax
shr ebx, 8
xor bl, byte [esi + edx]
inc esi
movzx edx, bl
add dx, ax
movzx eax, word [ecx + 2]
movzx edx, dx
imul edx, eax
movzx eax, word [ecx + 4]
add dx, ax
movzx eax, bl
add edi, eax
mov word [ecx], dx
mov dword [ecx + 6], edi
cmp esi, ebp
jb 0x402571
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x4025b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
xor ebp, ebp
call fcn.00411260
mov dl, byte [esp + 0x24]
mov bl, 0xf
add dl, 5
mov byte [esp + 0x13], al
and dl, 0xf
sub bl, dl
call fcn.00411260
mov edx, dword [esp + 0x2c]
shl al, 4
or al, bl
movzx edi, bl
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [edi + eax]
mov dword [esp + 0x28], ecx
add ecx, 6
mov dword [edx], ecx
lea edx, [ebx + 6]
mov ecx, dword [esp + 0x24]
add edx, edi
push ecx
push edx
cmp ecx, ebx
jne 0x402614
call fcn.00462e50
jmp 0x402619
call fcn.00462e50
mov cl, byte [esp + 0x1f]
lea eax, [ebx + 4]
add esp, 0xc
mov byte [eax], cl
mov ecx, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x20], eax
mov byte [ebx + 5], cl
test edi, edi
je 0x402647
call fcn.00411260
mov byte [ebx + esi + 6], al
inc esi
cmp esi, edi
jb 0x402636
lea eax, [ebx + 4]
mov edi, dword [esp + 0x24]
xor esi, esi
add edi, 2
je 0x40268d
mov ebx, 0xd971
mov edx, ebx
shr edx, 8
xor dl, byte [eax + esi]
mov eax, 0x3193
movzx ecx, dl
inc esi
add cx, bx
movzx ecx, cx
imul ecx, eax
mov eax, 0x58bf
sub ax, cx
movzx ebx, ax
movzx eax, dl
add ebp, eax
mov eax, dword [esp + 0x20]
cmp esi, edi
jb 0x402657
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
push ebx
push ecx
push ebx
lea ecx, [edx + 0x234]
mov dword [ebx], ebp
call fcn.00417320
mov eax, dword [esp + 0x38]
add esp, 0xc
xor esi, esi
mov edi, dword [eax]
sub edi, 0x10
cmp edi, 0x10
jb 0x402720
lea ebp, [edi + ebx]
nop word [eax + eax]
lea edx, [ebx + 3]
mov ebx, 4
add edx, esi
lea eax, [ebp + 1]
sub esi, edi
nop
movzx ecx, byte [edx - 3]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [esi + eax - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 5]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 4]
xor byte [eax - 2], cl
sub ebx, 1
jne 0x4026d0
push ebp
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, ecx
push ebp
lea ecx, [ecx + 0x234]
call fcn.00417320
mov ebx, dword [esp + 0x34]
mov esi, edi
sub edi, 0x10
add esp, 0xc
sub ebp, 0x10
cmp edi, 0x10
jae 0x4026c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x403830
Capabilities:
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
push 0
push 0x64
mov dword [esp + 0x18], edi
lea ecx, [edi - 0x9ea]
call fcn.004065e0
push 0
push dword [ebp + 0x18]
lea ecx, [edi - 0x9ea]
push dword [ebp + 0x10]
push 1
call fcn.00405c40
mov ebx, dword [ebp + 8]
mov al, byte [ebx]
cmp al, 0x30
jl 0x403873
cmp al, 0x32
jle 0x403895
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x403893
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x403893
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, eax
jmp 0x403895
xor ebx, ebx
lea eax, [edi + 0x125]
mov ecx, 0x20
mov edx, 0xffff
nop word [eax + eax]
mov byte [eax + 0x109], 0
lea eax, [eax + 0x11a]
mov dword [eax - 0x12a], 0xffffffff
mov word [eax - 0x126], dx
mov dword [eax - 0x122], 0
mov dword [eax - 0x11a], 0
sub ecx, 1
jne 0x4038b0
cmp byte [0x5bd304], cl
je 0x4039e4
mov eax, dword [0x49d31c]
movq xmm0, qword [str.SAMP______c]
mov dword [esp + 0x1c], eax
mov eax, 2
push ebx
movq qword [esp + 0x18], xmm0
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, dword [ebp + 0xc]
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov eax, dword [0x5bc698]
mov word [esp + 0x1c], si
mov dword [esp + 0xc], eax
cmp byte [eax + 0x1a], 0
je 0x4039b3
cmp dword [eax], 0xffffffff
je 0x4039b3
mov edi, dword [edi - 0x1d4]
push 0x15
call fcn.004610f4
movq xmm0, qword [esp + 0x18]
mov esi, eax
add esp, 4
movq qword [esi + 0xa], xmm0
mov cx, word [esp + 0x1c]
mov word [esi + 0x12], cx
mov cl, byte [esp + 0x1e]
mov byte [esi + 0x14], cl
mov dword [esi], 0x1000000
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
mov ax, word [esp + 0x22]
mov word [esi + 8], ax
mov eax, dword [esp + 0xc]
push 0x10
add eax, 4
push eax
push 0
push 0x15
push esi
push edi
call dword [sym.imp.WS2_32.dll_sendto]
push esi
call fcn.004610fd
mov edi, dword [esp + 0x14]
add esp, 4
jmp 0x4039e4
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4039dd
push 0x10
lea eax, [esp + 0x24]
push eax
push 0
push 0xb
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [edi + 4]
lea ecx, [edi - 0x9ea]
add eax, 7
sar eax, 3
push eax
push dword [edi + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00406380
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4041d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x488570
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
push 0
push 0
push dword [ebp + 0x10]
lea edi, [ecx - 0x9ea]
push 1
mov ecx, edi
call fcn.00405c40
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x404363
mov al, byte [ecx]
cmp al, 0x30
jl 0x40421b
cmp al, 0x32
jle 0x404240
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40423b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40423b
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
jmp 0x40423d
xor ecx, ecx
mov dword [ebp + 8], ecx
mov eax, dword [edi]
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 0xc]
push ecx
mov ecx, edi
call dword [eax + 0xbc]
lea eax, [ebp - 0x117]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], 0x800
mov byte [ebp - 0x118], 1
push 1
mov dword [ebp - 4], 0
lea eax, [ebp + 0x14]
cmp byte [ebp + 0x14], 0
lea ecx, [ebp - 0x128]
push 8
push eax
mov byte [ebp + 0x14], 8
jne 0x4042a6
mov byte [ebp + 0x14], 7
call fcn.00402210
call fcn.004030f0
push 1
mov dword [ebp + 0x14], eax
lea ecx, [ebp - 0x128]
push 0x20
lea eax, [ebp + 0x14]
push eax
call fcn.00402210
xor ecx, ecx
mov dword [ebp + 0x14], ecx
cmp dword [edi + 0x3b1], ecx
jbe 0x40430e
mov eax, dword [edi + 0x3ad]
sub esp, 8
mov edx, esp
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x128]
mov dword [edx], eax
mov esi, dword [ecx]
mov ax, word [ebp - 0x10]
push dword [ebp - 0x11c]
mov word [edx + 4], ax
call dword [esi + 0x1c]
mov ecx, dword [ebp + 0x14]
inc ecx
mov dword [ebp + 0x14], ecx
cmp ecx, dword [edi + 0x3b1]
jb 0x4042d3
mov eax, dword [ebp - 0x128]
push dword [ebp + 8]
mov esi, dword [ebp - 0x11c]
add eax, 7
mov edi, dword [edi + 0x816]
sar eax, 3
mov dword [ebp + 0x14], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push esi
push edi
call fcn.004191a0
cmp byte [ebp - 0x118], 0
je 0x404363
cmp dword [ebp - 0x124], 0x800
jle 0x404363
push dword [ebp - 0x11c]
call fcn.004684df
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4050da
Capabilities:
Resolve dns

Disassembly:
sub ecx, 0x9ea
jmp method.RakClient.1.virtual_196
Function at 0x406380
Capabilities:
Resolve dns

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x4065cb
cmp byte [edi + 4], 0
jne 0x4065cb
cmp dword [edi + 0x816], 0xffffffff
je 0x4065cb
mov eax, 0xff
mov edx, ebp
cmp ecx, eax
cmovle eax, ecx
neg edx
sbb edx, edx
and edx, eax
mov al, byte [esi]
mov dword [esp + 0x28], edx
cmp al, 0x30
jl 0x4063d4
cmp al, 0x32
jle 0x406402
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4065cb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4065cb
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
test esi, esi
je 0x4065cb
mov edx, str.127.0.0.1
mov ecx, esi
nop dword [eax]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x406430
test al, al
je 0x40642c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x406430
add ecx, 2
add edx, 2
test al, al
jne 0x406410
xor eax, eax
jmp 0x406435
sbb eax, eax
or eax, 1
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x40646d
mov ecx, str.0.0.0.0
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406464
test dl, dl
je 0x406460
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406464
add eax, 2
add ecx, 2
test dl, dl
jne 0x406444
xor eax, eax
jmp 0x406469
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40647a
cmp bx, word [edi + 0x231]
je 0x4065cb
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
mov ecx, edi
call dword [eax + 0xbc]
mov ebx, dword [esp + 0x10]
mov si, word [esp + 0x14]
cmp ebx, 0xffffffff
jne 0x4064a3
mov eax, 0xffff
cmp si, ax
je 0x4064e4
movzx edx, word [edi + 7]
xor ecx, ecx
test edx, edx
je 0x4064e4
mov ebp, dword [edi + 0x334]
lea eax, [ebp + 1]
cmp dword [eax], ebx
jne 0x4064c6
cmp word [eax + 4], si
jne 0x4064c6
cmp byte [eax - 1], 0
jne 0x4064d2
inc ecx
add eax, 0x7f2
cmp ecx, edx
jb 0x4064b6
jmp 0x4064e0
imul eax, ecx, 0x7f2
add eax, ebp
jne 0x4065cb
mov ebp, dword [esp + 0x24]
mov eax, dword [edi + 0x3bd]
mov eax, dword [eax + 0x117]
cmp eax, dword [edi + 0x3c1]
je 0x40650d
mov eax, dword [edi + 0x3bd]
mov eax, dword [eax + 0x117]
cmp byte [eax + 0x116], 1
jne 0x406544
mov eax, dword [edi + 0x3bd]
push 0x11b
mov esi, dword [eax + 0x117]
call fcn.00461102
mov ecx, dword [edi + 0x3bd]
add esp, 4
mov dword [ecx + 0x117], eax
mov eax, dword [edi + 0x3bd]
mov eax, dword [eax + 0x117]
mov dword [eax + 0x117], esi
mov esi, dword [edi + 0x3bd]
mov eax, dword [esi + 0x117]
mov dword [edi + 0x3bd], eax
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov ax, word [esp + 0x14]
mov word [esi + 4], ax
call fcn.004030f0
mov ebx, dword [esp + 0x28]
push ebx
mov dword [esi + 6], eax
lea eax, [esi + 0x11]
push ebp
push eax
mov byte [esi + 0xa], 0
mov dword [esi + 0xb], 0
mov dword [esi + 0x112], 1
call fcn.00462e50
mov byte [esi + 0x111], bl
add esp, 0xc
mov eax, dword [edi + 0x3c5]
inc dword [edi + 0x3cd]
mov byte [eax + 0x116], 1
mov eax, dword [edi + 0x3c5]
mov eax, dword [eax + 0x117]
mov dword [edi + 0x3c5], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0x10
Function at 0x407d70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x488570
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x407ef0
mov al, byte [ecx]
cmp al, 0x30
jl 0x407da7
cmp al, 0x32
jle 0x407dcc
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x407dc7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x407dc7
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
jmp 0x407dc9
xor ecx, ecx
mov dword [ebp + 8], ecx
mov eax, dword [edi]
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 0xc]
push ecx
mov ecx, edi
call dword [eax + 0xbc]
lea eax, [ebp - 0x117]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], 0x800
mov byte [ebp - 0x118], 1
push 1
mov dword [ebp - 4], 0
lea eax, [ebp + 0x10]
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 0x128]
push 8
push eax
mov byte [ebp + 0x10], 8
jne 0x407e32
mov byte [ebp + 0x10], 7
call fcn.00402210
call fcn.004030f0
push 1
mov dword [ebp + 0x10], eax
lea ecx, [ebp - 0x128]
push 0x20
lea eax, [ebp + 0x10]
push eax
call fcn.00402210
xor ecx, ecx
mov dword [ebp + 0x10], ecx
cmp dword [edi + 0x3b1], ecx
jbe 0x407e9b
nop
mov eax, dword [edi + 0x3ad]
sub esp, 8
mov edx, esp
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x128]
mov dword [edx], eax
mov esi, dword [ecx]
mov ax, word [ebp - 0x10]
push dword [ebp - 0x11c]
mov word [edx + 4], ax
call dword [esi + 0x1c]
mov ecx, dword [ebp + 0x10]
inc ecx
mov dword [ebp + 0x10], ecx
cmp ecx, dword [edi + 0x3b1]
jb 0x407e60
mov eax, dword [ebp - 0x128]
push dword [ebp + 8]
mov esi, dword [ebp - 0x11c]
add eax, 7
mov edi, dword [edi + 0x816]
sar eax, 3
mov dword [ebp + 0x10], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push esi
push edi
call fcn.004191a0
cmp byte [ebp - 0x118], 0
je 0x407ef0
cmp dword [ebp - 0x124], 0x800
jle 0x407ef0
push dword [ebp - 0x11c]
call fcn.004684df
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc