joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009f490
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14009f63d
push rsi
push rdi
push r15
sub rsp, 0x20
mov rsi, qword [rcx + 0x1b0]
mov rdi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rsi + 0x1eb8]
mov qword [rsp + 0x58], r14
lea r14, [rsi + 0x1cb8]
mov qword [rbx], r14
mov rax, r14
cmp r14, rbx
jae 0x14009f4e2
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14009f4fb
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14009f4fb
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rsi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rsi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14009f531
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x14009f587
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009f587
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009f587
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009f587
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009f587
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.14009ef60
mov rcx, qword [r15 + 0x1d0]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14009f5e9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.1400838c0
lea rdx, [rsi + 0x1cbb]
mov r8d, 4
mov rcx, rdi
call fcn.14009f320
mov rcx, qword [r15 + 0x1d0]
lea rdx, [rsi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009f635
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.1400838c0
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x1400a0cf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400f3010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x6d0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x1400a0d87
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x1400a0ded
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.1400838c0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14006e3a0
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1400a0e23.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0xa0f3c]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x1400a0e23.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1400a0e23.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400837e0
mov ebx, eax
test eax, eax
je 0x1400a0e82
mov edx, 5
mov rcx, rdi
call fcn.1400a1950
mov eax, ebx
jmp 0x1400a0dbc
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.140093b90
jmp case.0x1400a0e23.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.1400a19c0
cmp rax, rbx
jae case.0x1400a0e23.4
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.140083a20
jmp case.0x1400a0e23.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.1400a0a40
test eax, eax
je case.0x1400a0e23.4
jmp 0x1400a0dbc
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1400e05d4]
call fcn.1400838c0
mov rcx, rsi
call fcn.140093ed0
test eax, eax
je 0x1400a0dba
mov edx, 5
mov rcx, rdi
call fcn.1400a1950
mov eax, Ordinal_45
jmp 0x1400a0dbc
Function at 0x1400a9110
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400f3010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1d8]
mov rcx, rbp
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400a918b
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.140084290
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x1400a91b3
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400838c0
lea eax, [rbx + 0x1f]
jmp 0x1400a922f
lea rdx, str.Connection_accepted_from_server
call fcn.140083a20
mov edx, 1
mov byte [rsi + 0x3b1], 0
mov rcx, rbx
mov qword [rsi + 0x1d8], rbx
call fcn.1400b4f70
mov byte [rsi + 0x3c4], 1
cmp qword [rdi + 0x280], 0
je 0x1400a922d
mov dl, 1
mov rcx, rdi
call fcn.140072f30
mov rcx, qword [rdi + 0x288]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x280]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140072f30
test ebx, ebx
je 0x1400a922d
mov rdx, rsi
mov rcx, rdi
call fcn.1400a9730
mov eax, Ordinal_45
jmp 0x1400a922f
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14006e3a0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400aad20
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 0x1400aad56
mov dword [rdx + 0x7a0], 0xd
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.1400aae40
cmp byte [rcx + 0xad4], 0
je 0x1400aad6b
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.1400ab8b0
cmp byte [rcx + 0xad7], 0
je 0x1400aadec
mov r9, qword [rdx + 0x760]
test r9, r9
jne 0x1400aadae
mov r9, qword [rcx + 0x780]
test r9, r9
jne 0x1400aada5
cmp byte [rbx + 0x1320], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x1400aadc5
cmp byte [rcx + 0xae4], 0
lea r8, str.PRET_STOR__s
jne 0x1400aadc5
lea r8, str.PRET_RETR__s
add rdx, 0x6d0
mov rcx, rbx
call fcn.1400bfd20
test eax, eax
jne 0x1400aadf6
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400ab800
add rsp, 0x20
pop rbx
ret

Function at 0x1400ab110
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x6d0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1400ab15e
cmp qword [rdx + 0x90], 0
je 0x1400ab15e
xor r9d, r9d
lea r8, str.REST__d
call fcn.1400bfd20
test eax, eax
jne 0x1400ab168
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400aad20
add rsp, 0x20
pop rbx
ret
Function at 0x1400ab430
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
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x1400ab46f
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400838c0
lea eax, [rdi + 0x11]
jmp 0x1400ab5d5
cmp edx, 0xc8
je 0x1400ab486
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140083a20
cmp esi, 0x13
jne 0x1400ab49b
mov rdx, rbp
mov rcx, rbx
call fcn.1400ab330
jmp 0x1400ab5d1
cmp esi, 0x14
jne 0x1400ab5b3
cmp byte [rbx + 0x718], 2
mov rbp, qword [rbx + 0x18]
jne 0x1400ab518
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400ab518
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.1400b3fc0
test eax, eax
jne 0x1400ab5d1
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400ab50d
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x1400ab518
mov rcx, qword [rsp + 0x40]
call qword [fcn.1400c4dca]
mov rdx, qword [rbx + 0x780]
test rdx, rdx
jne 0x1400ab53d
cmp byte [rbx + 0x1320], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400d88f0]
test rdi, rdi
mov r9, r8
lea rax, [0x1400d8eb4]
cmovne r9, rdi
lea rcx, [0x1400cbaec]
cmovne r8, rax
call fcn.140096450
mov rcx, rdi
mov rsi, rax
call qword [fcn.1400c4dca]
test rsi, rsi
jne 0x1400ab57b
lea edi, [rsi + 0x1b]
jmp 0x1400ab5d3
lea rdx, [rbp + 0x6d0]
mov r9, rsi
lea r8, [0x1400e05d4]
mov rcx, rbx
call fcn.1400bfd20
mov rcx, rsi
mov edi, eax
call qword [fcn.1400c4dca]
test edi, edi
jne 0x1400ab5d3
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1f
jmp 0x1400ab5d3
cmp esi, 0x15
jne 0x1400ab5be
lea r8d, [rsi - 8]
jmp 0x1400ab5c7
cmp esi, 0x16
jne 0x1400ab5d3
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.1400aae40
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 0x1400c2df0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400c2e35
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400c2e80
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
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 0x1400c2ee2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
sub r15, 1
jne 0x1400c2ea0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400c2f23
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400d81ac]
mov r8d, 1
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400d81ad]
mov r8d, 1
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c2ef0
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x1400c2f40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.140086600
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400c30e6
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400c2fd0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
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 0x1400c3032
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
sub r15, 1
jne 0x1400c2ff0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400c3073
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400d81ac]
mov r8d, 1
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400d81ad]
mov r8d, 1
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c3040
mov rcx, qword [rsp + 0x70]
call fcn.140086600
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x1400c30a2
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.1400c4dca]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, reloc.WLDAP32.dll_Ordinal_27
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x1400c4980
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400c49e5
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1400c4990
ret
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
outsd dx, dword [rsi]
or dword [rsi], eax
imul eax, dword [rdx], 0xf0faca24
jp 0x14001ad63
cmp dword [rdx + 0x51], 0xd181b36f
fimul word [rbx - 0x231411a6]
scasd eax, dword [rdi]
std
sar ch, 1
invalid
movabs rdi, 0x104c832fa1981e0c
fadd qword [rdi + 0x7af033bd]
jg 0x14001acdd
imul esi, dword [rdx], 0x2145d062
leave
and eax, 0x3fb942d7
nop
invalid
rcr dword [rsi], 0xbd
invalid
Function at 0x140a62058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a621df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a62089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a6206f
add dl, dl
jne 0x140a62096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a620f6
xor eax, eax
add dl, dl
jne 0x140a620a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a621ad
add dl, dl
jne 0x140a620b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a620c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a620d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a620dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a620ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a6207e
mov eax, 1
add dl, dl
jne 0x140a62106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a62113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a620fb
sub eax, ebx
mov ebx, 1
jne 0x140a6214c
mov ecx, 1
add dl, dl
jne 0x140a6212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a6213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a62123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a6207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a62168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a62175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a6215d
cmp eax, 0x7d00
jae 0x140a6219b
cmp eax, 0x500
jb 0x140a62196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a6207e
cmp eax, 0x7f
ja 0x140a6219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a6207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a621d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a6207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400111d2
Capabilities:
Manipulate console buffer

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, r8
mov rsi, rcx
test dl, dl
je 0x140011277
inc rdi
lea rax, [rsp + 0x28]
mov qword [rax], rdi
lea rcx, [rsp + 0x30]
mov qword [rcx], 1
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rax, [0x1400a5078]
lea rdx, [rsp + 0x38]
mov qword [rdx], rax
lea rax, [fcn.140017267]
mov qword [r8 + 8], rax
mov qword [rdx + 8], 3
and qword [rdx + 0x20], 0
mov qword [r8 + 0x10], rcx
mov qword [r8 + 0x18], rax
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], 2
lea rdi, [rsp + 0x68]
mov rcx, rdi
call fcn.14001105c
mov rbx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rsi
mov rdx, rbx
call fcn.140010e12
mov rsi, rax
mov rdx, qword [rdi + 8]
mov rcx, rbx
call fcn.14000cbda
jmp 0x1400112a7
mov rcx, rsi
call fcn.140010a20
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov rdx, rax
call fcn.1400110a3
cmp qword [rsi], 0
je 0x1400112a5
mov rcx, qword [rsp + 0x40]
shl edi, 0x10
mov edx, edi
call qword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
xor esi, esi
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400154cb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov esi, ecx
shr esi, 8
lea r8, [rdx + r8*2]
xor edi, edi
cmp rdx, r8
je 0x140015547
lea rbx, [rdx + 2]
movzx r15d, byte [rdx + 1]
lea r14, [rdi + r15]
cmp byte [rdx], sil
jne 0x140015527
cmp rdi, r14
ja 0x140015584
cmp r14, rax
ja 0x140015584
add rdi, r9
xor edx, edx
cmp r15, rdx
je 0x140015531
lea r12, [rdx + 1]
cmp byte [rdi + rdx], cl
mov rdx, r12
jne 0x140015514
jmp 0x140015539
mov rdx, rbx
mov rdi, r14
jbe 0x1400154ee
jmp 0x140015547
mov rdx, rbx
mov rdi, r14
jmp 0x1400154ee
xor eax, eax
and al, 1
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, cx
add r10, r11
mov al, 1
cmp r11, r10
je 0x14001553b
lea r8, [r11 + 1]
movzx edx, byte [r11]
test dl, dl
js 0x140015565
mov r11, r8
jmp 0x14001557c
cmp r8, r10
je 0x140015584
and edx, 0x7f
shl edx, 8
movzx r8d, byte [r11 + 1]
add r11, 2
or edx, r8d
sub ecx, edx
js 0x14001553b
xor al, 1
jmp 0x14001554f
ud2
Function at 0x14001a456
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx]
xor ecx, ecx
test rbx, rbx
setne cl
call fcn.14002ab07
test rbx, rbx
je 0x14001a48f
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14001a4a9
mov cl, byte [rdi + 8]
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14001a4a1

Function at 0x14001a4a9
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rcx]
xor r9d, r9d
movabs r10, 0x100000001b3
cmp r8, r9
je 0x14001a4cf
movzx r11d, byte [rdx + r9]
xor rax, r11
imul rax, r10
inc r9
jmp 0x14001a4b9
mov qword [rcx], rax
ret