joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10038820
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push ebp
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
jne 0x1003885b
push str.Failed_to_resolve_host
push eax
push 0xa
call fcn.10017850
add esp, 0xc
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
push ebx
push esi
push edi
je 0x100388f6
xor ebx, ebx
lea esp, [esp]
mov edx, 2
cmp word [ebp + 8], dx
jne 0x100388f6
mov cx, word [ebp + 0xa]
cmp cx, 4
ja 0x100388e5
mov esi, dword [ebx + eax]
movsx ecx, cx
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov word [esp + 0x14], dx
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x1c], ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push eax
call fcn.10038650
add esp, 4
cmp eax, 0xffffffff
jne 0x100388f9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + eax + 4]
add ebx, 4
test ecx, ecx
jne 0x10038870
pop edi
pop esi
pop ebx
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret
push str.address_size_mismatch_n
push 0
push 0xa
call fcn.10017850
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x14
ret

Function at 0x10038a80
Capabilities:
Initialize winsock library
Query environment variable

Disassembly:
mov eax, dword [0x102d8a30]
sub esp, 0x190
test eax, eax
jne 0x10038b06
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x10038b06
mov eax, dword [0x102d8a34]
test eax, eax
jne 0x10038afc
push esi
mov esi, dword [sym.imp.MSVCR120.dll_getenv]
push str.no_proxy
mov dword [0x102d8a2c], 0x50
call esi
add esp, 4
test eax, eax
je 0x10038ad6
cmp byte [eax], 0x2a
jne 0x10038ad6
mov cl, byte [eax + 1]
test cl, cl
je 0x10038afb
push str.http_proxy
call esi
add esp, 4
test eax, eax
jne 0x10038af2
push str.HTTP_PROXY
call esi
add esp, 4
test eax, eax
je 0x10038afb
push eax
call fcn.10037c20
add esp, 4
pop esi
mov dword [0x102d8a30], 1
add esp, 0x190
ret
Function at 0x100393b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
test esi, esi
je 0x10039484
cmp dword [esi + 0x2c], 0xffffffff
je 0x10039484
mov ecx, dword [esi + 0x440]
test ecx, ecx
jl 0x10039484
cmp ecx, 0x400
jg 0x10039484
mov eax, dword [esi + 0x444]
test eax, eax
jl 0x10039484
cmp eax, 0x400
jg 0x10039484
cmp ecx, eax
jg 0x10039484
test ecx, ecx
jle 0x10039434
sub eax, ecx
push eax
lea eax, [ecx + esi + 0x3c]
push eax
lea ecx, [esi + 0x3c]
push ecx
call dword [sym.imp.MSVCR120.dll_memmove]
mov edx, dword [esi + 0x440]
mov eax, dword [esi + 0x444]
add esp, 0xc
sub eax, edx
mov dword [esi + 0x444], eax
mov dword [esi + 0x440], 0
mov ecx, dword [esi + 0x444]
mov eax, 0x400
sub eax, ecx
jne 0x10039446
xor eax, eax
ret
mov edx, dword [esi + 0x2c]
push 0
push eax
mov eax, dword [esi + 0x440]
lea ecx, [eax + esi + 0x3c]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jge 0x10039488
push str.recv_failed
push 0
push 9
call fcn.10017850
mov eax, dword [esi + 0x2c]
add esp, 0xc
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 0x2c], 0xffffffff
or eax, 0xffffffff
ret
mov ecx, dword [esi + 0x444]
add ecx, eax
mov dword [esi + 0x444], ecx
mov byte [ecx + esi + 0x3c], 0
ret

Function at 0x100395f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc8
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x1003961a
push str.USER_anonymous_r_n
lea eax, [esp + 8]
push 0xc8
push eax
call dword [sym.imp.MSVCR120.dll__snprintf]
add esp, 0xc
jmp 0x10039633
push eax
push str.USER__s_r_n
lea ecx, [esp + 0xc]
push 0xc8
push ecx
call dword [sym.imp.MSVCR120.dll__snprintf]
add esp, 0x10
lea eax, [esp + 4]
mov byte [esp + 0xcb], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10039642
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
test esi, esi
jge 0x1003967e
push str.send_failed
push 0
push 9
call fcn.10017850
add esp, 0xc
mov eax, esi
pop esi
add esp, 0xc8
ret
xor eax, eax
pop esi
add esp, 0xc8
ret

Function at 0x10039690
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc8
push esi
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x100396ba
push str.PASS_anonymous__r_n
lea eax, [esp + 8]
push 0xc8
push eax
call dword [sym.imp.MSVCR120.dll__snprintf]
add esp, 0xc
jmp 0x100396d3
push eax
push str.PASS__s_r_n
lea ecx, [esp + 0xc]
push 0xc8
push ecx
call dword [sym.imp.MSVCR120.dll__snprintf]
add esp, 0x10
lea eax, [esp + 4]
mov byte [esp + 0xcb], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100396e2
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
test esi, esi
jge 0x1003971e
push str.send_failed
push 0
push 9
call fcn.10017850
add esp, 0xc
mov eax, esi
pop esi
add esp, 0xc8
ret
xor eax, eax
pop esi
add esp, 0xc8
ret
Function at 0x10039730
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc8
push esi
mov esi, dword [esp + 0xd0]
or eax, 0xffffffff
test esi, esi
je 0x100397ae
cmp dword [esi + 0x2c], eax
je 0x100397ae
push str.QUIT_r_n
lea eax, [esp + 8]
push 0xc8
push eax
call dword [sym.imp.MSVCR120.dll__snprintf]
lea eax, [esp + 0x10]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10039770
push 0
sub eax, edx
mov edx, dword [esi + 0x2c]
push eax
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
test esi, esi
jge 0x100397ac
push str.send_failed
push 0
push 9
call fcn.10017850
add esp, 0xc
mov eax, esi
pop esi
add esp, 0xc8
ret
xor eax, eax
pop esi
add esp, 0xc8
ret
Function at 0x1003a040
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push ebx
push esi
mov esi, dword [esp + 0x21c]
or ebx, 0xffffffff
test esi, esi
je 0x1003a10e
cmp dword [esi + 0x2c], ebx
je 0x1003a10e
mov eax, dword [esi + 0x30]
push edi
mov edi, dword [sym.imp.WSOCK32.dll_closesocket]
push eax
call edi
mov eax, dword [esi + 0x2c]
mov ecx, 1
mov dword [esp + 0x118], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea ecx, [esp + 0x124]
mov dword [esp + 0x128], eax
mov dword [esp + 0x24], eax
push ecx
inc eax
push eax
mov dword [esi + 0x30], ebx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x24], 0
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jge 0x1003a0d6
mov edx, dword [esi + 0x2c]
push edx
call edi
pop edi
mov dword [esi + 0x2c], ebx
pop esi
mov eax, ebx
pop ebx
add esp, 0x210
ret
jne 0x1003a0ed
mov eax, dword [esi + 0x2c]
push eax
call edi
mov dword [esi + 0x2c], ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret
mov eax, esi
call fcn.100394a0
cmp eax, 2
je 0x1003a0e1
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
mov dword [esi + 0x2c], ebx
pop esi
mov eax, ebx
pop ebx
add esp, 0x210
ret
pop esi
mov eax, ebx
pop ebx
add esp, 0x210
ret
Function at 0x1003a120
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x12c
push esi
mov esi, dword [esp + 0x134]
test esi, esi
jne 0x1003a13d
or eax, 0xffffffff
pop esi
add esp, 0x12c
ret
push ebp
mov ebp, dword [esp + 0x13c]
test ebp, ebp
jne 0x1003a15c
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1003a15c
pop ebp
or eax, 0xffffffff
pop esi
add esp, 0x12c
ret
push esi
call fcn.10039cf0
add esp, 4
cmp eax, 0xffffffff
mov dword [esi + 0x30], eax
je 0x1003a150
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll__snprintf]
push str.TYPE_I_r_n
lea eax, [esp + 0x10]
push 0x12c
push eax
call ebx
lea eax, [esp + 0x18]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003a190
push edi
mov edi, dword [sym.imp.WSOCK32.dll_send]
push 0
sub eax, edx
mov edx, dword [esi + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call edi
test eax, eax
jge 0x1003a1de
push str.send_failed
push 0
push 9
call fcn.10017850
mov eax, dword [esi + 0x30]
add esp, 0xc
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop ebx
or eax, 0xffffffff
pop ebp
mov dword [esi + 0x30], eax
pop esi
add esp, 0x12c
ret
mov eax, esi
call fcn.100394a0
cmp eax, 2
jne 0x1003a253
test ebp, ebp
jne 0x1003a203
mov edx, dword [esi + 0xc]
push edx
push str.RETR__s_r_n
push 0x12c
lea eax, [esp + 0x1c]
push eax
jmp 0x1003a213
push ebp
push str.RETR__s_r_n
push 0x12c
lea ecx, [esp + 0x1c]
push ecx
call ebx
lea eax, [esp + 0x20]
add esp, 0x10
mov byte [esp + 0x13b], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003a227
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0x18]
push edx
push eax
call edi
test eax, eax
jge 0x1003a26e
push str.send_failed
push 0
push 9
call fcn.10017850
add esp, 0xc
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop ebx
or eax, 0xffffffff
pop ebp
mov dword [esi + 0x30], eax
pop esi
add esp, 0x12c
ret
mov eax, esi
call fcn.100394a0
cmp eax, 1
je 0x1003a295
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop ebx
or eax, 0xffffffff
pop ebp
mov dword [esi + 0x30], eax
pop esi
add esp, 0x12c
ret
mov eax, dword [esi + 0x30]
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x12c
ret
Function at 0x1003a370
Capabilities:
Initialize winsock library
Query environment variable

Disassembly:
mov eax, dword [0x102d8a38]
sub esp, 0x190
test eax, eax
jne 0x1003a42f
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x1003a42f
push esi
mov esi, dword [sym.imp.MSVCR120.dll_getenv]
push str.no_proxy
mov dword [0x102d8a40], 0x15
call esi
add esp, 4
test eax, eax
je 0x1003a3c5
cmp byte [eax], 0x2a
jne 0x1003a3c5
mov cl, byte [eax + 1]
test cl, cl
je 0x1003a42e
push str.ftp_proxy
call esi
add esp, 4
test eax, eax
jne 0x1003a3e1
push str.FTP_PROXY
call esi
add esp, 4
test eax, eax
je 0x1003a3ea
push eax
call fcn.100391e0
add esp, 4
push str.ftp_proxy_user
call esi
add esp, 4
test eax, eax
je 0x1003a407
push eax
call dword [0x102d00d0]
add esp, 4
mov dword [0x102d8a44], eax
push str.ftp_proxy_password
call esi
add esp, 4
test eax, eax
je 0x1003a424
push eax
call dword [0x102d00d0]
add esp, 4
mov dword [0x102d8a48], eax
mov dword [0x102d8a38], 1
pop esi
add esp, 0x190
ret

Function at 0x1003aa40
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x102d8c14]
test eax, eax
je 0x1003aa4d
or eax, 0xffffffff
ret
push esi
push edi
mov dword [0x102d8c14], 1
call fcn.10031420
mov esi, dword [sym.imp.MSVCR120.dll_getenv]
push str.XML_MEM_BREAKPOINT
mov dword [0x102d8c24], eax
call esi
mov edi, dword [sym.imp.MSVCR120.dll_sscanf]
add esp, 4
test eax, eax
je 0x1003aa8d
push 0x102d8c2c
push 0x101a3ecc
push eax
call edi
add esp, 0xc
push str.XML_MEM_TRACE
call esi
add esp, 4
test eax, eax
je 0x1003aaab
push 0x102d8c30
push 0x101a3eb8
push eax
call edi
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret

Function at 0x1003c4d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov dword [esi], 0
lea esp, [esp]
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov ecx, edi
sub ecx, eax
push ecx
add eax, edx
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.MSVCR120.dll__read]
add esp, 0xc
test eax, eax
jle 0x1003c50c
mov edx, dword [esi]
add edx, eax
mov ecx, edx
cmp ecx, edi
mov dword [esi], edx
jb 0x1003c4e0
test eax, eax
jge 0x1003c52e
call dword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push 0xffffffffffffffff
push ebx
call fcn.1003c100
add esp, 0x10
or eax, 0xffffffff
pop ebp
ret
test eax, eax
jne 0x1003c539
mov dword [ebx + 0x28], 1
xor eax, eax
pop ebp
ret
Function at 0x1003d750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x2c]
push ebx
push esi
push edi
mov dword [ebp - 4], edx
jmp 0x1003d770
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
lea ebx, [ebx]
mov ecx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x74]
mov esi, dword [eax + 0x6c]
mov edi, dword [eax + 0x2c]
sub ecx, ebx
sub ecx, esi
lea edi, [edx + edi - 0x106]
cmp esi, edi
mov dword [ebp - 8], ecx
jb 0x1003d800
mov edi, dword [eax + 0x38]
mov ecx, edx
mov ebx, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax + 0x70]
mov esi, dword [eax + 0x6c]
mov ecx, dword [eax + 0x5c]
sub edi, edx
sub esi, edx
sub ecx, edx
mov dword [eax + 0x70], edi
mov edi, dword [eax + 0x4c]
mov dword [eax + 0x5c], ecx
mov ecx, dword [eax + 0x44]
mov dword [eax + 0x6c], esi
lea esi, [ecx + edi*2]
movzx ecx, word [esi - 2]
sub esi, 2
cmp ecx, edx
jb 0x1003d7d4
sub ecx, edx
jmp 0x1003d7d6
xor ecx, ecx
dec edi
mov word [esi], cx
jne 0x1003d7c5
mov ecx, dword [eax + 0x40]
mov edi, edx
lea esi, [ecx + edx*2]
movzx ecx, word [esi - 2]
sub esi, 2
cmp ecx, edx
jb 0x1003d7f3
sub ecx, edx
jmp 0x1003d7f5
xor ecx, ecx
dec edi
mov word [esi], cx
jne 0x1003d7e4
mov ecx, dword [ebp - 8]
add ecx, edx
mov ebx, dword [eax]
mov edx, dword [ebx + 4]
test edx, edx
je 0x1003d8f7
mov edx, dword [eax + 0x74]
mov esi, dword [eax + 0x6c]
mov edi, dword [eax + 0x38]
add edx, esi
add edx, edi
push edx
call fcn.1003d4d0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x74]
add ecx, eax
mov edi, ecx
add esp, 4
cmp edi, 3
mov dword [edx + 0x74], ecx
jb 0x1003d855
mov eax, dword [edx + 0x6c]
mov ecx, dword [edx + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edx + 0x58]
mov dword [edx + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edx + 0x54]
mov dword [edx + 0x48], eax
cmp edi, 0x106
jae 0x1003d86d
mov edx, dword [edx]
mov eax, dword [edx + 4]
test eax, eax
jne 0x1003d764
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x16c0]
mov eax, dword [edx + 0x3c]
cmp ebx, eax
jae 0x1003d8f7
mov esi, dword [edx + 0x6c]
add esi, edi
cmp ebx, esi
jae 0x1003d8c0
sub eax, esi
cmp eax, 0x102
mov dword [ebp + 8], eax
jbe 0x1003d897
mov eax, 0x102
mov dword [ebp + 8], eax
mov edi, dword [edx + 0x38]
mov ecx, eax
mov ebx, ecx
add edi, esi
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
pop edi
add eax, esi
pop esi
mov dword [edx + 0x16c0], eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x102]
cmp ebx, ecx
jae 0x1003d8f7
sub esi, ebx
add esi, 0x102
sub eax, ebx
cmp esi, eax
jbe 0x1003d8da
mov esi, eax
mov edi, dword [edx + 0x38]
add edi, ebx
mov ecx, esi
mov ebx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
add dword [edx + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003f580
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x1003f58e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.1003f2e0
Function at 0x1006cb70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018ab98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x102d5908]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x1006cc9d
cmp byte [edi + 0x45], 0
je 0x1006cc9d
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1006cbc4
xor al, al
jmp 0x1006cc9f
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x48]
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmp ebx, 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
push esi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1006cc31
dec eax
je 0x1006cc35
sub eax, 2
je 0x1006cc86
xor bl, bl
jmp 0x1006cc88
mov byte [edi + 0x45], 0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp ebx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x1006cc68
push dword [edi + 0x50]
cmp ebx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1006cc2d
cmp byte [edi + 0x45], 0
je 0x1006cc86
test esi, esi
lea esi, [edi + 0x48]
jne 0x1006cbf7
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.1006d7d0
jmp 0x1006cbf4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x1006cc99
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
jmp 0x1006cc9f
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018427c
mov esp, ebp
pop ebp
ret
Function at 0x1006f810
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x594
mov eax, dword [0x102d5908]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x594]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x1006f854
push 0x400
lea eax, [ebp - 0x404]
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x1006f865
call sub.WSOCK32.dll_WSACleanup
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018427c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x404]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ecx, eax
test ecx, ecx
je 0x1006f84f
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [esi], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [esi + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [esi + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [esi + 3], al
call sub.WSOCK32.dll_WSACleanup
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1018427c
mov esp, ebp
pop ebp
ret

Function at 0x1006fab0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5108
call fcn.101845a0
mov eax, dword [0x102d5908]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x5108]
push eax
lea eax, [ebp - 0x5104]
mov dword [ebp - 0x5108], 0x5100
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x1006fb4f
lea eax, [ebp - 0x5104]
cmp dword [eax + 0x1a0], 6
je 0x1006fb10
mov eax, dword [eax]
test eax, eax
jne 0x1006faf2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018427c
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._.2x_.2x_.2x_.2x_.2x_.2x
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x20
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1018427c
mov esp, ebp
pop ebp
ret
Function at 0x10083800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101885a7
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x102d5908]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [edi + 0x18], 0
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], 0
mov dword [ebp - 4], 0
mov byte [edi + 0x1c], 0
lea ecx, [edi + 0x3c]
mov byte [ebp - 4], 1
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.1009b400
mov dword [edi + 0x3c], eax
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 2
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
call fcn.1009b400
mov dword [edi + 0x44], eax
mov dword [edi + 0x4c], 0
mov dword [edi + 0x64], 0xf
mov dword [edi + 0x60], 0
mov byte [edi + 0x50], 0
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 4
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push 0x102c07f1
mov byte [ecx], 0
call fcn.10050790
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10084d50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax]
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10084d60
sub ecx, edx
mov esi, 0x811c9dc5
mov edx, 0
je 0x10084d86
movzx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10084d75
push 0x1f31d
and esi, 0x7fffffff
push esi
call dword [sym.imp.MSVCR120.dll_ldiv]
imul ecx, eax, 0xb14
add esp, 8
imul edx, edx, 0x41a7
pop edi
pop esi
sub edx, ecx
lea eax, [edx + 0x7fffffff]
js 0x10084db5
mov eax, edx
pop ebp
ret 4
Function at 0x1009cd50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov ecx, dword [ebx]
cmp esi, dword [ecx]
jne 0x1009cd83
cmp eax, ecx
jne 0x1009cd83
mov ecx, ebx
call fcn.1009c750
mov eax, dword [ebx]
pop esi
pop ebx
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, eax
je 0x1009ce68
push edi
lea esp, [esp]
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 8]
lea edx, [eax + 1]
jmp 0x1009cda0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009cda0
sub eax, edx
mov edi, 0x811c9dc5
mov edx, 0
je 0x1009cdcc
mov ebx, dword [esi + 8]
movzx ecx, byte [edx + ebx]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, eax
jb 0x1009cdb8
mov ebx, dword [ebp - 4]
push 0x1f31d
and edi, 0x7fffffff
push edi
call dword [sym.imp.MSVCR120.dll_ldiv]
imul edx, edx, 0x41a7
add esp, 8
imul eax, eax, 0xb14
sub edx, eax
jns 0x1009cdf7
add edx, 0x7fffffff
mov edi, dword [ebx + 0x14]
mov ecx, edi
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x1009ce0c
shr edi, 1
or eax, 0xffffffff
sub eax, edi
add ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
add ecx, edx
cmp dword [ecx + 4], esi
jne 0x1009ce38
cmp dword [ecx], esi
jne 0x1009ce30
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
mov dword [edx + ecx + 4], eax
jmp 0x1009ce40
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x1009ce40
cmp dword [ecx], esi
jne 0x1009ce40
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push esi
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 0xc]
add esp, 4
cmp esi, dword [ebp + 0x10]
jne 0x1009cd90
pop edi
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc