joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400088d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400089a5
cmp byte [rcx + 0x72], 0
je 0x1400089a5
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x1400089a1
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140008966
sub eax, 1
je 0x14000896a
cmp eax, 2
jne 0x1400089a1
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b8a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140008998
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400089a1
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14000894e
xor al, al
jmp 0x14000894e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b8a0
add rsp, 0x60
pop rbx
ret
Function at 0x14000a4f0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov ebx, 1
bsr rcx, rax
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x14000a521
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x40], rdi
mov rdi, qword [0x140014a58]
or rax, rbx
bsr rcx, rax
mov r8, rdi
inc ecx
shl rbx, cl
lea rcx, [0x140014a68]
lea rdx, [rbx + rbx]
call fcn.140008a10
mov rcx, qword [0x140014a58]
lea r9, [rbx - 1]
mov qword [0x140014a80], r9
mov qword [0x140014a88], rbx
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x14000a694
mov qword [rsp + 0x30], rsi
mov rax, rcx
movabs rsi, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rbx
xor r11, rdx
imul r11, rbx
and r11, r9
shl r11, 4
add r11, qword [0x140014a68]
mov r9, qword [r11]
cmp r9, rdi
jne 0x14000a5e0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14000a655
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14000a61d
mov r10, qword [rdx]
cmp r10, rax
je 0x14000a617
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14000a655
cmp r9, rdx
je 0x14000a631
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14000a669
cmp r9, rdx
jne 0x14000a622
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rdi
je 0x14000a68f
mov r9, qword [0x140014a80]
jmp 0x14000a591
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000a655
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
Function at 0x14000a9e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x20]
call fcn.140008540
nop
lea rdi, [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov r10, qword [rsp + 0x38]
cmp r10, 7
cmova rdi, r8
lea rax, [rsp + 0x20]
cmova rax, r8
mov r9, qword [rsp + 0x30]
lea rsi, [rax + r9*2]
lea rbx, [rsp + 0x20]
cmova rbx, r8
cmp rbx, rsi
je 0x14000aa68
sub rdi, rbx
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [rdi + rbx], ax
add rbx, 2
cmp rbx, rsi
jne 0x14000aa43
mov r10, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x20]
lea rdx, [rsp + 0x20]
cmp r10, 7
cmova rdx, r8
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
add r9, r9
je 0x14000aaa3
movabs r11, 0x100000001b3
movzx eax, byte [rdx + rcx]
xor rbx, rax
imul rbx, r11
inc rcx
cmp rcx, r9
jb 0x14000aa90
cmp r10, 7
jbe 0x14000aae1
lea rdx, [r10*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x14000aad9
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000aad9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14000bd2c
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000b8a0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14000c64c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c696
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c696
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c696
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c696
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c696
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c698
xor al, al
add rsp, 0x28
ret
Function at 0x180002c00
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180002c24
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x180002cb2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180002c80
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180002c80
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.180048ca0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180002c9d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180002ca5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180002c41
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x180002d90
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180002cc9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180002ccb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180002cfd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.180048ca0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180002d8d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180002d38
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 rsi, 0xfff
jbe 0x180002d6e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.18002fc04
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x180002d8d
cmp rsi, rax
ja 0x180002d41
test rsi, rsi
je 0x180002d8d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18002fc04
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x180009b20
Capabilities:
Access peb ldr_data
Encode data using xor
Get process filename
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x1800ec100]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [r11 - 0x78], xmm0
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
mov qword [r11 - 0x28], rax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0x68
mov dword [r11 - 0x4c], 1
xor ebp, ebp
mov word [r11 - 0x48], bp
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x180009c26
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x180009c26
mov esi, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rsi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0x4fbe2ac5
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180009c21
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x180009c00
cmp r8d, 0x2108cf09
je 0x180009c2b
test r9d, r9d
jne 0x180009be0
mov rax, qword [rax]
jmp 0x180009bb0
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rdi + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov r11d, dword [rcx + rax*4]
add r11, r10
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x180009c50
mov rcx, qword [rbx]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call r11
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x180009cb8
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180009cb3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180009cf0
mov rcx, r8
call fcn.1800283f4
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rbp
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.180028390
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.18002e5b4
int3
Function at 0x18000f2b0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x530
mov rax, qword [0x1800ec100]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov r14, rdx
mov r15, rcx
mov bpl, 1
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov rbx, r12
nop word [rax + rax]
mov qword [rsp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r9d, r9d
mov r8d, 0x81a
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test rbx, rbx
je 0x18000f33f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x18000f403
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x18000f300
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x18000f300
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x18000f300
test eax, eax
je 0x18000f38a
test bpl, bpl
jne 0x18000f38a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x18000f300
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x4d0
call fcn.1800493e0
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x80], 0x10000b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18000f300
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x18000f3ee
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x38]
mov dword [rsp + 0x48], edi
lea r8, [rsp + 0x40]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x10]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
inc esi
jmp 0x18000f300
xor bpl, bpl
test esi, esi
jne 0x18000f2f0
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x18000f41d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, r12
mov qword [rsp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r9d, r9d
mov r8d, 0x81a
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test rbx, rbx
je 0x18000f45f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x18000f48c
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x18000f420
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x18000f420
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x18000f420
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.180028390
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x18000f4c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800ec100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov qword [rsp + 0x40], rcx
mov rdi, rdx
lea r9, [rsp + 0x40]
mov rbx, rcx
xor ebp, ebp
mov rdx, rsi
mov dword [rsp + 0x40], ebp
mov rcx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18000f510
mov byte [rbx + 0x18], bpl
jmp 0x18000f558
mov r8d, dword [rsp + 0x40]
lea rax, [rsp + 0x28]
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov dword [rbx + 0x10], ebp
cmp rbx, rax
je 0x18000f53a
mov qword [rbx], rdi
mov qword [rbx + 8], rsi
mov dword [rbx + 0x10], r8d
mov byte [rbx + 0x18], 1
jmp 0x18000f558
mov byte [rbx + 0x18], 1
test rdi, rdi
je 0x18000f558
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180028390
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800135e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
movzx ebp, r8b
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jns 0x1800136d9
mov rdx, qword [rcx + 0x18]
lea rax, [rdx + 1]
cmp rax, qword [rcx + 0x20]
jbe 0x180013625
mov eax, 0x80100009
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x38]
movzx eax, word [0x1800c181c]
mov qword [rsp + 0x40], rsi
mov rsi, qword [rsp + 0x60]
mov word [rdx + rcx - 1], ax
inc qword [rbx + 0x18]
mov rcx, qword [rbx + 0x18]
test rsi, rsi
je 0x1800136a5
mov r8, qword [rsi + 0x18]
lea rax, [r8 - 1]
add rax, rcx
cmp rax, qword [rbx + 0x20]
jbe 0x180013677
mov eax, 0x80100009
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 0x38]
dec r8
mov rdx, qword [rsi + 0x38]
dec rax
add rcx, rax
call fcn.180048ca0
mov rax, qword [rsi + 0x18]
dec rax
add qword [rbx + 0x18], rax
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x38]
mov byte [rax + rcx - 1], 0
movabs rdx, 0x8000000000000000
cmp rdi, rdx
je 0x1800136be
mov rdx, rdi
neg rdx
cmovs rdx, rdi
mov rax, qword [rsp + 0x68]
xor r9d, r9d
movzx r8d, bpl
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.180018dd0
jmp 0x180013662
test r9b, r9b
je 0x180013704
mov rdx, qword [rcx + 0x18]
lea rax, [rdx + 1]
cmp rax, qword [rcx + 0x20]
ja 0x180013610
movzx eax, word [0x1800c1818]
mov rcx, qword [rcx + 0x38]
mov word [rcx + rdx - 1], ax
inc qword [rbx + 0x18]
mov rax, qword [rsp + 0x68]
mov rdx, rdi
mov r9, qword [rsp + 0x60]
mov rcx, rbx
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.180018dd0
Function at 0x1800253a0
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x18
cmp dword [0x1801221a0], 0
jne 0x180025574
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx + 0x10]
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x18002557e
mov r8, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r8 + 0x88]
test ecx, ecx
je 0x18002540e
lea rdx, [r8 + rcx]
mov ecx, dword [r8 + rcx + 0xc]
mov eax, dword [rcx + r8]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x18002540e
mov eax, dword [rcx + r8 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x18002541a
mov r9, qword [r9]
mov rax, qword [r9 + 0x30]
test rax, rax
jne 0x1800253d1
test rdx, rdx
je 0x18002557e
mov qword [rsp + 0x20], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
add rbp, r8
mov esi, dword [rdx + 0x1c]
mov qword [rsp + 0x10], rdi
add rsi, r8
mov edi, dword [rdx + 0x20]
mov qword [rsp + 8], r14
add rdi, r8
mov qword [rsp], r15
lea r14, [0x1801221a0]
xor r10d, r10d
mov r15d, 0x775a
nop word [rax + rax]
lea eax, [rbx - 1]
mov edx, dword [rdi + rax*4]
add rdx, r8
cmp word [rdx], r15w
jne 0x1800254d5
xor r11d, r11d
mov r9d, 0xeacf5361
mov rax, rdx
nop dword [rax + rax]
movzx eax, word [rax]
mov ecx, r9d
ror ecx, 8
inc r11d
add ecx, eax
mov eax, r11d
add rax, rdx
xor r9d, ecx
cmp byte [rax], 0
jne 0x180025490
lea rdx, [r10*8]
inc r10d
mov dword [rdx + r14 + 4], r9d
lea eax, [rbx - 1]
movzx eax, word [rbp + rax*2]
mov eax, dword [rsi + rax*4]
mov dword [rdx + r14 + 8], eax
cmp r10d, 0x1f4
je 0x1800254da
add ebx, 0xffffffff
jne 0x180025470
mov r15, qword [rsp]
lea eax, [r10 - 1]
mov rsi, qword [rsp + 0x30]
xor r9d, r9d
mov rbp, qword [rsp + 0x28]
mov dword [0x1801221a0], r10d
test eax, eax
je 0x180025565
nop word [rax + rax]
mov ecx, r10d
xor eax, eax
sub ecx, r9d
cmp ecx, 1
je 0x180025559
nop dword [rax]
mov edx, eax
lea r11d, [rax + 1]
mov ebx, dword [r14 + r11*8 + 8]
mov edi, dword [r14 + rdx*8 + 8]
cmp edi, ebx
jbe 0x180025549
mov ecx, dword [r14 + rdx*8 + 4]
mov eax, dword [r14 + r11*8 + 4]
mov dword [r14 + rdx*8 + 4], eax
mov dword [r14 + r11*8 + 4], ecx
mov dword [r14 + rdx*8 + 8], ebx
mov dword [r14 + r11*8 + 8], edi
mov r10d, dword [0x1801221a0]
mov ecx, r10d
mov eax, r11d
sub ecx, r9d
dec ecx
cmp r11d, ecx
jb 0x180025510
inc r9d
lea eax, [r10 - 1]
cmp r9d, eax
jb 0x180025500
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 8]
mov eax, 1
add rsp, 0x18
ret
xor eax, eax
add rsp, 0x18
ret
Function at 0x1800273b0
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 0x1800273ea
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800273ef
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 0x180027438
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18004d500]
cmp byte [rcx + rax], 0
je 0x180027438
dec r8
sub rdx, 1
jne 0x18002741e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180033fd4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180034043
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180034043
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180034043
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180034043
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180034043
cmp dword [rcx + 0x84], 0xe
jbe 0x180034043
cmp dword [rcx + 0xf8], 0
je 0x180034043
mov ecx, ebx
call fcn.1800340f4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180033ed0
nop
cmp dword [rbp + 0x20], 0
je 0x180034091
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18003409c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180033fd4

Function at 0x180037918
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18003792e
mov al, 1
jmp 0x18003798e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18003793f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18003798c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180043224
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003798c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18003798c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003798c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003798e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18003a08c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800290b0
sub rsp, rax
mov rax, qword [0x1800ec100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800377f8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18003a0db
mov rax, rbp
jmp 0x18003a1e3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x11ea30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18003afd8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x11ea30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18003a1df
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003a1df
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18003afd8
test rax, rax
js 0x18003a1df
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18003a1df
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18003a1d1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18003a1d1
cmp byte [rcx], 0xd
jne 0x18003a1b7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18003a1c6
cmp byte [rcx + 1], 0xa
jne 0x18003a1c6
inc rcx
jmp 0x18003a1c6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xec530]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18003a199
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18003a1e3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180028390
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret