joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62c27184
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 [0x62d2edd0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.62c2565c
xor ebx, ebx
cmp qword [0x62d31f50], rbx
mov rdi, rax
jne 0x62c27297
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x62c2736e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x62c2736e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x62d31f50], 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 [0x62d31f58], 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 [0x62d31f60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x62d31f70], rax
test rax, rax
je 0x62c2728e
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 [0x62d31f68], rax
jmp 0x62c2729e
mov rax, qword [0x62d31f68]
jmp 0x62c272a5
mov rax, qword [0x62d31f68]
mov r11, qword [0x62d31f70]
cmp rax, rdi
je 0x62c2730c
cmp r11, rdi
je 0x62c2730c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x62d31f70]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x62c2730c
test rax, rax
je 0x62c2730c
call rsi
test rax, rax
je 0x62c27306
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 0x62c27306
test byte [rsp + 0x40], 1
jne 0x62c2730c
bts ebp, 0x15
jmp 0x62c2734c
mov rcx, qword [0x62d31f58]
cmp rcx, rdi
je 0x62c2734c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x62c2734c
call rax
mov rbx, rax
test rax, rax
je 0x62c2734c
mov rcx, qword [0x62d31f60]
cmp rcx, rdi
je 0x62c2734c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x62c2734c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x62d31f50]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x62c2736e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x62c27370
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.62c22d90
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x62c2b9a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x62c2b9e2
xor al, al
jmp 0x62c2ba60
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x62c2ba0c
xor al, al
jmp 0x62c2ba60
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x78], rax
jb 0x62c2ba58
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0xec]
add rax, rcx
cmp qword [rsp + 0x78], rax
jae 0x62c2ba58
mov al, 1
jmp 0x62c2ba60
xor al, al
jmp 0x62c2ba60
add rsp, 0x68
ret

Function at 0x62c2baf0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x62d31fa8]
mov qword [rsp + 0x20], rax
jmp 0x62c2bb10
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x62c2bb35
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x62c2bb02
add rsp, 0x38
ret
Function at 0x62c2bb40
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x62d31fc0], eax
je 0x62c2bb5c
mov eax, 0x10dd
jmp 0x62c2bc79
mov rax, qword [0x62d31fd8]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x62c2bc02
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 0
jne 0x62c2bbd2
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x20], 0
je 0x62c2bbd2
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x20]
call fcn.62c2bcf0
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.62c23498
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
jmp 0x62c2bb68
mov qword [0x62d31fd8], 0
call fcn.62c2bc80
mov rax, qword [0x62d31fd0]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x62c2bc62
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.62c23498
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
jmp 0x62c2bc1e
mov qword [0x62d31fd0], 0
mov dword [0x62d31fc0], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x62c2c3f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x52727464
je 0x62c2c40d
xor eax, eax
jmp 0x62c2c4a5
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
add rax, 0x10000
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x30]
add rax, 0x60
mov qword [rsp + 0x10], rax
mov dword [rsp + 0x18], 0
jmp 0x62c2c447
mov eax, dword [rsp + 0x18]
inc eax
mov dword [rsp + 0x18], eax
cmp dword [rsp + 0x18], 0x2a9
jae 0x62c2c4a0
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
cmp qword [rcx + rax + 0x48], 0
je 0x62c2c49e
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp]
cmp qword [rcx + rax + 0x48], rdx
jb 0x62c2c49a
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 8]
cmp qword [rcx + rax + 0x48], rdx
jb 0x62c2c49e
xor eax, eax
jmp 0x62c2c4a5
jmp 0x62c2c43d
mov eax, 1
add rsp, 0x28
ret
Function at 0x62c2d1a0
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.62c2d2a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x62c2d298
cmp qword [rsp + 0x20], 0x50000000
jb 0x62c2d1f0
mov eax, 0x80000000
cmp qword [rsp + 0x20], rax
ja 0x62c2d1f0
mov eax, 0x80010000
mov qword [rsp + 0x20], rax
jmp 0x62c2d1bd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.62c23110
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x62c2d21f
jmp 0x62c2d298
cmp dword [rsp + 0x48], 0x10000
jne 0x62c2d276
cmp qword [rsp + 0x40], 0x10000
jb 0x62c2d276
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x62c2d264
mov rax, qword [rsp + 0x58]
jmp 0x62c2d29a
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x62c2d293
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.62c2d2a0
mov qword [rsp + 0x20], rax
jmp 0x62c2d1bd
xor eax, eax
add rsp, 0x68
ret

Function at 0x62c2d2f0
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.62c2d400
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x62c2d3eb
cmp qword [rsp + 0x20], 0x50000000
jb 0x62c2d348
mov eax, 0x80000000
cmp qword [rsp + 0x20], rax
ja 0x62c2d348
mov qword [rsp + 0x20], 0x4fff0000
jmp 0x62c2d316
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.62c23110
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x62c2d377
jmp 0x62c2d3eb
cmp dword [rsp + 0x48], 0x10000
jne 0x62c2d3ce
cmp qword [rsp + 0x40], 0x10000
jb 0x62c2d3ce
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x62c2d3bc
mov rax, qword [rsp + 0x58]
jmp 0x62c2d3ed
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x62c2d3e6
mov rax, qword [rsp + 0x30]
sub rax, 0x10000
mov rcx, rax
call fcn.62c2d400
mov qword [rsp + 0x20], rax
jmp 0x62c2d316
xor eax, eax
add rsp, 0x68
ret
Function at 0x62d41792
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.62d41092
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 1]
mov byte [rsp + 0x21], al
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 2]
mov qword [rsp + 0x28], rax
xor eax, eax
mov word [rsp + 0x24], ax
jmp 0x62d41804
movzx eax, word [rsp + 0x24]
inc ax
mov word [rsp + 0x24], ax
movsx eax, word [rsp + 0x24]
cmp eax, dword [rsp + 0x48]
jge 0x62d418e3
movzx eax, byte [rsp + 0x20]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 0x21]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov rdx, rax
call fcn.62d41632
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 0x21]
mov rdx, qword [rsp + 0x28]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov byte [rsp + 0x22], al
movsx rax, word [rsp + 0x24]
movzx ecx, byte [rsp + 0x22]
mov rdx, qword [rsp + 0x28]
movzx ecx, byte [rdx + rcx]
mov rdx, qword [rsp + 0x58]
movzx eax, byte [rdx + rax]
xor eax, ecx
movsx rcx, word [rsp + 0x24]
mov rdx, qword [rsp + 0x58]
mov byte [rdx + rcx], al
jmp 0x62d417f7
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rsp + 0x20]
mov byte [rax], cl
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rsp + 0x21]
mov byte [rax + 1], cl
add rsp, 0x38
ret
Function at 0x140001bf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call fcn.140007870
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 [rbp - 8]
mov ecx, 2
call fcn.140007870
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 0x140001c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x14000ccf4]
mov rbx, rcx
test esi, esi
jle 0x140001d90
mov rax, qword [0x14000ccf8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001cab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d33
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c90
mov rcx, rbx
call fcn.140002710
mov rdi, rax
test rax, rax
je 0x140001db2
mov rax, qword [0x14000ccf8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002850
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000ccf8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d97
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001d2c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001d40
add dword [0x14000ccf4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000ccf8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001bf0
nop word [rax + rax]
xor esi, esi
jmp 0x140001cb8
mov rax, qword [0x14000ccf8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001bf0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001bf0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140002340
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x14000cd60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000cd40]
test rbx, rbx
je 0x1400023a5
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000239c
test eax, eax
jne 0x14000239c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002380
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002710
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009760]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002730
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002738
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002730
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000278d
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 0x140002784
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002730
add rax, 0x28
cmp rax, r9
jne 0x140002770
xor eax, eax
ret

Function at 0x140002790
Capabilities:
Parse pe header

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

Function at 0x140002850
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009760]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000286f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002878
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140002e90
Capabilities:
Parse pe header

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

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

Function at 0x140005700
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 0x14000572e
xor eax, eax
jmp 0x140005814
cmp qword [rcx + 0x68], 0
je 0x14000573f
call fcn.140005830
jmp 0x140005814
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005756
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005758
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000578a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140020860
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 0x14000580e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400057c1
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 0x1400057ea
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140010400
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000580e
cmp rsi, rbx
ja 0x1400057c8
test rsi, rsi
je 0x14000580e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140010400
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 0x14000cdec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000cbe8
Function at 0x140014ca4
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 0x140014cd4
xor eax, eax
jmp 0x140014d97
mov rbp, rbx
cmp word [rax], si
je 0x140014cf9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140014ce0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140014cdc
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.140014bc4
movsxd r14, eax
test eax, eax
jne 0x140014d37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140014ccd
mov rcx, r14
call fcn.1400164c0
mov rdi, rax
test rax, rax
jne 0x140014d50
xor ecx, ecx
call fcn.140013414
jmp 0x140014d2c
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.140014bc4
test eax, eax
jne 0x140014d81
mov rcx, rdi
call fcn.140013414
jmp 0x140014d8b
xor ecx, ecx
call fcn.140013414
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 0x140019024
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.1400130b4
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 0x1400190c5
cmp ebx, dword [rsp + 0x30]
je 0x1400190be
test esi, esi
je 0x1400190be
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140019099
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400190a6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140019083
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400190aa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400190c7
mov eax, 1
jmp 0x1400190c7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret