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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400113dd
xor eax, eax
jmp 0x140011549
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140011417
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140011417
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140011549
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001153c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001145a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140011485
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140011541
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400114f4
sub eax, 1
je 0x1400114f4
cmp eax, 2
jne 0x14001153c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140011541
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140011522
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14001153c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140011541
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400137e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140011970
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140011a43
cmp byte [rcx + 0x71], 0
je 0x140011a43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140011a3f
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_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140011a04
sub eax, 1
je 0x140011a08
cmp eax, 2
jne 0x140011a3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400137e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140011a36
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 0x140011a3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400119ec
xor al, al
jmp 0x1400119ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400137e0
add rsp, 0x60
pop rbx
ret

Function at 0x140012e58
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 0x140012e92
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140012e97
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 0x140012ee0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400168a0]
cmp byte [rcx + rax], 0
je 0x140012ee0
dec r8
sub rdx, 1
jne 0x140012ec6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140014360
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x60
mov rax, qword gs:[0x60]
mov qword [rsp + 0x70], rdi
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x18]
mov rbx, rsi
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], 0
je 0x140003a4f
mov rcx, qword [rbx + 0x60]
xor edx, edx
cmp word [rcx], dx
je 0x140003a02
cmp rdx, 0x3f
jae 0x140003a02
movzx eax, byte [rcx]
add rcx, 2
inc rdx
mov byte [rsp + rdx + 0x1f], al
cmp word [rcx], 0
jne 0x1400039e8
lea rcx, [rsp + 0x20]
mov byte [rsp + rdx + 0x20], 0
call qword [sym.imp.USER32.dll_CharLowerA]
or rcx, 0xffffffffffffffff
xor r8d, r8d
mov r11, rax
xor eax, eax
mov edx, 0x35
mov rdi, r11
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x140003a4f
movsx eax, byte [r11]
inc r8d
lea edx, [rdx + rdx*2]
add edx, eax
movsxd rax, r8d
inc r11
cmp rax, rcx
jb 0x140003a30
cmp edx, 0x35c206b
je 0x140003a58
cmp rsi, rbx
jne 0x1400039d3
mov rax, qword [rbx + 0x30]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rsi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov ebp, edx
mov eax, dword [rax + rcx + 0x88]
mov rsi, rcx
mov ebx, dword [rax + rcx + 0x1c]
mov r11d, dword [rax + rcx + 0x20]
mov r13d, dword [rax + rcx + 0x24]
add r11, rcx
add r13, rcx
lea r12, [rcx + rbx]
test ebx, ebx
je 0x140003b08
nop word [rax + rax]
mov r8d, dword [r11]
or rcx, 0xffffffffffffffff
xor eax, eax
add r8, rsi
xor r10d, r10d
mov edx, 0x35
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x140003af8
movsx eax, byte [r8]
inc r10d
lea edx, [rdx + rdx*2]
add edx, eax
movsxd rax, r10d
inc r8
cmp rax, rcx
jb 0x140003ae1
cmp edx, ebp
je 0x140003b23
inc r9d
add r11, 4
cmp r9d, ebx
jb 0x140003ac0
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r13
pop r12
ret
movzx ecx, word [r13 + r9*2]
mov eax, dword [r12 + rcx*4]
add rax, rsi
jmp 0x140003b0a
Function at 0x140003b40
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
xor edi, edi
mov rbp, rcx
lea rcx, [rax - 0x38]
mov r12, rdx
mov qword [rax - 0x38], rdi
mov qword [rax - 0x30], rdi
mov qword [rax - 0x28], rdi
call fcn.140005b50
mov r11, qword [rsp + 0x20]
mov rax, r11
mov r10d, edi
mov byte [rax], r10b
inc r10d
inc rax
cmp r10d, 0x100
jl 0x140003b80
mov esi, 2
mov r10d, edi
lea rbx, [r11 + 1]
lea r13d, [rsi + 0x3e]
mov r8, qword [r12]
mov rcx, qword [r12 + 8]
movzx r9d, byte [rbx - 1]
sub rcx, r8
xor edx, edx
lea rax, [rsi - 2]
div rcx
movzx eax, byte [rdx + r8]
add eax, r10d
add r9d, eax
and r9d, 0x800000ff
jge 0x140003bdd
dec r9d
or r9d, 0xffffff00
inc r9d
movzx ecx, byte [rbx - 1]
movsxd rdx, r9d
movzx eax, byte [rdx + r11]
mov byte [rbx - 1], al
mov byte [rdx + r11], cl
mov r8, qword [r12]
mov rcx, qword [r12 + 8]
movzx r10d, byte [rbx]
xor edx, edx
sub rcx, r8
lea rax, [rsi - 1]
div rcx
movzx eax, byte [rdx + r8]
add eax, r9d
add r10d, eax
and r10d, 0x800000ff
jge 0x140003c2a
dec r10d
or r10d, 0xffffff00
inc r10d
movzx ecx, byte [rbx]
movsxd rdx, r10d
movzx eax, byte [rdx + r11]
mov byte [rbx], al
mov byte [rdx + r11], cl
mov r8, qword [r12]
mov rcx, qword [r12 + 8]
movzx r9d, byte [rbx + 1]
xor edx, edx
sub rcx, r8
mov rax, rsi
div rcx
movzx eax, byte [rdx + r8]
add eax, r10d
add r9d, eax
and r9d, 0x800000ff
jge 0x140003c75
dec r9d
or r9d, 0xffffff00
inc r9d
movzx ecx, byte [rbx + 1]
movsxd rdx, r9d
movzx eax, byte [rdx + r11]
mov byte [rbx + 1], al
mov byte [rdx + r11], cl
mov r8, qword [r12]
mov rcx, qword [r12 + 8]
movzx r10d, byte [rbx + 2]
xor edx, edx
sub rcx, r8
lea rax, [rsi + 1]
div rcx
movzx eax, byte [rdx + r8]
add eax, r9d
add r10d, eax
and r10d, 0x800000ff
jge 0x140003cc3
dec r10d
or r10d, 0xffffff00
inc r10d
movzx ecx, byte [rbx + 2]
movsxd rdx, r10d
add rbx, 4
movzx eax, byte [rdx + r11]
add rsi, 4
dec r13
mov byte [rbx - 2], al
mov byte [rdx + r11], cl
jne 0x140003ba2
mov rax, qword [rbp + 8]
mov r8d, edi
mov r9, rdi
cmp rax, qword [rbp]
je 0x140003d8a
nop dword [rax + rax]
lea eax, [rdi + 1]
and eax, 0x800000ff
jge 0x140003d13
dec eax
or eax, 0xffffff00
inc eax
movsxd rdi, eax
movzx eax, byte [rdi + r11]
add r8d, eax
and r8d, 0x800000ff
jge 0x140003d34
dec r8d
or r8d, 0xffffff00
inc r8d
movzx ecx, byte [rdi + r11]
movsxd rdx, r8d
movzx eax, byte [rdx + r11]
mov byte [rdi + r11], al
mov byte [rdx + r11], cl
movzx eax, byte [rdi + r11]
mov rbx, qword [rbp]
movzx ecx, cl
add ecx, eax
and ecx, 0x800000ff
jge 0x140003d69
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd rax, ecx
inc r9
movzx edx, byte [rax + r11]
xor byte [rbx + r9 - 1], dl
mov rax, qword [rbp + 8]
sub rax, qword [rbp]
cmp r9, rax
jb 0x140003d00
test r11, r11
je 0x140003d97
mov rcx, r11
call fcn.14000d718
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x1400153f0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140015260

Function at 0x140017093
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400345f0]
jne 0x14000eaca
rol rcx, 0x10
test cx, 0xffff
jne 0x14000eac6
repz ret
ror rcx, 0x10
jmp 0x140016fec
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140036a80]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140036b78]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140017071
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140036a80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140017093
mov rax, qword [rsp + 0x88]
mov qword [0x140036b78], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140036b18], rax
mov rax, qword [0x140036b78]
mov qword [0x1400369f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140036b00], rax
mov dword [0x1400369e0], 0xc0000409
mov dword [0x1400369e4], 1
mov rax, qword [0x1400345f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400345f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140036a78], eax
mov ecx, 1
call fcn.1400246b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002a6b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140036a78], 0
jne 0x14001711a
mov ecx, 1
call fcn.1400246b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400240c4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400345f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140016394
xor ebx, ebx
cmp qword [0x1400372a0], rbx
mov rdi, rax
jne 0x1400241d7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400242ae
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400242ae
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400372a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400372a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400372b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400372c0], rax
test rax, rax
je 0x1400241ce
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400372b8], rax
jmp 0x1400241de
mov rax, qword [0x1400372b8]
jmp 0x1400241e5
mov rax, qword [0x1400372b8]
mov r11, qword [0x1400372c0]
cmp rax, rdi
je 0x14002424c
cmp r11, rdi
je 0x14002424c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400372c0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14002424c
test rax, rax
je 0x14002424c
call rsi
test rax, rax
je 0x140024246
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140024246
test byte [rsp + 0x40], 1
jne 0x14002424c
bts ebp, 0x15
jmp 0x14002428c
mov rcx, qword [0x1400372a8]
cmp rcx, rdi
je 0x14002428c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002428c
call rax
mov rbx, rax
test rax, rax
je 0x14002428c
mov rcx, qword [0x1400372b0]
cmp rcx, rdi
je 0x14002428c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002428c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400372a0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400242ae
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400242b0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000eab0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400015e3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
sub rsp, 0x228
movabs rax, 0x1423bb56419a5974
mov r10, rdx
mov qword [rsp], rax
mov r9, rcx
lea rbx, [rsp + 0x20]
movabs rdx, 0x159aa1c3d0225a74
lea rcx, [rsp + 0x120]
movabs rax, 0x993c2b002ebe091
mov qword [rsp + 8], rdx
movabs rdx, 0x295a161ccc51f477
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x10], rax
xor eax, eax
mov rdx, rax
mov byte [rax + rcx], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx]
mov byte [rax + rbx - 1], dl
cmp rax, 0x100
jne 0x14000163c
xor edx, edx
xor r11d, r11d
mov r8b, byte [rcx + rdx]
mov al, byte [rbx + rdx]
add eax, r8d
add eax, r11d
movzx r11d, al
movzx eax, al
mov sil, byte [rsp + rax + 0x120]
mov byte [rsp + rax + 0x120], r8b
mov byte [rcx + rdx], sil
inc rdx
cmp rdx, 0x100
jne 0x14000165c
xor edx, edx
xor ebx, ebx
xor r11d, r11d
cmp rdx, r10
je 0x1400016ea
lea ecx, [rbx + 1]
movzx ebx, cl
movzx ecx, cl
mov al, byte [rsp + rcx + 0x120]
lea r8d, [rax + r11]
movzx r11d, r8b
movzx r8d, r8b
mov sil, byte [rsp + r8 + 0x120]
mov byte [rsp + rcx + 0x120], sil
mov byte [rsp + r8 + 0x120], al
add al, byte [rsp + rcx + 0x120]
movzx eax, al
mov al, byte [rsp + rax + 0x120]
xor byte [r9 + rdx], al
inc rdx
jmp 0x140001697
mov rax, rdx
add rsp, 0x228
pop rbx
pop rsi
ret

Function at 0x140001875
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov rax, qword gs:[0x60]
test byte [rax + 0xbc], 0x70
setne al
ret

Function at 0x140001889
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x28
mov ecx, 0x7331c0de
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [0x140005040]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7331c0de
setne al
add rsp, 0x28
ret

Function at 0x140001a92
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [rsp + 0x28], 0x7fffffff
setbe al
add rsp, 0x68
ret

Function at 0x1400029b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400037e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400037e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140002a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14004a3b4]
mov rbx, rcx
test esi, esi
jle 0x140002b50
mov rax, qword [0x14004a3b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002a6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002af5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002a50
mov rcx, rbx
call fcn.140003470
mov rdi, rax
test rax, rax
je 0x140002b72
mov rax, qword [0x14004a3b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400035b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14004a3b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002b57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002aee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002b00
add dword [0x14004a3b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14004a3b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400029b0
nop dword [rax]
xor esi, esi
jmp 0x140002a78
mov rax, qword [0x14004a3b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400029b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400029b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400030e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14004a420]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004a400]
test rbx, rbx
je 0x14000313c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003133
test rsi, rsi
je 0x140003133
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003118
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140047110]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003490
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003498
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003490
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400034ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400034e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003490
add rax, 0x28
cmp rax, r9
jne 0x1400034d0
xor eax, eax
ret

Function at 0x1400034f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140047110]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000350f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003518
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000350f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400035b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140047110]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400035cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400035d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000c7b0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
jle 0x14000c7ef
mov r14, r8
mov rdi, rdx
mov r15, rcx
cmp qword [rcx + 0x68], 0
je 0x14000c7f6
mov rcx, r15
mov rdx, rdi
mov r8, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
xor ebx, ebx
jmp 0x14000c926
mov rax, qword [r15 + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c848
mov rax, qword [r15 + 0x50]
movsxd rbx, dword [rax]
test rbx, rbx
je 0x14000c848
cmp rbx, r14
cmovae rbx, r14
mov rcx, rdi
mov r8, rbx
call fcn.140115f70
add rdi, rbx
mov rsi, r14
sub rsi, rbx
mov rax, qword [r15 + 0x50]
sub dword [rax], ebx
mov rax, qword [r15 + 0x38]
movsxd rcx, ebx
add qword [rax], rcx
cmp qword [r15 + 0x80], 0
jne 0x14000c859
jmp 0x14000c920
mov rsi, r14
cmp qword [r15 + 0x80], 0
je 0x14000c920
mov rax, qword [r15 + 0x18]
lea rcx, [r15 + 0x70]
cmp qword [rax], rcx
jne 0x14000c886
mov ecx, dword [r15 + 0x90]
mov rdx, qword [r15 + 0x88]
mov qword [rax], rdx
mov rax, qword [r15 + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [r15 + 0x50]
mov dword [rax], ecx
mov r12, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
jmp 0x14000c89f
add rdi, rax
cmp rax, 0xfff
jne 0x14000c926
cmp rsi, 0x1000
jb 0x14000c8fc
mov r9, qword [r15 + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r12
sub rsi, rax
cmp rax, 0xfff
je 0x14000c890
mov ecx, dword [0x14027a138]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
sete dl
cmp dword [0x14027a13c], 0xa
setl cl
or cl, dl
nop dword [rax]
test cl, cl
je 0x14000c8f0
mov rbx, r14
sub rbx, rsi
jmp 0x14000c890
test rsi, rsi
je 0x14000c91e
mov r9, qword [r15 + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
jmp 0x14000c920
xor esi, esi
sub r14, rsi
mov rbx, r14
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret