joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d7e8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [r8 + 0x18], 0x10
mov rsi, r8
mov r15, rdx
mov r14, rcx
jb 0x14001d80e
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
cmp qword [rsi + 0x10], rdx
jbe 0x14001d83f
movzx eax, byte [r8 + rdx]
movabs r9, 0x100000001b3
inc rdx
xor rcx, rax
imul rcx, r9
cmp rdx, qword [rsi + 0x10]
jb 0x14001d820
mov rdx, qword [r14 + 0x28]
mov rdi, rcx
shr rdi, 0x20
xor rdi, rcx
and rdi, rdx
cmp qword [r14 + 0x30], rdi
ja 0x14001d863
shr rdx, 1
or rax, 0xffffffffffffffff
sub rax, rdx
add rdi, rax
mov rbx, qword [r14 + 0x10]
add rdi, rdi
mov rbx, qword [rbx + rdi*8]
mov rcx, qword [r14 + 0x10]
mov rax, qword [r14]
cmp qword [rcx + rdi*8], rax
je 0x14001d883
mov rax, qword [rcx + rdi*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14001d8fa
cmp qword [rsi + 0x18], 0x10
mov rax, qword [rsi + 0x10]
lea rcx, [rbx + 0x10]
jb 0x14001d89c
mov r9, qword [rsi]
jmp 0x14001d89f
mov r9, rsi
mov r8, qword [rcx + 0x10]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140005f94
test eax, eax
je 0x14001d8b8
mov rbx, qword [rbx]
jmp 0x14001d86e
lea r9, [rbx + 0x10]
cmp qword [r9 + 0x18], 0x10
mov rax, qword [r9 + 0x10]
jb 0x14001d8ca
mov r9, qword [r9]
mov r8, qword [rsi + 0x10]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140005f94
test eax, eax
je 0x14001d8eb
mov rax, qword [r14]
mov qword [rsp + 0x50], rax
jmp 0x14001d8f0
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x50]
mov rax, qword [rax]
jmp 0x14001d8fd
mov rax, qword [r14]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov qword [r15], rax
mov rax, r15
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14001e450
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rbp - 0x10], rax
or rsi, 0xffffffffffffffff
xor r12d, r12d
mov r15, r8
mov rdi, rdx
mov qword [rbp - 0x50], rdx
test rdx, rdx
je 0x14001e492
cmp byte [rdx], r12b
jne 0x14001e498
mov qword [rbp - 0x48], r12
jmp 0x14001e4a8
mov rax, rsi
inc rax
cmp byte [rdx + rax], r12b
jne 0x14001e49b
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14001f58c
cmp qword [rax + 0x18], 8
jb 0x14001e4bf
mov rax, qword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp qword [rbp - 0x18], 8
mov r14d, eax
jb 0x14001e4e0
mov rcx, qword [rbp - 0x30]
call fcn.14006bd10
test r14d, r14d
jne 0x14001e4ec
xor al, al
jmp 0x14001e5ed
test r15, r15
je 0x14001e5eb
mov eax, 2
mul r14
cmovo rax, rsi
mov rcx, rax
call fcn.1400979a4
mov qword [rbp - 0x50], rdi
mov rbx, rax
test rdi, rdi
je 0x14001e51a
cmp byte [rdi], r12b
jne 0x14001e520
mov qword [rbp - 0x48], r12
jmp 0x14001e530
mov rax, rsi
inc rax
cmp byte [rdi + rax], r12b
jne 0x14001e523
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14001f58c
cmp qword [rax + 0x18], 8
jb 0x14001e547
mov rax, qword [rax]
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp qword [rbp - 0x18], 8
jb 0x14001e566
mov rcx, qword [rbp - 0x30]
call fcn.14006bd10
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
cmp word [rbx], r12w
jne 0x14001e582
mov rsi, r12
jmp 0x14001e58c
inc rsi
cmp word [rbx + rsi*2], r12w
jne 0x14001e582
lea rcx, [rbp - 0x50]
mov r8, rsi
mov rdx, rbx
call fcn.140005d28
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14001f66c
mov rcx, r15
mov rdx, rax
call fcn.140005a84
cmp qword [rbp - 0x18], 0x10
jb 0x14001e5c3
mov rcx, qword [rbp - 0x30]
call fcn.14006bd10
cmp qword [rbp - 0x38], 8
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x20], r12
mov byte [rbp - 0x30], r12b
jb 0x14001e5e3
mov rcx, qword [rbp - 0x50]
call fcn.14006bd10
mov rcx, rbx
call fcn.14009941c
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400991d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140020094
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rdi, rcx
jb 0x1400200ad
mov rdi, qword [rcx]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
xor ebx, ebx
mov ebp, eax
test eax, eax
je 0x14002014d
lea edx, [rbx + 1]
mov ecx, ebp
call fcn.14009c1cc
mov rsi, rax
test rax, rax
je 0x14002014d
mov edx, dword [rsp + 0x40]
mov r9, rax
mov r8d, ebp
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rsi
test eax, eax
je 0x140020148
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, str.VarFileInfoTranslation
mov qword [rsp + 0x50], rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140020145
cmp qword [rsp + 0x50], rbx
je 0x140020145
lea ecx, [rbx + 0x20]
call fcn.140098304
test rax, rax
je 0x140020140
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
movzx r9d, word [rcx + 2]
movzx r8d, word [rcx]
mov rcx, rax
call fcn.14001ff98
mov rbx, rax
mov rax, rbx
jmp 0x14002014f
mov rcx, rsi
call fcn.1400993dc
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400201f4
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rbp + 0x170], rax
movzx eax, word [rcx + 0x10]
mov r15, r8
mov r12, rdx
mov word [rsp + 0x50], ax
movzx eax, word [rcx + 0x12]
mov r14, rcx
mov word [rsp + 0x52], ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ebx, 0x4e4
mov word [rsp + 0x54], ax
movzx eax, word [r14 + 0x12]
mov word [rsp + 0x5a], bx
mov word [rsp + 0x56], ax
movzx eax, word [r14 + 0x10]
mov word [rsp + 0x58], ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [rsp + 0x5e], bx
xor ebx, ebx
lea rdi, [rsp + 0x50]
mov word [rsp + 0x5c], ax
mov esi, ebx
movzx eax, word [rdi + 2]
movzx edx, word [rdi]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov edx, 0x104
lea r9, str.StringFileInfo_04x_04x_ls
lea rcx, [rsp + 0x60]
mov r8d, edx
add esi, 2
lea rdi, [rdi + 4]
call fcn.14009c184
mov rcx, qword [r14 + 8]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400202db
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x140020307
movsxd rax, esi
cmp rax, 8
jb 0x14002027c
xor al, al
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400991d0
add rsp, 0x280
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp word [rdx], bx
je 0x14002031c
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x140020310
mov rbx, rax
mov r8, rbx
mov rcx, r15
call fcn.140005d28
mov al, 1
jmp 0x1400202e6
Function at 0x1400207a8
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x60
mov rax, r8
mov r10, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
or r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140020832
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and dword [rsp + 0x88], eax
and qword [rsp + 0x30], 0
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140020838
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbx], 0
jmp 0x140020844
mov eax, dword [rsp + 0x88]
dec eax
mov dword [rbx + 8], eax
mov rcx, rbx
add rsp, 0x60
pop rbx
jmp 0x1400208c4
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx]
xor edi, edi
test rcx, rcx
je 0x140020916
mov edx, dword [rbx + 8]
test edx, edx
js 0x140020916
lea rax, [r11 + 0x10]
lea r8, [rbx + 0xc]
lea r9, [r11 + 8]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], rdi
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140020916
mov al, 1
jmp 0x14002091c
mov word [rbx + 0xc], di
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400208c4
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x60
mov rax, r8
mov r10, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
or r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140020832
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and dword [rsp + 0x88], eax
and qword [rsp + 0x30], 0
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140020838
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbx], 0
jmp 0x140020844
mov eax, dword [rsp + 0x88]
dec eax
mov dword [rbx + 8], eax
mov rcx, rbx
add rsp, 0x60
pop rbx
jmp 0x1400208c4
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx]
xor edi, edi
test rcx, rcx
je 0x140020916
mov edx, dword [rbx + 8]
test edx, edx
js 0x140020916
lea rax, [r11 + 0x10]
lea r8, [rbx + 0xc]
lea r9, [r11 + 8]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], rdi
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140020916
mov al, 1
jmp 0x14002091c
mov word [rbx + 0xc], di
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140020928
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xf50]
mov eax, 0x1050
call fcn.14009c220
sub rsp, rax
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rbp + 0xf40], rax
lea rax, [rsp + 0x30]
mov rsi, r8
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140020a34
cmp dword [rsp + 0x34], 1
jne 0x1400209d3
cmp word [rsp + 0x40], bx
je 0x1400209c1
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400209b5
mov rbx, rax
lea rdx, [rsp + 0x40]
mov r8, rbx
mov rcx, rsi
call fcn.140005d28
jmp 0x140020a34
cmp dword [rsp + 0x34], 2
jne 0x140020a2f
lea rdx, [rbp + 0x740]
lea rcx, [rsp + 0x40]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x30], eax
dec eax
cmp eax, 0x3ff
ja 0x140020a28
cmp word [rbp + 0x740], bx
je 0x140020a1f
lea rcx, [rbp + 0x740]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140020a13
mov rbx, rax
lea rdx, [rbp + 0x740]
jmp 0x1400209c6
mov edi, 0xea
jmp 0x140020a34
mov edi, 0x3f4
mov eax, edi
mov rcx, qword [rbp + 0xf40]
xor rcx, rsp
call fcn.1400991d0
mov rbx, qword [rsp + 0x1088]
add rsp, 0x1050
pop rdi
pop rsi
pop rbp
ret

Function at 0x140020a58
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x50], 0
mov rcx, qword [rcx]
and dword [rsp + 0x30], 0
lea rax, [r11 + 0x20]
mov rbx, r8
lea r9, [r11 + 8]
mov qword [r11 - 0x20], rax
lea rax, [r11 - 0x18]
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x68], 4
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140020ac1
mov ecx, dword [rsp + 0x50]
add ecx, 0xfffffffd
cmp ecx, 1
ja 0x140020abc
cmp dword [rsp + 0x68], 4
jne 0x140020abc
mov ecx, dword [rsp + 0x30]
mov dword [rbx], ecx
jmp 0x140020ac1
mov eax, 0x3f4
add rsp, 0x40
pop rbx
ret
Function at 0x1400269d8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r14d, r14d
mov rbx, rdx
mov rsi, rcx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x140026aa5
movzx ebp, di
lea r9d, [r14 + 9]
lea r8, [rsp + 0x28]
lea edx, [r14 + 0x59]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x140026aa5
dec eax
lea rdx, [rsp + 0x28]
mov rcx, rsi
movsxd r8, eax
call fcn.140005d28
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], r14
jb 0x140026a5d
mov rax, qword [rbx]
jmp 0x140026a60
mov rax, rbx
mov word [rax], r14w
mov eax, 0xfc00
and di, ax
cmp r14w, di
je 0x140026aa1
mov r9d, 9
lea r8, [rsp + 0x28]
mov ecx, ebp
lea edx, [r9 + 0x51]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x140026aa1
lea edx, [rax - 1]
mov rcx, rbx
movsxd r8, edx
lea rdx, [rsp + 0x28]
call fcn.140005d28
mov al, 1
jmp 0x140026aa7
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400991d0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140027020
Capabilities:
Create thread

Disassembly:
and dword [rsp + 0x20], 0
jmp 0x140027020
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
xor ebp, ebp
mov rbx, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
je 0x14002705a
call fcn.14001e1c0
cmp eax, 1
jl 0x14002705a
mov ebp, 0x10000
jmp 0x14002705c
xor edi, edi
mov ecx, reloc.WS2_32.dll_recv
call fcn.140098304
test rbx, rbx
lea r8, [0x1400272c4]
setne cl
and qword [rsp + 0x28], 0
mov rdx, rdi
mov byte [rax + 8], cl
mov r9, rax
xor ecx, ecx
mov rsi, rax
mov qword [rax], r14
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1400270a5
mov rcx, rsi
call fcn.14006bd10
xor al, al
jmp 0x1400270ca
test rbx, rbx
je 0x1400270bf
and dword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rbx], xmm0
jmp 0x1400270c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14002920c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x78], rbx
je 0x14002935c
cmp byte [rcx + 0x81], bl
je 0x14002935c
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140029265
xor al, al
jmp 0x140029361
xor r8d, r8d
lea rcx, [rbp - 0x28]
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
lea edx, [r8 + 8]
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], bl
call fcn.140005b10
mov esi, 1
cmp qword [rbp - 0x10], 0x10
mov rcx, qword [rdi + 0x78]
mov r9, qword [rbp - 0x18]
mov r10, qword [rcx]
lea rax, [rbp - 0x30]
lea rdx, [rbp - 0x28]
cmovae rdx, qword [rbp - 0x28]
lea r8, [rbp - 0x28]
mov qword [rsp + 0x20], rax
cmovae r8, qword [rbp - 0x28]
add r9, rdx
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x1400292d3
dec ecx
je 0x1400292d9
cmp ecx, 2
jne 0x140029348
jmp 0x140029345
mov byte [rdi + 0x81], bl
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
mov r14, qword [rbp - 0x30]
cmp r10, 0x10
lea rax, [rbp - 0x28]
cmovae rax, r9
sub r14, rax
je 0x140029319
cmp r10, 0x10
lea rcx, [rbp - 0x28]
mov r8, r14
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov rdx, rsi
call fcn.140099ecc
cmp r14, rax
jne 0x140029342
cmp byte [rdi + 0x81], bl
je 0x14002933f
test r14, r14
jne 0x140029289
lea edx, [r14 + 8]
lea rcx, [rbp - 0x28]
xor r8d, r8d
call fcn.14001cf84
jmp 0x140029289
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x10], 0x10
jb 0x140029358
mov rcx, qword [rbp - 0x28]
call fcn.14006bd10
mov al, bl
jmp 0x140029361
mov eax, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400991d0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140029608
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rbp - 8], rax
or ebx, 0xffffffff
mov esi, edx
mov rdi, rcx
cmp edx, ebx
jne 0x14002963f
xor eax, eax
jmp 0x1400297fd
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140029679
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140029679
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x1400297fd
cmp qword [rdi + 0x90], 0
je 0x1400297fb
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [r8], rax
jne 0x1400296b1
mov rcx, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
sub edx, ecx
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
cmp qword [rdi + 0x78], 0
jne 0x1400296d2
mov rdx, qword [rdi + 0x90]
movsx ecx, sil
call fcn.14009dd2c
cmp eax, ebx
cmovne ebx, esi
jmp 0x1400297fb
and qword [rbp - 0x18], 0
xor r8d, r8d
lea rcx, [rbp - 0x28]
lea edx, [r8 + 8]
mov byte [rbp - 0x40], sil
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
call fcn.140005b10
cmp qword [rbp - 0x10], 0x10
mov rcx, qword [rdi + 0x78]
lea rax, [rbp - 0x38]
mov r10, qword [rcx]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
lea rdx, [rbp - 0x28]
lea r8, [rbp - 0x28]
lea r9, [rbp - 0x3f]
cmovae r8, qword [rbp - 0x28]
cmovae rdx, qword [rbp - 0x28]
add rdx, qword [rbp - 0x18]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x40]
lea rdx, [rdi + 0x84]
mov qword [rsp + 0x20], rax
call qword [r10 + 0x38]
test eax, eax
js 0x1400297eb
cmp eax, 1
jg 0x1400297d1
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
mov r14, qword [rbp - 0x38]
cmp r10, 0x10
lea rax, [rbp - 0x28]
cmovae rax, r9
sub r14, rax
je 0x140029797
cmp r10, 0x10
lea rcx, [rbp - 0x28]
mov r8, r14
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov edx, 1
call fcn.140099ecc
cmp r14, rax
jne 0x1400297eb
lea rax, [rbp - 0x40]
mov byte [rdi + 0x81], 1
cmp qword [rbp - 0x30], rax
jne 0x1400297cd
test r14, r14
jne 0x1400296f7
cmp qword [rbp - 0x18], 0x20
jae 0x1400297eb
lea edx, [r14 + 8]
lea rcx, [rbp - 0x28]
xor r8d, r8d
call fcn.14001cf84
jmp 0x1400296f7
mov ebx, esi
jmp 0x1400297eb
cmp eax, 3
jne 0x1400297eb
movsx ecx, byte [rbp - 0x40]
mov rdx, qword [rdi + 0x90]
call fcn.14009dd2c
cmp eax, ebx
cmovne ebx, esi
cmp qword [rbp - 0x10], 0x10
jb 0x1400297fb
mov rcx, qword [rbp - 0x28]
call fcn.14006bd10
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400991d0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140029e10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x48], 0
mov sil, r8b
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x140029e4c
test sil, sil
je 0x140029e4c
mov edx, 0xea60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rsi, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002c2d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401f2d18]
test rax, 0xfffffffffffffffe
jne 0x14002c323
lea rcx, [0x1401f2d18]
call fcn.1400231dc
test al, al
je 0x14002c323
and dword [0x1401f2d20], 0
lea rcx, [0x1401f2d20]
call fcn.14002c55c
lea r8, [0x1401f2d18]
lea rdx, [0x1401f2d20]
lea rcx, [0x1401f2d18]
xor r9d, r9d
call fcn.1400231c0
mov rax, qword [0x1401f2d18]
mov ecx, dword [rax]
call sub.KERNEL32.dll_TlsGetValue
add rsp, 0x28
ret

Function at 0x14002c55c
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
and dword [rsp + 0x30], 0
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x14002c57c
call fcn.14001123c
add rsp, 0x20
pop rbx
ret

Function at 0x14002c590
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x130
xor ebx, ebx
mov dword [rsp + 0x150], ebx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14002c5f2
call fcn.140011848
lea r9d, [rbx + 3]
cmp eax, r9d
jg 0x14002c5e3
lea r8d, [r9 + 0x20]
lea rdx, str.c:core_no_admin_src_base_threading_thread_local_win.cc
lea rcx, [rsp + 0x20]
lea ebx, [r9 - 2]
call fcn.1400112c8
lea rdx, str.Failed_to_TlsSetValue__.
lea rcx, [rax + 8]
call fcn.140001c14
test bl, 1
je 0x14002c5f2
lea rcx, [rsp + 0x20]
call fcn.140011354
add rsp, 0x130
pop rbx
ret

Function at 0x1400314ac
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, qword [rcx]
mov r8, qword [rcx + 8]
sub r8, r9
sar r8, 2
test r8, r8
je 0x1400314fa
mov r10, r8
mov eax, dword [r9]
xor r11d, r11d
mov dword [rsp + 8], eax
movzx edx, byte [rsp + r11 + 8]
movzx ecx, r8b
shr r8d, 8
xor rdx, rcx
lea rax, [0x1400c7a00]
inc r11
xor r8d, dword [rax + rdx*4]
cmp r11, 4
jb 0x1400314cc
add r9, 4
dec r10
jne 0x1400314c2
mov eax, r8d
ret
Function at 0x1400353cc
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
test rdx, rdx
je 0x140035471
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x130
xor edi, edi
mov r14d, 0xffffffff
mov rbx, rdx
mov dword [rsp + 0x150], edi
mov qword [rax + 8], r14
mov rsi, rcx
lea rcx, [rsp + 0x158]
lea rax, [rsp + 0x150]
cmp rbx, r14
cmovbe rax, rcx
mov rcx, rsi
mov ebp, dword [rax]
mov edx, ebp
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140035434
call fcn.14001123c
test dil, 1
je 0x140035447
lea rcx, [rsp + 0x20]
and edi, 0xfffffffe
call fcn.140011354
sub rbx, rbp
add rsi, rbp
mov qword [rsp + 0x158], rbx
test rbx, rbx
jne 0x140035408
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140037710
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1401f39b0]
and dword [rsp + 0x30], 0
mov rbx, rcx
test rax, 0xfffffffffffffffe
jne 0x140037771
lea rcx, [0x1401f39b0]
call fcn.1400231dc
test al, al
je 0x140037771
and dword [0x1401f39b8], 0
lea rcx, [0x1401f39b8]
call fcn.14002c55c
lea r9, [0x1400457c0]
lea r8, [0x1401f39b0]
lea rdx, [0x1401f39b8]
lea rcx, [0x1401f39b0]
call fcn.1400231c0
mov rax, qword [0x1401f39b0]
mov ecx, dword [rax]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rax]
mov qword [rbx], rcx
test rcx, rcx
je 0x140037793
add rcx, 8
call fcn.140029ff4
mov rax, rbx
add rsp, 0x20
pop rbx
ret