joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800145e0
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 [0x18009a5a8], esi
je 0x180014635
cmp rbx, 0x20
jae 0x18001461e
xor ecx, ecx
jmp 0x180014620
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18009a5a8], esi
jne 0x180014614
cmp qword [0x18009a5b0], r15
je 0x18001471f
test rdi, rdi
jne 0x180014653
call fcn.1800141e0
mov ebp, eax
jmp 0x180014724
mov ecx, dword [0x18009aa5c]
mov ebx, r15d
test ecx, ecx
je 0x18001467f
mov r8, qword [0x18009aa50]
mov rax, r8
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x180014689
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180014670
mov ebp, 4
jmp 0x180014724
cmp ebx, 0xffffffff
je 0x18001467f
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x180014718
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180013f50
mov ecx, ebx
call fcn.180014100
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180014724
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180014702
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 0x1800146f8
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 0x1800146d0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18009a5b0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180014724
mov ebp, 5
jmp 0x180014724
mov ebp, 2
xchg dword [0x18009a5a8], 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 0x1800175e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180095038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword gs:[0x30]
lea r8, [0x18006cf48]
lea rdx, str.kernel32.dll
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call fcn.180014db0
mov rcx, qword gs:[0x30]
mov rdx, rax
mov r8, qword [rcx + 0x60]
lea rcx, [rsp + 0x20]
mov r8, qword [r8 + 0x10]
call fcn.180017500
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x180017756
cmp byte [rsp + 0x28], 0
je 0x1800176e5
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x20]
cmp rcx, r8
jbe 0x180017756
movsxd rax, dword [r8 + 0x3c]
mov edx, dword [rax + r8 + 0x50]
add rdx, r8
cmp rcx, rdx
jae 0x180017756
mov rcx, qword [rcx]
call fcn.180014d40
test al, al
jne 0x180017756
mov rdx, qword [0x18009a7b8]
test rdx, rdx
jne 0x1800176ca
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x10]
mov qword [0x18009a7b8], rdx
mov rax, qword [rsp + 0x20]
xor ebp, ebp
mov ecx, eax
sub ecx, edx
cmp rax, rdx
mov al, 1
cmova ebp, ecx
mov dword [0x18009a7c8], ebp
jmp 0x180017758
call rax
xor ebp, ebp
mov r14, rax
mov ebx, ebp
mov r15d, 0x8b48
mov rdx, qword [rsp + 0x20]
cmp word [rdx + rbx], r15w
jne 0x18001774a
movsxd rax, dword [rdx + rbx + 3]
lea rdi, [rdx + rbx]
add rax, 7
add rdi, rax
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x10]
cmp rdi, rdx
jbe 0x18001774a
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x50]
add rcx, rdx
cmp rdi, rcx
jae 0x18001774a
mov rsi, qword [rdi]
mov rcx, rsi
call fcn.180014d40
test al, al
jne 0x18001774a
cmp rsi, r14
je 0x18001777e
inc rbx
cmp rbx, 0x100
jl 0x1800176f4
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18002f330
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov rcx, qword [0x18009a7b8]
test rcx, rcx
jne 0x1800177a2
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
mov qword [0x18009a7b8], rcx
mov eax, edi
sub eax, ecx
cmp rdi, rcx
cmova ebp, eax
mov al, 1
mov dword [0x18009a7c8], ebp
jmp 0x180017758
Function at 0x180027170
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180027192
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18002720c
mov rdi, r14
mov rcx, rbx
call fcn.18000d5d0
test rax, rax
jle 0x1800271e4
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.1800316f0
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 0x1800271fc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180027204
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800271a6
sub r14, rdi
jmp 0x1800272f9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180027223
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180027225
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18002725a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800316f0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800272f6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x180027295
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1800272d1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18003fa14
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x18002730f
cmp rbp, rax
ja 0x1800272a1
mov r8, rdi
test rdi, rdi
je 0x1800272f6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18003fa14
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x1800272f9
Function at 0x180028ba0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180095038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword gs:[0x30]
mov edx, 0x130
mov byte [0x180098290], 0
mov rcx, qword [rax + 0x60]
mov rsi, qword [rcx + 0x10]
mov ecx, dword [0x1800996d0]
movsxd rax, dword [rsi + 0x3c]
mov ebx, dword [rax + rsi + 0x50]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x18009aa48], ecx
jle 0x180028c2d
lea rcx, [0x18009aa48]
call fcn.18002fc80
cmp dword [0x18009aa48], 0xffffffff
jne 0x180028c2d
lea rcx, [0x18009aa48]
call fcn.18002fc20
lea eax, [rbx - 8]
xor ebp, ebp
mov r14d, eax
test eax, eax
je 0x180028cfb
mov rdi, rsi
mov r9, qword [rdi]
add rdi, 8
mov rbx, qword [rdi]
cmp r9, rbx
je 0x180028cec
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x10]
cmp r9, rdx
jbe 0x180028cec
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x50]
add rcx, rdx
cmp r9, rcx
jae 0x180028cec
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rcx + 0x10]
cmp rbx, r8
jbe 0x180028cec
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x50]
add rcx, r8
cmp rbx, rcx
jae 0x180028cec
mov r8d, 0x11
lea rcx, str.Conv_NameToString
mov rdx, r9
call fcn.18003e3a0
test eax, eax
jne 0x180028cec
mov eax, dword [rbx]
cmp eax, 0x284883ec
je 0x180028cec
cmp eax, 0x4883ec28
je 0x180028cec
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov rdx, rbx
lea rcx, str.48_8B_05_________48_85_C0_75___48_8D_15
lea r8d, [r9 + 0x28]
call fcn.180015270
test rax, rax
je 0x180028cfe
mov rax, rdi
sub rax, rsi
cmp rax, r14
jb 0x180028c40
mov rbx, rbp
mov rdx, qword [0x18009a810]
lea rax, str.89_44_____48_01_____E8
mov qword [rsp + 0x30], rax
lea rax, str.48_89_____48_8D_______E8
mov qword [rsp + 0x38], rax
lea rax, str.48_89_______48_89_____E8
mov qword [rsp + 0x40], rax
mov edi, ebp
test rdx, rdx
jne 0x180028d7c
lea rsi, [rsp + 0x30]
cmp edi, 3
jae 0x180028d77
test rbx, rbx
jne 0x180028d44
mov rdx, rbp
jmp 0x180028d63
mov rcx, qword [rsi]
mov r9b, 1
mov r8d, 0x90
mov dword [rsp + 0x20], 0xffffffff
mov rdx, rbx
call fcn.180015270
mov rdx, rax
inc edi
mov qword [0x18009a810], rdx
add rsi, 8
test rdx, rdx
je 0x180028d35
jmp 0x180028d7c
test rdx, rdx
je 0x180028daa
mov rcx, qword [0x18009a7b8]
test rcx, rcx
jne 0x180028da0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
mov qword [0x18009a7b8], rcx
mov eax, edx
sub eax, ecx
cmp rdx, rcx
cmova ebp, eax
mov dword [0x18009a768], ebp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002f330
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x18004b7c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18004b7de
mov al, 1
jmp 0x18004b83e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18004b7ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18004b83c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180055014
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18004b83c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18004b83c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18004b83c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18004b83e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18004ce38
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.1800303a0
sub rsp, rax
mov rax, qword [0x180095038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180049228
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004ce87
mov rax, rbp
jmp 0x18004cf8f
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 + 0x99e10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18004dd84
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x99e10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004cf8b
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 0x18004cf8b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18004dd84
test rax, rax
js 0x18004cf8b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004cf8b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004cf7d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004cf7d
cmp byte [rcx], 0xd
jne 0x18004cf63
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004cf72
cmp byte [rcx + 1], 0xa
jne 0x18004cf72
inc rcx
jmp 0x18004cf72
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x95410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004cf45
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004cf8f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18002f330
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 0x18004d124
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, [0x180099e10]
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 0x18004d17b
cmp word [rdx], r13w
jne 0x18004d17b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18004d180
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18004d2a5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18004d2c6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18004d1b9
mov rdx, r9
mov word [rbx], cx
jmp 0x18004d1e0
cmp r9, r8
jae 0x18004d1f0
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 0x18004d19a
jmp 0x18004d2a5
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 0x18004d29a
cmp dword [rsp + 0x80], esi
je 0x18004d29a
lea r8, [0x180099e10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18004d272
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18004d242
mov word [rbx], r13w
jmp 0x18004d2a2
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 0x18004d24f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18004d2a2
cmp word [rsp + 0x70], r13w
jne 0x18004d27f
cmp rbx, r14
je 0x18004d23c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18004dd8c
cmp word [rsp + 0x70], r13w
je 0x18004d2a5
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, [0x180099e10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18004d29f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18004d2a5
Function at 0x180050538
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 0x180050568
xor eax, eax
jmp 0x18005062b
mov rbp, rbx
cmp word [rax], si
je 0x18005058d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180050574
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180050570
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.18004ec20
movsxd r14, eax
test eax, eax
jne 0x1800505cb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180050561
mov rcx, r14
call fcn.1800480a4
mov rdi, rax
test rax, rax
jne 0x1800505e4
xor ecx, ecx
call fcn.1800472b0
jmp 0x1800505c0
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.18004ec20
test eax, eax
jne 0x180050615
mov rcx, rdi
call fcn.1800472b0
jmp 0x18005061f
xor ecx, ecx
call fcn.1800472b0
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 0x18005444c
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.18004536c
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 0x1800544ed
cmp ebx, dword [rsp + 0x30]
je 0x1800544e6
test esi, esi
je 0x1800544e6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800544c1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800544ce
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800544ab
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800544d2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800544ef
mov eax, 1
jmp 0x1800544ef
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180058394
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.18004dd8c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18004dd8c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800584e4
cmp rax, 0xffffffffffffffff
je 0x1800584e4
xor edi, edi
test rbp, rbp
jle 0x18005848f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180044dc4
mov rbx, rax
test rax, rax
jne 0x18005841c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180058485
mov edx, 0x8000
mov ecx, r14d
call fcn.180058218
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.18004c3f0
cmp eax, 0xffffffff
je 0x180058465
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18005842c
mov edx, r15d
mov ecx, r14d
call fcn.180058218
jmp 0x180058485
cmp byte [rsi + 0x38], dil
je 0x18005847c
cmp dword [rsi + 0x34], 5
jne 0x18005847c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180058485
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800472b0
jmp 0x1800584f8
jns 0x1800584f8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18004dd8c
cmp rax, 0xffffffffffffffff
jne 0x1800584b0
cmp byte [rsi + 0x30], dil
je 0x1800584f8
mov edi, dword [rsi + 0x2c]
jmp 0x1800584f8
mov ecx, r14d
call fcn.180055014
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800584f8
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 0x1800584f8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800584f1
mov eax, dword [rsi + 0x2c]
jmp 0x1800584f6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18004dd8c
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 0x1400010d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x6a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rsi, rdx
mov rdi, rcx
mov r8, rcx
lea rdx, str._s
lea rcx, [rsp + 0x480]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001150
mov rdx, rdi
lea rcx, str.Error_opening_directory:__s_n
call fcn.140001010
jmp 0x1400011e5
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, 0x2e
jne 0x140001177
test ax, ax
je 0x1400011c6
cmp cx, cx
jne 0x140001177
cmp ax, cx
jne 0x140001177
cmp word [rsp + 0x50], 0
je 0x1400011c6
lea r9, [rsp + 0x4c]
mov r8, rdi
lea rdx, str._s_s
lea rcx, [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x270]
mov rdx, rsi
lea rcx, str._s__s_n
call fcn.140001010
test byte [rsp + 0x20], 0x10
je 0x1400011c6
lea rdx, str.recursive
lea rcx, [rsp + 0x270]
call fcn.1400010d0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001150
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1400013e0
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001210
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x6b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
movabs rax, 0x5c003a0058
mov qword [rsp + 0x270], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
lea rcx, str.Logical_drives_mask:__ld_n
mov esi, eax
call fcn.140001070
xor dil, dil
nop
movzx eax, dil
bt esi, eax
jae 0x14000138e
movzx eax, dil
lea rcx, str.
add ax, 0x41
mov word [rsp + 0x270], ax
call fcn.140001010
lea rdx, [rsp + 0x270]
lea rcx, str.Traversing_volume:__s_n
call fcn.140001010
lea r8, [rsp + 0x270]
lea rdx, str._s
lea rcx, [rsp + 0x490]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400012f0
lea rdx, [rsp + 0x270]
lea rcx, str.Error_opening_directory:__s_n
call fcn.140001010
jmp 0x14000138e
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, 0x2e
jne 0x140001317
test ax, ax
je 0x14000136f
cmp cx, cx
jne 0x140001317
cmp ax, cx
jne 0x140001317
cmp word [rsp + 0x50], 0
je 0x14000136f
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x270]
lea rdx, str._s_s
lea rcx, [rsp + 0x280]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x280]
lea rdx, str.init:
lea rcx, str._s__s_n
call fcn.140001010
test byte [rsp + 0x20], 0x10
je 0x14000136f
lea rdx, str.recursive
lea rcx, [rsp + 0x280]
call fcn.1400010d0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400012f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
inc dil
cmp dil, 0x20
jb 0x140001260
xor eax, eax
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1400013e0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140001ca0
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a8c], 0xa
jl 0x180002c22
mov eax, dword [0x180020a90]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002c22
nop word cs:[rax + rax]
jmp 0x180002c20
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a78]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a74], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002cf8
mov rsi, r10
test r8b, r8b
je 0x180002d10
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002c90
test r9b, r9b
je 0x180002d20
sub rsi, rcx
je 0x180002cf4
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002cf0
test ebp, ebp
jne 0x180002cf0
add rbx, 1
cmp rsi, rbx
jne 0x180002cb0
jmp 0x180002cf4
test ebp, ebp
jne 0x180002c7c
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002d10
jmp 0x180002d20