joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001b60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x20a
call fcn.140029810
lea rdx, [rbp - 0x60]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x140001c01
mov r8, 0xffffffffffffffff
lea rcx, [rbp - 0x60]
mov rax, r8
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001bc0
xor ebx, ebx
cmp word [rbp + rax*2 - 0x62], 0x5c
jne 0x140001bdb
mov word [rbp + rax*2 - 0x62], bx
xorps xmm0, xmm0
mov qword [rsp + 0x50], rbx
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], rbx
lea rax, [rbp - 0x60]
inc r8
cmp word [rax + r8*2], bx
jne 0x140001bf1
lea rdx, [rbp - 0x60]
jmp 0x140001c1f
xor ebx, ebx
lea rdx, [0x1400355f0]
xorps xmm0, xmm0
mov qword [rsp + 0x50], rbx
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], rbx
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.140008ae0
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x2c0], r14
test rdi, rdi
jne 0x140001ca5
xorps xmm0, xmm0
lea rdx, [0x1400355f0]
movups xmmword [rsi], xmm0
xor r8d, r8d
mov qword [rsi + 0x10], rbx
mov rcx, rsi
mov qword [rsi + 0x18], rbx
call fcn.140008ae0
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140001ddb
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dd6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e05
jmp 0x140001dd6
lea rcx, [rsp + 0x60]
call fcn.140001a70
movabs rcx, 0x7ffffffffffffffe
mov r14, rax
sub rcx, rdi
cmp rcx, 1
jb 0x140001e0b
cmp qword [rsp + 0x58], 7
lea rax, [0x1400355f4]
mov qword [rsp + 0x30], 1
lea r9, [rsp + 0x40]
cmova r9, qword [rsp + 0x40]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.140009250
mov r9, r14
lea r8, [rbp - 0x80]
mov rcx, rsi
call fcn.140009030
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140001d4c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d47
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001dff
call fcn.14000fbb0
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140001d8a
mov rcx, qword [rsp + 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d85
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001dff
call fcn.14000fbb0
mov rdx, qword [rsp + 0x58]
movdqa xmm0, xmmword [0x14003e3c0]
mov word [rsp + 0x60], bx
movdqu xmmword [rsp + 0x70], xmm0
cmp rdx, 7
jbe 0x140001ddb
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dd6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001dff
call fcn.14000fbb0
mov r14, qword [rsp + 0x2c0]
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rax, rsi
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140017988
int3
call fcn.140017988
int3
call fcn.1400012d0
int3
Function at 0x140005640
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140005664
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x1400056f2
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400056c0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400056c0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140029160
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400056dd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400056e5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140005681
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x1400057d0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140005709
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000570b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000573d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140029160
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400057cd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005778
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 rsi, 0xfff
jbe 0x1400057ae
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140017164
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400057cd
cmp rsi, rax
ja 0x140005781
test rsi, rsi
je 0x1400057cd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140017164
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x14000a190
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x270], rax
cmp rax, 0xffffffffffffffff
je 0x14000a214
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x20]
call fcn.140029810
mov dword [rsp + 0x20], 0x238
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000a214
cmp dword [rsp + 0x28], edi
je 0x14000a210
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000a1f6
jmp 0x14000a214
mov esi, dword [rsp + 0x40]
cmp rbx, 0xffffffffffffffff
je 0x14000a223
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000bc20
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
mov r8, rdx
cmp word [rcx], ax
jne 0x14000bcc6
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000bcc6
test rax, rax
je 0x14000bcc6
mov edx, dword [rax + 0xd8]
test edx, edx
je 0x14000bcb9
mov rdi, qword [rdx + rcx + 0x58]
test rdi, rdi
je 0x14000bcb9
sub rcx, r8
movabs rsi, 0x2b992ddfa232
add rdi, rcx
cmp qword [rdi], rsi
jne 0x14000bcc6
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movabs rax, 0x2b992ddfa233
xor rcx, rbx
mov rbx, qword [rsp + 0x30]
xor rcx, rsi
cmp rcx, rsi
cmove rcx, rax
mov al, 1
mov qword [rdi], rcx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x14000c380
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov eax, 0x5a4d
mov rsi, rdx
mov rdi, rcx
cmp word [rdx], ax
jne 0x14000c4a9
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000c4a9
test rax, rax
je 0x14000c4a9
mov ecx, dword [rax + 0xb0]
xor edx, edx
mov qword [rsp + 0x30], rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
test ecx, ecx
jne 0x14000c3ed
mov qword [rdi], rdx
mov rax, rdi
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x60], rbx
lea rbx, [rsi + rcx]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x68], rbp
mov ebp, dword [rax + 0xb4]
add rbp, rbx
cmp rbx, rbp
jae 0x14000c481
nop
mov r8d, dword [rbx + 4]
test r8d, r8d
je 0x14000c481
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x38], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x40], rax
lea rax, [r8 - 8]
shr rax, 1
mov dword [rsp + 0x48], eax
cmp rcx, rdx
je 0x14000c45a
movups xmm0, xmmword [rsp + 0x38]
movsd xmm1, qword [rsp + 0x48]
movups xmmword [rcx], xmm0
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x28], rcx
jmp 0x14000c476
mov rdx, rcx
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14000cb60
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000c410
mov rax, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov qword [rdi], rax
mov rax, rdi
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rsi, qword [rsp + 0x70]
xor edx, edx
mov qword [rcx], rdx
mov rax, rdi
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
add rsp, 0x50
pop rdi
ret
Function at 0x14000d5b0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rbx, rcx
lea rcx, [0x140035608]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x14000d7ad
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0xa0], rdi
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rcx
cmp rax, 0x34
jb 0x14000d7c8
cmp qword [rbx + 0x18], 7
mov rax, rbx
jbe 0x14000d616
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x37]
mov qword [rsp + 0x20], 0x34
call fcn.140009250
cmp qword [rbp + 0x4f], 7
lea rdx, [rbp + 0x37]
lea rcx, [rbp + 7]
cmova rdx, qword [rbp + 0x37]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbx + 0x10]
sub rdi, rax
cmp rdi, 0x22
jb 0x14000d7c8
cmp qword [rbx + 0x18], 7
jbe 0x14000d66c
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rax
lea r9, str.SYSTEMCurrentControlSetServices_
mov qword [rsp + 0x28], rbx
lea rcx, [rbp + 0x17]
mov qword [rsp + 0x20], 0x22
call fcn.140009250
cmp qword [rbp + 0x2f], 7
lea rdx, [rbp + 0x17]
lea r8, [rbp + 0x6f]
mov rcx, 0xffffffff80000002
cmova rdx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14000d6ba
cmp eax, 2
sete bl
jmp 0x14000d717
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 7]
call rax
lea rdx, [rbp + 0x17]
mov rcx, 0xffffffff80000002
test eax, eax
je 0x14000d6fd
cmp qword [rbp + 0x2f], 7
cmova rdx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x14000d717
cmp qword [rbp + 0x2f], 7
cmova rdx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x14000d715
xor bl, bl
jmp 0x14000d717
mov bl, 1
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x14000d753
mov rcx, qword [rbp + 0x17]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d74e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d7c2
call fcn.14000fbb0
mov rdx, qword [rbp + 0x4f]
xor eax, eax
movdqa xmm0, xmmword [0x14003e3c0]
mov word [rbp + 0x17], ax
movdqu xmmword [rbp + 0x27], xmm0
cmp rdx, 7
jbe 0x14000d7a2
mov rcx, qword [rbp + 0x37]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d79d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d7c2
call fcn.14000fbb0
mov rdi, qword [rsp + 0xa0]
movzx eax, bl
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140017988
int3
call fcn.1400012d0
int3
Function at 0x14000da70
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x40
mov rsi, rcx
lea r9, [rsp + 0x68]
xor r14d, r14d
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x68], r14d
xor edx, edx
mov ebx, r14d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000daf3
test rbx, rbx
je 0x14000dab9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x68]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000daa3
test eax, eax
jns 0x14000db18
test rbx, rbx
je 0x14000db1d
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
test rbx, rbx
jne 0x14000db28
xor eax, eax
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14000dbf6
nop
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x20], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x30], r14
add rdx, rcx
mov qword [rsp + 0x38], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x14000db75
lea rcx, [rsp + 0x20]
call fcn.140008c10
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14000db95
mov rdx, qword [rsi]
cmp qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x20]
cmova rcx, qword [rsp + 0x20]
call fcn.140016bf4
test eax, eax
je 0x14000dc1c
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000dbec
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dbe7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000dc6f
call fcn.14000fbb0
inc edi
cmp edi, dword [rbx]
jb 0x14000db40
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000dc6a
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dc65
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000dc6f
call fcn.14000fbb0
mov rax, rdi
jmp 0x14000dc09
call fcn.140017988
int3
Function at 0x14000f0f0
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 0x14000f12a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000f12f
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 0x14000f178
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14002c550]
cmp byte [rcx + rax], 0
je 0x14000f178
dec r8
sub rdx, 1
jne 0x14000f15e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140010824
Capabilities:
Parse pe header

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

Function at 0x140015f30
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140015f50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140018ab8
or eax, 0xffffffff
jmp 0x140015f52
xor eax, eax
add rsp, 0x28
ret

Function at 0x140019920
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 0x14001998f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001998f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001998f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001998f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001998f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001998f
cmp dword [rcx + 0xf8], 0
je 0x14001998f
mov ecx, ebx
call fcn.140019a34
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.140019828
nop
cmp dword [rbp + 0x20], 0
jne 0x1400199f0
call fcn.140023fec
cmp eax, 1
jne 0x1400199e0
xor dl, dl
jmp 0x1400199ea
call fcn.140023fb8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400199fb
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140019a04
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140019920

Function at 0x140019b08
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019920
Function at 0x14001c58c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c5a2
mov al, 1
jmp 0x14001c60e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c5b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c60c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400244c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c60c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c60c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c60c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c60e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001e854
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14004a050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x14001e8b9
test rax, rax
jne 0x14001e8a7
lea r9, [0x14002f5d0]
lea r8, [0x14002f5c8]
lea rdx, [0x14002f5d0]
lea ecx, [rax + 0xa]
call fcn.14001e4b0
test rax, rax
je 0x14001e8b9
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140029120
jmp 0x14001e8d3
xor edx, edx
mov rcx, rbp
call fcn.14001eb44
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001f33c
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.140010550
sub rsp, rax
mov rax, qword [0x140044080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001c46c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001f38b
mov rax, rbp
jmp 0x14001f497
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 + 0x46580]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002041c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x46580]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001f493
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f493
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002041c
test rax, rax
js 0x14001f493
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001f493
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001f485
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001f485
cmp byte [rcx], 0xd
jne 0x14001f46b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001f47a
cmp byte [rcx + 1], 0xa
jne 0x14001f47a
inc rcx
jmp 0x14001f47a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x444c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001f44d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001f497
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140010250
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 0x14001f704
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
xor edi, edi
mov rax, r15
lea rcx, [0x140046580]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x14001f75a
cmp word [rdx], r9w
jne 0x14001f75a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14001f75f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14001f8de
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x14001f8a9
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x14001f7a7
cmp rcx, r8
jae 0x14001f7c7
cmp word [rcx], r9w
jne 0x14001f7a7
add rax, 4
mov edx, r9d
jmp 0x14001f7aa
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x14001f77c
jmp 0x14001f8de
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f8a2
cmp dword [rsp + 0x80], edi
je 0x14001f8a2
lea r9, [0x140046580]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x14001f87c
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14001f82f
mov word [rbx], bp
jmp 0x14001f8db
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x14001f84a
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x14001f8db
cmp word [rsp + 0x70], bp
jne 0x14001f888
cmp rbx, rsi
je 0x14001f827
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140020424
cmp word [rsp + 0x70], bp
je 0x14001f8de
mov word [rbx], 0xd
jmp 0x14001f8db
mov rcx, r15
lea r9, [0x140046580]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001f8d8
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001f8de
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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