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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
mov esi, edx
mov ebp, edi
mov ebx, edi
xor eax, eax
mov r14d, 1
lock cmpxchg dword [0x1800f3328], r14d
je 0x180067778
cmp rbx, 0x20
jae 0x18006775f
xor ecx, ecx
jmp 0x180067762
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800f3328], r14d
jne 0x180067755
cmp qword [0x1800f3330], rdi
je 0x1800677bb
cmp dword [0x1800f3bec], edi
mov r8d, edi
jbe 0x1800677c0
shl sil, 2
mov eax, r8d
inc r8d
imul rdx, rax, 0x38
mov rax, qword [0x1800f3be0]
movzx ecx, byte [rdx + rax + 0x20]
xor cl, sil
and cl, 4
xor byte [rdx + rax + 0x20], cl
cmp r8d, dword [0x1800f3bec]
jb 0x180067790
jmp 0x1800677c0
mov ebp, 2
xchg dword [0x1800f3328], edi
mov rdi, qword [rsp + 0x48]
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x1800677f0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov ebp, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x1800f3328], edi
je 0x180067841
nop
cmp rbx, 0x20
jae 0x18006782a
xor ecx, ecx
jmp 0x18006782c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800f3328], edi
jne 0x180067820
cmp qword [0x1800f3330], rbp
je 0x18006796d
mov r8d, dword [0x1800f3bec]
mov ebx, r15d
test r8d, r8d
je 0x180067972
mov rdx, qword [0x1800f3be0]
add rdx, 0x20
nop dword [rax]
movzx ecx, byte [rdx]
shr cl, 1
xor cl, byte [rdx]
test cl, 2
jne 0x18006788c
inc ebx
add rdx, 0x38
cmp ebx, r8d
jb 0x180067870
jmp 0x180067972
cmp ebx, 0xffffffff
je 0x180067972
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 2
call fcn.180066e00
mov ebp, eax
test eax, eax
jne 0x180067972
mov r8d, dword [0x1800f3bec]
cmp ebx, r8d
jae 0x180067904
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800f3be0]
movzx r9d, byte [rdx + rcx + 0x20]
movzx ecx, r9b
shr cl, 1
xor cl, r9b
test cl, 2
je 0x1800678fd
mov edx, r9d
mov ecx, ebx
shr edx, 2
and edx, edi
call fcn.180066ee0
mov ebp, eax
test eax, eax
jne 0x180067904
mov r8d, dword [0x1800f3bec]
inc ebx
cmp ebx, r8d
jb 0x1800678c0
cmp qword [rsp + 0x20], r15
je 0x180067972
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180067957
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rsi
mov esi, eax
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180067948
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180067920
mov rsi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800f3330]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180067972
mov ebp, 2
xchg dword [0x1800f3328], r15d
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1800799e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800e3040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
xor r15d, r15d
lea rbx, [rcx + 0xc8]
mov rcx, qword [rcx + 0xe0]
mov qword [rsp + 0x38], rcx
mov rax, qword [rbx + 0x10]
sub rax, qword [rbx]
sar rax, 4
cmp rcx, rax
jbe 0x180079a4e
movabs rax, 0xfffffffffffffff
cmp rcx, rax
ja 0x180079b3f
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.18007a470
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
sar rcx, 4
mov rax, qword [rbp + 0xe0]
cmp rcx, rax
jae 0x180079b0a
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx]
sar rdi, 4
mov rax, qword [rbp + 0xe0]
cmp rdi, rax
jae 0x180079b0a
mov qword [rsp + 0x38], rbp
lea r12, [0x180079db0]
mov qword [rsp + 0x30], r12
mov rsi, qword [rbx + 8]
cmp rsi, qword [rbx + 0x10]
je 0x180079ae6
mov ecx, 0x10
call fcn.180090410
mov qword [rax], rbp
mov qword [rax + 8], r12
mov qword [rsp + 0x40], rax
lea r14, [rsi + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x18007aa50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x180079b30
add qword [rbx + 8], 0x10
jmp 0x180079afb
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbx
call fcn.18007a7d0
inc rdi
mov rax, qword [rbp + 0xe0]
cmp rdi, rax
jb 0x180079a95
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800903f0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov dword [r14], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.180007f30
int3
Function at 0x18007a7d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1800e3040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, r9
mov qword [rsp + 0x58], r8
mov rbx, rdx
mov r15, rcx
mov rdx, qword [rcx]
mov r14, rbx
sub r14, rdx
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 4
movabs r9, 0xfffffffffffffff
cmp rax, r9
je 0x18007aa1e
lea r8, [rax + 1]
mov qword [rsp + 0x48], r8
mov rcx, qword [rcx + 0x10]
sub rcx, rdx
sar rcx, 4
mov rdx, rcx
shr rdx, 1
mov rax, r9
sub rax, rdx
cmp rcx, rax
ja 0x18007aa18
lea rax, [rdx + rcx]
mov rsi, r8
cmp rax, r8
cmovae rsi, rax
cmp rsi, r9
ja 0x18007aa18
mov rcx, rsi
shl rcx, 4
mov qword [rsp + 0x38], rsi
cmp rcx, 0x1000
jb 0x18007a8af
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18007aa18
mov rcx, rax
call fcn.180090410
test rax, rax
je 0x18007a8a8
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x18007a8cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x18007a8c8
call fcn.180090410
mov rdi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
jmp 0x18007a8d4
xor edi, edi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
and r14, 0xfffffffffffffff0
lea r13, [r14 + rdi]
lea r14, [r13 + 0x10]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x30], r14
mov ecx, 0x10
call fcn.180090410
mov r9, rax
mov rax, qword [r12]
mov qword [r9], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [r9 + 8], rax
mov qword [rsp + 0x58], r9
lea r12, [r13 + 8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0
lea r8, [0x18007aa50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r13], rax
test rax, rax
je 0x18007aa04
mov qword [rsp + 0x30], r13
mov rdx, qword [r15 + 8]
mov rax, qword [r15]
cmp rbx, rdx
jne 0x18007a978
cmp rax, rdx
je 0x18007a9c7
mov rcx, rdi
sub rcx, rax
nop word [rax + rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rax + rcx], xmm1
add rax, 0x10
cmp rax, rdx
jne 0x18007a960
jmp 0x18007a9c7
cmp rax, rbx
je 0x18007a999
mov rcx, rdi
sub rcx, rax
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rax + rcx], xmm1
add rax, 0x10
cmp rax, rbx
jne 0x18007a983
mov qword [rsp + 0x30], rdi
mov rax, qword [r15 + 8]
cmp rbx, rax
je 0x18007a9c7
sub r14, rbx
nop word [rax + rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rbx]
movups xmmword [rbx], xmm0
movups xmmword [rbx + r14], xmm1
add rbx, 0x10
cmp rbx, rax
jne 0x18007a9b0
mov r9, rsi
mov r8, qword [rsp + 0x48]
mov rdx, rdi
mov rcx, r15
call fcn.18007a540
mov rax, r13
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800903f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [r12], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.180002900
int3
call fcn.180007f30
int3
Function at 0x180084d80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov edi, edx
and edi, 7
je 0x180084e14
cmp edx, edi
jge 0x180084e05
mov r8d, dword [rcx + 0x14]
mov eax, 1
mov ecx, edx
mov r10d, edx
shl eax, cl
mov r9d, edx
cmp r8d, eax
jae 0x180084dfb
mov r11, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r11
jb 0x180084dc3
xor cl, cl
jmp 0x180084dcc
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
lea edx, [r10 + 8]
mov ecx, r10d
mov dword [rbx + 0x10], edx
shl eax, cl
or r8d, eax
mov dword [rbx + 0x14], r8d
cmp edx, 0x18
jg 0x180084e05
mov ecx, edx
mov eax, 1
shl eax, cl
mov r10d, edx
mov r9d, edx
cmp r8d, eax
jb 0x180084db7
mov rax, qword [rbx + 8]
mov edx, r9d
mov qword [rbx], rax
mov eax, dword [rbx + 0x14]
mov ecx, edi
shr eax, cl
sub edx, edi
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x10], edx
xor r8d, r8d
mov eax, edx
test edx, edx
jle 0x180084e4e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x180084e30
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x180084e82
mov edx, dword [0x1800e6508]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x180084eb1
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x180084e9b
xor dl, dl
jmp 0x180084ea4
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x180084e92
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x180084e52
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x180084f21
mov edx, dword [0x1800e6508]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x180084f3f
mov rcx, rbx
call fcn.1800841c0
test eax, eax
je 0x180084e75
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18009031c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180090356
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18009035b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800903a4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800b3d10]
cmp byte [rcx + rax], 0
je 0x1800903a4
dec r8
sub rdx, 1
jne 0x18009038a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x18000c670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [r8 + 0x1c]
mov dword [rdx + 0x14], eax
mov eax, dword [r8 + 0xa0]
mov dword [rdx + 0xb0], eax
mov eax, dword [r8 + 0x20]
mov dword [rdx + 0x18], eax
mov eax, dword [r8 + 0x28]
mov dword [rdx + 0x20], eax
mov eax, dword [r8 + 0x24]
mov dword [rdx + 0x1c], eax
mov eax, dword [r8 + 0x34]
mov dword [rdx + 0x30], eax
mov eax, dword [r8 + 0x38]
mov dword [rdx + 0x34], eax
mov eax, dword [r8 + 0x3c]
mov dword [rdx + 0x38], eax
mov eax, dword [r8 + 0x44]
mov dword [rdx + 0x40], eax
mov eax, dword [r8 + 0x2c]
mov dword [rdx + 0x24], eax
mov eax, dword [r8 + 0x30]
mov dword [rdx + 0x2c], eax
mov eax, dword [r8 + 0x50]
add eax, eax
xor eax, dword [rdx + 0x4c]
and eax, 0x20
xor dword [rdx + 0x4c], eax
movzx eax, word [r8 + 0x86]
mov word [rdx + 0x82], ax
movzx eax, byte [r8 + 0x88]
mov byte [rdx + 0x84], al
mov eax, dword [r8 + 0x90]
mov dword [rdx + 0x8c], eax
mov eax, dword [r8 + 0x9c]
mov dword [rdx + 0xac], eax
mov eax, dword [r8 + 0xc0]
mov dword [rdx + 0xd0], eax
mov eax, dword [r8 + 0x134]
mov dword [rdx + 0x774], eax
mov eax, dword [r8 + 0x12c]
mov dword [rdx + 0x76c], eax
mov eax, dword [r8 + 0xfc]
mov dword [rdx + 0x700], eax
mov eax, dword [r8 + 0x110]
mov dword [rdx + 0x714], eax
mov eax, dword [r8 + 0x108]
mov dword [rdx + 0x70c], eax
mov eax, dword [r8 + 0x10c]
mov dword [rdx + 0x710], eax
mov eax, dword [r8 + 0xc4]
mov dword [rdx + 0xd4], eax
mov eax, dword [r8 + 0xb8]
mov dword [rdx + 0xc8], eax
mov eax, dword [r8 + 0x98]
xor eax, dword [rdx + 0xa8]
and eax, 0x8000
xor dword [rdx + 0xa8], eax
ret

Function at 0x18000c7a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [r8 + 0x1c]
mov dword [rdx + 0x14], eax
mov eax, dword [r8 + 0xac]
mov dword [rdx + 0xbc], eax
mov eax, dword [r8 + 0x20]
mov dword [rdx + 0x18], eax
mov eax, dword [r8 + 0x28]
mov dword [rdx + 0x20], eax
mov eax, dword [r8 + 0x24]
mov dword [rdx + 0x1c], eax
mov eax, dword [r8 + 0x34]
mov dword [rdx + 0x30], eax
mov eax, dword [r8 + 0x38]
mov dword [rdx + 0x34], eax
mov eax, dword [r8 + 0x3c]
mov dword [rdx + 0x38], eax
mov eax, dword [r8 + 0x44]
mov dword [rdx + 0x40], eax
mov eax, dword [r8 + 0x2c]
mov dword [rdx + 0x24], eax
mov eax, dword [r8 + 0x30]
mov dword [rdx + 0x2c], eax
movzx eax, byte [r8 + 0x88]
mov byte [rdx + 0x84], al
mov eax, dword [r8 + 0x90]
mov dword [rdx + 0x8c], eax
mov eax, dword [r8 + 0x98]
mov dword [rdx + 0xa8], eax
mov eax, dword [r8 + 0x9c]
mov dword [rdx + 0xac], eax
mov eax, dword [r8 + 0xa0]
mov dword [rdx + 0xb0], eax
mov eax, dword [r8 + 0xa4]
mov dword [rdx + 0xb4], eax
mov eax, dword [r8 + 0x110]
mov dword [rdx + 0x15c], eax
mov eax, dword [r8 + 0xa8]
xor eax, dword [rdx + 0xb8]
and eax, 0x600
xor dword [rdx + 0xb8], eax
mov eax, dword [r8 + 0xe4]
mov dword [rdx + 0xf4], eax
mov eax, dword [r8 + 0xf8]
mov dword [rdx + 0x108], eax
mov eax, dword [r8 + 0xf0]
mov dword [rdx + 0x100], eax
mov eax, dword [r8 + 0xf4]
mov dword [rdx + 0x104], eax
ret
Function at 0x18001a5a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x18001a67f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x18001a5d7
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18001a682
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x18001a626
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x18001a630
test rax, rax
je 0x18001a67f
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x18001a670
cmp rdx, rax
jb 0x18001a650
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180020aa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180020b02
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180020af7
cmp edi, eax
jb 0x180020af7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180064a30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x48
mov rbx, rcx
lea rax, [0x1800ced18]
mov qword [rcx], rax
lea rax, [0x1800ced40]
mov qword [rcx], rax
mov qword [rcx + 8], 0x20
xor edi, edi
mov qword [rcx + 0x10], rdi
mov qword [0x1800eb540], rcx
mov dword [rsp + 0x70], 4
mov dword [rsp + 0x68], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1800c8100]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180064ad7
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, [0x1800c8130]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
mov dword [rbx + 0x18], eax
test eax, eax
cmovne rdi, qword [0x1800eb540]
mov qword [0x1800eb538], rdi
mov rax, rbx
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x180064b70
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov esi, edx
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebp, ebp
lea r14, [rbp - 1]
cmp dword [0x1800ea3b0], 0xffffffff
jne 0x180064c01
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1800ea3b0], eax
cmp eax, 0xffffffff
je 0x180064d09
mov ecx, dword [rbx + 8]
mov dword [rbx + 0xc], ecx
mov eax, 8
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.180066e1c
mov qword [rbx + 0x10], rax
mov edx, ebp
cmp dword [rbx + 0xc], edx
jbe 0x180064c01
nop word [rax + rax]
mov ecx, edx
mov rax, qword [rbx + 0x10]
mov qword [rax + rcx*8], rbp
inc edx
cmp edx, dword [rbx + 0xc]
jb 0x180064bf0
mov ecx, 0xc
call fcn.180066de0
mov rdi, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x180064c26
mov dword [rax], ebp
mov byte [rax + 4], 0
mov dword [rax + 8], esi
jmp 0x180064c29
mov rdi, rbp
test rdi, rdi
je 0x180064d09
mov rdx, rdi
mov ecx, dword [0x1800ea3b0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, ebp
mov r8d, dword [rbx + 0xc]
test r8d, r8d
je 0x180064c68
mov r9, qword [rbx + 0x10]
mov eax, ecx
lea rdx, [r9 + rax*8]
cmp qword [rdx], 0
je 0x180064c65
inc ecx
cmp ecx, r8d
jb 0x180064c50
jmp 0x180064c68
mov qword [rdx], rdi
mov edx, dword [rbx + 0xc]
cmp ecx, edx
jne 0x180064cfc
mov ecx, dword [rbx + 8]
add ecx, edx
mov eax, 8
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.180066e1c
mov rsi, rax
mov r8d, ebp
mov edx, dword [rbx + 0xc]
test edx, edx
je 0x180064cc2
nop dword [rax]
mov ecx, r8d
lea rdx, [rcx*8]
mov rcx, qword [rbx + 0x10]
mov rax, qword [rdx + rcx]
mov qword [rdx + rsi], rax
inc r8d
mov edx, dword [rbx + 0xc]
cmp r8d, edx
jb 0x180064ca0
mov ecx, dword [rbx + 8]
add ecx, edx
cmp edx, ecx
jae 0x180064ce2
nop dword [rax + rax]
mov eax, edx
mov qword [rsi + rax*8], rbp
inc edx
mov eax, dword [rbx + 8]
add eax, dword [rbx + 0xc]
cmp edx, eax
jb 0x180064cd0
mov rcx, qword [rbx + 0x10]
call fcn.180066e24
mov eax, dword [rbx + 0xc]
mov qword [rsi + rax*8], rdi
mov qword [rbx + 0x10], rsi
mov eax, dword [rbx + 8]
add dword [rbx + 0xc], eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180064d0c
mov rdi, rbp
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x180064d30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
movzx edi, dl
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1800ea3b0]
cmp ecx, 0xffffffff
je 0x180064e30
cmp qword [rbx + 0x10], 0
je 0x180064e30
test dil, dil
je 0x180064dcb
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
mov edx, esi
mov r9d, dword [rbx + 0xc]
test r9d, r9d
je 0x180064db7
mov r10, qword [rbx + 0x10]
nop dword [rax + rax]
mov ecx, edx
lea r8, [r10 + rcx*8]
cmp qword [r8], rax
je 0x180064db4
inc edx
cmp edx, r9d
jb 0x180064da0
jmp 0x180064db7
mov qword [r8], rsi
test rax, rax
je 0x180064e30
mov edx, 0xc
mov rcx, rax
call fcn.180066b1c
jmp 0x180064e30
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1800ea3b0], 0xffffffff
xor esi, esi
mov edi, esi
cmp dword [rbx + 0xc], esi
jbe 0x180064e20
nop dword [rax]
nop dword [rax + rax]
mov eax, edi
lea r14, [rax*8]
mov rax, qword [rbx + 0x10]
mov rcx, qword [r14 + rax]
test rcx, rcx
je 0x180064e19
mov edx, 0xc
call fcn.180066b1c
mov rax, qword [rbx + 0x10]
mov qword [r14 + rax], rsi
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180064df0
mov rcx, qword [rbx + 0x10]
call fcn.180066e24
mov qword [rbx + 0x10], rsi
mov dword [rbx + 0xc], esi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret

Function at 0x180064f50
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1800ea3b0]
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1800eb530]
test rax, rax
cmovne ecx, ebx
mov dword [0x1800eb530], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x1800b1d7c
Capabilities:
Query environment variable

Disassembly:
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800b1dac
xor eax, eax
jmp 0x1800b1e6f
mov rbp, rbx
cmp word [rax], si
je 0x1800b1dd1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800b1db8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800b1db4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800b1c2c
movsxd r14, eax
test eax, eax
jne 0x1800b1e0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800b1da5
mov rcx, r14
call fcn.1800a6420
mov rdi, rax
test rax, rax
jne 0x1800b1e28
xor ecx, ecx
call fcn.1800a6500
jmp 0x1800b1e04
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800b1c2c
test eax, eax
jne 0x1800b1e59
mov rcx, rdi
call fcn.1800a6500
jmp 0x1800b1e63
xor ecx, ecx
call fcn.1800a6500
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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