joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025e50
Capabilities:
Access peb ldr_data
Acquire debug privileges
Encode data using xor
Get ntdll base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140025e94
lea r8, [rsp + 0x58]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x140025e9b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x48
ret
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x34], rax
mov r9d, 0x10
xor eax, eax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword gs:[0x60]
test eax, eax
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
jne 0x140025fb0
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140025f77
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140025f77
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x6ae3c19a
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140025f72
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140025f50
cmp r8d, 0x8fa75140
je 0x140025f7c
test r9d, r9d
jne 0x140025f30
mov rax, qword [rax]
jmp 0x140025f00
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x50]
add rax, r10
call rax
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
ret
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140026027
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140026027
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xb7ee2d49
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140026022
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140026000
cmp r8d, 0x251273c9
je 0x14002602c
test r9d, r9d
jne 0x140025fe0
mov rax, qword [rax]
jmp 0x140025fb0
mov edx, dword [rbx + 0x24]
mov rcx, qword [rsp + 0x50]
add rdx, r10
movzx r8d, word [rdx + r9*2]
mov edx, dword [rbx + 0x1c]
add rdx, r10
mov r9d, dword [rdx + r8*4]
add r9, r10
call r9
mov rbx, qword [rsp + 0x60]
mov eax, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x1400264f0
Capabilities:
Access peb ldr_data
Encode data using xor
Enumerate process modules
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x2130
call fcn.140043620
sub rsp, rax
mov rax, qword gs:[0x60]
mov rbp, rdx
mov esi, ecx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd r8, dword [r10 + 0x3c]
mov ebx, dword [r8 + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140026597
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140026597
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xeda0efa8
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140026592
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140026570
cmp r8d, 0x438b88ed
je 0x14002659c
test r9d, r9d
jne 0x140026550
mov rax, qword [rax]
jmp 0x140026520
mov ecx, dword [rbx + 0x24]
mov r8d, esi
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor edx, edx
add rax, r10
mov ecx, 0x410
call rax
mov rsi, rax
test rax, rax
je 0x140026725
mov qword [rsp + 0x2158], r14
lea r9, [rsp + 0x2150]
mov r8d, 0x2000
lea rdx, [rsp + 0x130]
mov rcx, rsi
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140026661
test dword [rsp + 0x2150], 0xfffffff8
mov ebx, r14d
jbe 0x140026661
nop dword [rax]
mov eax, ebx
lea rdi, [rsp + 0x130]
mov rdx, qword [rdi + rax*8]
lea rdi, [rdi + rax*8]
mov r9d, 0x104
lea r8, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x14002664c
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140044e98
test rax, rax
jne 0x14002665e
mov eax, dword [rsp + 0x2150]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x140026610
jmp 0x140026661
mov r14, qword [rdi]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400266f7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400266f7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x45e4be18
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1400266f2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1400266d0
cmp r8d, 0xe6503802
je 0x1400266fc
test r9d, r9d
jne 0x1400266b0
mov rax, qword [rax]
jmp 0x140026680
mov edx, dword [rbx + 0x24]
mov rcx, rsi
add rdx, r10
movzx r8d, word [rdx + r9*2]
mov edx, dword [rbx + 0x1c]
add rdx, r10
mov r9d, dword [rdx + r8*4]
add r9, r10
call r9
mov rax, r14
mov r14, qword [rsp + 0x2158]
mov rbx, qword [rsp + 0x2160]
add rsp, 0x2130
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002bc50
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor esi, esi
mov ecx, 0xe0
call fcn.140042c24
mov rbx, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], sil
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], 0xf
mov byte [rax + 0x20], sil
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rsi
mov qword [rax + 0x58], 0xf
mov byte [rax + 0x40], sil
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x70], rsi
mov qword [rax + 0x78], 0xf
mov byte [rax + 0x60], sil
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rsi
mov qword [rax + 0x98], 0xf
mov byte [rax + 0x80], sil
movups xmmword [rax + 0xa0], xmm0
mov qword [rax + 0xb0], rsi
mov qword [rax + 0xb8], 0xf
mov byte [rax + 0xa0], sil
movups xmmword [rax + 0xc0], xmm0
mov qword [rax + 0xd0], rsi
mov qword [rax + 0xd8], 0xf
mov byte [rax + 0xc0], sil
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
nop
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002cf60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14002cf94
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14002cf80
ret

Function at 0x14002d360
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x14002d3a4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14002d390
ret
Function at 0x14003a0d0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14003a1b3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14003a1b3
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14003a1d1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14003a1a3
cmp word [rcx], 0x5c
jne 0x14003a19c
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x14003a19c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14003a187
movzx eax, word [rdx]
sub ax, 0x28
cmp ax, 1
jbe 0x14003a199
test r8b, 0x10
jne 0x14003a19c
movzx eax, word [rdx]
sub ax, 0x7b
test bp, ax
jne 0x14003a19c
mov rcx, rdx
lea rax, [rcx + 2]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140030d70
test edi, edi
jne 0x14003a100
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140030d60
int3

Function at 0x14003b1f0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14003b2b5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14003b2b5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14003b2ce
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14003b2a5
cmp byte [rcx], 0x5c
jne 0x14003b29e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14003b29e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14003b28c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14003b29b
test r8b, 0x10
jne 0x14003b29e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14003b29e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400319f0
test edi, edi
jne 0x14003b210
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140030d60
int3

Function at 0x14003ebcb
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x3a
syscall
ret
Function at 0x1400438a0
Capabilities:
Parse pe header

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

Function at 0x14004904c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140049083
call fcn.14004a2a0
mov dword [rax], 0x16
call fcn.14004a12c
xor eax, eax
jmp 0x140049111
mov rdx, r9
mov rcx, r8
call fcn.140048fe8
mov rbx, rax
test rax, rax
je 0x14004910e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140048f14]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400490fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004a214
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400490e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400490f1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140050ed8
jmp 0x14004910e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004910b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14004d0f4
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 0x14004d163
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004d163
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004d163
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004d163
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004d163
cmp dword [rcx + 0x84], 0xe
jbe 0x14004d163
cmp dword [rcx + 0xf8], 0
je 0x14004d163
mov ecx, ebx
call fcn.14004d214
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.14004cff0
nop
cmp dword [rbp + 0x20], 0
je 0x14004d1b1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004d1bc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004d0f4

Function at 0x14004d2f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004d0f4
Function at 0x140053a30
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140053a46
mov al, 1
jmp 0x140053aa6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140053a57
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140053aa4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400576f0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140053aa4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140053aa4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140053aa4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140053aa6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140054f40
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.140043620
sub rsp, rax
mov rax, qword [0x14007e0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140052040
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140054f8f
mov rax, rbp
jmp 0x140055097
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 + 0xfcad0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140055428
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xfcad0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140055093
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 0x140055093
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140055428
test rax, rax
js 0x140055093
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140055093
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140055085
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140055085
cmp byte [rcx], 0xd
jne 0x14005506b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005507a
cmp byte [rcx + 1], 0xa
jne 0x14005507a
inc rcx
jmp 0x14005507a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7ebc0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005504d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140055097
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140043570
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 0x140057024
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 0x140057054
xor eax, eax
jmp 0x140057117
mov rbp, rbx
cmp word [rax], si
je 0x140057079
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140057060
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005705c
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.140052430
movsxd r14, eax
test eax, eax
jne 0x1400570b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005704d
mov rcx, r14
call fcn.140051a44
mov rdi, rax
test rax, rax
jne 0x1400570d0
xor ecx, ecx
call fcn.140050ed8
jmp 0x1400570ac
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.140052430
test eax, eax
jne 0x140057101
mov rcx, rdi
call fcn.140050ed8
jmp 0x14005710b
xor ecx, ecx
call fcn.140050ed8
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 0x140059c44
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.1400506d4
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 0x140059ce5
cmp ebx, dword [rsp + 0x30]
je 0x140059cde
test esi, esi
je 0x140059cde
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140059cb9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140059cc6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140059ca3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140059cca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140059ce7
mov eax, 1
jmp 0x140059ce7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005a604
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400fcad0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14005a65b
cmp word [rdx], r13w
jne 0x14005a65b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005a660
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005a785
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005a7a6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005a699
mov rdx, r9
mov word [rbx], cx
jmp 0x14005a6c0
cmp r9, r8
jae 0x14005a6d0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14005a67a
jmp 0x14005a785
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005a77a
cmp dword [rsp + 0x80], esi
je 0x14005a77a
lea r8, [0x1400fcad0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005a752
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005a722
mov word [rbx], r13w
jmp 0x14005a782
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14005a72f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005a782
cmp word [rsp + 0x70], r13w
jne 0x14005a75f
cmp rbx, r14
je 0x14005a71c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140055430
cmp word [rsp + 0x70], r13w
je 0x14005a785
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400fcad0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005a77f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005a785
Function at 0x14005cab0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005cad8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005cad8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003060
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.140068630]
xor ebx, ebx
mov r12, rcx
mov rdi, rdx
test rdx, rdx
jle 0x1400030a2
nop
mov rsi, qword [r12 + rbx*8]
mov ecx, 1
add rbx, 1
call rbp
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
call fcn.140002de0
cmp rbx, rdi
jne 0x140003080
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14006a1fc]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fflush

Function at 0x1400032c0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebx, ebx
mov rbp, rcx
mov ecx, 0xfa0
call fcn.14000c180
mov rdi, rax
test rax, rax
je 0x1400033a5
lea r12, [rax + 0x10]
nop dword [rax]
mov rdx, qword [rdi]
test rdx, rdx
jg 0x140003303
sub rdx, 1
xor ecx, ecx
call fcn.14000daa0
mov r9, rbp
mov r8d, 0xfa0
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
mov rsi, rax
cmp rax, 0xfa0
je 0x1400033e0
mov rcx, rbp
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140003441
test rsi, rsi
js 0x140003428
mov rdx, rsi
mov rcx, rdi
call fcn.14000c870
mov rsi, rax
test rax, rax
je 0x140003410
mov rdx, qword [rax]
mov rcx, rbx
call fcn.14000cdd0
lea rdx, [rsi + 0x10]
mov rbx, rax
mov rax, qword [rax]
lea rcx, [rbx + rax + 0x10]
mov rax, qword [rsi]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi]
add qword [rbx], rax
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbx
xor edx, edx
call fcn.14000cdd0
mov rbx, rax
mov rdx, 0xffffffffffffffff
xor ecx, ecx
call fcn.14000daa0
mov r9, rbp
mov r8d, 0xfa0
mov edx, 1
mov ecx, 0x10
call sub.msvcrt.dll_fread
mov rsi, rax
cmp rax, 0xfa0
jne 0x140003328
jmp 0x140003398
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.14000cdd0
mov r8, qword [rdi]
mov rdx, r12
mov rbx, rax
mov rax, qword [rax]
add r8, 1
lea rcx, [rbx + rax + 0x10]
call sub.msvcrt.dll_memcpy
mov rax, qword [rdi]
add qword [rbx], rax
jmp 0x1400032f0
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000cdd0
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.14000d900
jmp 0x140003341
mov rcx, rbp
call fcn.140002c60
nop
nop word [rax + rax]