joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464ebc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
test ax, ax
jne 0x464edf
mov eax, dword [ebp + 8]
jmp 0x464ff4
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x5b
jne 0x464f7e
mov eax, dword [0x7b4528]
test eax, eax
jne 0x464f19
mov dword [esp], 0x6f9f44
call sub.msvcrt.dll_getenv
test eax, eax
je 0x464f0f
mov eax, 1
jmp 0x464f14
mov eax, 0xffffffff
mov dword [0x7b4528], eax
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x21
je 0x464f3e
mov eax, dword [0x7b4528]
test eax, eax
jns 0x464f42
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x5e
jne 0x464f42
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x5d
jne 0x464f6d
add dword [ebp - 0xc], 2
jmp 0x464f6d
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov dword [ebp - 0xc], edx
mov ax, word [eax]
test ax, ax
jne 0x464f6d
mov eax, dword [ebp + 8]
jmp 0x464ff4
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x5d
jne 0x464f54
jmp 0x464ec8
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x3f
je 0x464fba
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x2a
je 0x464fba
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x2b
je 0x464fba
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x40
je 0x464fba
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x21
jne 0x464fdc
mov eax, dword [ebp - 0xc]
add eax, 2
mov ax, word [eax]
cmp ax, 0x28
jne 0x464fdc
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [esp], eax
call fcn.00464ebc
mov dword [ebp - 0xc], eax
jmp 0x464fe8
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x29
je 0x464fed
jmp 0x464ec8
nop
mov eax, dword [ebp - 0xc]
add eax, 2
leave
ret
Function at 0x4661ee
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
test eax, eax
jne 0x466206
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x14], 0
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x2d
jne 0x46623f
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 2
inc dword [ebp + 0x10]
jmp 0x466283
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x2b
jne 0x466257
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 0
inc dword [ebp + 0x10]
jmp 0x466283
cmp dword [ebp + 0x18], 0
jne 0x46626d
mov dword [esp], str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x466279
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 0
jmp 0x466283
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 1
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x10], 1
mov eax, dword [ebp + 0x10]
leave
ret

Function at 0x467409
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004696cc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x467437
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 9
mov eax, 0xffffffff
jmp 0x467466
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_getsockname]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x467463
call fcn.00467044
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x468044
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov byte [ebp - 9], al
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
add eax, edx
mov dword [ebp - 4], eax
jmp 0x468075
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
mov al, byte [eax]
cmp byte [ebp - 9], al
jne 0x468072
mov eax, dword [ebp - 4]
jmp 0x468118
dec dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x468085
mov eax, dword [ebp - 4]
and eax, 3
test eax, eax
jne 0x46805d
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0x1010101
mov al, byte [ebp - 9]
xor edx, edx
mov dl, al
mov al, byte [ebp - 9]
and eax, 0xff
shl eax, 8
or eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 0x10
or dword [ebp - 0x14], eax
jmp 0x4680e6
sub dword [ebp - 8], 4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
not edx
and edx, eax
mov eax, dword [ebp - 0x10]
shl eax, 7
and eax, edx
test eax, eax
je 0x4680e2
add dword [ebp - 8], 4
jmp 0x4680ec
sub dword [ebp + 0x10], 4
cmp dword [ebp + 0x10], 3
ja 0x4680b4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x468106
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
mov al, byte [eax]
cmp byte [ebp - 9], al
jne 0x468106
mov eax, dword [ebp - 4]
jmp 0x468118
mov eax, dword [ebp + 0x10]
lea edx, [eax - 1]
mov dword [ebp + 0x10], edx
test eax, eax
jne 0x4680f4
mov eax, 0
leave
ret
Function at 0x46811c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x4c], ax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x468186
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
add eax, edx
mov al, byte [eax]
cmp al, 0x2f
jne 0x468186
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047f294
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x468179
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 0xc
mov eax, 0xffffffff
jmp 0x468213
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00485bcc
jmp 0x46818c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00460188
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
cmp al, 0x2e
jne 0x4681ed
mov eax, dword [ebp - 0x14]
inc eax
mov al, byte [eax]
test al, al
je 0x4681c3
mov eax, dword [ebp - 0x14]
inc eax
mov al, byte [eax]
cmp al, 0x2e
jne 0x4681ed
mov eax, dword [ebp - 0x14]
add eax, 2
mov al, byte [eax]
test al, al
jne 0x4681ed
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0047e20c
test eax, eax
jne 0x4681e6
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 0x11
mov eax, 0xffffffff
jmp 0x468213
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__mkdir]
call eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
je 0x468210
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x18]
leave
ret

Function at 0x469639
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x6fa414
call sub.msvcrt.dll_getenv
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x469679
mov dword [esp + 4], 0x2f
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x469679
mov dword [esp], 0x6fa417
mov eax, dword [sym.imp.msvcrt.dll__putenv]
call eax
call sub.msvcrt.dll__tzset
mov dword [esp + 8], 0x7b45e8
mov dword [esp + 4], fcn.00481eb2
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00468c3e
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004696cc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x46a10f
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 9
mov eax, 0xffffffff
jmp 0x46a145
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x46a142
call fcn.00469d1c
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x46d5b6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0xc]
add edx, 0x10
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0046c2a7
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne al
and eax, 0xff
test eax, eax
je 0x46d5fa
mov eax, 0xc
jmp 0x46d714
mov dword [ebp - 0xc], 0
jmp 0x46d65b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
shl edx, 3
add eax, edx
mov al, byte [eax + 4]
and eax, 0xff
and eax, 8
test eax, eax
jne 0x46d658
mov eax, dword [ebp + 0xc]
lea edx, [eax + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0046ceb2
xor eax, 1
test al, al
je 0x46d658
mov eax, 0xc
jmp 0x46d714
inc dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
cmp dword [ebp - 0xc], eax
jl 0x46d603
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
and eax, dword [ebp + 0x10]
mov edx, eax
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp edx, eax
setle al
and eax, 0xff
test eax, eax
je 0x46d6f1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
add eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
lea edx, [eax*4]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
sete al
and eax, 0xff
test eax, eax
je 0x46d6df
mov eax, 0xc
jmp 0x46d714
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
lea ecx, [eax + 1]
mov edx, dword [ebp - 0x14]
mov dword [edx], ecx
shl eax, 2
lea edx, [ebx + eax]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, 0
add esp, 0x34
pop ebx
pop ebp
ret
Function at 0x470443
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
jmp 0x470481
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, ecx
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
inc dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
cmp edx, eax
ja 0x470452
mov dword [ebp - 0xc], 0
jmp 0x47052b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0xc]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
jmp 0x47050c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x10]
lea ecx, [eax*4]
mov eax, dword [ebp - 0x14]
add eax, ecx
mov eax, dword [eax]
mov ecx, eax
mov eax, ecx
add eax, eax
add eax, ecx
shl eax, 2
add edx, eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0046ceb2
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0x15]
xor eax, 1
and eax, 0xff
test eax, eax
je 0x470509
mov eax, 0xc
jmp 0x470541
inc dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0xc]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, ecx
mov eax, dword [eax + 4]
cmp dword [ebp - 0x10], eax
jl 0x4704bd
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0xc]
cmp edx, eax
ja 0x47049a
mov eax, 0
leave
ret

Function at 0x470543
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 0xd], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0xc]
cmp edx, eax
jne 0x470580
mov al, byte [ebp - 0xd]
xor eax, 1
test al, al
je 0x470575
mov eax, 0
jmp 0x470609
mov byte [ebp - 0xd], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0xc]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, ecx
mov eax, dword [eax + 4]
test eax, eax
jne 0x470600
mov dword [esp + 0xc], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0047060b
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
setne al
and eax, 0xff
test eax, eax
je 0x4705d4
mov eax, dword [ebp - 0x14]
jmp 0x470609
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0xc]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, ecx
mov eax, dword [eax + 4]
test eax, eax
jne 0x470601
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x470601
nop
inc dword [ebp - 0xc]
jmp 0x470554
leave
ret
Function at 0x477fd8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov al, byte [eax + 0x34]
shr al, 5
and eax, 1
and eax, 0xff
test eax, eax
je 0x47802a
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0047847f
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
setne al
and eax, 0xff
test eax, eax
je 0x47802a
mov eax, 0
jmp 0x478125
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x24]
lea ecx, [eax + 1]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x24], ecx
add eax, ebx
mov al, byte [eax]
mov byte [ebp - 9], al
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne al
and eax, 0xff
test eax, eax
je 0x47807a
mov al, byte [ebp - 9]
and eax, 0xff
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax]
jmp 0x478125
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne al
and eax, 0xff
test eax, eax
je 0x4780f7
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x24]
lea ecx, [eax - 1]
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0046c151
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 1
test eax, eax
je 0x4780df
mov al, byte [ebp - 9]
and eax, 0xff
add eax, 0x100
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax]
jmp 0x478125
mov al, byte [ebp - 9]
and eax, 0xff
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax]
jmp 0x478125
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00479fe2
xor eax, 1
test al, al
je 0x478046
mov eax, dword [ebp + 8]
mov dword [eax], 0xc
mov eax, 0
add esp, 0x24
pop ebx
pop ebp
ret
Function at 0x47d521
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004696cc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x47d553
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 9
mov eax, 0xffffffff
jmp 0x47d634
cmp dword [ebp + 0xc], 0xffff
jne 0x47d5f7
cmp dword [ebp + 0x10], 0x1006
je 0x47d576
cmp dword [ebp + 0x10], 0x1005
jne 0x47d5f7
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 3
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov edx, 0x10624dd3
mov eax, ecx
imul edx
sar edx, 6
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
add eax, ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp + 0x14], eax
mov dword [esp + 0x10], 4
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
call eax
sub esp, 0x14
mov dword [ebp - 0xc], eax
jmp 0x47d626
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
call eax
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x47d631
call fcn.0047d15c
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x47f1b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x47f1eb
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
jmp 0x47f291
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x47f28e
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0xe8
jne 0x47f28e
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x47f28e
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
js 0x47f28e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004696cc
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileType]
call eax
sub esp, 4
cmp eax, 3
jne 0x47f28e
mov dword [esp], 0xd
call fcn.0048856e
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 0x20
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4865de
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x7b4d10]
cmp dword [ebp + 8], eax
jle 0x48666b
mov eax, dword [ebp + 8]
and eax, 0xffff
lea edx, [ebp - 0x19c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x486620
mov eax, 1
jmp 0x486670
mov eax, dword [ebp - 0x19c]
and eax, 0xffff
cmp dword [ebp + 8], eax
je 0x48663e
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 2
jmp 0x486670
mov eax, dword [0x7b4d10]
test eax, eax
jne 0x486663
mov dword [esp + 8], 0x7b4d00
mov dword [esp + 4], 0x48653c
mov dword [esp], 0x4864a9
call fcn.00485d04
mov eax, dword [ebp + 8]
mov dword [0x7b4d10], eax
mov eax, 0
leave
ret

Function at 0x488670
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x7b5984]
test eax, eax
je 0x488689
mov eax, 1
jmp 0x488760
mov dword [esp], str.mlang.dll
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4886ad
mov eax, 0
jmp 0x488760
mov dword [esp + 4], str.ConvertINetString
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [0x7b5984], eax
mov dword [esp + 4], str.ConvertINetMultiByteToUnicode
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [0x7b5988], eax
mov dword [esp + 4], str.ConvertINetUnicodeToMultiByte
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [0x7b598c], eax
mov dword [esp + 4], str.IsConvertINetStringAvailable
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [0x7b5990], eax
mov dword [esp + 4], str.LcidToRfc1766A
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [0x7b5994], eax
mov dword [esp + 4], str.Rfc1766ToLcidA
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [0x7b5998], eax
mov eax, 1
leave
ret
Function at 0x4a14e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebp, eax
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea esi, [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x26
mov dword [esp + 4], esi
mov dword [esp], 0
call edi
sub esp, 0x10
test eax, eax
je 0x4a1558
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x714f8c
mov dword [esp], esi
call fcn.004aa250
mov ebx, eax
test eax, eax
je 0x4a1558
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll__access
test eax, eax
je 0x4a157e
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x2a
mov dword [esp + 4], esi
mov dword [esp], 0
call edi
sub esp, 0x10
test eax, eax
jne 0x4a1590
xor ebx, ebx
add esp, 0x12c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x714f8c
mov dword [esp], esi
call fcn.004aa250
mov ebx, eax
test eax, eax
je 0x4a157c
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll__access
test eax, eax
je 0x4a157e
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x4a157c
Function at 0x4a5dd0
Capabilities:
Initialize winsock library

Disassembly:
mov edx, dword [0x7b5a58]
test edx, edx
je 0x4a5de0
ret
sub esp, 0x1ac
lea eax, [esp + 0x10]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push eax
call fcn.004a2f20
call fcn.004a9c80
call fcn.00499c10
mov dword [0x7b5a58], 1
add esp, 0x1ac
ret
Function at 0x4aab40
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4aab70
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov edx, dword [esp + 0x24]
test eax, eax
mov dword [edx], eax
je 0x4aab80
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp + 0x24]
mov dword [eax], 0
xor eax, eax
add esp, 0x1c
ret
call fcn.004b71f0
test eax, eax
je 0x4aab65
and eax, 0xffff
or eax, 0x7000000
jmp 0x4aab67