joyce8/EMBER2024-capa huggingface dataset:
Function at 0x17344
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov eax, 0x800
mov r13, rdx
mov r12, rcx
mov ebp, 8
xor edi, edi
mov dword [rsp + 0x50], eax
mov edx, eax
mov ecx, 1
mov r8d, 0x5468704b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
cmp rax, rdi
je 0x1742a
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, edi
mov ebx, eax
jge 0x173d5
mov edx, 0x5468704b
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp ebx, 0xc0000004
jne 0x173d0
add ebp, 0xffffffff
je 0x1742f
mov eax, dword [rsp + 0x50]
jmp 0x17372
mov rsi, qword [rsp + 0x50]
cmp ebx, edi
jl 0x1742f
mov edx, edi
cmp dword [rsi], edi
jbe 0x1740e
lea r8, [r12 + r13]
lea rcx, [rsi + 0x18]
cmp r8, r12
jb 0x173fc
cmp r12, qword [rcx]
jb 0x173fc
mov eax, dword [rcx + 8]
add rax, qword [rcx]
cmp r8, rax
jbe 0x1740b
inc edx
add rcx, 0x128
cmp edx, dword [rsi]
jae 0x1740e
jmp 0x173e7
mov dil, 1
mov edx, 0x5468704b
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
neg dil
sbb eax, eax
not eax
and eax, 0xc0000005
jmp 0x17431
mov ebx, 0xc000009a
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x19064
Capabilities:
Create device object

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.00019008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp loc.00015008
Function at 0x140001dd0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140097010]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rax, qword gs:[0x30]
mov ebp, ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov r14, qword [rax + 0x10]
nop
mov rbx, qword [r14 + 0x30]
movsxd rax, dword [rbx + 0x3c]
mov rdx, qword [rax + rbx + 0x88]
mov r15, rdx
mov esi, edx
shr r15, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x140001ead
mov edi, dword [rsi + 0x18]
xor r11d, r11d
test edi, edi
je 0x140001ead
mov r10d, dword [rsi + 0x20]
add r10, rbx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r10]
mov r9d, 0x811c9dc5
add rax, rbx
movzx r8d, byte [rax]
inc rax
test r8b, r8b
je 0x140001e9c
nop dword [rax + rax]
movsx ecx, r8b
lea rax, [rax + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [rax - 1]
cmova edx, ecx
xor edx, r9d
imul r9d, edx, 0x1000193
test r8b, r8b
jne 0x140001e70
cmp r9d, ebp
je 0x140001eb5
inc r11d
add r10, 4
cmp r11d, edi
jb 0x140001e50
mov r14, qword [r14]
jmp 0x140001e10
mov eax, dword [rsi + 0x24]
mov ecx, dword [rsi + 0x1c]
add rax, rbx
add rcx, rbx
movzx edx, word [rax + r11*2]
mov r8d, dword [rcx + rdx*4]
add r8, rbx
cmp r8, rsi
jbe 0x140001efa
lea rax, [r15 + rsi]
cmp r8, rax
jae 0x140001efa
cmp byte [r8], 0x2e
je 0x140001eec
cmp byte [r8 + 1], 0x2e
lea r8, [r8 + 1]
jne 0x140001ee1
mov edx, 0x811c9dc5
mov ecx, edx
call fcn.140001f30
jmp 0x140001efd
mov rax, r8
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.14004a4f0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140001f30
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
push r15
mov r14d, ecx
nop dword [rax]
mov rax, qword gs:[0x30]
mov r8, qword [rax + 0x60]
mov rax, qword [r8 + 0x18]
mov r15, qword [rax + 0x10]
nop word [rax + rax]
cmp edx, 0x811c9dc5
jne 0x14000200e
mov rdi, qword [r15 + 0x30]
movsxd rax, dword [rdi + 0x3c]
mov rcx, qword [rax + rdi + 0x88]
mov r12, rcx
mov ebp, ecx
shr r12, 0x20
add rbp, rdi
cmp rbp, rdi
je 0x14000200e
mov esi, dword [rbp + 0x18]
xor ebx, ebx
test esi, esi
je 0x14000200e
mov r11d, dword [rbp + 0x20]
add r11, rdi
nop dword [rax]
mov eax, dword [r11]
mov r10d, 0x811c9dc5
add rax, rdi
movzx r9d, byte [rax]
inc rax
test r9b, r9b
je 0x140001fff
nop dword [rax + rax]
movsx ecx, r9b
lea rax, [rax + 1]
sub r9b, 0x41
mov r8d, ecx
or r8d, 0x20
cmp r9b, 0x19
movzx r9d, byte [rax - 1]
cmova r8d, ecx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test r9b, r9b
jne 0x140001fd0
cmp r10d, r14d
je 0x140002016
inc ebx
add r11, 4
cmp ebx, esi
jb 0x140001fb0
mov r15, qword [r15]
jmp 0x140001f70
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 0x1c]
add rax, rdi
add rcx, rdi
movzx edx, word [rax + rbx*2]
mov r8d, dword [rcx + rdx*4]
add r8, rdi
cmp r8, rbp
jbe 0x140002059
lea rax, [r12 + rbp]
cmp r8, rax
jae 0x140002059
cmp byte [r8], 0x2e
je 0x14000204c
cmp byte [r8 + 1], 0x2e
lea r8, [r8 + 1]
jne 0x140002041
mov edx, 0x811c9dc5
mov r14d, edx
jmp 0x140001f50
mov rbx, qword [rsp + 0x28]
mov rax, r8
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r15
pop r14
pop r12
pop rdi
ret
Function at 0x140014560
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140014594
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140014580
ret
Function at 0x140024b70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
lea rbx, [0x14008b490]
mov r10, r8
mov r9, rdx
not ecx
cmp r8, 4
jb 0x140024c02
mov r11, r8
shr r11, 2
imul rax, r11, 0xfffffffffffffffc
add r10, rax
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
add r9, 4
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x140024ba0
test r10, r10
je 0x140024c30
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
sub r10, 1
jne 0x140024c10
mov rbx, qword [rsp + 8]
not ecx
mov eax, ecx
ret
Function at 0x14002a850
Capabilities:
Hash data using fnv

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xa8
mov rax, qword [0x140097010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
lea rcx, [0x14008c418]
jmp 0x14065375f
Function at 0x14004b278
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
push rcx
call 0x140400881
test rax, rax
je 0x14004b2c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004b2c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004b2c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004b2c3
cmp dword [rcx + 0x84], 0xe
jbe 0x14004b2c3
cmp dword [rcx + 0xf8], 0
je 0x14004b2c3
mov al, 1
jmp 0x14004b2c5
xor al, al
add rsp, 0x28
ret
Function at 0x141622058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1416221df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141622089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14162206f
add dl, dl
jne 0x141622096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416220f6
xor eax, eax
add dl, dl
jne 0x1416220a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416221ad
add dl, dl
jne 0x1416220b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416220c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416220d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416220dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416220ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14162207e
mov eax, 1
add dl, dl
jne 0x141622106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141622113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416220fb
sub eax, ebx
mov ebx, 1
jne 0x14162214c
mov ecx, 1
add dl, dl
jne 0x14162212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14162213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141622123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141622168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141622175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14162215d
cmp eax, 0x7d00
jae 0x14162219b
cmp eax, 0x500
jb 0x141622196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162207e
cmp eax, 0x7f
ja 0x14162219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416221d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14162207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004ca0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14002d040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140004d5e
mov qword [rsp + 0x170], rbx
lea rcx, [rsp + 0x4c]
mov r8, rsi
sub r8, rcx
nop dword [rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140004d13
inc rcx
test eax, eax
jne 0x140004d00
test edx, edx
jne 0x140004d44
mov r8d, dword [rsp + 0x28]
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140004d44
mov edx, 9
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 0x140004cf2
mov rbx, qword [rsp + 0x170]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14001f660
mov rsi, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret

Function at 0x140005030
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub rsp, 0x28
test cl, cl
je 0x140005044
lea rcx, str.FortniteClient_Win64_Shipping.exe
call fcn.140004ca0
lea rcx, str.EpicGamesLauncher.exe
call fcn.140004ca0
lea rcx, str.FortniteLauncher.exe
call fcn.140004ca0
lea rcx, str.FortniteClient_Win64_Shipping_BE.exe
call fcn.140004ca0
lea rcx, str.FortniteClient_Win64_Shipping_EAC.exe
call fcn.140004ca0
lea rcx, str.FortniteClient_Win64_Shipping_EAC_EOS.exe
call fcn.140004ca0
lea rcx, str.EasyAntiCheat.exe
call fcn.140004ca0
lea rcx, str.BattleEyeAnticheat.exe
call fcn.140004ca0
lea rcx, str.BattleEye_Launcher
add rsp, 0x28
jmp fcn.140004ca0

Function at 0x1400050b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub rsp, 0x28
lea rcx, str.FortniteClient_Win64_Shipping.exe
call fcn.140004ca0
lea rcx, str.EpicGamesLauncher.exe
call fcn.140004ca0
lea rcx, str.FortniteLauncher.exe
call fcn.140004ca0
lea rcx, str.FortniteClient_Win64_Shipping_BE.exe
call fcn.140004ca0
lea rcx, str.FortniteClient_Win64_Shipping_EAC.exe
call fcn.140004ca0
lea rcx, str.FortniteClient_Win64_Shipping_EAC_EOS.exe
call fcn.140004ca0
lea rcx, str.EasyAntiCheat.exe
call fcn.140004ca0
lea rcx, str.BattleEyeAnticheat.exe
call fcn.140004ca0
lea rcx, str.BattleEye_Launcher
add rsp, 0x28
jmp fcn.140004ca0
Function at 0x140005b80
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14002d040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov rsi, rdx
mov ecx, 0x68
call fcn.14001f924
mov r14, rax
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [r14], 0x68
lea rdi, [rsp + 0x50]
mov ecx, 0x18
xor r9d, r9d
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rdx, rsi
xor eax, eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140005c22
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x50]
jmp 0x140005c40
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__X__Failed_to_create_process._n
call fcn.140015760
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001f660
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
Function at 0x1400061b0
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14002d040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, ecx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor edi, edi
mov word [rsp + 0x22], bx
mov word [rsp + 0x20], di
mov rcx, rax
mov ebx, dword [rsp + 0x20]
mov rsi, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ebp, word [rsp + 0x30]
mov eax, 0xfff0
movzx edx, bp
mov rcx, rsi
and dx, ax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp di, word [rsp + 0x36]
jge 0x14000624e
nop dword [rax]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140022f58]
call fcn.140015760
movsx eax, word [rsp + 0x36]
inc edi
cmp edi, eax
jl 0x140006230
movzx edx, bp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001f660
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14000e6d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000e6f1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000e71e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000e720
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000e779
test ecx, ecx
jle 0x14000e759
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000e779
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000e779
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x14000e7a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000e7c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000e7d1
add rsp, 0x30
pop r14
pop rsi
pop rbp
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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e7f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e7f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e832
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000e8ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000e86d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000e8ae
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000e8ce
cmp rbx, rax
ja 0x14000e880
test rbx, rbx
je 0x14000e8ce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14000ed30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000ed5d
xor eax, eax
jmp 0x14000eec9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ed97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000ed97
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 0x14000eec9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000eebc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000edda
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 0x14000ee05
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 0x14000eec1
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 0x14000ee74
sub eax, 1
je 0x14000ee74
cmp eax, 2
jne 0x14000eebc
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 0x14000eec1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000eea2
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 0x14000eebc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000eec1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001f660
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140011530
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140011603
cmp byte [rcx + 0x71], 0
je 0x140011603
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400115ff
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 0x1400115c4
sub eax, 1
je 0x1400115c8
cmp eax, 2
jne 0x1400115ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001f660
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400115f6
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 0x1400115ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400115ac
xor al, al
jmp 0x1400115ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001f660
add rsp, 0x60
pop rbx
ret
Function at 0x14001e95c
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 0x14001e996
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001e99b
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 0x14001e9e4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140022810]
cmp byte [rcx + rax], 0
je 0x14001e9e4
dec r8
sub rdx, 1
jne 0x14001e9ca
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400203d4
Capabilities:
Parse pe header

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