joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801f4950
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x180302d80]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1801f49e5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1801f4a46
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1801ce370
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180208a80
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1801f4b01
sub ecx, 1
je 0x1801f4b74
sub ecx, 1
je 0x1801f4ab0
cmp ecx, 1
je 0x1801f4a93
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x18029a758]
call fcn.1801ce370
jmp 0x1801f4b74
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1801f4680
test eax, eax
je 0x1801f4b74
jmp 0x1801f4a1a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1801f4b74
sub rax, rsi
cmp rax, rbp
jae 0x1801f4b74
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1801ce4f0
jmp 0x1801f4b74
cmp r8d, 4
jle 0x1801f4b74
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1801f4b74
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1801ce290
mov esi, eax
test eax, eax
je 0x1801f4b53
mov edx, 5
mov rcx, rbx
call fcn.1801f5640
mov eax, esi
jmp 0x1801f4a1a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1801dd8a0
mov rcx, r14
call fcn.1801ddb80
test eax, eax
je 0x1801f4a18
mov edx, 5
mov rcx, rbx
call fcn.1801f5640
mov eax, Ordinal_45
jmp 0x1801f4a1a
Function at 0x180207a50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x180207a92
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x180207ad9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x180207b32
mov rsi, rbp
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 [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
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 [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x180207af0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x180207b73
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1802aa10b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1802aa10c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180207b40
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x180207d40
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 0x180207d7a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180207d7f
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 0x180207dc8
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 0x180207dc8
dec r8
sub rdx, 1
jne 0x180207dae
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x18020865c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.180207eec
mov ebx, eax
test eax, eax
jne 0x18020868c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1802086ef
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1802086e6
test al, 0x10
je 0x1802086e6
bt eax, 0xa
jae 0x1802086df
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.180208700
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1802086db
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1802086db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1802086e6
and dword [rsp + 0x3c], 0
jmp 0x1802086eb
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d580
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x38
mov rax, qword [0x14006d018]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov ecx, edx
mov edi, edx
mov rsi, r9
mov rbp, r8
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x20], eax
lea r14, [0x1400723b0]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [r14 + rcx], 0
jne 0x14000d5c0
test ecx, ecx
je 0x14000d672
movzx eax, byte [0x1400723b0]
xor byte [rsp + 0x20], al
xor eax, eax
cmp ecx, 1
setne al
mov edx, eax
movzx eax, byte [rdx + r14]
xor byte [rsp + 0x21], al
xor eax, eax
inc edx
cmp edx, ecx
cmovne eax, edx
mov edx, eax
movzx eax, byte [rax + r14]
xor byte [rsp + 0x22], al
xor eax, eax
inc edx
cmp edx, ecx
cmovne eax, edx
movzx eax, byte [rax + r14]
xor byte [rsp + 0x23], al
mov eax, dword [rsp + 0x20]
test ecx, ecx
je 0x14000d672
xor r10d, r10d
test edi, edi
jle 0x14000d672
mov qword [rsp + 0x30], rbx
xor edx, edx
movsxd rbx, ecx
mov r9, rbp
mov r11, rdi
nop word [rax + rax]
movzx ecx, byte [rdx + r14]
lea r8, [rdx + 1]
xor byte [r9], cl
lea r9, [r9 + 1]
lea ecx, [r10 + 1]
xor r10d, r10d
cmp r8, rbx
cmovne r10d, ecx
xor edx, edx
cmp r8, rbx
cmovne rdx, r8
sub r11, 1
jne 0x14000d640
mov rbx, qword [rsp + 0x30]
mov r8, rdi
mov dword [rsi], eax
lea rcx, [rsi + 4]
mov rdx, rbp
call fcn.140038190
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001a320
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e0e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x4d8], rbx
mov rax, qword [0x14006d018]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
mov dword [rsp + 0x5c], r15d
lea r8d, [r15 + 1]
lea rdx, [0x140061d9c]
mov rcx, rdi
call fcn.140015980
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000e14f
mov rdx, qword [rdi]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x5c]
mov r8d, dword [rdi + 0x10]
mov rcx, qword [rsi + 0x800b0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov r8d, 0x401
lea rcx, [rsp + 0x70]
call fcn.1400385a0
mov dword [rsp + 0x58], r15d
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 0x800b8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000e2a6
movsxd rax, dword [rsp + 0x58]
test eax, eax
je 0x14000e2a6
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x68], eax
mov rbx, rax
mov rcx, rax
call fcn.14001a3b4
mov qword [rsp + 0x60], rax
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140038190
mov r8d, r14d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400178d0
mov rdx, rax
lea rcx, [rsi + 0x80018]
call fcn.1400173a0
xor edx, edx
mov r8d, 0x401
lea rcx, [rsp + 0x70]
call fcn.1400385a0
cmp dword [rsp + 0x58], 0x400
jb 0x14000e273
mov dword [rsp + 0x58], r15d
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 0x800b8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000e1c1
jmp 0x14000e2a6
mov qword [rsp + 0x68], r15
xor ecx, ecx
call fcn.14001a3b4
mov qword [rsp + 0x60], rax
mov r8d, r14d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400178d0
mov rdx, rax
lea rcx, [rsi + 0x80018]
call fcn.1400173a0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000e2dc
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000e2d7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000e313
mov rcx, r8
call fcn.14001a344
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], send
mov byte [rdi], 0
mov al, 1
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14001a320
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14003af50
int3
Function at 0x14000e5c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x4d8], rbx
mov rax, qword [0x14006d018]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
mov dword [rsp + 0x5c], r15d
lea r8d, [r15 + 1]
lea rdx, [0x140061d9c]
mov rcx, rdi
call fcn.140015980
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000e62f
mov rdx, qword [rdi]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x5c]
mov r8d, dword [rdi + 0x10]
mov rcx, qword [rsi + 0x800d0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov r8d, 0x401
lea rcx, [rsp + 0x70]
call fcn.1400385a0
mov dword [rsp + 0x58], r15d
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 0x800d8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000e786
movsxd rax, dword [rsp + 0x58]
test eax, eax
je 0x14000e786
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x68], eax
mov rbx, rax
mov rcx, rax
call fcn.14001a3b4
mov qword [rsp + 0x60], rax
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140038190
mov r8d, r14d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400178d0
mov rdx, rax
lea rcx, [rsi + 0x80018]
call fcn.1400173a0
xor edx, edx
mov r8d, 0x401
lea rcx, [rsp + 0x70]
call fcn.1400385a0
cmp dword [rsp + 0x58], 0x400
jb 0x14000e753
mov dword [rsp + 0x58], r15d
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 0x800d8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000e6a1
jmp 0x14000e786
mov qword [rsp + 0x68], r15
xor ecx, ecx
call fcn.14001a3b4
mov qword [rsp + 0x60], rax
mov r8d, r14d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400178d0
mov rdx, rax
lea rcx, [rsi + 0x80018]
call fcn.1400173a0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000e7bc
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000e7b7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000e7f3
mov rcx, r8
call fcn.14001a344
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], send
mov byte [rdi], 0
mov al, 1
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14001a320
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14003af50
int3
Function at 0x140012ed0
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
je 0x140012f26
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x80090]
mov r8d, edi
mov edx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140012f94
add ebx, eax
cmp ebx, edi
jb 0x140012f00
lea r11, [0x1400723b0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r11 + rax], 0
jne 0x140012f34
test eax, eax
je 0x140012f7d
xor r8d, r8d
test edi, edi
jle 0x140012f7d
movsxd r10, eax
xor edx, edx
mov r9, rdi
movzx eax, byte [rdx + r11]
lea rcx, [rdx + 1]
xor byte [rsi], al
lea rsi, [rsi + 1]
lea eax, [r8 + 1]
xor r8d, r8d
cmp rcx, r10
cmovne r8d, eax
xor edx, edx
cmp rcx, r10
cmovne rdx, rcx
sub r9, 1
jne 0x140012f51
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor al, al
jmp 0x140012f7f

Function at 0x140012fa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14006d018]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor edi, edi
mov rbp, rdx
mov ebx, edi
mov rsi, rcx
nop word [rax + rax]
mov rcx, qword [rsi + 0x80090]
lea rdx, [rsp + 0x20]
mov r8d, 4
mov eax, ebx
sub r8d, ebx
add rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400130a1
add ebx, eax
cmp ebx, 4
jb 0x140012fd0
mov rbx, 0xffffffffffffffff
lea r8, [0x1400723b0]
mov rdx, rbx
inc rdx
cmp byte [r8 + rdx], dil
jne 0x140013014
test edx, edx
je 0x140013064
movzx eax, byte [0x1400723b0]
xor byte [rsp + 0x20], al
mov eax, edi
cmp edx, 1
setne al
mov ecx, eax
movzx eax, byte [rcx + r8]
xor byte [rsp + 0x21], al
mov eax, edi
inc ecx
cmp ecx, edx
cmovne eax, ecx
mov ecx, eax
movzx eax, byte [rax + r8]
xor byte [rsp + 0x22], al
lea eax, [rcx + 1]
cmp eax, edx
cmovne edi, eax
movzx eax, byte [rdi + r8]
xor byte [rsp + 0x23], al
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rsp + 0x20], eax
lea ecx, [rax + 1]
call fcn.14001a3b4
mov edx, dword [rsp + 0x20]
mov rcx, rsi
mov rdi, rax
mov byte [rdx + rax], 0
mov rdx, rax
mov r8d, dword [rsp + 0x20]
call fcn.140012ed0
test al, al
jne 0x1400130c0
mov rcx, rdi
call fcn.14001a344
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001a320
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400130c0
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.140015820
mov rcx, rdi
call fcn.14001a344
mov al, 1
jmp 0x1400130a3
Function at 0x140016d10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140016d71
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140016d30
mov ecx, dword [r10]
jmp 0x140016e5a
cmp ecx, 0x4e0
jb 0x140016e5a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140016d90
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140016de0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400178d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x14006d018]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rsi, rcx
movsxd rax, dword [rcx + 8]
mov ebx, r8d
mov r14, rdx
lea rcx, [rax + 8]
lea ebp, [rax + 8]
call fcn.14001a3b4
mov ecx, ebx
mov r15, rax
call qword [sym.imp.WS2_32.dll_htonl]
mov rdi, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
mov ebx, eax
lea r12, [0x1400723b0]
mov rdx, rdi
nop
inc rdx
cmp byte [r12 + rdx], 0
jne 0x140017930
test edx, edx
je 0x140017986
movzx eax, byte [0x1400723b0]
xor byte [rsp + 0x20], al
xor eax, eax
cmp edx, 1
setne al
mov ecx, eax
movzx eax, byte [rcx + r12]
xor byte [rsp + 0x21], al
xor eax, eax
inc ecx
cmp ecx, edx
cmovne eax, ecx
mov ecx, eax
movzx eax, byte [rax + r12]
xor byte [rsp + 0x22], al
xor eax, eax
inc ecx
cmp ecx, edx
cmovne eax, ecx
movzx eax, byte [rax + r12]
xor byte [rsp + 0x23], al
mov ebx, dword [rsp + 0x20]
mov ecx, dword [rsi + 8]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x20], eax
inc rdi
cmp byte [r12 + rdi], 0
jne 0x140017993
test edi, edi
je 0x1400179e9
movzx eax, byte [0x1400723b0]
xor byte [rsp + 0x20], al
xor eax, eax
cmp edi, 1
setne al
mov ecx, eax
movzx eax, byte [rcx + r12]
xor byte [rsp + 0x21], al
xor eax, eax
inc ecx
cmp ecx, edi
cmovne eax, ecx
mov ecx, eax
movzx eax, byte [rax + r12]
xor byte [rsp + 0x22], al
xor eax, eax
inc ecx
cmp ecx, edi
cmovne eax, ecx
movzx eax, byte [rax + r12]
xor byte [rsp + 0x23], al
mov eax, dword [rsp + 0x20]
mov r9, qword [rsi]
test edi, edi
je 0x140017a3e
movsxd r11, dword [rsi + 8]
xor r10d, r10d
test r11, r11
jle 0x140017a3e
movsxd rdi, edi
xor r8d, r8d
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + r12]
lea rdx, [r8 + 1]
xor byte [r9], cl
lea r9, [r9 + 1]
lea ecx, [r10 + 1]
xor r10d, r10d
cmp rdx, rdi
cmovne r10d, ecx
xor r8d, r8d
cmp rdx, rdi
cmovne r8, rdx
sub r11, 1
jne 0x140017a10
mov dword [r15], ebx
lea rcx, [r15 + 8]
mov dword [r15 + 4], eax
movsxd r8, dword [rsi + 8]
mov rdx, qword [rsi]
call fcn.140038190
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 8], r15
mov dword [r14], ebp
mov rcx, qword [rsi]
call fcn.14001a344
mov rax, r14
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001a320
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001d7e8
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001d7fb
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14001ddfc
lea rdx, [0x14006a950]
lea rcx, [rsp + 0x20]
call fcn.140038098
int3

Function at 0x140028058
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400710f8]
xor edx, edx
jmp fcn.14001d7e8

Function at 0x1400289ec
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400710f8]
jmp fcn.14001d7e8
Function at 0x1400345b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14003466c]
mov r9, qword [r9 + 8]
jmp fcn.140025a5c

Function at 0x140034644
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14003467c]
mov r9, qword [r9 + 8]
jmp fcn.140025a5c

Function at 0x1400427e8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140042614
Function at 0x140011267
Capabilities:
Terminate process

Disassembly:
jmp 0x140013d50
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011311
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400150a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400150c0
xor al, al
jmp 0x140015141
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400150d3
xor al, al
jmp 0x140015141
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400150fd
xor al, al
jmp 0x140015141
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015111
xor al, al
jmp 0x140015141
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015123
xor al, al
jmp 0x140015141
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001513f
xor al, al
jmp 0x140015141
mov al, 1
add rsp, 0x38
ret