joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403e15c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x1403e161a
mov r11b, 0x23
lea rdi, [0x1404317d0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x1403e1604
cmp rdx, 2
jb 0x1403e1604
cmp byte [r10], r11b
jne 0x1403e1604
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x1403e15e2
jmp 0x1403e165b
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x1403e165b
mov r11b, 0x23
lea rdi, [0x1404317d0]
cmp dl, r11b
jne 0x1403e163f
cmp byte [r10], r11b
jne 0x1403e163f
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x1403e162d
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x1403e1790
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x1403e17b0
and qword [r8], 0
lea rdx, [0x14047cd68]
call fcn.1403e166c
mov rbx, rax
test rax, rax
je 0x1403e18a1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1403e1898
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1403e1898
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1403e1898
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1403e1898
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x1403e1898
mov rax, qword [0x140487050]
test rax, rax
je 0x1403e1835
inc dword [rax + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1403e1898
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x1403e1885
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140487050]
test rax, rax
je 0x1403e187a
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1403e18a1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1403e1893
mov qword [rsi], rbp
mov rax, rdi
jmp 0x1403e18a3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1403e3728
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
movsxd rdx, dword [rcx + 0x108]
mov r9d, 4
mov rax, qword [rcx + 0x110]
mov r8d, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x38]
not r8d
movzx eax, byte [rdx]
inc rdx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x1404317d0]
xor r8d, dword [rax + rcx*4]
sub r9, 1
jne 0x1403e3751
not r8d
mov ecx, r8d
call fcn.1403e3888
mov eax, r8d
add rsp, 0x28
ret

Function at 0x1403ed608
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140486010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x140487050]
mov r10d, 4
mov dword [rsp + 0x20], ecx
mov r9, qword [rax + 0x1b90]
movsxd rcx, dword [r9 + 0x108]
mov rax, qword [r9 + 0x110]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x20]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x1404317d0]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x1403ed64e
not r8d
lea rdx, [rsp + 0x20]
lea rcx, [r9 + 0x108]
mov dword [rsp + 0x20], r8d
call fcn.1403fb508
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140426620
add rsp, 0x38
ret

Function at 0x1403f2160
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x140487050]
cmp byte [rbx + 0x3000], 0
je 0x1403f2221
cmp qword [rbx + 0x3008], 0
lea rbp, [rax + 0x10]
lea rdi, [rbx + 0x3010]
je 0x1403f2213
mov r9d, dword [rdi + 4]
test r9d, r9d
jns 0x1403f21cb
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1403fb838
mov rcx, qword [rsp + 0x40]
and dword [rdi], 0
mov rdx, rcx
mov rcx, rdi
mov r8, rbp
call fcn.1403e1ed0
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3008]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x140487048]
movsxd r8, eax
mov rax, qword [rbx + 0x3018]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1403f2221
mov rdx, rcx
mov r8, rbp
mov rcx, rdi
call fcn.1403e1ed0
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x1403f2868
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140487050]
mov rbx, rcx
and dword [rax + 0x2fbc], 0
test rcx, rcx
je 0x1403f28d1
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.1403f28dc
lea rdx, [0x14047cd6c]
mov rcx, rbx
mov rdi, rax
call fcn.1403e166c
mov rbx, rax
test rax, rax
je 0x1403f28d1
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1404154b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8, rcx
lea rcx, [rsp + 0x40]
call fcn.1403edcc4
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x3c], 0x41b80000
movss xmm2, dword [rax]
subss xmm2, dword [0x14047d600]
movss dword [rsp + 0x38], xmm2
call fcn.1403eda14
mov rdx, r8
xor ecx, ecx
call fcn.1403e2058
lea rcx, [0x14047d37c]
call fcn.14040be1c
call fcn.1403e7d7c
test al, al
je 0x14041550d
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 1
add rsp, 0x28
jmp fcn.1403e20b4

Function at 0x1404167cc
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
mov dword [rax - 0x20], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14041680d
xor eax, eax
jmp 0x140416872
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140416855
cmp dword [rdi], 0x905a4d
je 0x140416866
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140417cdc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movabs rax, 0x1b49959b33a94115
mov r15, rcx
mov qword [rsp + 0x30], rax
lea rcx, [r11 - 0x48]
movabs rax, 0xc09114b295c86466
mov rdi, r9
mov qword [rsp + 0x38], rax
mov rsi, r8
movabs rax, 0x772dbbf75fcd357b
mov ebp, edx
mov qword [r11 - 0x58], rax
movabs rax, 0xc09114b295c8640a
mov qword [r11 - 0x50], rax
movups xmm0, xmmword [rsp + 0x20]
pxor xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, 0x1000
mov rcx, r15
mov rbx, rax
call fcn.1403d52c8
mov edx, 0x74
xor ecx, ecx
mov r8d, 0x3000
mov r12, rax
lea r9d, [rdx - 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movups xmm0, xmmword [0x1404860d0]
mov r9d, 0x74
mov r13, rax
mov rdx, r12
mov r8, r13
mov rcx, r15
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1404860e0]
lea r14, [r13 + 0x5c]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1404860f0]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [0x140486100]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [str.D__H]
movups xmmword [rax + 0x40], xmm0
movsd xmm0, qword [0x140486120]
movsd qword [rax + 0x50], xmm0
mov eax, dword [0x140486128]
mov dword [r13 + 0x58], eax
lea rax, [r12 + 0x5c]
mov qword [r13 + 6], rax
mov qword [r14 + 0x10], rsi
mov eax, dword [rdi + 0x28]
add rax, rsi
mov qword [r14 + 8], rax
call fcn.1403d5270
mov r9d, ebp
mov r8, rbx
mov rdx, r12
mov ecx, 7
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov rdi, rax
jmp 0x140417e35
mov r9d, 0x18
lea rdx, [r12 + 0x5c]
mov r8, r14
mov rcx, r15
call fcn.1403d5218
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [r14], 2
jne 0x140417e14
mov rcx, rdi
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rdx, r12
mov rcx, r15
call fcn.1403d532c
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_VirtualFree]

Function at 0x140417e78
Capabilities:
Enumerate pe sections

Disassembly:
movzx r9d, word [rdx + 0x14]
movzx eax, word [rdx + 6]
add r9, 0x18
add r9, rdx
lea rdx, [rax + rax*4]
lea r10, [r9 + rdx*8]
cmp r9, r10
jae 0x140417ebd
mov edx, dword [r9 + 0xc]
cmp rcx, rdx
jb 0x140417ea9
mov eax, dword [r9 + 8]
add eax, edx
cmp rcx, rax
jb 0x140417eaf
add r9, 0x28
jmp 0x140417e90
mov eax, dword [r9 + 0x14]
sub rax, rdx
add rax, rcx
add rax, r8
ret
xor eax, eax
ret
Function at 0x140420ae0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
mov r10, rcx
cmp rdx, r8
je 0x140420c81
mov r14, qword [rcx + 0x18]
lea rax, [rcx + 8]
mov r12, qword [rdx + 8]
lea rcx, [rdx + 0x10]
cmp qword [rcx + 0x18], 0x10
mov r13, qword [rax]
mov r9, qword [rcx + 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], rdx
jb 0x140420b3b
mov rcx, qword [rcx]
xor r8d, r8d
movabs rdx, 0xcbf29ce484222325
movabs r11, 0x100000001b3
test r9, r9
je 0x140420b6b
movzx eax, byte [r8 + rcx]
inc r8
xor rdx, rax
imul rdx, r11
cmp r8, r9
jb 0x140420b57
mov r15, qword [r10 + 0x30]
lea rcx, [rbp - 0x20]
and r15, rdx
add r15, r15
mov rbx, qword [r14 + r15*8]
mov rax, qword [r14 + r15*8 + 8]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x48], rax
call fcn.140420d68
mov rax, qword [rbp + 0x48]
cmp rsi, rax
je 0x140420bc0
mov rcx, qword [rbp - 0x10]
cmp rcx, rdi
je 0x140420c37
cmp rcx, rax
lea rcx, [rbp - 0x20]
sete bl
call fcn.140420d68
mov rax, qword [rbp + 0x48]
test bl, bl
je 0x140420b98
mov rbx, qword [rbp + 0x50]
cmp rbx, rsi
jne 0x140420bcc
mov qword [r14 + r15*8], r13
mov r12, r13
mov qword [r14 + r15*8 + 8], r12
mov rcx, qword [rbp - 0x10]
cmp rcx, rdi
je 0x140420c76
mov r12, qword [rbp + 0x40]
lea rdx, [rcx + 0x10]
cmp qword [rdx + 0x18], 0x10
mov r9, qword [rdx + 0x10]
jb 0x140420bf4
mov rdx, qword [rdx]
xor r8d, r8d
movabs rsi, 0xcbf29ce484222325
test r9, r9
je 0x140420c28
movabs rcx, 0x100000001b3
movzx eax, byte [r8 + rdx]
inc r8
xor rsi, rax
imul rsi, rcx
cmp r8, r9
jb 0x140420c10
mov rcx, qword [rbp - 0x10]
and rsi, qword [r12 + 0x30]
add rsi, rsi
mov r15, qword [r14 + rsi*8 + 8]
jmp 0x140420c48
cmp qword [rbp + 0x50], rsi
jne 0x140420c76
mov qword [r14 + r15*8], rcx
jmp 0x140420c76
cmp rcx, rdi
je 0x140420c72
cmp rcx, r15
lea rcx, [rbp - 0x20]
sete bl
call fcn.140420d68
mov rcx, qword [rbp - 0x10]
test bl, bl
je 0x140420c43
mov qword [r14 + rsi*8], r13
mov qword [r14 + rsi*8 + 8], r13
cmp rcx, rdi
je 0x140420c76
jmp 0x140420be2
mov qword [r14 + rsi*8], rcx
mov rax, qword [rbp - 0x18]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rbx, qword [rsp + 0x98]
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14042118c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r15, r8
mov r14, rdx
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x1404211b2
mov rdx, qword [r8]
movabs rdi, 0xcbf29ce484222325
xor ecx, ecx
cmp qword [r8 + 0x10], rcx
jbe 0x1404211e2
movzx eax, byte [rcx + rdx]
xor rdi, rax
movabs r8, 0x100000001b3
imul rdi, r8
inc rcx
cmp rcx, qword [r15 + 0x10]
jb 0x1404211c4
mov r9, rdi
mov r8, r15
lea rdx, [rsp + 0x30]
call fcn.140421f40
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140421209
mov qword [r14], rax
mov byte [r14 + 8], 0
jmp 0x1404213d2
movabs rax, 0x2aaaaaaaaaaaaaa
cmp qword [0x140490da0], rax
jne 0x14042122a
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [0x140490d98]
mov qword [rsp + 0x20], rax
and qword [rsp + 0x28], 0
mov ecx, 0x60
call fcn.1404268d8
mov rsi, rax
mov qword [rsp + 0x28], rax
mov rdx, r15
lea rcx, [rax + 0x10]
call fcn.1403dc9e8
nop
and dword [rsi + 0x58], 0
mov r8, qword [0x140490da0]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140421279
cvtsi2ss xmm0, rcx
jmp 0x14042128e
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rbx, qword [0x140490dc8]
xorps xmm2, xmm2
test rbx, rbx
js 0x1404212a4
cvtsi2ss xmm2, rbx
jmp 0x1404212bc
mov rcx, rbx
shr rcx, 1
mov rax, rbx
and eax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm0
divss xmm1, xmm2
movss xmm3, dword [0x140490d90]
comiss xmm1, xmm3
seta al
test al, al
je 0x14042135e
divss xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
xor ecx, ecx
movss xmm1, dword [0x14047d6bc]
comiss xmm0, xmm1
jb 0x140421307
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140421307
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140421335
cmp rbx, 0x200
jae 0x140421332
shl rbx, 3
cmp rbx, rcx
jae 0x140421335
mov rbx, rcx
mov rdx, rbx
call fcn.1404214e0
lea r8, [rsi + 0x10]
mov r9, rdi
lea rdx, [rsp + 0x30]
call fcn.140421f40
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
mov r8, qword [0x140490da0]
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 8]
inc r8
mov qword [0x140490da0], r8
mov qword [rsi], rcx
mov qword [rsi + 8], rdx
mov qword [rdx], rsi
mov qword [rcx + 8], rsi
mov rax, qword [0x140490da8]
and rdi, qword [0x140490dc0]
add rdi, rdi
mov r8, qword [rax + rdi*8]
cmp r8, qword [0x140490d98]
jne 0x1404213a9
mov qword [rax + rdi*8], rsi
jmp 0x1404213bb
cmp r8, rcx
jne 0x1404213b4
mov qword [rax + rdi*8], rsi
jmp 0x1404213c0
cmp qword [rax + rdi*8 + 8], rdx
jne 0x1404213c0
mov qword [rax + rdi*8 + 8], rsi
mov qword [r14], rsi
mov byte [r14 + 8], 1
lea rcx, [rsp + 0x20]
call fcn.140421404
mov rax, r14
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1404214e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rdx, rax
jbe 0x14042151f
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rbp, qword [0x140490d98]
lea rax, [rdx - 1]
or rax, 1
mov ebx, 1
bsr rcx, rax
mov r8, rbp
inc ecx
shl rbx, cl
lea rcx, [0x140490da8]
lea rdx, [rbx + rbx]
call fcn.140420e14
lea rdx, [rbx - 1]
mov qword [0x140490dc8], rbx
mov rbx, qword [0x140490d98]
mov qword [0x140490dc0], rdx
mov rbx, qword [rbx]
mov rdi, rbx
cmp rbx, rbp
je 0x1404216da
mov rdi, qword [rdi]
lea r15, [rbx + 0x10]
cmp qword [r15 + 0x18], 0x10
mov r8, r15
jb 0x14042158b
mov r8, qword [r15]
xor ecx, ecx
movabs r14, 0xcbf29ce484222325
cmp qword [r15 + 0x10], rcx
jbe 0x1404215bc
movzx eax, byte [rcx + r8]
movabs r9, 0x100000001b3
xor r14, rax
inc rcx
imul r14, r9
cmp rcx, qword [r15 + 0x10]
jb 0x14042159d
mov r12, qword [0x140490da8]
and r14, rdx
add r14, r14
cmp qword [r12 + r14*8], rbp
jne 0x1404215dd
mov qword [r12 + r14*8], rbx
mov qword [r12 + r14*8 + 8], rbx
jmp 0x1404216c6
mov rsi, qword [r12 + r14*8 + 8]
lea rdx, [rsi + 0x10]
cmp qword [rdx + 0x18], 0x10
mov rax, qword [rdx + 0x10]
jb 0x1404215f4
mov rdx, qword [rdx]
cmp qword [r15 + 0x18], 0x10
mov rcx, r15
jb 0x140421601
mov rcx, qword [r15]
cmp qword [r15 + 0x10], rax
jne 0x14042163f
mov r8, qword [r15 + 0x10]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14042163f
mov r8, qword [rsi]
cmp r8, rbx
je 0x1404215d3
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
jmp 0x1404215d3
cmp qword [r12 + r14*8], rsi
je 0x1404216a1
mov rsi, qword [rsi + 8]
lea rdx, [rsi + 0x10]
cmp qword [rdx + 0x18], 0x10
mov rax, qword [rdx + 0x10]
jb 0x14042165b
mov rdx, qword [rdx]
cmp qword [r15 + 0x18], 0x10
mov rcx, r15
jb 0x140421668
mov rcx, qword [r15]
cmp qword [r15 + 0x10], rax
jne 0x14042163f
mov r8, qword [r15 + 0x10]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14042163f
mov r8, qword [rsi]
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
jmp 0x1404216c6
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rsi
mov rax, qword [rsi + 8]
mov qword [rax], rbx
mov qword [rsi + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
mov qword [r12 + r14*8], rbx
mov rbx, rdi
cmp rdi, rbp
je 0x1404216da
mov rdx, qword [0x140490dc0]
jmp 0x140421577
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140421d40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140486010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 8
call fcn.1404268d8
lea rcx, [0x14041a2e4]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1404223a8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140421db7
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140426620
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
and dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140421dc8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140486010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, r8
mov r15, rcx
mov ecx, 0x30
call fcn.1404268d8
mov rsi, rax
mov qword [rsp + 0x30], rax
mov dl, byte [r14]
mov byte [rax], dl
mov cl, byte [r14 + 1]
mov byte [rax + 1], cl
and qword [rax + 8], 0
and qword [rax + 0x10], 0
and qword [rax + 0x18], 0
mov rbx, qword [r14 + 0x10]
sub rbx, qword [r14 + 8]
je 0x140421eaf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140421f37
cmp rbx, 0x1000
jb 0x140421e76
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140421f31
call fcn.1404268d8
mov rcx, rax
test rax, rax
je 0x140421e6f
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140421e7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1404268d8
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
add rax, rbx
mov qword [rsi + 0x18], rax
mov rdi, qword [rsi + 8]
mov rbx, qword [r14 + 0x10]
mov rdx, qword [r14 + 8]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rdi]
mov qword [rsi + 0x10], rax
mov rax, qword [r14 + 0x20]
mov qword [rsi + 0x20], rax
lea rax, [0x1404184b0]
mov qword [rsi + 0x28], rax
mov qword [rsp + 0x30], rsi
lea rbx, [r15 + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rsi
lea r8, [0x1404223d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r15], rax
test rax, rax
je 0x140421f22
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140422068
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140426620
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.1403d5450
int3
call fcn.1403dc534
int3
Function at 0x140425b4c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140425bd0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14042aa70]
cmp byte [rcx + rax], 0
je 0x140425bd0
dec r8
sub rdx, 1
jne 0x140425bb6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140426268
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140425c60
mov ebx, eax
test eax, eax
jne 0x140426298
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1404262fb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1404262f2
test al, 0x10
je 0x1404262f2
bt eax, 0xa
jae 0x1404262eb
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14042630c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1404262e7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1404262e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x1404262f2
and dword [rsp + 0x3c], 0
jmp 0x1404262f7
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1404272e0
Capabilities:
Parse pe header

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