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

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180032110
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18009a570]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18003214e
cmp rsi, r14
jb 0x180032146
cmp rsi, r15
jae 0x180032146
cmp qword [rsi + 8], 0
jne 0x180032317
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180032131
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800321e2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800321d9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800321d9
cmp dword [rsp + 0x70], 0x10000
je 0x18003225b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800321d9
sub rbx, rbp
cmp rbx, r14
jae 0x1800321a0
test rsi, rsi
jne 0x1800322c0
cmp rdi, r15
ja 0x1800322ff
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800322ff
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800322ff
cmp dword [rsp + 0x70], 0x10000
je 0x180032291
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180032212
jmp 0x1800322ff
test rbx, rbx
je 0x1800321d9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800322c0
cmp rbx, r14
jae 0x180032180
jmp 0x1800321e2
test rdi, rdi
je 0x1800322ff
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800322c0
cmp rdi, r15
jbe 0x1800321f0
jmp 0x1800322ff
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800322d0
mov rax, qword [0x18009a570]
mov qword [rsi], rax
mov qword [0x18009a570], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x180032d20
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180097040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180032e4b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180032e42
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180032e24
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180032e24
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180032e24
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180032de2
mov rcx, qword [0x18009a0b8]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180032e42
jmp 0x180032e17
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180032e17
mov rcx, qword [0x18009a0b8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180032e42
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180032d90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180032ea3
cmp dword [rbx + 0xc], esi
jbe 0x180032ea3
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180032e9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180032b70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180032e60
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180044c90
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180032ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x38]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x18009a560]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180032f3c
mov eax, 0xa
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180032f58
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180032fa0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x18009a56c]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x1800330b0
mov rcx, qword [0x18009a560]
add rcx, 0x20
test byte [rcx], 2
je 0x180032fe3
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x180032fc7
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800330b0
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.180032d20
mov edx, dword [0x18009a56c]
cmp ebx, edx
jae 0x18003303d
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18009a560]
test byte [rcx + rax + 0x20], 2
jne 0x180033037
mov ecx, ebx
call fcn.180032ed0
mov edi, eax
test eax, eax
jne 0x18003303d
mov edx, dword [0x18009a56c]
inc ebx
cmp ebx, edx
jb 0x180033010
cmp qword [rsp + 0x20], 0
je 0x1800330b0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003309c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180033088
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180033060
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18009a0b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1800333c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x18009a0b0], esi
je 0x180033415
cmp rbx, 0x20
jae 0x1800333fe
xor ecx, ecx
jmp 0x180033400
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18009a0b0], esi
jne 0x1800333f4
cmp qword [0x18009a0b8], r15
je 0x1800334ff
test rdi, rdi
jne 0x180033433
call fcn.180032fa0
mov ebp, eax
jmp 0x180033504
mov ecx, dword [0x18009a56c]
mov ebx, r15d
test ecx, ecx
je 0x18003345f
mov r8, qword [0x18009a560]
mov rax, r8
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x180033469
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180033450
mov ebp, 4
jmp 0x180033504
cmp ebx, 0xffffffff
je 0x18003345f
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x1800334f8
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180032d20
mov ecx, ebx
call fcn.180032ed0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180033504
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800334e2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800334d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x1800334b0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18009a0b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180033504
mov ebp, 5
jmp 0x180033504
mov ebp, 2
xchg dword [0x18009a0b0], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18003af60
Capabilities:
Create thread
Hide graphical window
Set console window title

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18003b031
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
mov qword [rsp + 0x58], 0
call fcn.18004dcb4
mov r9, rax
lea r8, [0x180087d80]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x58]
call fcn.18005a09c
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, str.R6_Free_made_by_Overhead
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rdx, str.DLL_successfully_injected.
lea rcx, [0x180099030]
call fcn.18003ed60
mov rcx, rax
call fcn.18003f010
lea rcx, [0x18009a270]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x18003aff0
test rax, rax
je 0x18003b00c
nop
cmp byte [rax + rcx], 0x5c
je 0x18003b03b
sub rax, 1
jne 0x18003b000
mov qword [rsp + 0x28], 0
lea r8, [0x18003ab40]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
inc rax
cmp rax, 0x140
jae 0x18003b04c
mov byte [rax + rcx], 0
jmp 0x18003b00c
call fcn.180044e94
int3
Function at 0x18003b570
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x18003b5a1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x18003b61b
mov rdi, r14
mov rcx, rbx
call fcn.18003deb0
test rax, rax
jle 0x18003b5f3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.180074590
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18003b60b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18003b613
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x18003b5b5
sub r14, rdi
jmp 0x18003b6ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18003b632
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18003b634
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18003b666
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180074590
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18003b6fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18003b6a1
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 rbp, 0xfff
jbe 0x18003b6dd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180051a88
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18003b6fc
cmp rbp, rax
ja 0x18003b6b0
test rbp, rbp
je 0x18003b6fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180051a88
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180044c70
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x50
syscall
ret
Function at 0x18004d618
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.18006f060
sub rsp, rax
mov rax, qword [0x180097040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18005c71c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004d667
mov rax, rbp
jmp 0x18004d76f
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 + 0x99910]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18005c9ac
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x99910]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004d76b
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 0x18004d76b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18005c9ac
test rax, rax
js 0x18004d76b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004d76b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004d75d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004d75d
cmp byte [rcx], 0xd
jne 0x18004d743
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004d752
cmp byte [rcx + 1], 0xa
jne 0x18004d752
inc rcx
jmp 0x18004d752
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x97470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004d725
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004d76f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180044c90
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 0x18005e9f4
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, [0x180099910]
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 0x18005ea4b
cmp word [rdx], r13w
jne 0x18005ea4b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18005ea50
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18005eb75
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18005eb96
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18005ea89
mov rdx, r9
mov word [rbx], cx
jmp 0x18005eab0
cmp r9, r8
jae 0x18005eac0
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 0x18005ea6a
jmp 0x18005eb75
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 0x18005eb6a
cmp dword [rsp + 0x80], esi
je 0x18005eb6a
lea r8, [0x180099910]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18005eb42
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18005eb12
mov word [rbx], r13w
jmp 0x18005eb72
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 0x18005eb1f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18005eb72
cmp word [rsp + 0x70], r13w
jne 0x18005eb4f
cmp rbx, r14
je 0x18005eb0c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18005c9b4
cmp word [rsp + 0x70], r13w
je 0x18005eb75
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, [0x180099910]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18005eb6f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18005eb75
Function at 0x1800618f4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18006190a
mov al, 1
jmp 0x18006196a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18006191b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180061968
mov ecx, dword [rcx + 0x18]
nop
call fcn.180067698
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180061968
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180061968
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180061968
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18006196a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180065b30
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 0x180065b60
xor eax, eax
jmp 0x180065c23
mov rbp, rbx
cmp word [rax], si
je 0x180065b85
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180065b6c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180065b68
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.180065a50
movsxd r14, eax
test eax, eax
jne 0x180065bc3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180065b59
mov rcx, r14
call fcn.180062290
mov rdi, rax
test rax, rax
jne 0x180065bdc
xor ecx, ecx
call fcn.18005fb7c
jmp 0x180065bb8
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.180065a50
test eax, eax
jne 0x180065c0d
mov rcx, rdi
call fcn.18005fb7c
jmp 0x180065c17
xor ecx, ecx
call fcn.18005fb7c
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 0x180069d44
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.18005ce14
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 0x180069de5
cmp ebx, dword [rsp + 0x30]
je 0x180069dde
test esi, esi
je 0x180069dde
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180069db9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180069dc6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180069da3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180069dca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180069de7
mov eax, 1
jmp 0x180069de7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18006dbf8
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.18005c9b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18005c9b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18006dd48
cmp rax, 0xffffffffffffffff
je 0x18006dd48
xor edi, edi
test rbp, rbp
jle 0x18006dcf3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18005fb04
mov rbx, rax
test rax, rax
jne 0x18006dc80
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18006dce9
mov edx, 0x8000
mov ecx, r14d
call fcn.18006da7c
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.1800610f0
cmp eax, 0xffffffff
je 0x18006dcc9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18006dc90
mov edx, r15d
mov ecx, r14d
call fcn.18006da7c
jmp 0x18006dce9
cmp byte [rsi + 0x38], dil
je 0x18006dce0
cmp dword [rsi + 0x34], 5
jne 0x18006dce0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18006dce9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18005fb7c
jmp 0x18006dd5c
jns 0x18006dd5c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18005c9b4
cmp rax, 0xffffffffffffffff
jne 0x18006dd14
cmp byte [rsi + 0x30], dil
je 0x18006dd5c
mov edi, dword [rsi + 0x2c]
jmp 0x18006dd5c
mov ecx, r14d
call fcn.180067698
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18006dd5c
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 0x18006dd5c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18006dd55
mov eax, dword [rsi + 0x2c]
jmp 0x18006dd5a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18005c9b4
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 0x18006f150
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18006f178
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18006f178
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret