joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140136380
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x1401363c0
lea rdx, str.Couldnt_set_desired_mode
call fcn.140105f20
lea eax, [rdi + 0x11]
jmp 0x140136525
cmp edx, 0xc8
je 0x1401363d7
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140106050
cmp sil, 0x13
jne 0x1401363ed
mov rdx, rbp
mov rcx, rbx
call fcn.140134f90
jmp 0x140136521
cmp sil, 0x14
jne 0x140136503
cmp byte [rbx + 0x6f0], 2
mov rbp, qword [rbx + 0x18]
jne 0x14013646b
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x14013646b
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.140141e80
test eax, eax
jne 0x140136521
mov rsi, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x140136462
sub rax, rsi
mov ecx, 1
mov rdi, rsi
cmovne rcx, rax
mov byte [rcx + rsi], 0
jmp 0x14013646b
mov rcx, rsi
call qword [0x1402ba0c8]
mov rdx, qword [rbx + 0x750]
test rdx, rdx
jne 0x140136490
cmp byte [rbx + 0x12df], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1401fe219]
test rdi, rdi
mov r9, r8
lea rax, [0x1401fe784]
cmovne r9, rdi
lea rcx, [0x14028dfd4]
cmovne r8, rax
call sym.CheraxLoader.exe_curl_maprintf
mov rcx, rdi
mov rsi, rax
call qword [0x1402ba0c8]
test rsi, rsi
jne 0x1401364ce
lea edi, [rsi + 0x1b]
jmp 0x140136523
lea rdx, [rbp + 0x610]
mov r9, rsi
lea r8, [0x14028a6ac]
mov rcx, rbx
call fcn.14014ec00
mov rcx, rsi
mov edi, eax
call qword [0x1402ba0c8]
test edi, edi
jne 0x140136523
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6f6], 0x1f
jmp 0x140136523
cmp sil, 0x15
jne 0x14013650e
mov r8b, reloc.WS2_32.dll_listen
jmp 0x140136517
cmp sil, 0x16
jne 0x140136523
mov r8b, reloc.WLDAP32.dll_Ordinal_14
mov dl, 1
mov rcx, rbx
call fcn.1401354b0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov byte [rsp + 0x20], 0xff
mov rcx, qword [rcx + 0x18]
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 + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140139b27
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140105f20
mov r9d, esi
lea rdx, str.SENT
mov r8d, edi
mov rcx, rbx
call fcn.140139990
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x14013a760
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14013a915
push rsi
push rdi
push r13
sub rsp, 0x30
mov rsi, qword [rcx + 0x1b0]
mov rdi, rcx
mov r13, qword [rcx + 0x18]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x28], r14
lea rbx, [rsi + 0x1eb8]
lea r14, [rsi + 0x1cb8]
mov qword [rsp + 0x20], r15
mov qword [rbx], r14
mov rax, r14
cmp r14, rbx
jae 0x14013a7b7
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14013a7d0
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14013a7d0
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 0x14013a80d
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp r9, rbx
jae 0x14013a820
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x60]
cmp r9, rbx
jae 0x14013a85f
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14013a85f
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14013a85f
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14013a85f
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rsi + 0x1ec0], r9
lea r8, [rsi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.140139b60
mov rcx, qword [r13 + 0x1a8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
test eax, eax
jns 0x14013a8c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140105f20
lea rdx, [rsi + 0x1cbb]
mov r8d, 4
mov rcx, rdi
call fcn.14013b1e0
mov rcx, qword [r13 + 0x1a8]
lea rdx, [rsi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14013a90d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140105f20
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret
Function at 0x14013bfc0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x50
mov rax, qword [0x1402ba030]
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 0x14013c140
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x14013c120
mov qword [rsp + 0x38], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14013c03e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r13b
jne 0x14013c030
inc rbx
jmp 0x14013c041
mov rbx, r13
cmp dword [rdi + 4], 2
jne 0x14013c0cd
cmp qword [rdi + 0x20], r13
je 0x14013c0cd
cmp qword [rdi + 0x10], 0x10
jb 0x14013c0cd
lea rcx, [rbx + 0x40]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14013c0dc
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 0x14013c0ba
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 0x14013c0ca
mov qword [rbp + 0x28], r14
mov rbp, r14
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14013c020
jmp 0x14013c0e2
mov r15d, 8
mov rcx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x38]
test rcx, rcx
je 0x14013c0f7
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r15d, r15d
je 0x14013c11b
test rsi, rsi
je 0x14013c116
mov rbx, qword [rsi + 0x28]
mov rcx, rsi
call qword [0x1402ba0c8]
mov rsi, rbx
test rbx, rbx
jne 0x14013c101
mov rsi, r13
jmp 0x14013c12f
test rsi, rsi
jne 0x14013c12f
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.1401526c0
add rsp, 0x50
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x14013d900
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x40
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r10, qword [rcx + 0x18]
xor esi, esi
mov dword [rsp + 0x34], gethostname
mov edx, esi
mov rbx, rcx
mov r14d, esi
mov rax, qword [r10 + 0x1b0]
lea r9d, [rsi + 2]
cmp qword [r10 + 0x1a8], rax
mov eax, dword [rcx + 0x6c4]
sete dl
cmp eax, 2
ja 0x14013d951
mov r9d, eax
lea rcx, [rsp + 0x34]
mov eax, edx
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x30]
mov rcx, rbx
call qword [r10 + rax*8 + 0x1b8]
test rax, rax
js 0x14013d977
mov r14, rax
jmp 0x14013d97b
mov esi, dword [rsp + 0x34]
test esi, esi
jne 0x14013dad1
mov qword [rsp + 0x68], rbp
cmp byte [rbx + 0xaa7], sil
je 0x14013da8b
cmp qword [rbx + 0x260], 0
je 0x14013da53
mov rax, qword [rbx + 0xd0]
mov qword [rsp + 0x70], rdi
test rax, rax
je 0x14013d9c9
cmp byte [rax + 0x18b], sil
je 0x14013d9c9
lea rdi, [rbx + 0xd8]
mov bpl, 1
jmp 0x14013d9e9
lea rdi, [rbx + 0xd8]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14013d9e6
cmp byte [rcx + 0x18b], 0
je 0x14013d9e6
mov bpl, 1
jmp 0x14013d9e9
xor bpl, bpl
mov rcx, qword [rdi]
test rcx, rcx
je 0x14013d9fa
mov byte [rcx + 0x18b], 1
jmp 0x14013da06
test rax, rax
je 0x14013da06
mov byte [rax + 0x18b], 1
mov rax, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
mov r9, r14
mov qword [rsp + 0x20], rax
mov edx, 1
mov rcx, rbx
call qword [rbx + 0x260]
mov rax, qword [rdi]
mov rdi, qword [rsp + 0x70]
test rax, rax
je 0x14013da3e
mov byte [rax + 0x18b], bpl
jmp 0x14013da8b
mov rax, qword [rbx + 0xd0]
test rax, rax
je 0x14013da8b
mov byte [rax + 0x18b], bpl
jmp 0x14013da8b
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x14024e423]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x68]
cmp r14, 2
jb 0x14013daca
movzx ecx, word [rsp + 0x30]
movzx edx, byte [rsp + 0x31]
test cl, cl
jne 0x14013daa8
test dl, dl
je 0x14013dad1
mov eax, edx
xor r9d, r9d
movzx edx, cl
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rcx, rbx
mov dword [rsp + 0x20], edx
lea rdx, str.Expected__02x_02x_but_got__02x_02x
call fcn.140105f20
mov eax, 8
jmp 0x14013dad3
mov eax, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
Function at 0x14013dc80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, qword [rcx + 0x18]
xor edi, edi
mov dword [rsp + 0x34], gethostname
mov edx, edi
mov rbx, rcx
mov r15d, edi
mov rax, qword [r14 + 0x1b0]
lea r9d, [rdi + 3]
cmp qword [r14 + 0x1a8], rax
mov eax, dword [rcx + 0x6c4]
sete dl
cmp eax, 3
ja 0x14013dcd6
mov r9d, eax
lea rcx, [rsp + 0x34]
mov eax, edx
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x30]
mov rcx, rbx
call qword [r14 + rax*8 + 0x1b8]
test rax, rax
js 0x14013dcfc
mov r15, rax
jmp 0x14013dd00
mov edi, dword [rsp + 0x34]
test edi, edi
jne 0x14013de45
mov qword [rsp + 0x68], rbp
cmp byte [rbx + 0xaa7], dil
je 0x14013de10
cmp qword [rbx + 0x260], 0
je 0x14013ddd8
mov rax, qword [rbx + 0xd0]
mov qword [rsp + 0x70], rsi
test rax, rax
je 0x14013dd4e
cmp byte [rax + 0x18b], dil
je 0x14013dd4e
lea rsi, [rbx + 0xd8]
mov bpl, 1
jmp 0x14013dd6e
lea rsi, [rbx + 0xd8]
mov rcx, qword [rsi]
test rcx, rcx
je 0x14013dd6b
cmp byte [rcx + 0x18b], 0
je 0x14013dd6b
mov bpl, 1
jmp 0x14013dd6e
xor bpl, bpl
mov rcx, qword [rsi]
test rcx, rcx
je 0x14013dd7f
mov byte [rcx + 0x18b], 1
jmp 0x14013dd8b
test rax, rax
je 0x14013dd8b
mov byte [rax + 0x18b], 1
mov rax, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
mov r9, r15
mov qword [rsp + 0x20], rax
mov edx, 1
mov rcx, rbx
call qword [rbx + 0x260]
mov rax, qword [rsi]
mov rsi, qword [rsp + 0x70]
test rax, rax
je 0x14013ddc3
mov byte [rax + 0x18b], bpl
jmp 0x14013de10
mov rax, qword [rbx + 0xd0]
test rax, rax
je 0x14013de10
mov byte [rax + 0x18b], bpl
jmp 0x14013de10
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x14024e423]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x68]
cmp r15, 3
jae 0x14013de22
mov eax, 8
jmp 0x14013de47
movzx ecx, byte [r14 + 0x619]
cmp byte [rsp + 0x30], cl
jne 0x14013de1b
movzx ecx, byte [rsp + 0x31]
cmp cl, byte [r14 + 0x618]
jne 0x14013de1b
cmp byte [rsp + 0x32], 0
jne 0x14013de1b
mov eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401526c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140143be0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbp, rcx
cmp rcx, rdx
jae 0x140143d2f
mov r9, rdx
mov qword [rsp + 0x38], rdi
mov r8, rcx
xor edx, edx
xor ecx, ecx
call fcn.1401439f0
mov rdi, rax
test rax, rax
je 0x140143d1f
lea rcx, [rax + 1]
mov qword [rsp + 0x30], rbx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140143ced
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.1401439f0
mov byte [rdi + rbx], 0
lea r9, str.1.2.840.10040.4.1
mov rax, qword [str.1.2.840.10040.4.1]
test rax, rax
je 0x140143cea
lea r10, [0x14024e630]
nop word [rax + rax]
mov r8, rbx
lea rdi, [r9 + 8]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140143c93
inc rax
test ecx, ecx
jne 0x140143c80
test edx, edx
je 0x140143d06
mov rax, qword [rdi]
test rax, rax
je 0x140143cdd
cmp byte [rax], 0
mov r8, rbx
je 0x140143cc8
movzx ecx, byte [r8]
test cl, cl
je 0x140143cc8
movzx edx, byte [rax]
movzx ecx, byte [rcx + r10]
cmp byte [rdx + r10], cl
jne 0x140143d02
inc rax
inc r8
cmp byte [rax], 0
jne 0x140143ca7
xor ecx, ecx
cmp byte [rax], cl
sete cl
xor eax, eax
cmp byte [r8], al
setne al
xor ecx, eax
test ecx, ecx
jne 0x140143d06
mov rax, qword [r9 + 0x10]
add r9, 0x10
test rax, rax
jne 0x140143c70
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
xor ecx, ecx
jmp 0x140143cd9
test r9, r9
je 0x140143cea
mov rcx, rbx
call qword [0x1402ba0c8]
mov rcx, qword [rdi]
call qword [case.0x1400fa348.0]
jmp 0x140143ced
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x14014e4a0
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 [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [rcx + 0x304]
movzx ebp, r8b
mov r14, qword [rcx + 0x18]
mov rsi, rcx
mov ebx, eax
test eax, eax
jne 0x14014e4e6
mov rbx, qword [rdx + 0x50]
cmp byte [0x1402bcc60], 0
movups xmm0, xmmword [rdx + 0x40]
movaps xmmword [rsp + 0x20], xmm0
je 0x14014e529
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x1402bcc58]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402bcc58]
mov rcx, rax
jmp 0x14014e54c
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 0x14014e58b
mov rcx, rdi
jmp 0x14014e5be
cmp r8, r12
jg 0x14014e595
mov rcx, r15
jmp 0x14014e5be
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 + 0x2f8], 0
je 0x14014e69b
test bpl, bpl
jne 0x14014e69b
cmp byte [0x1402bcc60], bpl
movups xmm0, xmmword [r14 + 0x178]
movaps xmmword [rsp + 0x20], xmm0
je 0x14014e61e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x1402bcc58]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402bcc58]
mov r9, rax
jmp 0x14014e642
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 0x14014e689
cmp r8, r12
jg 0x14014e65e
mov rdi, r15
jmp 0x14014e689
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 + 0x2f8]
sub rax, rdi
cmp rbx, rax
cmovl rax, rbx
jmp 0x14014e69e
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401526c0
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 0x140150bc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
push r15
sub rsp, 0x38
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, 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 0x140150d00
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x78], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x30], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x140150c50
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x140150cb2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x20]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x20], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x20]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x20], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x140150c70
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x140150cf3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14020597f]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14020597e]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140150cc0
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x38
pop r15
pop r14
pop rbp
pop rbx
ret

Function at 0x140151ad8
Capabilities:
Get geographical location

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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140153576
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140153576
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140153576
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140153576
cmp dword [rcx + 0x84], 0xe
jbe 0x140153576
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140153578
xor al, al
add rsp, 0x28
ret
Function at 0x140165670
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.140154320
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1401656c6
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 0x14016571d
mov ebp, 0x4b0000
jmp 0x14016572b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.1401568a0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x140165741
mov eax, r12d
jmp 0x14016574a
mov edx, edi
mov ecx, ebp
call fcn.1401568a0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x140165766
shl esi, 0x10
mov ecx, esi
jmp 0x140165855
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1401657c4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.140154320
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1401657b4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.140156770
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.140154320
add ebx, eax
jmp 0x14016585e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x1401657d1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x140165810
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.140154320
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x140165815
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.140156770
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.140154320
add ebx, eax
jmp 0x14016585e
cmp eax, r12d
jge 0x14016584e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.140154320
sub ebp, eax
sub r15d, esi
je 0x14016584e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.140156770
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.140154320
add ebx, eax
jmp 0x14016585e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.140154320
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.140154320