joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401512e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1d0]
mov rbx, rcx
mov rdx, qword [rcx + 0x20]
cmp dword [rax + 0x10], 0
je 0x140151310
mov byte [rdx + 0x736], 0xd
mov r8b, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.140151ad0
cmp byte [rcx + 0xaa7], 0
je 0x140151325
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.140150800
cmp byte [rcx + 0xaaa], 0
je 0x1401513a3
mov r9, qword [rdx + 0x6e0]
test r9, r9
jne 0x140151368
mov r9, qword [rcx + 0x760]
test r9, r9
jne 0x14015135f
cmp byte [rbx + 0x130b], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x14015137f
cmp byte [rcx + 0x130f], 0
lea r8, str.PRET_STOR__s
jne 0x14015137f
lea r8, str.PRET_RETR__s
add rdx, 0x628
mov rcx, rbx
call fcn.14016bf40
test eax, eax
jne 0x1401513ad
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x736], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140151230
add rsp, 0x20
pop rbx
ret

Function at 0x140152aa0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x140152adf
lea rdx, str.Couldnt_set_desired_mode
call fcn.140101f40
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x140152b3b
cmp edx, 0xc8
je 0x140152af6
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140102070
cmp sil, 0x13
jne 0x140152b09
mov rdx, rbp
mov rcx, rbx
call fcn.1401513c0
jmp 0x140152b37
cmp sil, 0x14
jne 0x140152b19
mov rcx, rbx
call fcn.140151460
jmp 0x140152b37
cmp sil, 0x15
jne 0x140152b24
mov r8b, reloc.WS2_32.dll_listen
jmp 0x140152b2d
cmp sil, 0x16
jne 0x140152b39
mov r8b, reloc.WLDAP32.dll_Ordinal_14
mov dl, 1
mov rcx, rbx
call fcn.140151ad0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov byte [rsp + 0x20], 0xff
mov rcx, qword [rcx + 0x20]
mov esi, r8d
mov edi, edx
mov byte [rsp + 0x22], sil
mov byte [rsp + 0x21], dil
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov r8d, 3
mov rcx, qword [rcx + 0x220]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140156199
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140101f40
mov r9d, esi
lea rdx, str.SENT
mov r8d, edi
mov rcx, rbx
call fcn.140156000
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140156f40
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1401570f9
push rsi
push rdi
push r13
sub rsp, 0x30
mov rsi, qword [rcx + 0x1d0]
mov rdi, rcx
mov r13, qword [rcx + 0x20]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x28], r14
lea rbx, [rsi + 0x1ed8]
lea r14, [rsi + 0x1cd8]
mov qword [rsp + 0x20], r15
mov qword [rbx], r14
mov rax, r14
cmp r14, rbx
jae 0x140156f97
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140156fb0
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140156fb0
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rsi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rsi + 0x1caa]
movzx ebp, ax
shr bp, 8
movzx r15d, ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
shr cx, 8
cmp r9, rbx
jae 0x140156fed
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp r9, rbx
jae 0x140157000
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x60]
cmp r9, rbx
jae 0x14015703f
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14015703f
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14015703f
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14015703f
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rsi + 0x1ee0], r9
lea r8, [rsi + 0x1cda]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.1401561d0
mov rcx, qword [r13 + 0x220]
xor r9d, r9d
mov r8d, 3
mov rdx, r14
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
test eax, eax
jns 0x1401570a3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140101f40
lea rdx, [rsi + 0x1cdb]
mov r8d, 4
mov rcx, rdi
call fcn.140157a30
mov rcx, qword [r13 + 0x220]
lea rdx, [rsi + 0x1cdf]
xor r9d, r9d
mov r8d, 2
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401570f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140101f40
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret
Function at 0x140158940
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x50
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov esi, r13d
lea r9, [rsp + 0x20]
mov ebp, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r15d, eax
test eax, eax
jne 0x140158ac0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x140158aa0
mov qword [rsp + 0x38], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1401589be
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r13b
jne 0x1401589b0
inc rbx
jmp 0x1401589c1
mov rbx, r13
cmp dword [rdi + 4], 2
jne 0x140158a4d
cmp qword [rdi + 0x20], r13
je 0x140158a4d
cmp qword [rdi + 0x10], 0x10
jb 0x140158a4d
lea rcx, [rbx + 0x40]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x140158a5c
mov ecx, dword [rdi]
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
mov rax, qword [rdi + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
test rbx, rbx
je 0x140158a3a
add rcx, 0x10
mov r8, rbx
mov qword [r14 + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rsi, rsi
cmove rsi, r14
test rbp, rbp
je 0x140158a4a
mov qword [rbp + 0x28], r14
mov rbp, r14
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1401589a0
jmp 0x140158a62
mov r15d, 8
mov rcx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x38]
test rcx, rcx
je 0x140158a77
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r15d, r15d
je 0x140158a9b
test rsi, rsi
je 0x140158a96
mov rbx, qword [rsi + 0x28]
mov rcx, rsi
call qword [fcn.14016f1de]
mov rsi, rbx
test rbx, rbx
jne 0x140158a81
mov rsi, r13
jmp 0x140158aaf
test rsi, rsi
jne 0x140158aaf
mov r15d, 0x2af9
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x40]
mov eax, r15d
mov rbx, qword [rsp + 0x48]
mov qword [r12], rsi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x50
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x140162080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push rbp
push rdi
sub rsp, 0x58
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, r8
mov rbp, rcx
cmp rdx, r8
jae 0x140162278
movzx r9d, byte [rdx]
lea rcx, [r11 - 0x48]
mov qword [r11 + 0x18], rbx
mov eax, 0xcccccccd
lea rbx, [rdx + 1]
mov qword [r11 - 0x18], rsi
mul r9d
mov qword [r11 - 0x48], 0
shr edx, 5
mov r8d, edx
mov qword [r11 - 0x40], 0
mov qword [r11 - 0x38], 0
mov qword [r11 - 0x30], 0x2710
lea eax, [rdx + rdx*4]
shl eax, 3
lea rdx, str._u._u
sub r9d, eax
call fcn.1401007e0
mov esi, eax
test eax, eax
jne 0x140162234
cmp rbx, rdi
jae 0x140162153
nop dword [rax]
xor r8d, r8d
test r8d, 0xff000000
jne 0x140162255
movzx edx, byte [rbx]
mov eax, r8d
shl eax, 7
mov ecx, edx
and ecx, 0x7f
inc rbx
mov r8d, ecx
or r8d, eax
test dl, dl
js 0x140162113
lea rdx, [0x1402b5030]
lea rcx, [rsp + 0x20]
call fcn.1401007e0
mov esi, eax
cmp rbx, rdi
jb 0x140162110
test esi, esi
jne 0x140162232
mov rax, qword [str.1.2.840.10040.4.1]
lea r10, str.1.2.840.10040.4.1
mov r9, qword [rsp + 0x20]
test rax, rax
je 0x140162229
lea r11, [0x14026b9b0]
nop
mov r8, r9
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1401621a3
inc rax
test ecx, ecx
jne 0x140162190
test edx, edx
je 0x1401621ff
mov rax, qword [r10 + 8]
test rax, rax
je 0x140162260
test r9, r9
je 0x140162265
cmp byte [rax], 0
mov r8, r9
je 0x1401621ea
movzx ecx, byte [r8]
test cl, cl
je 0x1401621ea
movzx edx, byte [rax]
movzx ecx, byte [rcx + r11]
cmp byte [rdx + r11], cl
jne 0x14016225c
inc rax
inc r8
cmp byte [rax], 0
jne 0x1401621c5
xor ecx, ecx
cmp byte [rax], cl
sete cl
xor eax, eax
cmp byte [r8], al
setne al
xor ecx, eax
test ecx, ecx
je 0x140162265
test r10, r10
je 0x140162229
mov rdx, qword [r10 + 8]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140162210
mov rcx, rbp
call fcn.1401005b0
mov r9, qword [rsp + 0x20]
mov esi, eax
mov rcx, r9
call qword [fcn.14016f1de]
mov eax, esi
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x58
pop rdi
pop rbp
ret
xor esi, esi
jmp 0x14016215b
xor ecx, ecx
jmp 0x1401621fb
test r9, r9
je 0x1401621ff
mov rax, qword [r10 + 0x10]
add r10, 0x10
test rax, rax
jne 0x140162180
jmp 0x140162229
xor eax, eax
jmp 0x140162241
Function at 0x14016b850
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [rcx + 0x31c]
movzx ebp, r8b
mov r14, qword [rcx + 0x20]
mov rsi, rcx
mov ebx, eax
test eax, eax
jne 0x14016b896
mov rbx, qword [rdx + 0x38]
cmp byte [0x1402df141], 0
movups xmm0, xmmword [rdx + 0x28]
movaps xmmword [rsp + 0x20], xmm0
je 0x14016b8d9
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x1402df138]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402df138]
mov rcx, rax
jmp 0x14016b8fc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov r8d, edx
sub ecx, eax
imul ecx, ecx, 0x3e8
movaps xmm0, xmmword [rsp + 0x20]
movabs r13, 0x20c49ba5e353f7
movq rax, xmm0
movabs rdi, 0x7fffffffffffffff
sub r8, rax
movabs r12, 0xffdf3b645a1cac09
movabs r15, 0x8000000000000000
cmp r8, r13
jl 0x14016b93b
mov rcx, rdi
jmp 0x14016b96e
cmp r8, r12
jg 0x14016b945
mov rcx, r15
jmp 0x14016b96e
psrldq xmm0, 8
movd eax, xmm0
sub ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r8, 0x3e8
movsxd rcx, edx
add rcx, rax
sub rbx, rcx
cmp dword [rsi + 0x310], 0
je 0x14016ba4b
test bpl, bpl
jne 0x14016ba4b
cmp byte [0x1402df141], bpl
movups xmm0, xmmword [r14 + 0x1f0]
movaps xmmword [rsp + 0x20], xmm0
je 0x14016b9ce
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x1402df138]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402df138]
mov r9, rax
jmp 0x14016b9f2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov r8d, edx
sub ecx, eax
imul r9d, ecx, 0x3e8
movaps xmm0, xmmword [rsp + 0x20]
movq rax, xmm0
sub r8, rax
cmp r8, r13
jge 0x14016ba39
cmp r8, r12
jg 0x14016ba0e
mov rdi, r15
jmp 0x14016ba39
mov eax, 0x10624dd3
psrldq xmm0, 8
movd ecx, xmm0
sub r9d, ecx
imul r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r8, 0x3e8
movsxd rdi, edx
add rdi, rax
mov eax, dword [rsi + 0x310]
sub rax, rdi
cmp rbx, rax
cmovl rax, rbx
jmp 0x14016ba4e
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14016dfe0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14016cbf0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, Ordinal_27
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14016cc3c
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14016cd07
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14016cc80
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x14016cd07
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x14016cce3
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14016ccf3
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14016cd05
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14016cd20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x38
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x18]
mov rdi, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea edx, [rax + rax]
add rcx, rdx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14016ce5b
lea rcx, [rax + 0x18]
mov qword [rax], rdi
mov qword [rax + 8], rcx
mov eax, dword [rdi + 0x18]
add rax, rcx
mov qword [rsp + 0x78], rbp
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x30], r14
cmp r15d, dword [rdi + 0x1c]
jbe 0x14016cdad
call qword [rdi]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi + reloc.WS2_32.dll_htonl]
mov esi, dword [rdi + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rdi + reloc.WS2_32.dll_recv]
mov r15d, dword [rdi + 0x20]
mov rcx, qword [rbx + 8]
call qword [rdi]
mov rcx, qword [rbx + 0x10]
call qword [rdi]
xor ebp, ebp
test r15, r15
je 0x14016ce10
mov rbp, r15
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x20]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x20], al
mov rcx, qword [rbx + 8]
call qword [rdi + reloc.WS2_32.dll_htonl]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x20]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x20], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x14016cdd0
mov eax, dword [rdi + 0x1c]
mov r14, qword [rsp + 0x30]
cmp rbp, rax
jae 0x14016ce53
nop dword [rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140222e7f]
mov r8d, 1
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140222e7e]
mov r8d, 1
call qword [rdi + reloc.WS2_32.dll_htonl]
mov eax, dword [rdi + 0x1c]
inc rbp
cmp rbp, rax
jb 0x14016ce20
mov rbp, qword [rsp + 0x78]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x38
pop r15
pop rdi
pop rsi
pop rbx
ret

Function at 0x14016d3fc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14016d436
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14016d43b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14016d484
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14016d484
dec r8
sub rdx, 1
jne 0x14016d46a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14016ef58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14016efa2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14016efa2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14016efa2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14016efa2
cmp dword [rcx + 0x84], 0xe
jbe 0x14016efa2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14016efa4
xor al, al
add rsp, 0x28
ret
Function at 0x1401810b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.14016fd60
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x140181106
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14018115d
mov ebp, 0x4b0000
jmp 0x14018116b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.1401722e0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x140181181
mov eax, r12d
jmp 0x14018118a
mov edx, edi
mov ecx, ebp
call fcn.1401722e0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x1401811a6
shl esi, 0x10
mov ecx, esi
jmp 0x140181295
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x140181204
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.14016fd60
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1401811f4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1401721b0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.14016fd60
add ebx, eax
jmp 0x14018129e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x140181211
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x140181250
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.14016fd60
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x140181255
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1401721b0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.14016fd60
add ebx, eax
jmp 0x14018129e
cmp eax, r12d
jge 0x14018128e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.14016fd60
sub ebp, eax
sub r15d, esi
je 0x14018128e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1401721b0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.14016fd60
add ebx, eax
jmp 0x14018129e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.14016fd60
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.14016fd60
Function at 0x1401cd440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1401cd5dc
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1401cd5dc
cmp r10d, r14d
jne 0x1401cd4e0
sub rbx, 0x10
jmp 0x1401cd624
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1401cd552
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1401cd514
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1401cd51c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1401cd53b
movzx edx, r11b
mov rcx, rsi
call fcn.1401ce510
test al, al
jne 0x1401cd635
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1401cec30
test al, al
jne 0x1401cd635
mov edx, dword [rsi + 0x64]
lea r9, [0x1401cef90]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1401cd57e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1401cd2c0
jmp 0x1401cd5d2
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1401cd2c0
test dil, dil
je 0x1401cd5ca
cmp byte [rsi + 0x6a], 0
jne 0x1401cd5ca
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1401cd635
sub rbx, 0x10
jmp 0x1401cd624
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1401cd639
mov ebp, dword [rbx]
jmp 0x1401cd4a0
mov al, 1
jmp 0x1401cd642
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14016dfe0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret