joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014acc0
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 0x14014acf0
mov byte [rdx + 0x736], 0xd
mov r8b, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.14014b4b0
cmp byte [rcx + 0xaa7], 0
je 0x14014ad05
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.14014a190
cmp byte [rcx + 0xaaa], 0
je 0x14014ad83
mov r9, qword [rdx + 0x6e0]
test r9, r9
jne 0x14014ad48
mov r9, qword [rcx + 0x760]
test r9, r9
jne 0x14014ad3f
cmp byte [rbx + 0x130b], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x14014ad5f
cmp byte [rcx + 0x130f], 0
lea r8, str.PRET_STOR__s
jne 0x14014ad5f
lea r8, str.PRET_RETR__s
add rdx, 0x628
mov rcx, rbx
call fcn.1401692a0
test eax, eax
jne 0x14014ad8d
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x736], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14014ac10
add rsp, 0x20
pop rbx
ret

Function at 0x14014c460
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 0x14014c49d
lea rdx, str.Couldnt_set_desired_mode
call fcn.140115830
lea eax, [rdi + 0x11]
jmp 0x14014c4f9
cmp edx, 0xc8
je 0x14014c4b4
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140115960
cmp sil, 0x13
jne 0x14014c4c7
mov rdx, rbp
mov rcx, rbx
call fcn.14014ada0
jmp 0x14014c4f5
cmp sil, 0x14
jne 0x14014c4d7
mov rcx, rbx
call fcn.14014ae40
jmp 0x14014c4f5
cmp sil, 0x15
jne 0x14014c4e2
mov r8b, reloc.WS2_32.dll_listen
jmp 0x14014c4eb
cmp sil, 0x16
jne 0x14014c4f7
mov r8b, reloc.WLDAP32.dll_Ordinal_14
mov dl, 1
mov rcx, rbx
call fcn.14014b4b0
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 0x14014fb10
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1402d9040]
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
xor r9d, r9d
mov byte [rsp + 0x21], dil
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x220]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14014fb77
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140115830
mov r9d, esi
lea rdx, str.SENT
mov r8d, edi
mov rcx, rbx
call fcn.14014f9e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016b380
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140150890
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140150a46
push rbp
push rsi
push r13
sub rsp, 0x30
mov rbp, qword [rcx + 0x1d0]
mov rsi, rcx
mov r13, qword [rcx + 0x20]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdi
lea rdi, [rbp + 0x1cd8]
mov qword [rsp + 0x28], r14
lea rbx, [rbp + 0x1ed8]
mov qword [rsp + 0x20], r15
mov qword [rbx], rdi
mov rax, rdi
cmp rdi, rbx
jae 0x1401508e6
lea rax, [rdi + 1]
mov byte [rdi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1401508ff
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401508ff
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rbp + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rbp + 0x1caa]
movzx r14d, ax
shr r14w, 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 0x14015093e
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp r9, rbx
jae 0x140150951
mov byte [r9], r14b
inc qword [rbx]
mov r9, qword [rbx]
mov r14, qword [rsp + 0x28]
cmp r9, rbx
jae 0x140150990
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140150990
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140150990
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140150990
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rbp + 0x1ee0], r9
lea r8, [rbp + 0x1cda]
sub r9, rdi
mov qword [rbx], rdi
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.14014fbb0
mov rcx, qword [r13 + 0x220]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
test eax, eax
jns 0x1401509f2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140115830
lea rdx, [rbp + 0x1cdb]
mov r8d, 4
mov rcx, rsi
call fcn.140151370
mov rcx, qword [r13 + 0x220]
lea rdx, [rbp + 0x1cdf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140150a3e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140115830
add rsp, 0x30
pop r13
pop rsi
pop rbp
ret
Function at 0x140152220
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x50
mov rax, qword [0x1402d9040]
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 0x1401523a0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x140152380
mov qword [rsp + 0x38], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14015229e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r13b
jne 0x140152290
inc rbx
jmp 0x1401522a1
mov rbx, r13
cmp dword [rdi + 4], 2
jne 0x14015232d
cmp qword [rdi + 0x20], r13
je 0x14015232d
cmp qword [rdi + 0x10], 0x10
jb 0x14015232d
lea rcx, [rbx + 0x40]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14015233c
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 0x14015231a
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 0x14015232a
mov qword [rbp + 0x28], r14
mov rbp, r14
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140152280
jmp 0x140152342
mov r15d, 8
mov rcx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x38]
test rcx, rcx
je 0x140152357
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r15d, r15d
je 0x14015237b
test rsi, rsi
je 0x140152376
mov rbx, qword [rsi + 0x28]
mov rcx, rsi
call qword [fcn.14016c458]
mov rsi, rbx
test rbx, rbx
jne 0x140152361
mov rsi, r13
jmp 0x14015238f
test rsi, rsi
jne 0x14015238f
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.14016b380
add rsp, 0x50
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x14015e240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push rbp
push rdi
sub rsp, 0x58
mov rax, qword [0x1402d9040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov rbp, rcx
cmp rdx, r8
jae 0x14015e438
movzx r9d, byte [rdx]
lea rcx, [r11 - 0x40]
mov qword [r11 + 0x18], rbx
mov eax, 0xcccccccd
lea rbx, [rdx + 1]
mov qword [r11 - 0x18], rsi
mul r9d
mov qword [r11 - 0x40], 0
shr edx, 5
mov r8d, edx
mov qword [r11 - 0x38], 0
mov qword [r11 - 0x30], 0
mov qword [r11 - 0x28], 0x2710
lea eax, [rdx + rdx*4]
shl eax, 3
lea rdx, str._u._u
sub r9d, eax
call fcn.1401073e0
mov esi, eax
test eax, eax
jne 0x14015e3f4
cmp rbx, rdi
jae 0x14015e313
nop dword [rax]
xor r8d, r8d
test r8d, 0xff000000
jne 0x14015e415
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 0x14015e2d3
lea rdx, [0x1402b2744]
lea rcx, [rsp + 0x28]
call fcn.1401073e0
mov esi, eax
cmp rbx, rdi
jb 0x14015e2d0
test esi, esi
jne 0x14015e3f2
mov rax, qword [str.1.2.840.10040.4.1]
lea r10, str.1.2.840.10040.4.1
mov r9, qword [rsp + 0x28]
test rax, rax
je 0x14015e3e9
lea rbx, [0x140269d90]
nop
mov r8, r9
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14015e363
inc rax
test ecx, ecx
jne 0x14015e350
test edx, edx
je 0x14015e3bd
mov rax, qword [r10 + 8]
test rax, rax
je 0x14015e420
test r9, r9
je 0x14015e425
cmp byte [rax], 0
mov r8, r9
je 0x14015e3a8
movzx ecx, byte [r8]
test cl, cl
je 0x14015e3a8
movzx edx, byte [rax]
movzx ecx, byte [rcx + rbx]
cmp byte [rdx + rbx], cl
jne 0x14015e41c
inc rax
inc r8
cmp byte [rax], 0
jne 0x14015e385
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 0x14015e425
test r10, r10
je 0x14015e3e9
mov rdx, qword [r10 + 8]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14015e3d0
mov rcx, rbp
call fcn.1401071b0
mov r9, qword [rsp + 0x28]
mov esi, eax
mov rcx, r9
call qword [fcn.14016c458]
mov eax, esi
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14016b380
add rsp, 0x58
pop rdi
pop rbp
ret
xor esi, esi
jmp 0x14015e31b
xor ecx, ecx
jmp 0x14015e3b9
test r9, r9
je 0x14015e3bd
mov rax, qword [r10 + 0x10]
add r10, 0x10
test rax, rax
jne 0x14015e340
jmp 0x14015e3e9
xor eax, eax
jmp 0x14015e401
Function at 0x140168bb0
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 [0x1402d9040]
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 0x140168bf6
mov rbx, qword [rdx + 0x38]
cmp byte [0x1402dbf21], 0
movups xmm0, xmmword [rdx + 0x28]
movaps xmmword [rsp + 0x20], xmm0
je 0x140168c39
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x1402dbf18]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402dbf18]
mov rcx, rax
jmp 0x140168c5c
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 0x140168c9b
mov rcx, rdi
jmp 0x140168cce
cmp r8, r12
jg 0x140168ca5
mov rcx, r15
jmp 0x140168cce
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 0x140168dab
test bpl, bpl
jne 0x140168dab
cmp byte [0x1402dbf21], bpl
movups xmm0, xmmword [r14 + 0x1f0]
movaps xmmword [rsp + 0x20], xmm0
je 0x140168d2e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x1402dbf18]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402dbf18]
mov r9, rax
jmp 0x140168d52
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 0x140168d99
cmp r8, r12
jg 0x140168d6e
mov rdi, r15
jmp 0x140168d99
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 0x140168dae
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14016b380
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 0x140169f90
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 [0x1402d9040]
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_26
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140169fdc
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14016a0a6
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 0x14016a020
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x14016a0a6
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 dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x14016a082
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 0x14016a092
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14016a0a4
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14016b380
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14016a0c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x38
mov rax, qword [0x1402d9040]
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 0x14016a1fb
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 0x14016a14d
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 0x14016a1b0
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 0x14016a170
mov eax, dword [rdi + 0x1c]
mov r14, qword [rsp + 0x30]
cmp rbp, rax
jae 0x14016a1f3
nop dword [rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140220d9f]
mov r8d, 1
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140220d9e]
mov r8d, 1
call qword [rdi + reloc.WS2_32.dll_htonl]
mov eax, dword [rdi + 0x1c]
inc rbp
cmp rbp, rax
jb 0x14016a1c0
mov rbp, qword [rsp + 0x78]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016b380
add rsp, 0x38
pop r15
pop rdi
pop rsi
pop rbx
ret

Function at 0x14016a790
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 0x14016a7ca
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14016a7cf
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 0x14016a818
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 0x14016a818
dec r8
sub rdx, 1
jne 0x14016a7fe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14016c1d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14016c222
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14016c222
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14016c222
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14016c222
cmp dword [rcx + 0x84], 0xe
jbe 0x14016c222
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14016c224
xor al, al
add rsp, 0x28
ret
Function at 0x14017e320
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.14016cfd0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x14017e376
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 0x14017e3cd
mov ebp, 0x4b0000
jmp 0x14017e3db
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.14016f550
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x14017e3f1
mov eax, r12d
jmp 0x14017e3fa
mov edx, edi
mov ecx, ebp
call fcn.14016f550
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x14017e416
shl esi, 0x10
mov ecx, esi
jmp 0x14017e505
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x14017e474
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.14016cfd0
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x14017e464
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.14016f420
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.14016cfd0
add ebx, eax
jmp 0x14017e50e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x14017e481
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x14017e4c0
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.14016cfd0
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x14017e4c5
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.14016f420
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.14016cfd0
add ebx, eax
jmp 0x14017e50e
cmp eax, r12d
jge 0x14017e4fe
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.14016cfd0
sub ebp, eax
sub r15d, esi
je 0x14017e4fe
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.14016f420
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.14016cfd0
add ebx, eax
jmp 0x14017e50e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.14016cfd0
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.14016cfd0
Function at 0x1401ca6b0
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 [0x1402d9040]
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 0x1401ca84c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1401ca84c
cmp r10d, r14d
jne 0x1401ca750
sub rbx, 0x10
jmp 0x1401ca894
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1401ca7c2
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1401ca784
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1401ca78c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1401ca7ab
movzx edx, r11b
mov rcx, rsi
call fcn.1401cb780
test al, al
jne 0x1401ca8a5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1401cbea0
test al, al
jne 0x1401ca8a5
mov edx, dword [rsi + 0x64]
lea r9, [0x1401cc200]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1401ca7ee
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1401ca530
jmp 0x1401ca842
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.1401ca530
test dil, dil
je 0x1401ca83a
cmp byte [rsi + 0x6a], 0
jne 0x1401ca83a
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 0x1401ca8a5
sub rbx, 0x10
jmp 0x1401ca894
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 0x1401ca8a9
mov ebp, dword [rbx]
jmp 0x1401ca710
mov al, 1
jmp 0x1401ca8b2
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.14016b380
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret