joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400178c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401e8574]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140017a70
mov rax, qword [0x1401e8578]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14001790c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140017997
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400178f0
mov rcx, r12
call fcn.140018370
mov rbp, rax
test rax, rax
je 0x140017acd
mov rax, qword [0x1401e8578]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400184a0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401e8578]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140017ab2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140017990
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140017a20
add dword [0x1401e8574], 1
cmp ebx, 8
jae 0x1400179c8
test bl, 4
jne 0x140017a80
test ebx, ebx
je 0x1400179b9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140017aa0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400179b9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400179fa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1401e8578]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140017990
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140017850
xor edi, edi
jmp 0x140017917
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400179b9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400179b9
mov rax, qword [0x1401e8578]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140017850
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140017850
nop
nop dword [rax]
Function at 0x140017fe0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1401e85e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401e85c0]
test rbx, rbx
je 0x140018034
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14001802b
test r12, r12
je 0x14001802b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018010
lea rcx, [0x1401e85e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140018370
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1401c0d80]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400183e9
mov rcx, r10
call fcn.140018240
test eax, eax
je 0x1400183e9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400183e6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400183dd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400183e9
add r8, 0x28
cmp r8, r9
jne 0x1400183c8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400186e0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1401e85c8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x140018070
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x1400180c3
mov dword [rax], edi
lea rcx, [0x1401e85e0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401e85c0]
lea rcx, [0x1401e85e0]
mov qword [0x1401e85c0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x140018066
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140018710
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140023dd0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140023de0
xor eax, eax
ret
jmp 0x140018050

Function at 0x140018750
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x140018790
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400187a8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140080940
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140080967
call rbp
cmp dword [rax], 4
jne 0x140080984
mov rcx, rdi
call fcn.140080760
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140080960
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140094df0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140094e18
xor ecx, ecx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
test eax, eax
jle 0x140094e60
cdqe
add rsi, rax
sub rbx, rax
jne 0x140094e30
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x140094e6c
call rbp
cmp dword [rax], 4
je 0x140094e30
lea rcx, str.random_device_could_not_be_read
call fcn.1400bca40
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400a17c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r9, rcx
mov rdx, rcx
lea r11, [rcx + 0x38c]
mov r10d, 0x9908b0df
mov eax, dword [rcx]
and eax, 0x80000000
mov r8d, dword [rcx + 4]
and r8d, 0x7fffffff
or eax, r8d
mov r8d, eax
shr r8d, 1
xor r8d, dword [rcx + 0x634]
and eax, 1
cmovne eax, r10d
xor eax, r8d
mov dword [rcx], eax
add rcx, 4
cmp rcx, r11
jne 0x1400a17d3
lea r10, [r9 + 0x630]
mov r8d, 0x9908b0df
mov eax, dword [rdx + 0x38c]
and eax, 0x80000000
mov ecx, dword [rdx + 0x390]
and ecx, 0x7fffffff
or eax, ecx
mov ecx, eax
shr ecx, 1
xor ecx, dword [rdx]
and eax, 1
cmovne eax, r8d
xor eax, ecx
mov dword [rdx + 0x38c], eax
add rdx, 4
cmp rdx, r10
jne 0x1400a1817
mov eax, dword [r9 + 0x9bc]
and eax, 0x80000000
mov edx, dword [r9]
and edx, 0x7fffffff
or eax, edx
mov edx, eax
shr edx, 1
xor edx, dword [r9 + 0x630]
and eax, 1
mov ecx, 0x9908b0df
cmovne eax, ecx
xor eax, edx
mov dword [r9 + 0x9bc], eax
mov qword [r9 + 0x9c0], 0
ret

Function at 0x1400a1890
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp qword [rcx + 0x9c0], 0x26f
ja 0x1400a18e6
mov rax, qword [rbx + 0x9c0]
lea rdx, [rax + 1]
mov qword [rbx + 0x9c0], rdx
mov eax, dword [rbx + rax*4]
mov edx, eax
shr edx, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor edx, eax
mov eax, edx
shl eax, 0xf
and eax, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret
call fcn.1400a17c0
jmp 0x1400a18a5
Function at 0x180001440
Capabilities:
Get hostname

Disassembly:
push rdi
sub rsp, 0x160
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x178], rbx
mov rax, qword [0x1800190f0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rbx
mov byte [rcx], bl
xor r8d, r8d
lea rdx, [0x180016908]
call fcn.1800026d0
mov dword [rsp + 0x20], 1
mov byte [rsp + 0x40], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x41]
call fcn.180007d50
mov dword [rsp + 0x38], 0x104
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp byte [rsp + 0x40], bl
je 0x1800014e9
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800014e0
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800026d0
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800043c0
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret

Function at 0x180001650
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x860
mov rax, qword [0x1800190f0]
xor rax, rsp
mov qword [rsp + 0x850], rax
xor ebx, ebx
mov rdi, rdx
test rdx, rdx
je 0x180001766
test r8d, r8d
je 0x180001766
mov qword [r11 + 0x10], rbp
mov qword [rsp + 0x30], rbx
mov ebp, 1
xor r9d, r9d
mov edx, 0x80000000
mov r8d, ebp
mov dword [rsp + 0x28], 0x80
mov qword [r11 + 0x18], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180001733
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x800
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000172a
mov ecx, 0x5a4d
cmp word [rsp + 0x50], cx
jne 0x18000172a
movsxd rax, dword [rsp + 0x8c]
cmp eax, 0x400
jge 0x18000172a
cmp word [rdi], cx
jne 0x18000172a
movsxd rcx, dword [rdi + 0x3c]
cmp ecx, 0x400
jge 0x18000172a
movzx edx, word [rcx + rdi + 4]
cmp word [rsp + rax + 0x54], dx
jne 0x18000172a
cmp word [rsp + rax + 0xac], 2
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x878]
mov rsi, qword [rsp + 0x880]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1800043c0
mov rbx, qword [rsp + 0x888]
add rsp, 0x860
pop rdi
ret
mov eax, ebx
jmp 0x180001745
Function at 0x1800020a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rdx
lea r8, [0x1800169b8]
mov edx, 0x66
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x1800020e3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800020d0
mov rcx, rax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x180002139
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov qword [r14], rdx
test eax, eax
je 0x180002139
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18000213d
xor eax, eax
jmp 0x18000214e
mov r8, qword [r14]
mov rdx, rsi
mov rcx, rax
call fcn.1800043f0
mov rax, rbx
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x180002400
Capabilities:
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
dec edx
jne 0x1800024ad
lea rcx, [0x1800169d8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.180001be0
test eax, eax
jne 0x18000244b
lea rcx, [0x1800169dc]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [0x18001b890], rdi
test rbx, rbx
je 0x1800024ad
xor edi, edi
cmp word [rbx], di
jne 0x180002463
mov r8d, edi
jmp 0x18000247a
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], di
jne 0x180002470
lea rcx, [0x18001a530]
mov rdx, rbx
call fcn.180002b60
lea r8, [0x180002170]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18001b878], rax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180003c90
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1800190f0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
xor eax, eax
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
or r9, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
nop
inc r9
cmp byte [rdx + r9], al
jne 0x180003ce0
mov r8, rdx
lea rdx, [rsp + 0x20]
call fcn.180003150
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xa8]
call fcn.180003260
lea rbx, [rsp + 0xa8]
lea rdi, [rsp + 0x80]
mov esi, 0x10
nop dword [rax]
movzx r8d, byte [rbx]
lea rdx, str._02x
mov rcx, rdi
call fcn.180004be4
add rdi, 2
lea rbx, [rbx + 1]
dec rsi
jne 0x180003d20
mov rax, qword [rsp + 0x80]
mov qword [0x18001b8a0], rax
mov rax, qword [rsp + 0x88]
mov qword [0x18001b8a8], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18001b8b0], rax
mov rax, qword [rsp + 0x98]
mov qword [0x18001b8b8], rax
lea rax, [0x18001b8a0]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1800043c0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400846cb
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140092f00
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
lea rcx, [0x1401ea2f2]
call fcn.140086c2d
nop
mov dword [rbp + 0x10], 0x238
xor edx, edx
mov ecx, 2
call fcn.140084c7f
mov qword [rbp + 0x268], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.1400853f5
cmp eax, 1
jne 0x140092f98
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.14008633b
cmp eax, 1
jne 0x140092f98
mov rdx, qword [rbp + 0x420]
lea rcx, [rbp + 0x3c]
call fcn.140086ad4
test eax, eax
jne 0x140092f96
mov eax, dword [rbp + 0x18]
jmp 0x140092f9a
jmp 0x140092f68
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14019ca40]
call fcn.140086165
mov rax, rdi
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret
Function at 0x140084ae5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140193d40
mov rax, rcx
neg rcx
test rax, 7
je 0x140193d5d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140193db8
test al, 7
jne 0x140193d50
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140193d71
mov rdx, qword [rax - 8]
test dl, dl
je 0x140193de2
test dh, dh
je 0x140193ddc
shr rdx, 0x10
test dl, dl
je 0x140193dd6
test dh, dh
je 0x140193dd0
shr rdx, 0x10
test dl, dl
je 0x140193dca
test dh, dh
je 0x140193dc4
shr edx, 0x10
test dl, dl
je 0x140193dbe
test dh, dh
jne 0x140193d71
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140084eaa
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400babf0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400ba570
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400bac2f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401eb020]
jmp 0x1400bac39
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14008503f
Capabilities:
Query environment variable

Disassembly:
jmp 0x140167860
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140167690
lea rcx, [rsp + 0x40]
call fcn.140167810
movzx eax, al
test eax, eax
jne 0x1401678a8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401676c0
mov rax, qword [rsp + 0x70]
jmp 0x140167a79
lea rcx, [rsp + 0x40]
call fcn.1401677e0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140167780
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1401677e0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140085cf1
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14016794e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401676c0
mov rax, qword [rsp + 0x80]
jmp 0x140167a79
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140084d88
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140084c25
lea rcx, [rsp + 0x48]
call fcn.140084829
movzx eax, al
test eax, eax
jne 0x1401679b5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400838f2
lea rcx, [rsp + 0x40]
call fcn.1401676c0
mov rax, qword [rsp + 0x88]
jmp 0x140167a79
lea rcx, [rsp + 0x48]
call fcn.1400853d7
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401677e0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140085cf1
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140167a4b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400838f2
lea rcx, [rsp + 0x40]
call fcn.1401676c0
mov rax, qword [rsp + 0xa0]
jmp 0x140167a79
lea rcx, [rsp + 0x48]
call fcn.140084bfd
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400838f2
lea rcx, [rsp + 0x40]
call fcn.1401676c0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140085053
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400bab20
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400ba4f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400bab61
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401eb020]
jmp 0x1400bab67
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400850df
Capabilities:
Get geographical location

Disassembly:
jmp 0x14014b690
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14014a530
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14014b6ec
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call fcn.140087213
jmp 0x14014b70e
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400847c0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400850f3
Capabilities:
Terminate process

Disassembly:
jmp 0x14009a900
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 0x140085382
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401817a0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401d6040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1401817c9
jmp 0x14018184e
mov rcx, qword [rbp + 0x30]
call fcn.140084ae5
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1401817e2
jmp 0x14018184e
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1401817ff
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140083a73
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140083f5a
test eax, eax
jne 0x14018184e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140084cfc
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140085918
Capabilities:
Parse pe header

Disassembly:
jmp 0x14009a010
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14009a030
xor al, al
jmp 0x14009a0b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14009a043
xor al, al
jmp 0x14009a0b1
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 0x14009a06d
xor al, al
jmp 0x14009a0b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14009a081
xor al, al
jmp 0x14009a0b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14009a093
xor al, al
jmp 0x14009a0b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14009a0af
xor al, al
jmp 0x14009a0b1
mov al, 1
add rsp, 0x38
ret