joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c7b
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
sub rsp, 0x298
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x230], rcx
mov rcx, qword [rbp + 0x230]
call fcn.00404670
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0xffffffffffffffff
je 0x401dc7
mov dword [rbp - 0x60], 0x238
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x208]
mov rdx, rax
call sym.Process32FirstW
test eax, eax
setne al
test al, al
je 0x401d6f
lea rax, [rbp + 0x207]
mov rcx, rax
call fcn.00402488
lea rcx, [rbp + 0x207]
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x2c]
lea rax, [rbp + 0x1e0]
mov r8, rcx
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string_wchar_t_const__std::allocator_wchar_t__const_
lea rax, [rbp + 0x1e0]
mov rdx, rax
mov rcx, qword [rbp + 0x230]
call method.std::vector_std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____std::allocator_std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_______.push_back_std::__cxx11::basic_string_w
lea rax, [rbp + 0x1e0]
mov rcx, rax
call fcn.00402428
lea rax, [rbp + 0x207]
mov rcx, rax
call sym.std::allocator_wchar_t_::allocator__
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x208]
mov rdx, rax
call sym.Process32NextW
test eax, eax
setne al
test al, al
je 0x401d6f
jmp 0x401cea
mov rax, qword [rbp + 0x208]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
jmp 0x401dc8
nop
mov rax, qword [rbp + 0x230]
add rsp, 0x298
pop rbx
pop rbp
ret

Function at 0x401dd9
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x260
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1f0], rcx
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x1d8], rax
cmp qword [rbp + 0x1d8], 0xffffffffffffffff
jne 0x401e1a
mov eax, 0
jmp 0x401eb7
mov dword [rbp - 0x60], 0x238
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x1d8]
mov rdx, rax
call sym.Process32FirstW
test eax, eax
setne al
test al, al
je 0x401e9f
mov rcx, qword [rbp + 0x1f0]
call fcn.00402498
mov rdx, rax
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wcsicmp]
call rax
test eax, eax
sete al
test al, al
je 0x401e81
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x58]
jmp 0x401eb7
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x1d8]
mov rdx, rax
call sym.Process32NextW
test eax, eax
setne al
test al, al
je 0x401e9f
jmp 0x401e3d
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x260
pop rbp
ret
Function at 0x4029d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00409664]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402b58
mov rax, qword [0x00409668]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x402a1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402aa5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402a00
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x402b8d
mov rax, qword [0x00409668]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00409668]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402b70
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x402a9e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402b00
add dword [0x00409664], 1
cmp edi, 8
jae 0x402ad3
test dil, 4
jne 0x402b44
test edi, edi
je 0x402ac8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x402b5f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402ac8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x402aec
jmp 0x402ac8
add rsi, qword [0x00409668]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402a9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402ac8
xor esi, esi
jmp 0x402a27
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402ac8
mov rax, qword [0x00409668]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4032e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00409920]
test rbx, rbx
je 0x403334
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40332b
test rsi, rsi
je 0x40332b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403310
lea rcx, [0x00409940]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403570
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x403580
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x403590
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4035d1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4035c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4035d3
add rax, 0x28
cmp rax, r9
jne 0x4035b4
xor eax, eax
ret

Function at 0x403670
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406c10]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4036dd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4036dd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4036dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4036d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4036df
add rax, 0x28
cmp rax, r9
jne 0x4036c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4037e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406c10]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403800
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4037f8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40385d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403854
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403864
add rax, 0x28
cmp rax, r9
jne 0x403840
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403880
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00406c10]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4038ee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4038ee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4038ee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4038ee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x4038e5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4038f5
add rcx, 0x28
cmp rcx, rax
jne 0x4038d0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403908
jmp 0x4038ee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403916
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4038ee
test r9d, r9d
jg 0x403900
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x404b40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001130
Capabilities:
Get session user name

Disassembly:
push rsi
sub rsp, 0x240
mov dword [rsp + 0x2c], 0x101
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140001271
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharUpperW]
lea rdx, str.AZURE
mov rcx, rsi
call fcn.140008b20
mov sil, 1
test rax, rax
jne 0x140001273
lea rdx, str.BRUNO
lea rcx, [rsp + 0x30]
call fcn.140008b20
test rax, rax
jne 0x140001273
lea rdx, [0x14002a48e]
lea rcx, [rsp + 0x30]
call fcn.140008b20
test rax, rax
jne 0x140001273
lea rdx, [0x14002a51a]
lea rcx, [rsp + 0x30]
call fcn.140008b20
test rax, rax
jne 0x140001273
lea rdx, str.OQXZRAKYM
lea rcx, [rsp + 0x30]
call fcn.140008b20
test rax, rax
jne 0x140001273
lea rdx, str.RDHJ0CNFEVZX
lea rcx, [rsp + 0x30]
call fcn.140008b20
test rax, rax
jne 0x140001273
lea rdx, str.JOHN
lea rcx, [rsp + 0x30]
call fcn.140008b20
test rax, rax
jne 0x140001273
lea rdx, str.EMMACR
lea rcx, [rsp + 0x30]
call fcn.140008b20
test rax, rax
jne 0x140001273
lea rdx, str.JUILSIM
lea rcx, [rsp + 0x30]
call fcn.140008b20
test rax, rax
jne 0x140001273
lea rdx, str.ANNA
lea rcx, [rsp + 0x30]
call fcn.140008b20
test rax, rax
jne 0x140001273
lea rdx, str.DARREL
lea rcx, [rsp + 0x30]
call fcn.140008b20
test rax, rax
setne sil
jmp 0x140001273
xor esi, esi
mov eax, esi
add rsp, 0x240
pop rsi
ret

Function at 0x140001300
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov dword [rsp + 0x28], 0
xor eax, eax
jmp 0x140001329
inc eax
cmp eax, 0x3e8
je 0x140001387
mov ecx, dword [rsp + 0x28]
test al, 1
jne 0x140001340
xor ecx, eax
jmp 0x140001342
add ecx, eax
mov dword [rsp + 0x28], ecx
xor ecx, ecx
jmp 0x140001357
inc ecx
cmp ecx, 0x64
je 0x140001320
mov edx, dword [rsp + 0x28]
xor edx, ecx
and edx, 0xdeadbeef
mov dword [rsp + 0x2c], edx
imul edx, dword [rsp + 0x2c], 0xc4ec4ec5
add edx, 0x9d89d89
cmp edx, 0x13b13b12
ja 0x140001350
mov edx, dword [rsp + 0x2c]
xor dword [rsp + 0x28], edx
jmp 0x140001350
mov eax, dword [rsp + 0x28]
test al, al
je 0x1400013be
xor esi, esi
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
nop word [rax + rax]
xor dword [rsp + 0x28], esi
mov ecx, 0xa
call rdi
inc ebx
mov eax, dword [rsp + 0x28]
movzx eax, al
add esi, 0xcafebabe
cmp ebx, eax
jb 0x1400013a0
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400038b0
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov eax, 1
cmp dword [0x1400322e8], 0
jne 0x140003a87
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x10]
mov r10, qword [rdx + 0x30]
test r10, r10
je 0x140003a85
xor r9d, r9d
mov r8d, 0xdfdfdfdf
jmp 0x14000390f
mov r9, rsi
mov rdx, qword [rdx]
mov r10, qword [rdx + 0x30]
test r10, r10
je 0x140003951
mov rcx, r10
movsxd r10, dword [r10 + 0x3c]
mov esi, dword [r10 + rcx + 0x88]
test rsi, rsi
je 0x140003903
mov r9d, dword [rsi + rcx + 0xc]
add rsi, rcx
mov r10d, dword [r9 + rcx]
and r10d, r8d
cmp r10d, 0x4c44544e
jne 0x140003900
mov r10d, dword [r9 + rcx + 4]
and r10d, r8d
mov r9, rsi
cmp r10d, 0x4c440e4c
jne 0x140003903
jmp 0x14000395d
mov rsi, r9
test r9, r9
je 0x140003a85
mov r9d, dword [rsi + 0x18]
mov r10d, dword [rsi + 0x1c]
add r10, rcx
mov r11d, dword [rsi + 0x20]
add r11, rcx
mov esi, dword [rsi + 0x24]
add rsi, rcx
xor edx, edx
lea r8, [0x1400322e8]
nop
dec r9d
mov edi, dword [r11 + r9*4]
movzx ebx, word [rcx + rdi]
cmp ebx, 0x775a
jne 0x140003a00
add rdi, rcx
mov ebx, 0xb0ebf175
mov ebp, 1
xor r14d, r14d
nop word cs:[rax + rax]
mov r15d, ebx
movzx r14d, word [r14 + rdi]
rol ebx, 0x18
add ebx, r14d
xor ebx, r15d
mov r14d, ebp
inc ebp
cmp byte [rdi + r14], 0
jne 0x1400039b0
mov edi, edx
mov dword [r8 + rdi*8 + 4], ebx
movzx ebx, word [rsi + r9*2]
mov ebx, dword [r10 + rbx*4]
mov dword [r8 + rdi*8 + 8], ebx
inc edx
cmp edx, 0x1f4
sete dil
test r9, r9
jne 0x140003a07
jmp 0x140003a10
xor edi, edi
test r9, r9
je 0x140003a10
test dil, dil
je 0x140003980
mov dword [0x1400322e8], edx
mov ecx, edx
dec ecx
je 0x140003a87
xor r9d, r9d
mov r10d, ecx
jmp 0x140003a38
dec r10d
cmp r9d, ecx
je 0x140003a87
mov r10d, r10d
inc r9d
cmp edx, r9d
je 0x140003a30
mov r11d, dword [0x1400322f0]
xor esi, esi
jmp 0x140003a76
mov ebx, dword [r8 + rsi*8 + 4]
mov ebp, dword [r8 + rsi*8 + 0xc]
mov dword [r8 + rsi*8 + 4], ebp
mov dword [r8 + rsi*8 + 8], edi
mov dword [r8 + rsi*8 + 0xc], ebx
mov dword [r8 + rsi*8 + 0x10], r11d
inc rsi
cmp r10, rsi
je 0x140003a30
mov edi, dword [r8 + rsi*8 + 0x10]
cmp r11d, edi
ja 0x140003a50
mov r11d, edi
jmp 0x140003a6e
xor eax, eax
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140005488
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400054b6
xor eax, eax
jmp 0x14000559c
cmp qword [rcx + 0x68], 0
je 0x1400054c7
call fcn.140004c04
jmp 0x14000559c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400054de
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400054e0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005512
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400216b0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140005596
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140005549
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140005572
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000db58
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140005596
cmp rsi, rbx
ja 0x140005550
test rsi, rsi
je 0x140005596
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000db58
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400072d4
Capabilities:
Parse pe header

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

Function at 0x140009cb0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009df8
Function at 0x140009df8
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140009df8
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 0x140009e67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009e67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009e67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009e67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009e67
cmp dword [rcx + 0x84], 0xe
jbe 0x140009e67
cmp dword [rcx + 0xf8], 0
je 0x140009e67
mov ecx, ebx
call fcn.140009d30
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.140009f8c
nop
cmp dword [rbp + 0x20], 0
je 0x140009eb5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140009dc4
int3

Function at 0x14000ed70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000ed98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000ed98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140018164
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001251c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140018205
cmp ebx, dword [rsp + 0x30]
je 0x1400181fe
test esi, esi
je 0x1400181fe
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400181d9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400181e6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400181c3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400181ea
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140018207
mov eax, 1
jmp 0x140018207
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001917c
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.140006a50
sub rsp, rax
mov rax, qword [0x140033300]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400157c8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400191cb
mov rax, rbp
jmp 0x1400192d3
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x35510]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140018eac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x35510]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400192cf
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 0x1400192cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140018eac
test rax, rax
js 0x1400192cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400192cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400192c1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400192c1
cmp byte [rcx], 0xd
jne 0x1400192a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400192b6
cmp byte [rcx + 1], 0xa
jne 0x1400192b6
inc rcx
jmp 0x1400192b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x33e00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140019289
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400192d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006d80
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019664
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140019694
xor eax, eax
jmp 0x140019757
mov rbp, rbx
cmp word [rax], si
je 0x1400196b9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400196a0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001969c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400123dc
movsxd r14, eax
test eax, eax
jne 0x1400196f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001968d
mov rcx, r14
call fcn.1400122ec
mov rdi, rax
test rax, rax
jne 0x140019710
xor ecx, ecx
call fcn.1400122b0
jmp 0x1400196ec
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400123dc
test eax, eax
jne 0x140019741
mov rcx, rdi
call fcn.1400122b0
jmp 0x14001974b
xor ecx, ecx
call fcn.1400122b0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001b0d4
Capabilities:
Get file size

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