joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435a6c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
push dword [esp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x435a91
test al, 0x10
je 0x435a91
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x435a8e
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
ret 8

Function at 0x435a98
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push ebp
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x435b5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x435b5f
cmp eax, 3
je 0x435adc
push esi
push ebx
call fcn.00435a6c
test eax, eax
jne 0x435b5f
movzx eax, word [ebx]
push edi
xor edi, edi
mov ecx, ebx
test ax, ax
je 0x435b00
cmp ax, 0x5c
jne 0x435af1
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x435ae9
test edi, edi
jne 0x435b14
mov esi, 0x80070003
push esi
push 0x7a
push 0x44d0ec
call fcn.0043180e
jmp 0x435b5e
push ebp
xor eax, eax
push ebx
mov word [edi], ax
call fcn.00435a98
mov esi, eax
push 0x5c
pop eax
mov word [edi], ax
test esi, esi
js 0x435b5e
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x435b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x435b4a
xor esi, esi
inc esi
jmp 0x435b5e
test eax, eax
jle 0x435b58
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x435b5e
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x436be4
Capabilities:
Get http content length

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x436c38
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436c23
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jns 0x436c38
push esi
push 0x20
push 0x44d290
call fcn.0043180e
jmp 0x436c44
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x436e9a
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x23f0]
mov eax, 0x2470
call fcn.0040b8c0
mov eax, dword [0x4509f8]
xor eax, ebp
mov dword [ebp + 0x23ec], eax
mov eax, dword [ebp + 0x23f8]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x2404]
push ebx
mov ebx, dword [ebp + 0x23fc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x2408]
push esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x240c]
push edi
mov edi, dword [ebp + 0x2400]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2410]
push 0x3c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2414]
pop esi
push esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408720
mov dword [ebp - 0x80], esi
xor esi, esi
add esp, 0xc
cmp edi, esi
je 0x436f2f
lea eax, [ebp + 0x1fe0]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0x101
mov eax, 0x81
cmp dword [ebp - 0x38], esi
je 0x436f45
lea ecx, [ebp + 0x22e8]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x34], esi
je 0x436f56
lea ecx, [ebp + 0x21e4]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
mov eax, 0x801
cmp dword [ebp - 0x3c], esi
je 0x436f6c
lea ecx, [ebp + 0xfdc]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x30], esi
je 0x436f7a
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
push eax
push 0x90000000
push esi
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x436fc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x436fa5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436fb3
mov dword [ebp - 0x2c], 0x80004005
push dword [ebp - 0x2c]
push 0x5e
push 0x44d2c4
call fcn.0043180e
jmp 0x437059
cmp ebx, esi
je 0x436fd0
mov eax, dword [ebp - 0x74]
mov dword [ebx], eax
cmp edi, esi
je 0x436fe7
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push edi
call fcn.0042fd78
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x437059
mov eax, dword [ebp - 0x40]
cmp eax, esi
je 0x436ff5
mov cx, word [ebp - 0x68]
mov word [eax], cx
cmp dword [ebp - 0x38], esi
je 0x43700f
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x38]
call fcn.0042fd78
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x437059
cmp dword [ebp - 0x34], esi
je 0x437029
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x34]
call fcn.0042fd78
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x437059
cmp dword [ebp - 0x3c], esi
je 0x437043
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x3c]
call fcn.0042fd78
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x437059
cmp dword [ebp - 0x30], esi
je 0x437059
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
call fcn.0042fd78
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x23ec]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0x23f0
leave
ret 0x20
Function at 0x10033070
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1003323d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
jmp 0x1003309a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100330a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10033090
mov eax, 1
add ebx, ebx
jne 0x100330b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100330a8
jne 0x100330c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100330a8
xor ecx, ecx
sub eax, 3
jb 0x100330d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1003314a
mov ebp, eax
add ebx, ebx
jne 0x100330e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100330f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10033114
inc ecx
add ebx, ebx
jne 0x10033100
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100330f5
jne 0x10033111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100330f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10033134
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10033125
jmp 0x10033096
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10033134
add edi, ecx
jmp 0x10033096
pop esi
mov edi, esi
mov ecx, 0xa84
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10033152
cmp byte [edi], 0xa
jne 0x10033152
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10033157
lea edi, [esi + 0x30000]
mov eax, dword [edi]
or eax, eax
je 0x100331cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x332cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x333e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10033184
mov ecx, edi
jns 0x100331b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x333e4]
or eax, eax
je 0x100331c9
mov dword [ebx], eax
add ebx, 4
jmp 0x100331a1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10033200
cmp al, 0xef
ja 0x100331f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100331d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100331e2
mov ebp, dword [esi + 0x333e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10033234
sub esp, 0xffffff80
jmp 0x1000b3cb
Function at 0x402630
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 0x402679
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 0x402641
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x402680
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.00411460
mov dl, byte [esp + 0x24]
mov bl, 0xf
add dl, 5
mov byte [esp + 0x13], al
and dl, 0xf
sub bl, dl
call fcn.00411460
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 0x4026e4
call fcn.0047a8c0
jmp 0x4026e9
call fcn.0047a8c0
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 0x402717
call fcn.00411460
mov byte [ebx + esi + 6], al
inc esi
cmp esi, edi
jb 0x402706
lea eax, [ebx + 4]
mov edi, dword [esp + 0x24]
xor esi, esi
add edi, 2
je 0x40275d
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 0x402727
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.00417520
mov eax, dword [esp + 0x38]
add esp, 0xc
xor esi, esi
mov edi, dword [eax]
sub edi, 0x10
cmp edi, 0x10
jb 0x4027f0
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 0x4027a0
push ebp
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, ecx
push ebp
lea ecx, [ecx + 0x234]
call fcn.00417520
mov ebx, dword [esp + 0x34]
mov esi, edi
sub edi, 0x10
add esp, 0xc
sub ebp, 0x10
cmp edi, 0x10
jae 0x402790
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x403930
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.004067e0
push 0
push dword [ebp + 0x18]
lea ecx, [edi - 0x9ea]
push dword [ebp + 0x10]
push 1
call fcn.00405e40
mov ebx, dword [ebp + 8]
mov al, byte [ebx]
cmp al, 0x30
jl 0x403973
cmp al, 0x32
jle 0x403995
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x403993
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x403993
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, eax
jmp 0x403995
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 0x4039b0
cmp byte [0x5e75a8], cl
je 0x403ae4
mov eax, dword [0x4ba96c]
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 [0x5e692c]
mov word [esp + 0x1c], si
mov dword [esp + 0xc], eax
cmp byte [eax + 0x1a], 0
je 0x403ab3
cmp dword [eax], 0xffffffff
je 0x403ab3
mov edi, dword [edi - 0x1d4]
push 0x15
call fcn.00478b1b
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.00478b24
mov edi, dword [esp + 0x14]
add esp, 4
jmp 0x403ae4
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x403add
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.00406580
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4042f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a4120
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.00405e40
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x404483
mov al, byte [ecx]
cmp al, 0x30
jl 0x40433b
cmp al, 0x32
jle 0x404360
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40435b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40435b
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
jmp 0x40435d
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 0x4043c6
mov byte [ebp + 0x14], 7
call fcn.004022e0
call fcn.004031c0
push 1
mov dword [ebp + 0x14], eax
lea ecx, [ebp - 0x128]
push 0x20
lea eax, [ebp + 0x14]
push eax
call fcn.004022e0
xor ecx, ecx
mov dword [ebp + 0x14], ecx
cmp dword [edi + 0x3b1], ecx
jbe 0x40442e
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 0x4043f3
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.00419280
cmp byte [ebp - 0x118], 0
je 0x404483
cmp dword [ebp - 0x124], 0x800
jle 0x404483
push dword [ebp - 0x11c]
call fcn.00480cf1
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 0x4052e0
Capabilities:
Resolve dns

Disassembly:
sub ecx, 0x9ea
jmp method.RakClient.1.virtual_196
Function at 0x406580
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 0x4067cb
cmp byte [edi + 4], 0
jne 0x4067cb
cmp dword [edi + 0x816], 0xffffffff
je 0x4067cb
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 0x4065d4
cmp al, 0x32
jle 0x406602
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4067cb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4067cb
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
test esi, esi
je 0x4067cb
mov edx, str.127.0.0.1
mov ecx, esi
nop dword [eax]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x406630
test al, al
je 0x40662c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x406630
add ecx, 2
add edx, 2
test al, al
jne 0x406610
xor eax, eax
jmp 0x406635
sbb eax, eax
or eax, 1
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x40666d
mov ecx, str.0.0.0.0
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406664
test dl, dl
je 0x406660
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406664
add eax, 2
add ecx, 2
test dl, dl
jne 0x406644
xor eax, eax
jmp 0x406669
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40667a
cmp bx, word [edi + 0x231]
je 0x4067cb
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 0x4066a3
mov eax, 0xffff
cmp si, ax
je 0x4066e4
movzx edx, word [edi + 7]
xor ecx, ecx
test edx, edx
je 0x4066e4
mov ebp, dword [edi + 0x334]
lea eax, [ebp + 1]
cmp dword [eax], ebx
jne 0x4066c6
cmp word [eax + 4], si
jne 0x4066c6
cmp byte [eax - 1], 0
jne 0x4066d2
inc ecx
add eax, 0x7f2
cmp ecx, edx
jb 0x4066b6
jmp 0x4066e0
imul eax, ecx, 0x7f2
add eax, ebp
jne 0x4067cb
mov ebp, dword [esp + 0x24]
mov eax, dword [edi + 0x3bd]
mov eax, dword [eax + 0x117]
cmp eax, dword [edi + 0x3c1]
je 0x40670d
mov eax, dword [edi + 0x3bd]
mov eax, dword [eax + 0x117]
cmp byte [eax + 0x116], 1
jne 0x406744
mov eax, dword [edi + 0x3bd]
push 0x11b
mov esi, dword [eax + 0x117]
call fcn.00478b29
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.004031c0
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.0047a8c0
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 0x407f70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a4120
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 0x4080f0
mov al, byte [ecx]
cmp al, 0x30
jl 0x407fa7
cmp al, 0x32
jle 0x407fcc
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x407fc7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x407fc7
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
jmp 0x407fc9
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 0x408032
mov byte [ebp + 0x10], 7
call fcn.004022e0
call fcn.004031c0
push 1
mov dword [ebp + 0x10], eax
lea ecx, [ebp - 0x128]
push 0x20
lea eax, [ebp + 0x10]
push eax
call fcn.004022e0
xor ecx, ecx
mov dword [ebp + 0x10], ecx
cmp dword [edi + 0x3b1], ecx
jbe 0x40809b
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 0x408060
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.00419280
cmp byte [ebp - 0x118], 0
je 0x4080f0
cmp dword [ebp - 0x124], 0x800
jle 0x4080f0
push dword [ebp - 0x11c]
call fcn.00480cf1
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411460
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x4d1de0]
add eax, 0xffffffff
mov dword [0x4d1de0], eax
jns 0x4115a4
push ebx
push ebp
push esi
mov esi, 0x5e6958
push edi
mov edi, 0x5e6950
cmp eax, 0xffffffff
jge 0x4114b1
mov eax, 0x1105
mov ecx, 0x5e6954
mov dword [0x5e6950], eax
mov edx, 0x26f
nop word [eax + eax]
imul eax, eax, 0x10dcd
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
sub edx, 1
jne 0x4114a0
mov eax, dword [0x5e6950]
mov ebx, 0xe3
mov edx, dword [0x5e6954]
mov dword [0x4d1de0], 0x26f
mov dword [0x5e7314], 0x5e6954
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [esi + 0x62c]
mov dword [edi], ecx
add edi, 4
mov edx, dword [esi]
add esi, 4
sub ebx, 1
jne 0x4114d5
mov ebx, 0x5e6950
mov ebp, 0x18c
mov ecx, edx
lea ebx, [ebx + 4]
xor ecx, eax
lea edi, [edi + 4]
and ecx, 0x7ffffffe
lea esi, [esi + 4]
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx - 4]
mov dword [edi - 4], ecx
mov edx, dword [esi - 4]
sub ebp, 1
jne 0x411516
mov edx, dword [0x5e6950]
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx]
shr eax, 0xb
xor edx, eax
mov dword [edi], ecx
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
pop edi
pop esi
mov eax, edx
shr eax, 0x12
pop ebp
xor eax, edx
pop ebx
ret
mov eax, dword [0x5e7314]
mov ecx, dword [eax]
add eax, 4
mov dword [0x5e7314], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x416960
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
lea eax, [ecx + 2]
mov edi, 4
nop word [eax + eax]
movzx ecx, byte [eax + 1]
lea eax, [eax + 4]
movzx edx, byte [eax - 5]
mov esi, dword [ecx*4 + 0x4d10c0]
movzx ecx, byte [eax - 4]
xor esi, dword [edx*4 + 0x4d04c0]
xor esi, dword [ecx*4 + 0x4cf3c0]
movzx ecx, byte [eax - 6]
xor esi, dword [ecx*4 + 0x4d14c0]
mov dword [eax - 6], esi
sub edi, 1
jne 0x416970
pop edi
pop esi
ret