joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400380c0
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 0x140038121
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 0x1400380e0
mov ecx, dword [r10]
jmp 0x14003820a
cmp ecx, 0x4e0
jb 0x14003820a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
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 0x140038140
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [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 0x140038190
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 0x1400391c0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400ed1f8]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp qword [rcx + 8], 0
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
je 0x1400391f9
mov eax, 0x4df
jmp 0x1400392c1
cmp qword [rdx + 0x10], 0
jne 0x14003920a
mov eax, 0x57
jmp 0x1400392c1
cmp qword [rdx + 0x18], 8
mov rcx, rbx
jb 0x140039217
mov rcx, qword [rdx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14003922b
mov eax, 2
jmp 0x1400392c1
test sil, sil
je 0x14003927c
cmp qword [rbx + 0x18], 8
mov rax, rbx
mov rcx, qword [rbx + 0x10]
jb 0x140039241
mov rax, qword [rbx]
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.140048c30
movzx eax, byte [rsp + 0x50]
cmp al, 1
jne 0x140039275
cmp byte [rsp + 0x40], 0
jne 0x14003927c
mov eax, 5
jmp 0x1400392c1
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140039289
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 8], rax
test rax, rax
jne 0x1400392a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400392c1
lea rcx, [rdi + 0x10]
cmp rcx, rbx
je 0x1400392bf
cmp qword [rbx + 0x18], 8
mov r8, qword [rbx + 0x10]
jb 0x1400392b7
mov rbx, qword [rbx]
mov rdx, rbx
call fcn.1400027c0
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140068e00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140050ef0
Capabilities:
Get file version info

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1400ed1f8]
xor rax, rsp
mov qword [rsp + 0x258], rax
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov rbx, rcx
lea rax, [rsp + 0x58]
mov r9d, 0x200
mov qword [rsp + 0x20], rax
lea ecx, [r8 + 2]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
je 0x1400510e6
xor eax, eax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rax
lea rdx, [0x1400c4b50]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400510e6
cmp dword [rsp + 0x30], 0x34
jne 0x14005110d
mov rcx, qword [rsp + 0x40]
cmp dword [rcx], 0xfeef04bd
jne 0x1400510cc
mov eax, dword [rcx + 0xc]
mov ebx, dword [rcx + 0x2c]
mov edx, ebx
mov r9d, dword [rcx + 0x20]
mov r10d, dword [rcx + 0x24]
mov r11d, dword [rcx + 0x28]
mov r8d, dword [rcx + 0x30]
mov qword [rsp + 0x2b0], rbp
mov qword [rsp + 0x288], rsi
mov qword [rsp + 0x280], rdi
mov edi, dword [rcx + 0x1c]
and edi, dword [rcx + 0x18]
mov qword [rsp + 0x278], r12
mov r12d, dword [rcx + 0x10]
mov ebp, r12d
mov qword [rsp + 0x270], r13
mov r13d, dword [rcx + 8]
mov qword [rsp + 0x268], r14
mov r14d, dword [rcx + 0x14]
mov esi, r14d
mov qword [rsp + 0x260], r15
mov ecx, r8d
mov r15d, eax
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x38]
shr r15d, 0x10
mov dword [rsp + 0x50], r15d
mov r15, qword [rsp + 0x38]
mov byte [rax + 0x28], 1
mov eax, r13d
shr ebp, 0x10
shr esi, 0x10
shr edx, 0x10
shr ecx, 0x10
shr eax, 0x10
mov word [r15], ax
mov rax, r15
mov r15d, dword [rsp + 0x50]
mov word [rax + 2], r13w
mov r13, rax
mov word [rax + 4], r15w
mov eax, dword [rsp + 0x54]
mov word [r13 + 6], ax
mov rax, r13
mov word [r13 + 8], bp
mov word [r13 + 0xa], r12w
mov word [r13 + 0xc], si
mov word [r13 + 0xe], r14w
mov dword [r13 + 0x10], edi
mov dword [r13 + 0x14], r9d
mov dword [r13 + 0x18], r10d
mov dword [r13 + 0x1c], r11d
mov word [r13 + 0x20], dx
mov word [r13 + 0x22], bx
mov word [r13 + 0x24], cx
mov word [r13 + 0x26], r8w
mov r15, qword [rsp + 0x260]
mov r14, qword [rsp + 0x268]
mov r13, qword [rsp + 0x270]
mov r12, qword [rsp + 0x278]
mov rdi, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x288]
mov rbp, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.140068e00
add rsp, 0x290
pop rbx
ret
mov rax, qword [0x1400f40c0]
mov byte [rbx + 0x28], 0
mov qword [rbx + 8], rax
mov rax, rbx
mov dword [rbx], 0x68
jmp 0x1400510b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x1400f4118]
mov qword [rsp + 0x48], rax
mov rax, rbx
movups xmm0, xmmword [rsp + 0x40]
mov byte [rbx + 0x28], 0
movups xmmword [rbx], xmm0
jmp 0x1400510b3
mov rax, qword [0x1400f40c0]
mov byte [rbx + 0x28], 0
mov qword [rbx + 8], rax
mov rax, rbx
mov dword [rbx], 0x73
jmp 0x1400510b3
Function at 0x140051840
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400ed1f8]
xor rax, rsp
mov qword [rbp + 0x168], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor esi, esi
mov qword [rbp + 0x150], rsi
lea rax, [rsp + 0x50]
mov qword [rbp + 0x158], rax
mov dword [rbp + 0x160], 0x200
mov edx, 0x100
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test eax, eax
je 0x14005191e
nop dword [rax]
mov edx, dword [rbp + 0x160]
mov eax, edx
shr eax, 1
mov r8d, ecx
cmp ecx, eax
jb 0x14005197c
lea rbx, [r8 + r8]
cmp rbx, rdx
jbe 0x140051906
mov rcx, rbx
call fcn.140068e20
mov rcx, qword [rbp + 0x150]
mov qword [rbp + 0x150], rax
test rcx, rcx
je 0x1400518f5
call fcn.140068e5c
mov rax, qword [rbp + 0x150]
mov edx, ebx
mov dword [rbp + 0x160], ebx
mov qword [rbp + 0x158], rax
jmp 0x14005190d
mov rax, qword [rbp + 0x158]
shr edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test eax, eax
jne 0x1400518b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rax, [0x1400f4118]
mov qword [rsp + 0x28], rax
mov byte [rdi + 0x20], 0
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov rcx, qword [rbp + 0x150]
test rcx, rcx
je 0x140051951
call fcn.140068e5c
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rsp
call fcn.140068e00
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov rdx, qword [rbp + 0x158]
lea rcx, [rsp + 0x30]
call fcn.1400027c0
mov byte [rdi + 0x20], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x10], xmm1
jmp 0x140051940
Function at 0x140058770
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rbp, rcx
xor r14d, r14d
lea ecx, [r14 + 8]
cmp qword [rbp], r14
jbe 0x1400588e0
xor r15d, r15d
xor r12d, r12d
lea rdi, [0x1400f4108]
nop dword [rax]
mov rax, qword [rbp + 0x10]
mov rsi, qword [rbp + r14*8 + 0x2a0]
test rsi, rsi
jne 0x1400587c8
lea rsi, [rbp + 0x70]
add rsi, r12
mov r13, qword [r15 + rax + 8]
mov rax, qword [r15 + rax]
mov qword [rsp + 0x90], rax
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x1400587e7
mov qword [rsi + 0x20], rax
mov rbx, qword [rsi + 0x28]
test rbx, rbx
je 0x14005885b
mov rdi, rbx
cmp rbx, 8
cmova rdi, rcx
xor r9d, r9d
mov r8d, edi
lea rdx, [0x1400d0868]
mov rcx, qword [rsi]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x14005882c
mov dword [rsp + 0x20], eax
lea rax, [0x1400f4108]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
jmp 0x140058845
mov dword [rsp + 0x30], 0
mov rax, qword [0x1400f4098]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
cmp dword [rcx], 0
jne 0x1400588a4
sub rbx, rdi
mov ecx, 8
jne 0x1400587f0
lea rdi, [0x1400f4108]
xor r9d, r9d
mov r8d, r13d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsi]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jns 0x140058886
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x40]
jmp 0x14005889f
mov dword [rsp + 0x50], 0
mov rax, qword [0x1400f4098]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x50]
cmp dword [rcx], 0
je 0x1400588bf
movups xmm0, xmmword [rcx]
movd eax, xmm0
test eax, eax
je 0x1400588bf
mov rax, qword [rbp + 0x18]
cmp dword [rax + r15], 0
jne 0x1400588bf
movups xmmword [rax + r15], xmm0
inc r14
add r12, 0x30
add r15, 0x10
cmp r14, qword [rbp]
lea rdi, [0x1400f4108]
mov ecx, 8
jb 0x1400587b0
mov rcx, qword [rbp + 0x300]
test rcx, rcx
je 0x1400588fa
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp + 0x2f0]
test rcx, rcx
je 0x14005890c
call fcn.140068e5c
nop
lea rcx, [rbp + 0x70]
lea r9, [0x1400580c0]
mov edx, 0x30
lea r8d, [rdx - 0x26]
call fcn.140068e9c
nop
lea r9, [0x140058140]
mov edx, 8
lea r8d, [rdx + 2]
lea rcx, [rbp + 0x20]
call fcn.140068e9c
nop
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400589f0
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x43a0
call fcn.140069e00
sub rsp, rax
mov rax, qword [0x1400ed1f8]
xor rax, rsp
mov qword [rsp + 0x4390], rax
mov r10, r9
mov rbx, rcx
mov r9, qword [rsp + 0x43f8]
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x88], 1
mov qword [rsp + 0x90], r10
mov rax, qword [rsp + 0x43f0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], r9
mov r8, r10
lea rcx, [rsp + 0xa8]
call fcn.140058160
xor r13d, r13d
mov qword [rsp + 0x378], r13
mov qword [rsp + 0x380], r13
mov qword [rsp + 0x388], r13
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x30], xmm0
mov esi, r13d
cmp qword [rsp + 0x88], r13
jbe 0x140058c14
mov r14d, r13d
lea r15, [rsp + 0xf8]
mov rdi, qword [rsp + 0x38]
mov r12, qword [rsp + 0x30]
nop word [rax + rax]
mov rax, qword [rsp + rsi*8 + 0x328]
mov rbx, r15
test rax, rax
cmovne rbx, rax
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 8], rcx
jne 0x140058b37
xor r9d, r9d
mov r8d, edi
mov rdx, r12
mov rcx, qword [rbx]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x140058b14
mov dword [rsp + 0x58], eax
lea rax, [0x1400f4108]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
jmp 0x140058bee
mov dword [rsp + 0x68], r13d
mov rax, qword [0x1400f4098]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
jmp 0x140058bee
mov rax, qword [rbx + 0x20]
cmp rax, rcx
je 0x140058bd8
mov rcx, qword [rax]
cmp rdi, rcx
jbe 0x140058bd8
mov rdx, rcx
test rcx, rcx
cmove rdx, r13
mov rax, qword [rax + 8]
sub rax, rcx
mov rcx, rdi
sub rcx, rdx
cmp rax, rcx
cmovb ecx, eax
add rdx, r12
xor r9d, r9d
mov r8d, ecx
mov rcx, qword [rbx]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x140058b9d
mov dword [rsp + 0x78], eax
lea rax, [0x1400f4108]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x78]
jmp 0x140058bb3
mov dword [rsp + 0x48], r13d
mov rax, qword [0x1400f4098]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
cmp dword [rcx], r13d
jne 0x140058c4f
mov rax, qword [rbx + 0x20]
cmp rdi, qword [rax + 8]
jb 0x140058bd8
add rax, 0x10
mov qword [rbx + 0x20], rax
cmp rax, qword [rbx + 0x10]
jne 0x140058b44
mov dword [rsp + 0x30], r13d
mov rax, qword [0x1400f4098]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
mov rax, qword [rsp + 0xa0]
movups xmmword [r14 + rax], xmm0
inc rsi
add r15, 0x30
add r14, 0x10
cmp rsi, qword [rsp + 0x88]
jb 0x140058ac0
lea rcx, [rsp + 0x88]
call fcn.140058770
nop
mov rcx, qword [rsp + 0x4390]
xor rcx, rsp
call fcn.140068e00
lea r11, [rsp + 0x43a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movups xmm0, xmmword [rcx]
movups xmmword [rsp + 0x30], xmm0
jmp 0x140058bee
Function at 0x140060ce0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov dword [rsp + 0x70], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x140060d10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov word [rsp + 0x68], si
mov word [rsp + 0x60], si
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_IsWow64Process2]
test eax, eax
jne 0x140060d3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword gs:[0x30]
mov edi, 0x7ffe0030
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x90]
lea rcx, [rax + 0x1e]
test rax, rax
jne 0x140060d61
mov ecx, edi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2000000
mov edx, 0x100080
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rbp, [0x1400ee350]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140060dc3
xor r9d, r9d
mov r8d, 0x100
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
test eax, eax
jne 0x140060e3e
test rbx, rbx
je 0x140060dc3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x90]
test rax, rax
jne 0x140060e74
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], si
jne 0x140060de7
mov rax, qword [str.__]
lea rcx, [0x1400ee358]
add rbx, rbx
mov qword [0x1400ee350], rax
mov r8, rbx
mov rdx, rdi
call fcn.1400875f0
lea rax, [rbp + 8]
add rax, rbx
mov word [rax], si
sub rax, rbp
sar rax, 1
mov qword [0x1400ee558], rax
mov qword [str.PA_f_], rbp
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
cmp eax, 0x100
jae 0x140060db5
mov eax, eax
mov qword [0x1400ee558], rax
mov qword [str.PA_f_], rbp
test rbx, rbx
je 0x140060e31
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rdi, [rax + 0x1e]
jmp 0x140060de0
Function at 0x14006b2a4
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14006b2b7
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.14006b8e8
lea rdx, [0x1400e5ce8]
lea rcx, [rsp + 0x20]
call fcn.1400874f8
int3

Function at 0x140076b20
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400f2fc0]
xor edx, edx
jmp fcn.14006b2a4

Function at 0x1400774d4
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400f2fc0]
jmp fcn.14006b2a4

Function at 0x140082f5c
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, [0x140083020]
mov r9, qword [r9 + 8]
jmp fcn.140073598

Function at 0x140082ff0
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, [0x140083030]
mov r9, qword [r9 + 8]
jmp fcn.140073598

Function at 0x140092a28
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140092a5f
call fcn.1400936c4
mov dword [rax], 0x16
call fcn.14008c3cc
xor eax, eax
jmp 0x140092aed
mov rdx, r9
mov rcx, r8
call fcn.1400929c4
mov rbx, rax
test rax, rax
je 0x140092aea
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400928f0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140092ad7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140093638
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140092abe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140092acd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14009b2f4
jmp 0x140092aea
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140092ae7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400a177c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a1803
mov rsi, rbx
cmp word [rax], bp
je 0x1400a17c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a17ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a17a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009b330
mov rdi, rax
test rax, rax
je 0x1400a17f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400875f0
mov rbp, rdi
xor ecx, ecx
call fcn.14009b2f4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a45c8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14009ae40
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a4669
cmp ebx, dword [rsp + 0x30]
je 0x1400a4662
test esi, esi
je 0x1400a4662
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a463d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a464a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a4627
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a464e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a466b
mov eax, 1
jmp 0x1400a466b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10013c000
add rsp, 0x28
jmp 0x10000bae0