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

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x48
mov rax, qword [0x14025d030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rbx, rcx
lea rdx, [rsp + 0x28]
mov rdi, qword [rsi + 0x1b0]
mov rcx, rdi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140120536
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140120536
mov qword [rsp + 0x80], r12
lea rdx, str.Connection_accepted_from_server
mov rcx, rbx
mov qword [rsp + 0x40], r14
call fcn.1400f1670
lea r8, [rsp + 0x24]
mov byte [rsi + 0x315], 0
mov edx, 0x8004667e
mov dword [rsp + 0x24], 1
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r14, qword [rsi + 0x1e0]
test r14, r14
je 0x14012052f
lea rax, str.TCP_ACCEPT
cmp qword [r14], rax
jne 0x14012052f
cmp qword [rsi + 0x38], 0
mov rcx, rbx
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x88], r13
mov r13, qword [r14 + 0x10]
mov rbp, qword [r13 + 0x98]
mov rdx, rbp
je 0x14012041c
call fcn.1400e1ea0
mov rax, qword [rbx + 0xd8]
lea rdi, [rbx + 0xd0]
test rax, rax
jne 0x1401203e5
mov rax, qword [rdi]
test rax, rax
je 0x1401203ec
mov byte [rax + 0x18b], 1
mov rcx, qword [rsi + 0x40]
mov rdx, rbp
call qword [rsi + gethostname]
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14012040b
mov byte [rax + 0x18b], 0
jmp 0x140120431
mov rax, qword [rdi]
test rax, rax
je 0x140120431
mov byte [rax + 0x18b], 0
jmp 0x140120431
call fcn.1400e1ea0
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdi, [rbx + 0xd0]
mov qword [r13 + 0x98], r15
mov rdx, rbx
mov rcx, r14
mov qword [rsi + 0x1b0], r15
call fcn.14010d350
mov rdx, rbx
mov rcx, r14
call fcn.14010d1a0
mov rbp, qword [rsp + 0x78]
mov word [r13 + 0x10c], 0x101
mov r13, qword [rsp + 0x88]
mov byte [r14 + 0x24], 1
cmp qword [rbx + 0x270], 0
je 0x14012052b
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x140120493
mov rax, qword [rdi]
test rax, rax
je 0x14012049a
mov byte [rax + 0x18b], 1
mov rcx, qword [rbx + 0x278]
mov r8d, 1
mov rdx, r15
call qword [rbx + 0x270]
mov rcx, qword [rbx + 0xd8]
mov edx, eax
test rcx, rcx
je 0x1401204c7
mov byte [rcx + 0x18b], 0
jmp 0x1401204d6
mov rax, qword [rdi]
test rax, rax
je 0x1401204d6
mov byte [rax + 0x18b], 0
test edx, edx
je 0x14012052b
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 0x1e0]
test rcx, rcx
je 0x1401204f3
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
mov rdx, rbx
lea rcx, [rsi + 0x1e0]
call fcn.1400e83c0
mov eax, Ordinal_46
mov r12, qword [rsp + 0x80]
mov r14, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14013ea20
add rsp, 0x48
pop r15
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
jmp 0x140120507
mov eax, 2
jmp 0x140120507
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rbx
call fcn.1400f1540
mov eax, 0x1e
jmp 0x140120514
Function at 0x140121970
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
mov rdx, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x1401219a0
mov byte [rdx + 0x6f6], 0xd
mov r8b, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.140121f70
cmp byte [rcx + 0xa96], 0
je 0x1401219b5
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.140120f50
cmp byte [rcx + 0xa99], 0
je 0x140121a33
mov r9, qword [rdx + 0x6a0]
test r9, r9
jne 0x1401219f8
mov r9, qword [rcx + 0x750]
test r9, r9
jne 0x1401219ef
cmp byte [rbx + 0x12df], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x140121a0f
cmp byte [rcx + 0xaa6], 0
lea r8, str.PRET_STOR__s
jne 0x140121a0f
lea r8, str.PRET_RETR__s
add rdx, 0x610
mov rcx, rbx
call fcn.14013b6c0
test eax, eax
jne 0x140121a3d
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6f6], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1401218c0
add rsp, 0x20
pop rbx
ret
Function at 0x140122e40
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 0x140122e80
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400f1540
lea eax, [rdi + 0x11]
jmp 0x140122fe5
cmp edx, 0xc8
je 0x140122e97
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1400f1670
cmp sil, 0x13
jne 0x140122ead
mov rdx, rbp
mov rcx, rbx
call fcn.140121a50
jmp 0x140122fe1
cmp sil, 0x14
jne 0x140122fc3
cmp byte [rbx + 0x6f0], 2
mov rbp, qword [rbx + 0x18]
jne 0x140122f2b
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140122f2b
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.14012e940
test eax, eax
jne 0x140122fe1
mov rsi, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x140122f22
sub rax, rsi
mov ecx, 1
mov rdi, rsi
cmovne rcx, rax
mov byte [rcx + rsi], 0
jmp 0x140122f2b
mov rcx, rsi
call qword [0x14025d0c8]
mov rdx, qword [rbx + 0x750]
test rdx, rdx
jne 0x140122f50
cmp byte [rbx + 0x12df], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1401e8131]
test rdi, rdi
mov r9, r8
lea rax, [0x140230c2c]
cmovne r9, rdi
lea rcx, [0x140231c94]
cmovne r8, rax
call sym.CheraxLoader.exe_curl_maprintf
mov rcx, rdi
mov rsi, rax
call qword [0x14025d0c8]
test rsi, rsi
jne 0x140122f8e
lea edi, [rsi + 0x1b]
jmp 0x140122fe3
lea rdx, [rbp + 0x610]
mov r9, rsi
lea r8, [0x1402303c8]
mov rcx, rbx
call fcn.14013b6c0
mov rcx, rsi
mov edi, eax
call qword [0x14025d0c8]
test edi, edi
jne 0x140122fe3
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6f6], 0x1f
jmp 0x140122fe3
cmp sil, 0x15
jne 0x140122fce
mov r8b, reloc.WS2_32.dll_listen
jmp 0x140122fd7
cmp sil, 0x16
jne 0x140122fe3
mov r8b, reloc.WLDAP32.dll_Ordinal_14
mov dl, 1
mov rcx, rbx
call fcn.140121f70
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 0x140126580
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14025d030]
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 0x1401265e7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.1400f1540
mov r9d, esi
lea rdx, str.SENT
mov r8d, edi
mov rcx, rbx
call fcn.140126450
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14013ea20
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140127220
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1401273d5
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 0x140127277
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140127290
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140127290
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 0x1401272cd
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp r9, rbx
jae 0x1401272e0
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x60]
cmp r9, rbx
jae 0x14012731f
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14012731f
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14012731f
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14012731f
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.140126620
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 0x140127381
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.1400f1540
lea rdx, [rsi + 0x1cbb]
mov r8d, 4
mov rcx, rdi
call fcn.140127ca0
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 0x1401273cd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.1400f1540
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret
Function at 0x140128a80
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x50
mov rax, qword [0x14025d030]
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 0x140128c00
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x140128be0
mov qword [rsp + 0x38], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140128afe
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r13b
jne 0x140128af0
inc rbx
jmp 0x140128b01
mov rbx, r13
cmp dword [rdi + 4], 2
jne 0x140128b8d
cmp qword [rdi + 0x20], r13
je 0x140128b8d
cmp qword [rdi + 0x10], 0x10
jb 0x140128b8d
lea rcx, [rbx + 0x40]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x140128b9c
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 0x140128b7a
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 0x140128b8a
mov qword [rbp + 0x28], r14
mov rbp, r14
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140128ae0
jmp 0x140128ba2
mov r15d, 8
mov rcx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x38]
test rcx, rcx
je 0x140128bb7
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r15d, r15d
je 0x140128bdb
test rsi, rsi
je 0x140128bd6
mov rbx, qword [rsi + 0x28]
mov rcx, rsi
call qword [0x14025d0c8]
mov rsi, rbx
test rbx, rbx
jne 0x140128bc1
mov rsi, r13
jmp 0x140128bef
test rsi, rsi
jne 0x140128bef
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.14013ea20
add rsp, 0x50
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x14012a3c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x40
mov rax, qword [0x14025d030]
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 0x14012a411
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 0x14012a437
mov r14, rax
jmp 0x14012a43b
mov esi, dword [rsp + 0x34]
test esi, esi
jne 0x14012a591
mov qword [rsp + 0x68], rbp
cmp byte [rbx + 0xaa7], sil
je 0x14012a54b
cmp qword [rbx + 0x260], 0
je 0x14012a513
mov rax, qword [rbx + 0xd0]
mov qword [rsp + 0x70], rdi
test rax, rax
je 0x14012a489
cmp byte [rax + 0x18b], sil
je 0x14012a489
lea rdi, [rbx + 0xd8]
mov bpl, 1
jmp 0x14012a4a9
lea rdi, [rbx + 0xd8]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14012a4a6
cmp byte [rcx + 0x18b], 0
je 0x14012a4a6
mov bpl, 1
jmp 0x14012a4a9
xor bpl, bpl
mov rcx, qword [rdi]
test rcx, rcx
je 0x14012a4ba
mov byte [rcx + 0x18b], 1
jmp 0x14012a4c6
test rax, rax
je 0x14012a4c6
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 0x14012a4fe
mov byte [rax + 0x18b], bpl
jmp 0x14012a54b
mov rax, qword [rbx + 0xd0]
test rax, rax
je 0x14012a54b
mov byte [rax + 0x18b], bpl
jmp 0x14012a54b
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x1401f4113]
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 0x14012a58a
movzx ecx, word [rsp + 0x30]
movzx edx, byte [rsp + 0x31]
test cl, cl
jne 0x14012a568
test dl, dl
je 0x14012a591
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.1400f1540
mov eax, 8
jmp 0x14012a593
mov eax, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14013ea20
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
Function at 0x14012a740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14025d030]
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 0x14012a796
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 0x14012a7bc
mov r15, rax
jmp 0x14012a7c0
mov edi, dword [rsp + 0x34]
test edi, edi
jne 0x14012a905
mov qword [rsp + 0x68], rbp
cmp byte [rbx + 0xaa7], dil
je 0x14012a8d0
cmp qword [rbx + 0x260], 0
je 0x14012a898
mov rax, qword [rbx + 0xd0]
mov qword [rsp + 0x70], rsi
test rax, rax
je 0x14012a80e
cmp byte [rax + 0x18b], dil
je 0x14012a80e
lea rsi, [rbx + 0xd8]
mov bpl, 1
jmp 0x14012a82e
lea rsi, [rbx + 0xd8]
mov rcx, qword [rsi]
test rcx, rcx
je 0x14012a82b
cmp byte [rcx + 0x18b], 0
je 0x14012a82b
mov bpl, 1
jmp 0x14012a82e
xor bpl, bpl
mov rcx, qword [rsi]
test rcx, rcx
je 0x14012a83f
mov byte [rcx + 0x18b], 1
jmp 0x14012a84b
test rax, rax
je 0x14012a84b
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 0x14012a883
mov byte [rax + 0x18b], bpl
jmp 0x14012a8d0
mov rax, qword [rbx + 0xd0]
test rax, rax
je 0x14012a8d0
mov byte [rax + 0x18b], bpl
jmp 0x14012a8d0
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x1401f4113]
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 0x14012a8e2
mov eax, 8
jmp 0x14012a907
movzx ecx, byte [r14 + 0x619]
cmp byte [rsp + 0x30], cl
jne 0x14012a8db
movzx ecx, byte [rsp + 0x31]
cmp cl, byte [r14 + 0x618]
jne 0x14012a8db
cmp byte [rsp + 0x32], 0
jne 0x14012a8db
mov eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14013ea20
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1401306a0
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 0x1401307ef
mov r9, rdx
mov qword [rsp + 0x38], rdi
mov r8, rcx
xor edx, edx
xor ecx, ecx
call fcn.1401304b0
mov rdi, rax
test rax, rax
je 0x1401307df
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 0x1401307ad
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.1401304b0
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 0x1401307aa
lea r10, [0x1401f42d0]
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 0x140130753
inc rax
test ecx, ecx
jne 0x140130740
test edx, edx
je 0x1401307c6
mov rax, qword [rdi]
test rax, rax
je 0x14013079d
cmp byte [rax], 0
mov r8, rbx
je 0x140130788
movzx ecx, byte [r8]
test cl, cl
je 0x140130788
movzx edx, byte [rax]
movzx ecx, byte [rcx + r10]
cmp byte [rdx + r10], cl
jne 0x1401307c2
inc rax
inc r8
cmp byte [rax], 0
jne 0x140130767
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 0x1401307c6
mov rax, qword [r9 + 0x10]
add r9, 0x10
test rax, rax
jne 0x140130730
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 0x140130799
test r9, r9
je 0x1401307aa
mov rcx, rbx
call qword [0x14025d0c8]
mov rcx, qword [rdi]
call qword [case.0x1400e58f8.0]
jmp 0x1401307ad
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 0x14013af60
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 [0x14025d030]
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 0x14013afa6
mov rbx, qword [rdx + 0x50]
cmp byte [0x14025f3f0], 0
movups xmm0, xmmword [rdx + 0x40]
movaps xmmword [rsp + 0x20], xmm0
je 0x14013afe9
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x14025f3e8]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x14025f3e8]
mov rcx, rax
jmp 0x14013b00c
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 0x14013b04b
mov rcx, rdi
jmp 0x14013b07e
cmp r8, r12
jg 0x14013b055
mov rcx, r15
jmp 0x14013b07e
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 0x14013b15b
test bpl, bpl
jne 0x14013b15b
cmp byte [0x14025f3f0], bpl
movups xmm0, xmmword [r14 + 0x178]
movaps xmmword [rsp + 0x20], xmm0
je 0x14013b0de
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x14025f3e8]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x14025f3e8]
mov r9, rax
jmp 0x14013b102
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 0x14013b149
cmp r8, r12
jg 0x14013b11e
mov rdi, r15
jmp 0x14013b149
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 0x14013b15e
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14013ea20
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 0x14013d680
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
push r15
sub rsp, 0x38
mov rax, qword [0x14025d030]
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 0x14013d7c0
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 0x14013d710
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 0x14013d772
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 0x14013d730
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x14013d7b3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1401ef6ae]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1401ef6ad]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14013d780
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14013ea20
add rsp, 0x38
pop r15
pop r14
pop rbp
pop rbx
ret

Function at 0x14013e598
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 0x14013e61c
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 0x14013e61c
dec r8
sub rdx, 1
jne 0x14013e602
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14013f88c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14013f8d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14013f8d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14013f8d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14013f8d6
cmp dword [rcx + 0x84], 0xe
jbe 0x14013f8d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14013f8d8
xor al, al
add rsp, 0x28
ret