joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f800
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
cmp qword [rcx + 8], 0
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x50], 0
je 0x14002f835
mov r8d, 1
call fcn.14002ede0
mov dword [rsp + 0x50], eax
jmp 0x14002f856
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x14002f868
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx ecx, byte [rsp + 0x40]
test cl, cl
js 0x14002f887
mov byte [rbx], cl
mov byte [rbx + 1], 0
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx eax, cl
mov qword [rsp + 0x48], rdi
and al, 0xe0
cmp al, 0xc0
jne 0x14002f89c
mov edi, 2
jmp 0x14002f8ba
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x14002f8ac
mov edi, 3
jmp 0x14002f8ba
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x14002f925
mov edi, 4
mov byte [rbx], cl
cmp qword [rsi + 8], 0
lea rdx, [rbx + 1]
je 0x14002f8da
lea eax, [rdi - 1]
mov rcx, rsi
movsxd r8, eax
call fcn.14002ede0
mov rcx, rax
jmp 0x14002f8f9
mov rcx, qword [rsi]
lea r8d, [rdi - 1]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x50]
lea eax, [rdi - 1]
cmp ecx, eax
je 0x14002f912
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movsxd rax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov rdi, qword [rsp + 0x48]
mov word [rbx], 0x3f
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x30
pop rsi
ret

Function at 0x140030b58
Capabilities:
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x140030b7a
call qword [sym.imp.USER32.DLL_EmptyClipboard]
mov ebx, eax
call qword [sym.imp.USER32.DLL_CloseClipboard]
movsxd rax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140030b84
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x140030c1a
lea rsi, [0x140099397]
test rdi, rdi
cmovne rsi, rdi
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov ecx, 0x2002
inc eax
movsxd rbp, eax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140030c14
call qword [sym.imp.USER32.DLL_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140030c14
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rbx + 1]
mov rdx, rdi
call qword [sym.imp.USER32.DLL_SetClipboardData]
mov rbx, rax
call qword [sym.imp.USER32.DLL_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003109c
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f3310], eax
add rsp, 0x28
ret

Function at 0x140031100
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140031175
mov eax, dword [rcx + 0xf4]
mov dword [rcx + 0x108], eax
mov eax, dword [rcx + 0xf8]
mov dword [rcx + 0x10c], eax
call qword [rcx + 0xb0]
mov rdi, rax
test rax, rax
jne 0x140031175
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14003114d
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1400f0ff4]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400f3310]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400f3320], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140031288
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400f3320]
test rbx, rbx
je 0x1400312e1
mov rcx, rbx
call qword [rbx + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x1400312b9
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x1400f0ff4]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400f3310]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400f3320], 0
add rsp, 0x20
pop rbx
ret
Function at 0x1400329a4
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400f0ff4]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f3310]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1400f3320], rbx
and dword [rbx + 0x11c], 0
or eax, 0xffffffff
mov dword [rbx + 0x118], 0xffffff
mov dword [rbx + 0xe8], 1
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], eax
lea rax, [0x1400315a0]
mov qword [rbx], rax
lea rax, [0x1400315d0]
mov dword [rbx + 0xec], 7
mov qword [rbx + 8], rax
lea rax, [0x1400326e8]
mov qword [rbx + 0x10], rax
lea rax, [0x140031678]
mov qword [rbx + 0x18], rax
lea rax, [0x140031d50]
mov qword [rbx + 0x20], rax
lea rax, [0x140031ce0]
mov qword [rbx + 0x28], rax
lea rax, [0x140031d28]
mov qword [rbx + 0x30], rax
lea rax, [0x140031d3c]
mov qword [rbx + 0x38], rax
lea rax, [fcn.140031dc4]
mov qword [rbx + 0x40], rax
lea rax, [0x1400318e8]
mov qword [rbx + 0x48], rax
lea rax, [fcn.140031900]
mov qword [rbx + 0x50], rax
lea rax, [0x140031784]
mov qword [rbx + 0x58], rax
lea rax, [0x140031c48]
mov qword [rbx + 0x60], rax
lea rax, [0x140031b64]
mov qword [rbx + 0x68], rax
lea rax, [0x140031e60]
mov qword [rbx + 0x70], rax
lea rax, [0x140031fa4]
mov qword [rbx + 0x78], rax
lea rax, [0x140032090]
mov qword [rbx + 0x80], rax
lea rax, [0x140032148]
mov qword [rbx + 0x88], rax
lea rax, [0x140032298]
mov qword [rbx + 0x90], rax
lea rax, [0x140032318]
mov qword [rbx + 0x98], rax
lea rax, [0x14003240c]
mov qword [rbx + 0xa0], rax
lea rax, [0x1400325f8]
mov qword [rbx + 0xa8], rax
lea rax, [0x140032770]
mov qword [rbx + 0xb0], rax
lea rax, [0x140032858]
mov qword [rbx + 0xb8], rax
lea rax, [0x1400328f4]
mov qword [rbx + 0xc0], rax
lea rax, [0x140032948]
mov qword [rbx + 0xc8], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14005d110
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r8, rcx
test rcx, rcx
je 0x14005d1db
mov rdx, qword [rcx]
xor r9d, r9d
mov qword [rsp], rdi
mov eax, r9d
mov r10d, r9d
lea rdi, [0x14009a1f0]
mov byte [rdx + 0x16], al
mov rdx, qword [rcx]
mov byte [rdx + 0x17], al
mov rdx, qword [rcx]
mov byte [rdx + 0x18], al
mov rdx, qword [rcx]
mov byte [rdx + 0x19], al
movsxd r11, dword [rcx + 8]
test r11, r11
jle 0x14005d185
mov qword [rsp + 0x10], rbx
mov rbx, qword [rcx]
nop dword [rax]
movzx edx, byte [rbx + r10]
mov ecx, eax
inc r10
shr rcx, 0x18
xor rdx, rcx
mov ecx, eax
mov eax, dword [rdi + rdx*4]
shl ecx, 8
xor eax, ecx
cmp r10, r11
jl 0x14005d160
mov rbx, qword [rsp + 0x10]
movsxd r10, dword [r8 + 0x18]
test r10, r10
jle 0x14005d1b2
mov r11, qword [r8 + 0x10]
movzx edx, byte [r11 + r9]
mov ecx, eax
inc r9
shr rcx, 0x18
xor rdx, rcx
mov ecx, eax
mov eax, dword [rdi + rdx*4]
shl ecx, 8
xor eax, ecx
cmp r9, r10
jl 0x14005d192
mov rcx, qword [r8]
mov rdi, qword [rsp]
mov edx, eax
mov byte [rcx + 0x16], al
mov rcx, qword [r8]
shr edx, 8
mov byte [rcx + 0x17], dl
mov rcx, qword [r8]
mov edx, eax
shr edx, 0x10
shr eax, 0x18
mov byte [rcx + 0x18], dl
mov rcx, qword [r8]
mov byte [rcx + 0x19], al
add rsp, 8
ret
Function at 0x14007d4fc
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1400f0ff4]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f3310]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1400f3320], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.140080c50
mov rbx, qword [rsp + 0x30]
lea rax, [0x14007e584]
mov qword [rdi + 0xb0], rax
lea rax, [0x14007e5e8]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.14007de60]
mov qword [rdi + 0x20], rax
lea rax, [0x14007dd08]
mov qword [rdi + 0x60], rax
lea rax, [0x14007e68c]
mov qword [rdi + 0xc8], rax
lea rax, [0x14007e634]
mov qword [rdi + 0xc0], rax
lea rax, [0x14007d994]
mov qword [rdi + 0x68], rax
lea rax, [0x14007d938]
mov qword [rdi + 0x48], rax
lea rax, [0x14007d964]
mov qword [rdi + 0x50], rax
lea rax, [0x14007d7e8]
mov qword [rdi + 0x58], rax
lea rax, [0x14007e1b4]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140085278
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r10d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov ebx, r8d
mov r12, rdx
mov r11, rcx
test r10d, r10d
je 0x14008533f
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov ebp, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r13, eax
mov eax, esi
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg ebp
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x140085324
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 4]
xor byte [rdx], al
add rdx, rsi
dec rdi
jne 0x140085300
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x140085338
add ecx, ebp
jmp 0x14008533a
add ecx, ebx
test r10d, r10d
jne 0x1400852d4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400860e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r11d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov edi, r8d
mov r12, rdx
mov rbx, rcx
test r11d, r11d
je 0x1400861a9
mov eax, dword [rsp + 0x50]
mov ecx, r8d
mov ebp, r8d
lea r10d, [rax + rax*2]
mov eax, esi
imul ecx, dword [rsp + 0x58]
movsxd r13, r10d
imul eax, r9d
mov r9d, dword [rsp + 0x48]
movsxd r10, eax
mov qword [rsp + 0x28], r10
neg ebp
mov eax, dword [rbx + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rbx + 0x150]
add rdx, r10
cmp dword [rsp + 0x60], 0
jle 0x14008618f
mov r10d, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 3]
xor byte [rdx], al
add rdx, rsi
dec r10
jne 0x14008616b
mov r10, qword [rsp + 0x28]
dec r11d
inc r9d
cmp dword [rbx + 0x174], 0
jne 0x1400861a2
add ecx, ebp
jmp 0x1400861a4
add ecx, edi
test r11d, r11d
jne 0x14008613f
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400013c0
Capabilities:
Terminate process

Disassembly:
jmp 0x1400861c0
mov dword [rsp + 8], ecx
sub rsp, 0x28
xor r8d, r8d
xor edx, edx
mov ecx, dword [rsp + 0x30]
call fcn.140085d20
add rsp, 0x28
ret
Function at 0x140002527
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400b1110
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400b0c90
lea rcx, [rsp + 0x20]
call fcn.1400b0ce0
movzx eax, al
test eax, eax
jne 0x1400b1155
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x40]
jmp 0x1400b124f
lea rcx, [rsp + 0x20]
call fcn.1400b0de0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400b0d80
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.140002707
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400021b2
lea rcx, [rsp + 0x28]
call fcn.1400029b4
movzx eax, al
test eax, eax
jne 0x1400b11ef
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400034fe
lea rcx, [rsp + 0x20]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x50]
jmp 0x1400b124f
lea rcx, [rsp + 0x20]
call fcn.1400b0de0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140003e04
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.14000269e
lea rcx, [rsp + 0x28]
call fcn.140004318
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400034fe
lea rcx, [rsp + 0x20]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400027e8
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140023240
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140022bc0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14002327f
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 [0x140189020]
jmp 0x140023289
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140002932
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400b0e60
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400b0c90
lea rcx, [rsp + 0x40]
call fcn.1400b0e10
movzx eax, al
test eax, eax
jne 0x1400b0ea8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x70]
jmp 0x1400b1079
lea rcx, [rsp + 0x40]
call fcn.1400b0de0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400b0d80
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.1400b0de0
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.1400032ec
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400b0f4e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x80]
jmp 0x1400b1079
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140002707
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400025f4
lea rcx, [rsp + 0x48]
call fcn.1400022ed
movzx eax, al
test eax, eax
jne 0x1400b0fb5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140001735
lea rcx, [rsp + 0x40]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x88]
jmp 0x1400b1079
lea rcx, [rsp + 0x48]
call fcn.140002bd0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1400b0de0
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.1400032ec
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400b104b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140001735
lea rcx, [rsp + 0x40]
call fcn.1400b0cc0
mov rax, qword [rsp + 0xa0]
jmp 0x1400b1079
lea rcx, [rsp + 0x48]
call fcn.1400025d1
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140001735
lea rcx, [rsp + 0x40]
call fcn.1400b0cc0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140002941
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140023170
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140022b40
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400231b1
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 [0x140189020]
jmp 0x1400231b7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400029be
Capabilities:
Get geographical location

Disassembly:
jmp 0x14009ce20
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.14009bd50
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14009ce87
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
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 qword [0x140189030]
jmp 0x14009cea9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14000229d
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 0x1400029d2
Capabilities:
Terminate process

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

Disassembly:
jmp 0x1400cced0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140177ec0]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1400ccef6
jmp 0x1400ccf73
mov rcx, qword [rbp + 0x30]
call fcn.1400024f5
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1400ccf0f
jmp 0x1400ccf73
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400ccf2c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140001875
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
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.140001c1c
test eax, eax
jne 0x1400ccf73
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140002699
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140002c9d
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400ded40
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400ded64
xor eax, eax
jmp 0x1400dedb2
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x1400ded8c
xor eax, eax
jmp 0x1400dedb2
mov rax, qword [rsp + 8]
add rax, 0x18
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x20b
je 0x1400dedad
xor eax, eax
jmp 0x1400dedb2
mov eax, 1
add rsp, 0x28
ret

Function at 0x140002e00
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400b2fc0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x140002fd1
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000bfa0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000bfc0
xor al, al
jmp 0x14000c041
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000bfd3
xor al, al
jmp 0x14000c041
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 0x14000bffd
xor al, al
jmp 0x14000c041
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14000c011
xor al, al
jmp 0x14000c041
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14000c023
xor al, al
jmp 0x14000c041
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14000c03f
xor al, al
jmp 0x14000c041
mov al, 1
add rsp, 0x38
ret
Function at 0x140003265
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1400debb0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x10]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
jmp 0x1400dec0e
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 0x28
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x1400dec4d
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x38], rax
jb 0x1400dec4b
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x38], rax
jae 0x1400dec4b
mov rax, qword [rsp + 8]
jmp 0x1400dec4f
jmp 0x1400debf8
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000345e
Capabilities:
Terminate process

Disassembly:
jmp 0x14002d8f0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14002d91e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140003b25
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140003b7a
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400a8ad0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret