joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140809058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408091df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140809089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14080906f
add dl, dl
jne 0x140809096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408090f6
xor eax, eax
add dl, dl
jne 0x1408090a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408091ad
add dl, dl
jne 0x1408090b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408090c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408090d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408090dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408090ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14080907e
mov eax, 1
add dl, dl
jne 0x140809106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140809113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408090fb
sub eax, ebx
mov ebx, 1
jne 0x14080914c
mov ecx, 1
add dl, dl
jne 0x14080912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14080913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140809123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14080907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140809168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140809175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14080915d
cmp eax, 0x7d00
jae 0x14080919b
cmp eax, 0x500
jb 0x140809196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14080907e
cmp eax, 0x7f
ja 0x14080919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14080907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408091d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14080907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x144
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400010ae
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400011b0
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rdx, rbx
lea rax, [0x140005080]
mov ecx, 2
nop dword [rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x1400010c0
movups xmm0, xmmword [rax]
mov r10b, 0xff
xor r8d, r8d
mov r9, rbx
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
mov ecx, dword [rax + 0x40]
mov dword [rdx + 0x40], ecx
movzx ecx, byte [r9]
lea r9, [r9 + 1]
ror cl, 3
mov eax, 0xcccccccd
mul r8d
shr edx, 2
movzx eax, dl
shl al, 2
add dl, al
movzx eax, r8b
sub al, dl
inc r8d
xor cl, al
xor cl, r10b
inc r10b
mov byte [r9 - 1], cl
cmp r8d, 0x144
jl 0x140001140
lea rcx, str.Done_dcd__n
call fcn.140001010
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, str.Done__n
call fcn.140001010
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001cb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cfa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cfa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cfa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cfa
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cfa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cfc
xor al, al
add rsp, 0x28
ret
Function at 0x180005f00
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x180005fb6
mov rbx, qword [rcx]
cmp qword [rdi], 0
je 0x180005f82
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180005fa1
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180005fa1
mov qword [rsp + 0x28], 0
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call rax
nop
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x180005fa1
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x180156720], 0
jne 0x180006001
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180005ff1
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180156728], rax
mov byte [0x180156720], 1
jmp 0x180006008
mov rax, qword [0x180156728]
mov byte [0x180156720], 1
jmp 0x180006008
mov rax, qword [0x180156728]
mov rdx, rsi
mov rcx, qword [rbx]
test rax, rax
je 0x180005f8b
xor r9d, r9d
mov r8d, dword [rbx + 8]
call rax
nop
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180006140
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x18014f0c0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov qword [rsp + 0x40], rbp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x40]
call fcn.180006040
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x18000625c
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x180006231
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180006140
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x18000625c
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1800061e0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180006246
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov dword [rsp + 0x48], ebp
mov rcx, rdi
call fcn.180005f00
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x180006267
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1800f0be0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000b120
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x18000b142
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18000b1bc
mov rdi, r14
mov rcx, rbx
call fcn.18000c650
test rax, rax
jle 0x18000b194
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18011b7d0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000b1ac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18000b1b4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x18000b156
sub r14, rdi
jmp 0x18000b29f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18000b1d3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000b1d5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000b207
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18011b7d0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000b29c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000b242
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18000b27d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180103194
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18000b29c
cmp rbp, rax
ja 0x18000b250
test rbp, rbp
je 0x18000b29c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180103194
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x180016340
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov ebx, ecx
call fcn.1800dd5e0
test eax, eax
jne 0x180016558
cmp byte [0x18014ff34], al
mov qword [rsp + 0x30], rbp
jne 0x18001636d
xor ebp, ebp
jmp 0x180016389
mov ecx, 5
call qword [0x18014ffa0]
mov rbp, rax
test rax, rax
je 0x180016389
mov rcx, rax
call qword [0x18014ffb0]
test ebx, ebx
jle 0x18001653b
test rsi, rsi
je 0x18001653b
cmp dword [0x1801565e0], 0
mov qword [rsp + 0x38], rdi
jne 0x1800164af
call fcn.1800dd5e0
test eax, eax
je 0x1800163c5
movups xmm0, xmmword [str.expand_32_byte_k]
movups xmmword [0x1801565e0], xmm0
jmp 0x180016429
cmp byte [0x18014ff34], 0
jne 0x1800163d7
mov rdi, qword [0x180156338]
jmp 0x180016416
mov ecx, 2
mov qword [rsp + 0x40], r14
call qword [0x18014ffa0]
mov r14, rax
test rax, rax
je 0x18001640a
mov rcx, rax
call qword [0x18014ffb0]
mov rdi, qword [0x180156338]
mov rcx, r14
call qword [0x18014ffc0]
jmp 0x180016411
mov rdi, qword [0x180156338]
mov r14, qword [rsp + 0x40]
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x1801565e0], xmm0
test rdi, rdi
jne 0x18001644b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1801565f0], xmm0
mov qword [0x180156610], rax
movups xmmword [0x180156600], xmm0
mov dword [0x180156618], eax
jmp 0x18001648f
mov eax, dword [0x1801500e0]
test eax, eax
je 0x18001647d
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [0x1801565f0], xmm0
mov dword [0x1801565f0], eax
movups xmmword [0x180156600], xmm0
mov qword [0x180156610], rcx
mov dword [0x180156618], ecx
jmp 0x18001648f
lea r8, [0x1801565f0]
mov edx, 0x2c
mov rcx, rdi
call qword [rdi + 0x68]
mov eax, dword [0x180156610]
xor cl, cl
mov byte [0x180156660], cl
mov dword [0x18015661c], eax
mov dword [0x180156610], 0
jmp 0x1800164b6
movzx ecx, byte [0x180156660]
movzx eax, cl
lea rdi, [0x180156620]
cmp ebx, eax
jle 0x180016505
test cl, cl
je 0x1800164e3
movzx r8d, cl
mov rdx, rdi
mov rcx, rsi
call fcn.18011b7d0
movzx ecx, byte [0x180156660]
sub ebx, ecx
add rsi, rcx
inc dword [0x180156610]
lea rdx, [0x1801565e0]
mov rcx, rdi
call fcn.180015f90
mov cl, 0x40
mov byte [0x180156660], cl
cmp ebx, 0x40
jg 0x1800164c4
movzx eax, cl
mov rcx, rsi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rdi
call fcn.18011b7d0
sub byte [0x180156660], bl
mov rdi, qword [rsp + 0x38]
test rbp, rbp
jne 0x18001654a
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov dword [0x1801565e0], 0
test rbp, rbp
je 0x180016553
mov rcx, rbp
call qword [0x18014ffc0]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x1800328a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [rcx + 0x11], 0
mov r9, rcx
jne 0x1800328f7
movzx eax, byte [rcx + 0x10]
test al, al
je 0x1800328f7
cmp al, 1
jne 0x1800328b9
test edx, edx
jne 0x1800328f7
mov r10, qword [rcx + 8]
test r8, r8
je 0x1800328d2
mov rax, qword [r10 + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x28]
bswap eax
mov dword [r8], eax
test edx, edx
je 0x1800328f4
mov rax, qword [r9]
mov rcx, qword [r10]
mov edx, dword [rax + 0x2f0]
cmp edx, dword [rcx + 0x80]
jle 0x1800328f4
cmp byte [rcx + 0xa], 0
jne fcn.180029a60
xor eax, eax
ret
jmp fcn.1800324e0
Function at 0x1800473e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 8]
test rax, rax
je 0x18004740f
lea r8d, [rdx + 1]
nop dword [rax]
mov ecx, dword [rax + 0xc8]
mov edx, r8d
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [rax + 0xc8], edx
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1800473f0
ret
Function at 0x18008b1f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rcx + 0xa8]
mov rbx, rcx
mov rax, qword [rcx]
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x18008b402
mov qword [rsp + 0x70], r12
xor r9d, r9d
mov qword [rsp + 0x78], r13
lea r12, [rdi + 0x88]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x68], rbp
nop word [rax + rax]
movsxd r14, dword [rsi + 0x10]
mov r15d, dword [rsi + 0x14]
shl r14, 5
add r14, qword [rax + 0x20]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x18008b260
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x18008b276
dec al
lea r12, [rdi + 0x88]
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe8]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x18008b2a3
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rdi
call fcn.1800419d0
jmp 0x18008b2ce
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r12]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r9
mov r9, qword [r14 + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], WSAStartup
mov r9, qword [r9 + 0x68]
call fcn.18008a440
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x18008b30d
mov rcx, rdi
call fcn.180041890
test eax, eax
jne 0x18008b3e9
movsxd rax, dword [rdi + 0x90]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [r12]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r9d
lea rax, [rax + rcx*8]
mov ecx, dword [rdi + 0x90]
mov dword [rax + 0xc], r9d
add ecx, 2
mov dword [rax + 8], ecx
mov byte [rax + 1], r9b
mov qword [rax + 0x10], r9
mov word [rax + 2], r9w
mov qword [rax + 0x18], 0x7f
mov qword [rax + 0x20], r9
mov qword [rax + 0x28], r9
mov qword [rax + 0x30], 0x61
mov qword [rax + 0x38], 2
mov qword [rax + 0x40], r9
mov qword [rax + 0x48], 0x80
mov qword [rax + 0x50], r9
mov qword [rax + 0x58], r9
mov qword [rax + 0x60], 0x7a
mov qword [rax + 0x68], r9
mov qword [rax + 0x70], r9
add dword [rdi + 0x90], 5
test rax, rax
je 0x18008b3e9
mov dword [rax + 0x3c], ebp
lea edx, [r15 + 1]
mov dword [rax + 4], edx
lea ecx, [r15 - 1]
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
mov dword [rax + 0x50], ebp
mov word [rax + 0x4a], 8
test ebp, ebp
je 0x18008b3d7
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x18008b3d7
mov dword [rbx + rax*4 + 0xe8], ebp
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
je 0x18008b3e9
mov rax, qword [rsp + 0x60]
jmp 0x18008b240
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800ee310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x18], 0xb
mov rbp, rcx
jne 0x1800ee34b
mov eax, dword [rcx + 0x1c]
lea rdx, [rcx + 0x38]
mov r9, qword [rcx + 0x28]
dec eax
mov ecx, 0x1e
lea r8, [rax + rax*2]
mov r9, qword [r9 + r8*8 + 0x10]
lea r8, str.__lld_
add rsp, 0x30
pop rbp
jmp fcn.1800e4540
mov edx, dword [rcx + 0xc]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
add rcx, 0xc0
xor esi, esi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x40], esi
call fcn.1800e7030
add eax, dword [rbp + 0xc]
mov r9d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov edx, eax
add rdx, qword [rbp + 0xc0]
test r9d, r9d
je 0x1800ee3bf
movzx eax, byte [rdx]
lea r8, [0x18012c8a0]
test byte [rax + r8], 2
je 0x1800ee3bf
test r9d, r9d
je 0x1800ee3b2
movzx ecx, byte [rsi + rdx]
test byte [rcx + r8], 6
je 0x1800ee3bf
inc esi
cmp esi, r9d
jb 0x1800ee3a0
lea ecx, [r9 + 2]
lea r8, str.._.s
jmp 0x1800ee3ca
lea ecx, [r9 + 4]
lea r8, str..__.s_
add rbp, 0x38
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call fcn.1800e4540
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret
Function at 0x1800f7ee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1800f7fd0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x18014f150]
cmp ecx, 0xffffffff
jne 0x1800f7fee
xor esi, esi
jmp 0x1800f7ff7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x1800f80eb
cmp qword [rsi + 0x30], 0
jne 0x1800f801d
cmp qword [rsi + 0x18], 0
je 0x1800f80c4
mov rbx, qword [rsi + 0x18]
jmp 0x1800f8030
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1800f8084
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800f8067
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1800f8030
cmp qword [rsi + 0x30], 0
je 0x1800f800c
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1800f80ac
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1800f80ac
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1800f7470
cmp qword [rsi + 0x30], 0
jne 0x1800f8090
jmp 0x1800f8005
lea rdx, [0x1800f7cf0]
lea rcx, [0x1801554d8]
call fcn.1800f7940
mov ecx, dword [0x18014f150]
cmp ecx, 0xffffffff
je 0x1800f80eb
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1800f811e
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1800f811e
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800f7fd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1800f7fd0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x18014f150]
cmp ecx, 0xffffffff
jne 0x1800f7fee
xor esi, esi
jmp 0x1800f7ff7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x1800f80eb
cmp qword [rsi + 0x30], 0
jne 0x1800f801d
cmp qword [rsi + 0x18], 0
je 0x1800f80c4
mov rbx, qword [rsi + 0x18]
jmp 0x1800f8030
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1800f8084
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800f8067
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1800f8030
cmp qword [rsi + 0x30], 0
je 0x1800f800c
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1800f80ac
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1800f80ac
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1800f7470
cmp qword [rsi + 0x30], 0
jne 0x1800f8090
jmp 0x1800f8005
lea rdx, [0x1800f7cf0]
lea rcx, [0x1801554d8]
call fcn.1800f7940
mov ecx, dword [0x18014f150]
cmp ecx, 0xffffffff
je 0x1800f80eb
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1800f811e
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1800f811e
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18010bdec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180165050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x18010be51
test rax, rax
jne 0x18010be3f
lea r9, str.GetLocaleInfoEx
lea r8, [0x180124ee8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.18010b9a0
test rax, rax
je 0x18010be51
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.18011b790
jmp 0x18010be6b
xor edx, edx
mov rcx, rbp
call fcn.18010c0d4
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18010c58c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18010c5a2
mov al, 1
jmp 0x18010c60e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18010c5b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18010c60c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180117c78
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18010c60c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18010c60c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18010c60c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18010c60e
xor al, al
add rsp, 0x20
pop rbx
ret