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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, r8
mov r15, rdx
mov rdi, rcx
lea rsi, [0x180077430]
mov qword [rsp + 0x78], rsi
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x180020066
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x18007747c], 0x7fffffff
jne 0x180020088
mov dword [0x18007747c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x180020099
mov rdx, qword [rdi]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r8, r8
je 0x1800200d3
movabs r10, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x1800200c0
mov r8, rdi
lea rdx, [rsp + 0x20]
call fcn.1800171d0
cmp qword [rax + 8], 0
je 0x1800200fe
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rcx, qword [rax]
cmp qword [rcx + 0x30], 0
jne 0x18002012f
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18002010b
mov rdx, qword [rdi]
mov rcx, qword [0x1800f2640]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rcx, qword [rax]
mov qword [rcx + 0x30], rbx
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rcx, qword [rax]
cmp qword [rcx + 0x30], 0
je 0x180020179
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rax, qword [rax]
mov r8, qword [rax + 0x30]
mov rdx, r14
mov rcx, r15
call r8
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, ebx
jmp 0x180020182
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1800201a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
lea rsi, [0x180077340]
mov qword [rsp + 0x78], rsi
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1800201e6
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x18007738c], 0x7fffffff
jne 0x180020208
mov dword [0x18007738c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x180020219
mov rdx, qword [rdi]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r8, r8
je 0x180020253
movabs r10, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x180020240
mov r8, rdi
lea rdx, [rsp + 0x20]
call fcn.1800171d0
cmp qword [rax + 8], 0
je 0x18002027e
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rcx, qword [rax]
cmp qword [rcx + 0x30], 0
jne 0x1800202af
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18002028b
mov rdx, qword [rdi]
mov rcx, qword [0x1800f2640]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rcx, qword [rax]
mov qword [rcx + 0x30], rbx
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rcx, qword [rax]
cmp qword [rcx + 0x30], 0
je 0x1800202fb
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rax, qword [rax]
mov r8, qword [rax + 0x30]
mov edx, r14d
mov rcx, r15
call r8
mov rbx, rax
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rax, rbx
jmp 0x180020304
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x180020320
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, r8
mov r15, rdx
mov rdi, rcx
lea rsi, [0x1800770f0]
mov qword [rsp + 0x78], rsi
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x180020366
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x18007713c], 0x7fffffff
jne 0x180020388
mov dword [0x18007713c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x180020399
mov rdx, qword [rdi]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r8, r8
je 0x1800203d3
movabs r10, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x1800203c0
mov r8, rdi
lea rdx, [rsp + 0x20]
call fcn.1800171d0
cmp qword [rax + 8], 0
je 0x1800203fe
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rcx, qword [rax]
cmp qword [rcx + 0x30], 0
jne 0x18002042f
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18002040b
mov rdx, qword [rdi]
mov rcx, qword [0x1800f2640]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rcx, qword [rax]
mov qword [rcx + 0x30], rbx
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rcx, qword [rax]
cmp qword [rcx + 0x30], 0
je 0x180020476
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180016bb0
mov rax, qword [rax]
mov r8, qword [rax + 0x30]
mov rdx, r14
mov rcx, r15
call r8
nop
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
jmp 0x18002047f
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x180028e00
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180028e5d
lea rbx, [0x180064a40]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180028e44
cmp r10, 2
jb 0x180028e44
cmp byte [r9], r8b
jne 0x180028e44
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180028e20
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180028e9f
lea rbx, [0x180064a40]
cmp r8b, 0x23
jne 0x180028e83
cmp byte [r9], r8b
jne 0x180028e83
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180028e70
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180028fe0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180028ffa
mov qword [r8], 0
lea rdx, [0x180064674]
call fcn.180028eb0
mov rbx, rax
test rax, rax
jne 0x18002901a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1800290f3
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800290f3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1800290f3
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800290f3
cmp rdi, 0xffffffffffffffff
je 0x1800290f3
mov rax, qword [0x1800bd080]
test rax, rax
je 0x180029090
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1800290f3
mov r9, rbx
mov r8, rdi
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, rdi
je 0x1800290e0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800bd080]
test rax, rax
je 0x1800290d5
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800290fc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1800290ee
mov qword [r14], rdi
mov rax, rsi
jmp 0x1800290fe
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18002b3e0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
lea r8, [0x180064a40]
movsxd rcx, dword [rcx + 0xd0]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x1800bd080]
not ebx
cmp dword [rcx + 0x3ec4], ebx
jne 0x18002b475
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.18003cb40
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1800300c0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180030110
lea r11, [0x180064a40]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800300f3
cmp byte [r8], r9b
jne 0x1800300f3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1800300e0
mov rcx, qword [0x1800bd080]
not eax
movsxd rdx, dword [rcx + 0x3e70]
mov r9, qword [rcx + 0x3e78]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180030171
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180030169
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18003016c
mov rdx, r8
test rdx, rdx
jne 0x180030140
cmp r9, r10
je 0x180030180
cmp dword [r9], eax
jne 0x180030180
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x18003b650
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53e0], 0
lea rbx, [rcx + 0x53e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18003b6f7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18003b6aa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18003dc00
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180029440
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53e0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53f0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1800bcfcc]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18003b6ff
mov rcx, rbx
call fcn.180029440
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18003bb80
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1800bd080]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18003bbe3
mov qword [rsp], rbx
lea rbx, [0x180064a40]
nop dword [rax]
cmp r9b, 0x23
jne 0x18003bbc3
cmp byte [r8], r9b
jne 0x18003bbc3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18003bbb0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18003bc17
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18003bc1e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18003bc04
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x180057f80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800581d0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18005809a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180057fe4
mov rax, qword [0x180077008]
cmp qword [rsp + 0x20], rax
ja 0x180057fe4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180057fa6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180058015
jmp 0x18005809a
cmp dword [rsp + 0x50], 0x10000
jne 0x18005807d
cmp qword [rsp + 0x48], 0x10000
jb 0x18005807d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005805b
mov rax, qword [rsp + 0x28]
jmp 0x18005809c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18005806b
xor eax, eax
jmp 0x18005809c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180058095
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800581d0
mov qword [rsp + 0x20], rax
jmp 0x180057fa6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800580b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180058210
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800581c6
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18005810b
mov rax, qword [0x180077008]
cmp qword [rsp + 0x20], rax
ja 0x18005810b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800580cd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18005813c
jmp 0x1800581c6
cmp dword [rsp + 0x50], 0x10000
jne 0x1800581a4
cmp qword [rsp + 0x48], 0x10000
jb 0x1800581a4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180058182
mov rax, qword [rsp + 0x28]
jmp 0x1800581c8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180058192
xor eax, eax
jmp 0x1800581c8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800581c1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180058210
mov qword [rsp + 0x20], rax
jmp 0x1800580cd
xor eax, eax
add rsp, 0x68
ret
Function at 0x180058260
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800587f0
mov qword [rsp + 0x28], 0
cmp qword [0x1800bba28], 0
jne 0x1800582a8
cmp qword [0x1800bba20], 0
je 0x1800582a8
mov rax, qword [0x1800bba20]
mov qword [0x1800bba28], rax
cmp qword [0x1800bba28], 0
je 0x18005834e
mov rax, qword [0x1800bba28]
cmp qword [rax + 0x10], 0
je 0x18005834e
mov rax, qword [0x1800bba28]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18005834e
mov rax, qword [0x1800bba28]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18005834e
mov rax, qword [0x1800bba28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180058314
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18005831b
xor eax, eax
jmp 0x1800584c9
mov rax, qword [0x1800bba28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x1800584c9
mov rax, qword [0x1800bba20]
mov qword [0x1800bba28], rax
jmp 0x180058370
mov rax, qword [0x1800bba28]
mov rax, qword [rax + 8]
mov qword [0x1800bba28], rax
cmp qword [0x1800bba28], 0
je 0x1800583bd
cmp qword [0x1800bba28], 0
je 0x1800583bb
mov rax, qword [0x1800bba28]
cmp qword [rax + 0x10], 0
je 0x1800583bb
mov rax, qword [0x1800bba28]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800583bb
mov rax, qword [0x1800bba28]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800583bb
jmp 0x1800582ec
jmp 0x18005835e
mov rcx, qword [rsp + 0x60]
call fcn.18005a440
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800584d0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800584c7
mov rax, qword [rsp + 0x48]
mov qword [0x1800bba28], rax
mov rax, qword [0x1800bba28]
mov dword [rax], 0x52727464
mov rax, qword [0x1800bba28]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800bba28]
mov rcx, qword [0x1800bba20]
mov qword [rax + 8], rcx
mov rax, qword [0x1800bba28]
mov qword [0x1800bba20], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800bba28]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180058478
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800584b2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18005846e
mov rax, qword [0x1800bba28]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800582ec
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800591e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180059227
xor al, al
jmp 0x1800592c9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180059251
xor al, al
jmp 0x1800592c9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x1800592c1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x1800592c1
mov al, 1
jmp 0x1800592c9
jmp 0x1800592c7
xor al, al
add rsp, 0x78
ret

Function at 0x1800595d0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800bba20]
mov qword [rsp + 0x28], rax
jmp 0x1800595f0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005961f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18005961d
call sub.KERNEL32.dll_GetLastError
jmp 0x180059621
jmp 0x1800595e2
xor eax, eax
add rsp, 0x38
ret
Function at 0x180059ce0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1800bba38], eax
je 0x180059cfb
mov eax, 0x10dd
jmp 0x180059e20
mov rax, qword [0x1800bba50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180059da5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180059d70
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180059d70
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180058930
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.18005c024
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180059d07
mov qword [0x1800bba50], 0
call fcn.180059390
mov rax, qword [0x1800bba48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180059e09
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18005c024
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180059dc1
mov qword [0x1800bba48], 0
mov dword [0x1800bba38], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18005a350
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1800bba3c], 0
je 0x18005a36d
mov eax, dword [0x1800bba3c]
jmp 0x18005a433
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x18005a380
xor eax, eax
jmp 0x18005a433
mov ecx, 0x10
call fcn.18005bc70
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18005a3ee
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18005a3d3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18005c024
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1800bba3c], eax
mov qword [0x1800bba40], 0
mov eax, dword [rsp + 0x20]
jmp 0x18005a433
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x18005a408
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18005a3a9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1800bba48]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1800bba48], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x18005b8e4
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 0x18005b91e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18005b923
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 0x18005b96c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180060950]
cmp byte [rcx + rax], 0
je 0x18005b96c
dec r8
sub rdx, 1
jne 0x18005b952
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret