joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a1e14
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1000bc948], rdi
je 0x1000a1e6d
cmp rax, rdi
jne 0x1000a1e60
mov esi, 1
jmp 0x1000a1e6d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000a1e47
mov eax, dword [0x1000bc940]
cmp eax, 1
jne 0x1000a1e82
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x1000a1ee7
mov eax, dword [0x1000bc940]
test eax, eax
jne 0x1000a1edd
mov dword [0x1000bc940], 1
lea r12, [0x100001fe0]
lea rdi, [0x100001fc8]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x1000a1ecf
test eax, eax
jne 0x1000a1ecf
mov rcx, qword [rdi]
test rcx, rcx
je 0x1000a1ec4
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x1000a1ead
test eax, eax
je 0x1000a1ee7
mov eax, 0xff
jmp 0x1000a2031
mov dword [0x1000b81b4], 1
mov eax, dword [0x1000bc940]
cmp eax, 1
jne 0x1000a1f0f
lea rdx, [0x100001fc0]
lea rcx, [0x100001e30]
call sub.msvcrt.dll__initterm
mov dword [0x1000bc940], 2
test esi, esi
jne 0x1000a1f1c
xor eax, eax
xchg qword [0x1000bc948], rax
cmp qword [0x1000bc960], 0
je 0x1000a1f45
lea rcx, [0x1000bc960]
call fcn.1000a241c
test eax, eax
je 0x1000a1f45
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1000bc960]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x1000a1fd0
cmp byte [rdi], 0
je 0x1000a1f66
test esi, esi
jne 0x1000a1fd0
cmp byte [rdi], 0
je 0x1000a1f7a
cmp byte [rdi], 0x20
ja 0x1000a1f7a
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x1000a1f66
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.100032790
mov dword [0x1000b81b0], eax
cmp dword [0x1000b8194], 0
jne 0x1000a1fb9
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000b81b4], 0
jne 0x1000a1fce
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000b81b0]
jmp 0x1000a2031
cmp byte [rdi], 0x22
jne 0x1000a1fe2
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x1000a1ff7
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x1000a1f58
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.1000a2524
add rsp, 0x28
jmp 0x1000a1e14
Function at 0x1000a2150
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1000af140]
jne 0x1000a216b
rol rcx, 0x10
test cx, 0xffff
jne 0x1000a2167
ret 0
ror rcx, 0x10
jmp 0x1000a25e0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000b8270]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x1000b8368]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1000a2665
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1000b8270]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x1000a2687
mov rax, qword [rsp + 0x88]
mov qword [0x1000b8368], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000b8308], rax
mov rax, qword [0x1000b8368]
mov qword [0x1000b81e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000b82f0], rax
mov dword [0x1000b81d0], 0xc0000409
mov dword [0x1000b81d4], 1
mov rax, qword [0x1000af140]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1000af148]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100002030]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1000a247c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1000a24c9
cmp rcx, 0xffffffffffffffff
je 0x1000a24c9
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1000a24c1
cmp dword [rcx + 0x3c], edx
jl 0x1000a24c1
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000a24c1
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1000a24c9
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1000a2870
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1000af140]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x1000a2903
cmp dword [rsp + 0x24], 5
jb 0x1000a291d
jmp 0x1000a2919
cmp dword [rsp + 0x30], esi
jne 0x1000a291d
cmp dword [rsp + 0x24], 4
ja 0x1000a2919
jne 0x1000a291d
cmp dword [rsp + 0x28], 0
jbe 0x1000a291d
mov byte [rbx + 0x18], sil
lea rax, [0x100002060]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1000a2750
movzx ecx, byte [0x1000bb9b8]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1000bb9b8], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000a2150
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1000a2bc8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1000a2c33
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x1000a2c53
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x1000020e8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x1800040f0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12d, edx
mov r15, rcx
xor edx, edx
lea rcx, str.kernel32.dll
call qword [sym.imp.ole32.dll_CoLoadLibrary]
mov rbp, rax
xor esi, esi
mov ebx, esi
movsxd r8, dword [rax + 0x3c]
mov r9d, dword [r8 + rax + 0x88]
add r9, rax
mov edi, dword [r9 + 0x20]
mov r13d, dword [r9 + 0x1c]
add rdi, rax
mov r14d, dword [r9 + 0x18]
add r13, rax
mov eax, dword [r9 + 0x24]
add rax, rbp
mov qword [rsp + 0x60], rax
test r14d, r14d
je 0x180004180
nop word [rax + rax]
mov ecx, dword [rdi]
lea rdx, str.VirtualAlloc
add rcx, rbp
call fcn.18005de00
test eax, eax
je 0x1800041b9
inc ebx
add rdi, 4
cmp ebx, r14d
jb 0x180004160
mov rdi, rsi
lea rcx, str.8192
call fcn.1800438a0
lea rcx, str.4096
mov ebx, eax
call fcn.1800438a0
or ebx, eax
mov rdx, r12
mov r8d, ebx
mov r9d, 0x40
xor ecx, ecx
call rdi
mov r9, rax
test rax, rax
jne 0x1800041ce
jmp 0x180004212
mov rcx, qword [rsp + 0x60]
mov eax, ebx
movzx ecx, word [rcx + rax*2]
mov edi, dword [r13 + rcx*4]
add rdi, rbp
jmp 0x180004183
test r12d, r12d
je 0x18000420f
mov r8, r9
lea r10, str.1PPz_EY_kk9jrY__
sub r15, r9
mov eax, 0x38e38e39
lea r8, [r8 + 1]
mul esi
mov eax, esi
inc esi
shr edx, 2
lea ecx, [rdx + rdx*8]
add ecx, ecx
sub eax, ecx
movsxd rcx, eax
movzx eax, byte [rcx + r10]
xor al, byte [r15 + r8 - 1]
mov byte [r8 - 1], al
cmp esi, r12d
jb 0x1800041e0
mov rax, r9
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180032e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movsxd rax, dword [rdx + 0x3c]
xor r9d, r9d
mov rdi, r8
mov r11, rdx
mov ecx, dword [rax + rdx + 0x88]
add rcx, rdx
mov r10d, dword [rcx + 0x20]
mov esi, dword [rcx + 0x1c]
add r10, rdx
mov ebp, dword [rcx + 0x24]
add rsi, rdx
mov ebx, dword [rcx + 0x18]
add rbp, rdx
test ebx, ebx
je 0x180032ee3
nop word [rax + rax]
mov eax, dword [r10]
mov r8, rdi
add rax, r11
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180032ed3
inc rax
test ecx, ecx
jne 0x180032ec0
test edx, edx
je 0x180032efa
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x180032eb0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x180032ee5

Function at 0x180032f10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rsi, qword [0x1800d3c10]
xor ebp, ebp
mov ebx, ebp
movsxd rax, dword [rsi + 0x3c]
mov ecx, dword [rax + rsi + 0x88]
add rcx, rsi
mov edi, dword [rcx + 0x20]
mov r15d, dword [rcx + 0x1c]
add rdi, rsi
mov r12d, dword [rcx + 0x24]
add r15, rsi
mov r14d, dword [rcx + 0x18]
add r12, rsi
test r14d, r14d
je 0x180032f94
mov ecx, dword [rdi]
lea rdx, [0x1800c7e10]
add rcx, rsi
call fcn.18005de00
test eax, eax
je 0x180032f86
inc ebx
add rdi, 4
cmp ebx, r14d
jb 0x180032f64
jmp 0x180032f94
mov eax, ebx
movzx ecx, word [r12 + rax*2]
mov ebp, dword [r15 + rcx*4]
add rbp, rsi
call rbp
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180049a90
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 0x180049aff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180049aff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180049aff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180049aff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180049aff
cmp dword [rcx + 0x84], 0xe
jbe 0x180049aff
cmp dword [rcx + 0xf8], 0
je 0x180049aff
mov ecx, ebx
call fcn.180049bb0
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.18004998c
nop
cmp dword [rbp + 0x20], 0
je 0x180049b4d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180049b58
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180049a90

Function at 0x18005144c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180051462
mov al, 1
jmp 0x1800514c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180051473
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800514c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.180055620
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800514c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800514c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800514c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800514c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800527cc
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.18003b300
sub rsp, rax
mov rax, qword [0x1800d1088]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18004c970
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18005281b
mov rax, rbp
jmp 0x180052923
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xd3610]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180052cb4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xd3610]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18005291f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18005291f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180052cb4
test rax, rax
js 0x18005291f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18005291f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180052911
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180052911
cmp byte [rcx], 0xd
jne 0x1800528f7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180052906
cmp byte [rcx + 1], 0xa
jne 0x180052906
inc rcx
jmp 0x180052906
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd1b60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800528d9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180052923
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18003a6e0
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 0x180054cd4
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180054d04
xor eax, eax
jmp 0x180054dc7
mov rbp, rbx
cmp word [rax], si
je 0x180054d29
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180054d10
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180054d0c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180053440
movsxd r14, eax
test eax, eax
jne 0x180054d67
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180054cfd
mov rcx, r14
call fcn.180046584
mov rdi, rax
test rax, rax
jne 0x180054d80
xor ecx, ecx
call fcn.180049110
jmp 0x180054d5c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180053440
test eax, eax
jne 0x180054db1
mov rcx, rdi
call fcn.180049110
jmp 0x180054dbb
xor ecx, ecx
call fcn.180049110
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800594b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18004ced8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180059551
cmp ebx, dword [rsp + 0x30]
je 0x18005954a
test esi, esi
je 0x18005954a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180059525
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180059532
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18005950f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180059536
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180059553
mov eax, 1
jmp 0x180059553
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18005aa3c
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, [0x1800d3610]
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 0x18005aa93
cmp word [rdx], r13w
jne 0x18005aa93
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18005aa98
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18005abbd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18005abde
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18005aad1
mov rdx, r9
mov word [rbx], cx
jmp 0x18005aaf8
cmp r9, r8
jae 0x18005ab08
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 0x18005aab2
jmp 0x18005abbd
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 0x18005abb2
cmp dword [rsp + 0x80], esi
je 0x18005abb2
lea r8, [0x1800d3610]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18005ab8a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18005ab5a
mov word [rbx], r13w
jmp 0x18005abba
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 0x18005ab67
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18005abba
cmp word [rsp + 0x70], r13w
jne 0x18005ab97
cmp rbx, r14
je 0x18005ab54
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180052cbc
cmp word [rsp + 0x70], r13w
je 0x18005abbd
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, [0x1800d3610]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18005abb7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18005abbd
Function at 0x18005d268
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180052cbc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180052cbc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18005d3b8
cmp rax, 0xffffffffffffffff
je 0x18005d3b8
xor edi, edi
test rbp, rbp
jle 0x18005d363
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18004428c
mov rbx, rax
test rax, rax
jne 0x18005d2f0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18005d359
mov edx, 0x8000
mov ecx, r14d
call fcn.18005d0ec
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800521ac
cmp eax, 0xffffffff
je 0x18005d339
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18005d300
mov edx, r15d
mov ecx, r14d
call fcn.18005d0ec
jmp 0x18005d359
cmp byte [rsi + 0x38], dil
je 0x18005d350
cmp dword [rsi + 0x34], 5
jne 0x18005d350
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18005d359
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180049110
jmp 0x18005d3cc
jns 0x18005d3cc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180052cbc
cmp rax, 0xffffffffffffffff
jne 0x18005d384
cmp byte [rsi + 0x30], dil
je 0x18005d3cc
mov edi, dword [rsi + 0x2c]
jmp 0x18005d3cc
mov ecx, r14d
call fcn.180055620
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18005d3cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18005d3cc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18005d3c5
mov eax, dword [rsi + 0x2c]
jmp 0x18005d3ca
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180052cbc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180004750
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rdx
mov rdx, rcx
mov rcx, rax
jmp 0x18000e9d0
mov rax, qword gs:[0x30]
mov r10, rcx
mov r8, qword [rax + 0x60]
mov r9, qword [r8 + 0x18]
add r9, 0x20
mov rax, qword [r9]
nop dword [rax + rax]
cmp qword [rax + 0x20], rdx
je 0x18000ea0d
test rdx, rdx
je 0x18000ea0d
mov rax, qword [rax]
cmp rax, r9
jne 0x18000e9f0
mov qword [rcx], 0
xor eax, eax
ret
mov rcx, qword [rax + 0x40]
mov qword [r10], rcx
movzx eax, word [rax + 0x38]
shr eax, 1
ret