joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cc60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403103
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00408b80
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045ae80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4030e0
cmp byte [0x005951eb], 0
je 0x45cc75
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x459ec0
jmp 0x4030e0

Function at 0x45cc80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005954a0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005951eb], 0
je 0x45ccb5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00595760]
aesenc xmm0, xmmword [0x00595770]
aesenc xmm0, xmmword [0x00595780]
movq rax, xmm0
ret
jmp 0x408da0

Function at 0x45ccc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005954a0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005951eb], 0
je 0x45ccf6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00595760]
aesenc xmm0, xmmword [0x00595770]
aesenc xmm0, xmmword [0x00595780]
movq rax, xmm0
ret
jmp 0x408e00

Function at 0x45e9c0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x45e9f4
mov rcx, 0x28
jmp 0x45e9ff
shl rcx, 3
add rcx, 0x1480
mov qword [0x00595408], rcx
pop rbp
ret
Function at 0x473f80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47404a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403080
xorps xmm15, xmm15
mov r14, qword [0x00595408]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47402f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0048c0e0]
xor ebx, ebx
mov rcx, rdx
call fcn.00445440
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00474560
inc rbx
cmp rcx, rbx
jae 0x47401e
mov edi, 1
lea rsi, [0x0048c0e0]
call fcn.00445520
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004bf728]
lea rsi, [0x004bf0b8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045ae80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00473f80
Function at 0x14000a5a0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x14000a5d0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000a5cf
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x14000a5d5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000a5cf
mov eax, 0
jmp 0x14000a5cf

Function at 0x14000ac50
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.14000ac00
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140014250
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 fcn.14001cd90
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.14001cd90
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 0x1400142c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1409d27f4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140014450
mov rax, qword [0x1409d27f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14001430c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140014395
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400142f0
mov rcx, rdi
call fcn.140014e20
test rax, rax
mov r12, rax
je 0x1400144a2
mov rax, qword [0x1409d27f8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140014f60
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1409d27f8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014485
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001438e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014400
add dword [0x1409d27f4], 1
cmp ebx, 8
jae 0x1400143c1
test bl, 4
jne 0x140014460
test ebx, ebx
je 0x1400143b6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140014474
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1400143b6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x1400143da
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1409d27f8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001438e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014250
xor esi, esi
jmp 0x140014317
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400143b6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400143b6
mov rax, qword [0x1409d27f8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140014250
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140014250
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140014a70
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1409d2860]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409d2840]
test rbx, rbx
je 0x140014ac4
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 0x140014abb
test rsi, rsi
je 0x140014abb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014aa0
lea rcx, [0x1409d2860]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140014e20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409c9b50]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140014e8f
mov rcx, r9
call fcn.140014cf0
test eax, eax
je 0x140014e8f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140014e8d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140014e84
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140014e8f
add rdx, 0x28
cmp rdx, r9
jne 0x140014e70
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001f480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409c4f80]
jmp 0x140015c50

Function at 0x14001f490
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409c4f80]
jmp 0x140015c50
Function at 0x140004950
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140004972
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400049ec
mov rdi, r14
mov rcx, rbx
call fcn.140007350
test rax, rax
jle 0x1400049c4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14001d4b0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400049dc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400049e4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004986
sub r14, rdi
jmp 0x140004acf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140004a03
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004a05
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004a37
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14001d4b0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140004acc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004a72
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140004aad
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140025754
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140004acc
cmp rbp, rax
ja 0x140004a80
test rbp, rbp
je 0x140004acc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140025754
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14000bca0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x110
mov rax, qword [0x14005a060]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rdx, rcx
lea rdi, [r11 - 0x88]
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x90], 0x68
lea rdi, [rsp + 0x70]
mov ecx, 0x18
mov dword [r11 - 0x4c], 1
rep stosb byte [rdi], al
xor edi, edi
cmp qword [rdx + 0x18], 0x10
mov word [r11 - 0x48], di
jb 0x14000bd09
mov r8, qword [rdx]
add r8, qword [rdx + 0x10]
mov rdx, qword [rdx]
jmp 0x14000bd10
mov r8, qword [rdx + 0x10]
add r8, rdx
lea rcx, [rsp + 0x50]
call fcn.1400088d0
cmp qword [rax + 0x18], 8
jb 0x14000bd24
mov rax, qword [rax]
lea rcx, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x48], rcx
xor r8d, r8d
lea rcx, [rsp + 0x90]
mov rdx, rax
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rdx, qword [rsp + 0x68]
test eax, eax
sete dil
cmp rdx, 8
jb 0x14000bda2
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bd9d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000bdda
call fcn.14001b3c0
test dil, dil
je 0x14000bdaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000bdc1
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14001b3a0
add rsp, 0x110
pop rdi
ret
call fcn.140025f48
int3
Function at 0x14000c1c0
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14005a060]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp qword [rdx + 0x18], 0x10
jb 0x14000c1ff
mov r8, qword [rdx]
add r8, qword [rdx + 0x10]
mov rdx, qword [rdx]
jmp 0x14000c206
mov r8, qword [rdx + 0x10]
add r8, rdx
lea rcx, [rsp + 0x48]
call fcn.1400088d0
nop
lea rdi, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdi, qword [rsp + 0x48]
mov dword [rsp + 0x40], esi
mov edx, dword [rsp + 0x58]
add edx, edx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40000001
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x30], 1
mov edx, dword [rsp + 0x40]
xor r8d, r8d
mov rcx, rbx
call fcn.140005880
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000c281
mov r9, qword [rbx]
mov eax, dword [rsp + 0x58]
lea edx, [rax + rax]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, 0x40000001
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14000c2e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c2db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c302
call fcn.14001b3c0
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001b3a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140025f48
int3
Function at 0x140010130
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14005a060]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov esi, edx
mov rbp, rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400101f4
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400101eb
mov qword [rsp + 0x178], rbx
cmp dword [rsp + 0x40], esi
jne 0x1400101d1
mov edx, dword [rsp + 0x28]
mov rcx, rbp
call fcn.140010130
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400101d1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140010193
mov rbx, qword [rsp + 0x178]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14001b3a0
lea r11, [rsp + 0x160]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140012bc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140012bf4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140012be0
ret
Function at 0x140016fa0
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 0x14001706c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001706c
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 0x140017085
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001705c
cmp byte [rax], 0x5c
jne 0x140017056
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140017056
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140017042
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140017053
test r8b, 0x10
jne 0x140017056
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140017056
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140013b50
test edi, edi
jne 0x140016fc0
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.140013b40
int3

Function at 0x14001a064
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14001a0e8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140043d00]
cmp byte [rcx + rax], 0
je 0x14001a0e8
dec r8
sub rdx, 1
jne 0x14001a0ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001c008
Capabilities:
Parse pe header

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

Function at 0x14002a4e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002a2d4
Function at 0x140030998
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400309ca
call fcn.14002704c
mov dword [rax], 0x16
call fcn.140025f28
jmp 0x140030ae9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140030ae9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140030ae9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400309f9
lock or dword [rcx + 0x14], 0x10
jmp 0x140030ae9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140030a0d
call fcn.140031c9c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002d70c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140032cd4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140030ad7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140030aa2
mov rcx, rsi
call fcn.14002d70c
cmp eax, edi
je 0x140030a8d
mov rcx, rsi
call fcn.14002d70c
cmp eax, 0xfffffffe
je 0x140030a8d
mov rcx, rsi
call fcn.14002d70c
movsxd rbx, eax
lea r14, [0x14005cc00]
mov rcx, rsi
sar rbx, 6
call fcn.14002d70c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140030a94
lea rdx, [0x14005a420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140030aa2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140030ac6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140030ac6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140030ac6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140030aec
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140031a1c
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.14001be50
sub rsp, rax
mov rax, qword [0x14005a060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002d70c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140031a6b
mov rax, rbp
jmp 0x140031b73
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 + 0x5cc00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400334ac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5cc00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140031b6f
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 0x140031b6f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400334ac
test rax, rax
js 0x140031b6f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140031b6f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140031b61
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140031b61
cmp byte [rcx], 0xd
jne 0x140031b47
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140031b56
cmp byte [rcx + 1], 0xa
jne 0x140031b56
inc rcx
jmp 0x140031b56
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5a470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140031b29
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140031b73
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001b3a0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret