joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4473ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x144
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x12c], al
cmp dword [ebp + 0x14], 0
je 0x4473cf
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax]
test al, al
jne 0x4473df
mov dword [ebp + 0x14], 0x662860
mov dword [ebp - 0xc], 4
jmp 0x4473fa
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 5
jbe 0x4473fa
mov dword [ebp - 0xc], 5
cmp byte [ebp - 0x12c], 0
je 0x44744d
mov dword [esp], str.TMPDIR
call fcn.00460314
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x44742f
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0044736c
test al, al
je 0x44742f
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
jmp 0x44744d
cmp dword [ebp + 0x10], 0
je 0x447446
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0044736c
test al, al
je 0x447446
jmp 0x44744d
mov dword [ebp + 0x10], 0
cmp dword [ebp + 0x10], 0
jne 0x4474ea
lea eax, [ebp - 0x11d]
mov dword [esp + 4], eax
mov dword [esp], 0x104
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathA]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4474a1
cmp dword [ebp - 0x14], 0x103
ja 0x4474a1
lea eax, [ebp - 0x11d]
mov dword [esp], eax
call fcn.0044736c
test al, al
je 0x4474a1
lea eax, [ebp - 0x11d]
mov dword [ebp + 0x10], eax
jmp 0x4474ea
mov dword [esp], 0x66286c
call fcn.0044736c
test al, al
je 0x4474ba
mov dword [ebp + 0x10], 0x66286c
jmp 0x4474ea
mov dword [esp], str._tmp
call fcn.0044736c
test al, al
je 0x4474d3
mov dword [ebp + 0x10], str._tmp
jmp 0x4474ea
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 2
mov eax, 0xffffffff
jmp 0x4475af
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x447529
mov eax, dword [ebp - 0x18]
lea edx, [eax - 1]
mov eax, dword [ebp + 0x10]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2f
je 0x447529
mov eax, dword [ebp - 0x18]
lea edx, [eax - 1]
mov eax, dword [ebp + 0x10]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x5c
je 0x447529
mov eax, 1
jmp 0x44752e
mov eax, 0
mov byte [ebp - 0x19], al
and byte [ebp - 0x19], 1
movzx edx, byte [ebp - 0x19]
mov eax, dword [ebp - 0x18]
add edx, eax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 7
cmp eax, dword [ebp + 0xc]
jbe 0x44755f
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 0x16
mov eax, 0xffffffff
jmp 0x4475af
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc]
movzx edx, byte [ebp - 0x19]
xor edx, 1
movzx edx, dl
lea ebx, [edx + str.__.sXXXXXX]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
add ecx, edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], ecx
call fcn.0044733c
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4484bc
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0044e87c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4484ea
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 9
mov eax, 0xffffffff
jmp 0x448538
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_connect]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x448535
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
cmp eax, 0x2733
jne 0x448530
mov dword [esp], 0x2734
mov eax, dword [sym.imp.WS2_32.dll_WSASetLastError]
call eax
sub esp, 4
call fcn.004480fc
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x44947c
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], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test al, al
jne 0x44949e
mov eax, dword [ebp + 8]
jmp 0x449596
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x5b
jne 0x44952c
mov eax, dword [0x6ea1c8]
test eax, eax
jne 0x4494d6
mov dword [esp], 0x6628c4
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4494cc
mov eax, 1
jmp 0x4494d1
mov eax, 0xffffffff
mov dword [0x6ea1c8], eax
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x21
je 0x4494f7
mov eax, dword [0x6ea1c8]
test eax, eax
jns 0x4494fb
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x5e
jne 0x4494fb
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x5d
jne 0x449509
add dword [ebp - 0xc], 1
jmp 0x449520
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
movzx eax, byte [eax]
test al, al
jne 0x449520
mov eax, dword [ebp + 8]
jmp 0x449596
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x5d
jne 0x44950b
jmp 0x449591
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x3f
je 0x44955e
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x2a
je 0x44955e
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x2b
je 0x44955e
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x40
je 0x44955e
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x21
jne 0x44957e
mov eax, dword [ebp - 0xc]
add eax, 1
movzx eax, byte [eax]
cmp al, 0x28
jne 0x44957e
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [esp], eax
call fcn.0044947c
mov dword [ebp - 0xc], eax
jmp 0x449591
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x29
jne 0x449591
nop
mov eax, dword [ebp - 0xc]
add eax, 1
jmp 0x449596
jmp 0x449488
leave
ret
Function at 0x44a733
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]
movzx eax, word [eax]
test ax, ax
jne 0x44a756
mov eax, dword [ebp + 8]
jmp 0x44a86a
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x5b
jne 0x44a7f2
mov eax, dword [0x6ea1c8]
test eax, eax
jne 0x44a790
mov dword [esp], 0x6628c4
call sub.msvcrt.dll_getenv
test eax, eax
je 0x44a786
mov eax, 1
jmp 0x44a78b
mov eax, 0xffffffff
mov dword [0x6ea1c8], eax
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x21
je 0x44a7b5
mov eax, dword [0x6ea1c8]
test eax, eax
jns 0x44a7b9
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x5e
jne 0x44a7b9
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x5d
jne 0x44a7c9
add dword [ebp - 0xc], 2
jmp 0x44a7e4
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov dword [ebp - 0xc], edx
movzx eax, word [eax]
test ax, ax
jne 0x44a7e4
mov eax, dword [ebp + 8]
jmp 0x44a86a
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x5d
jne 0x44a7cb
jmp 0x44a865
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x3f
je 0x44a82e
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x2a
je 0x44a82e
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x2b
je 0x44a82e
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x40
je 0x44a82e
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x21
jne 0x44a850
mov eax, dword [ebp - 0xc]
add eax, 2
movzx eax, word [eax]
cmp ax, 0x28
jne 0x44a850
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [esp], eax
call fcn.0044a733
mov dword [ebp - 0xc], eax
jmp 0x44a865
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x29
jne 0x44a865
nop
mov eax, dword [ebp - 0xc]
add eax, 2
jmp 0x44a86a
jmp 0x44a73f
leave
ret
Function at 0x44b39c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x14], 0
cmp dword [ebp + 0x18], 0
jne 0x44b3d9
mov dword [esp], str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x44b3e0
mov edx, 1
jmp 0x44b3e5
mov edx, 0
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 0x2d
jne 0x44b405
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 2
add dword [ebp + 0x10], 1
jmp 0x44b43f
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 0x2b
jne 0x44b41f
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 0
add dword [ebp + 0x10], 1
jmp 0x44b43f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x44b435
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 0
jmp 0x44b43f
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 1
mov eax, dword [ebp + 0x10]
leave
ret

Function at 0x44cea8
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.0044e87c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x44ced6
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 9
mov eax, 0xffffffff
jmp 0x44cf05
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 0x44cf02
call fcn.0044cae8
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x44d8ec
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 eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x44d91b
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp al, byte [ebp - 9]
jne 0x44d913
mov eax, dword [ebp - 4]
jmp 0x44d9b2
sub dword [ebp + 0x10], 1
add dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0
je 0x44d92b
mov eax, dword [ebp - 4]
and eax, 3
test eax, eax
jne 0x44d900
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0x1010101
movzx eax, byte [ebp - 9]
movzx edx, byte [ebp - 9]
shl edx, 8
or eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 0x10
or dword [ebp - 0x14], eax
jmp 0x44d981
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 0x44d979
jmp 0x44d987
add dword [ebp - 8], 4
sub dword [ebp + 0x10], 4
cmp dword [ebp + 0x10], 3
ja 0x44d953
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x44d9a7
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp al, byte [ebp - 9]
jne 0x44d99f
mov eax, dword [ebp - 4]
jmp 0x44d9b2
sub dword [ebp + 0x10], 1
add dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0
jne 0x44d98f
mov eax, 0
leave
ret

Function at 0x44d9b4
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 0x44d9e8
sub dword [ebp - 4], 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp al, byte [ebp - 9]
jne 0x44d9e4
mov eax, dword [ebp - 4]
jmp 0x44da86
sub dword [ebp + 0x10], 1
cmp dword [ebp + 0x10], 0
je 0x44d9f8
mov eax, dword [ebp - 4]
and eax, 3
test eax, eax
jne 0x44d9cd
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0x1010101
movzx eax, byte [ebp - 9]
movzx edx, byte [ebp - 9]
shl edx, 8
or eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 0x10
or dword [ebp - 0x14], eax
jmp 0x44da52
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 0x44da4e
add dword [ebp - 8], 4
jmp 0x44da58
sub dword [ebp + 0x10], 4
cmp dword [ebp + 0x10], 3
ja 0x44da20
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x44da74
sub dword [ebp - 4], 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp al, byte [ebp - 9]
jne 0x44da74
mov eax, dword [ebp - 4]
jmp 0x44da86
mov eax, dword [ebp + 0x10]
lea edx, [eax - 1]
mov dword [ebp + 0x10], edx
test eax, eax
jne 0x44da60
mov eax, 0
leave
ret
Function at 0x44da88
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 0x44daf3
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2f
jne 0x44daf3
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44dae6
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 0xc
mov eax, 0xffffffff
jmp 0x44db88
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00468c14
jmp 0x44daf9
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00445b70
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
cmp al, 0x2e
jne 0x44db62
mov eax, dword [ebp - 0x14]
add eax, 1
movzx eax, byte [eax]
test al, al
je 0x44db38
mov eax, dword [ebp - 0x14]
add eax, 1
movzx eax, byte [eax]
cmp al, 0x2e
jne 0x44db62
mov eax, dword [ebp - 0x14]
add eax, 2
movzx eax, byte [eax]
test al, al
jne 0x44db62
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00462660
test eax, eax
jne 0x44db5b
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 0x11
mov eax, 0xffffffff
jmp 0x44db88
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 0x44db85
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.006324d0
mov eax, dword [ebp - 0x18]
leave
ret

Function at 0x44ed40
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.0044e87c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x44ed6e
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 9
mov eax, 0xffffffff
jmp 0x44eda4
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 0x44eda1
call fcn.0044e980
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x4520bb
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.00450dc3
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne al
movzx eax, al
test eax, eax
je 0x4520fd
mov eax, 0xc
jmp 0x452215
mov dword [ebp - 0xc], 0
jmp 0x45215e
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 - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
shl edx, 3
add eax, edx
movzx eax, byte [eax + 4]
movzx eax, al
and eax, 8
test eax, eax
jne 0x45215a
mov eax, dword [ebp + 0xc]
lea edx, [eax + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004519e9
xor eax, 1
test al, al
je 0x45215a
mov eax, 0xc
jmp 0x452215
add dword [ebp - 0xc], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0xc]
ja 0x452106
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 - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp edx, eax
setbe al
movzx eax, al
test eax, eax
je 0x4521f2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, 1
add eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0044e934
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
sete al
movzx eax, al
test eax, eax
je 0x4521e0
mov eax, 0xc
jmp 0x452215
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
lea ecx, [eax + 1]
mov edx, dword [ebp - 0x18]
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 0x45c7b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 0x34]
shr al, 5
and eax, 1
movzx eax, al
test eax, eax
je 0x45c807
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0045cc4c
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
movzx eax, al
test eax, eax
je 0x45c807
mov eax, 0
jmp 0x45c8f6
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
movzx eax, 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
movzx eax, al
test eax, eax
je 0x45c852
movzx eax, byte [ebp - 9]
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax]
jmp 0x45c8f6
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne al
movzx eax, al
test eax, eax
je 0x45c8c5
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.00450c71
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 1
test eax, eax
je 0x45c8b1
movzx eax, byte [ebp - 9]
add eax, 0x100
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax]
jmp 0x45c8f6
movzx eax, byte [ebp - 9]
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax]
jmp 0x45c8f6
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.0045e6ff
xor eax, 1
test al, al
je 0x45c8f1
mov eax, dword [ebp + 8]
mov dword [eax], 0xc
mov eax, 0
jmp 0x45c8f6
jmp 0x45c824
add esp, 0x24
pop ebx
pop ebp
ret
Function at 0x461ba8
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.0044e87c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x461bda
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 9
mov eax, 0xffffffff
jmp 0x461c9b
cmp dword [ebp + 0xc], 0xffff
jne 0x461c5e
cmp dword [ebp + 0x10], 0x1006
je 0x461bf5
cmp dword [ebp + 0x10], 0x1005
jne 0x461c5e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
imul ebx, eax, 0x3e8
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 0x461c8d
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 0x461c98
call fcn.004617e8
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x462be1
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 0x462c1b
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 0x462cc3
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 0x462cc0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0xe8
jne 0x462cc0
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x462cc0
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 0x462cc0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0044e87c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileType]
call eax
sub esp, 4
cmp eax, 3
jne 0x462cc0
mov dword [esp], 0xd
call fcn.0046b2d2
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 0x20
jmp 0x462cc0
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x4694d5
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x6ea568]
cmp dword [ebp + 8], eax
jle 0x46955f
mov eax, dword [ebp + 8]
movzx eax, ax
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 0x469515
mov eax, 1
jmp 0x469564
movzx eax, word [ebp - 0x19c]
movzx eax, ax
cmp eax, dword [ebp + 8]
je 0x469532
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 2
jmp 0x469564
mov eax, dword [0x6ea568]
test eax, eax
jne 0x469557
mov dword [esp + 8], 0x6ea558
mov dword [esp + 4], 0x469433
mov dword [esp], 0x4693a0
call fcn.00468d50
mov eax, dword [ebp + 8]
mov dword [0x6ea568], eax
mov eax, 0
leave
ret