joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000192c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
mov esi, 0xc0000001
test rcx, rcx
je 0x140001b16
call fcn.140001fa4
mov rbx, rax
test rax, rax
je 0x140001b16
mov edx, dword [rax + 0x50]
xor ecx, ecx
mov r8d, 0x5347
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, rax
mov rax, qword [0x14001de10]
mov qword [rax + 0x30], rcx
mov rax, qword [0x14001de10]
mov rcx, qword [rax + 0x30]
test rcx, rcx
je 0x140001b16
mov r8d, dword [rbx + 0x50]
test r8, r8
je 0x14000199f
xor edx, edx
call fcn.1400026c0
mov rax, qword [0x14001de10]
mov edx, dword [rbx + 0x54]
mov rcx, qword [rax + 0x30]
test rdx, rdx
je 0x1400019c7
mov r8, rdi
sub r8, rcx
mov al, byte [r8 + rcx]
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1400019b8
movsxd r9, dword [rdi + 0x3c]
mov r8d, ebp
add r9, rdi
cmp bp, word [rbx + 6]
jae 0x140001a27
mov eax, r8d
lea rcx, [rax + rax*4]
mov rax, qword [0x14001de10]
mov r10d, dword [r9 + rcx*8 + 0x11c]
mov edx, dword [r9 + rcx*8 + 0x114]
add r10, rdi
mov r11d, dword [r9 + rcx*8 + 0x118]
add rdx, qword [rax + 0x30]
test r11, r11
je 0x140001a1b
sub r10, rdx
mov al, byte [r10 + rdx]
mov byte [rdx], al
inc rdx
sub r11, 1
jne 0x140001a0c
movzx eax, word [rbx + 6]
inc r8d
cmp r8d, eax
jb 0x1400019d7
mov rcx, qword [0x14001de10]
mov rcx, qword [rcx + 0x30]
call fcn.140001c34
test eax, eax
js 0x140001b16
mov rcx, qword [0x14001de10]
mov rcx, qword [rcx + 0x30]
call fcn.140001ce4
test eax, eax
js 0x140001b16
mov r8d, 8
lea rdx, [0x14001de10]
lea rcx, [0x140002880]
call fcn.1400023e8
mov esi, eax
test eax, eax
js 0x140001b16
mov ecx, dword [rbx + 0x28]
or r9, 0xffffffffffffffff
mov rax, qword [0x14001de10]
mov ebx, 0x1fffff
mov qword [rsp + 0x68], rbp
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov edx, ebx
add rcx, qword [rax + 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov esi, eax
test eax, eax
js 0x140001b16
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
mov qword [rsp + 0x60], rbp
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
js 0x140001b09
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov rbx, qword [rsp + 0x70]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001dd4
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
and qword [rax - 0x58], 0
lea r9, [rbp + 0x17]
and qword [rbp + 0x6f], 0
lea r8, [rbp + 0x27]
and qword [rbp + 0x67], 0
xorps xmm0, xmm0
and qword [rbp + 0x2f], 0
mov edx, 0x110000
mov dword [rax - 0x60], 0x100
and qword [rax - 0x68], 0
and dword [rax - 0x70], 0
and dword [rax - 0x78], 0
and qword [rax - 0x80], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 4
mov qword [rbp + 0x37], rcx
lea rcx, [rbp + 0x6f]
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 0x27], 0x30
mov dword [rbp + 0x3f], 0x240
movdqu xmmword [rbp + 0x47], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileEx]
mov ebx, eax
test eax, eax
js 0x140001eed
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
lea rax, [rbp + 0x67]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x6f]
mov edx, 0x110000
mov qword [rsp + 0x28], rax
mov r8, qword [r8]
mov dword [rsp + 0x20], 0x454c4946
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandleWithTag]
mov ebx, eax
test eax, eax
js 0x140001ee1
mov rax, qword [rbp + 0x67]
xor edx, edx
mov rcx, qword [rax + 0x28]
and qword [rcx + 0x10], 0
mov rcx, qword [rbp + 0x67]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
test al, al
je 0x140001ed7
lea rcx, [rbp + 0x27]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov ebx, eax
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x6f]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rbp
ret

Function at 0x140001ff4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx ebx, word [rcx + 6]
xor r9d, r9d
add r10, rax
mov edi, r8d
cmp r9w, bx
movzx r11d, r9w
jae 0x140002050
mov r8d, dword [r10 + 0xc]
cmp r8d, edx
ja 0x140002031
mov ecx, dword [r10 + 8]
add ecx, r8d
cmp ecx, edx
ja 0x14000203f
add r10, 0x28
inc r11w
cmp r11w, bx
jmp 0x14000201b
mov eax, dword [r10 + 0x14]
sub eax, r8d
add edx, eax
cmp edx, edi
sbb r9d, r9d
and r9d, edx
mov rbx, qword [rsp + 8]
mov eax, r9d
mov rdi, qword [rsp + 0x10]
ret
Function at 0x140002060
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov r14, r8
xor ecx, ecx
mov r15, rdx
test rdi, rdi
je 0x1400020e4
movsxd r9, dword [rdi + 0x3c]
lea rbx, [rdi + 0x18]
add rbx, r9
xor esi, esi
movzx eax, word [r9 + rdi + 0x14]
movzx ebp, word [r9 + rdi + 6]
add rbx, rax
test ebp, ebp
je 0x1400020e4
mov eax, dword [rbx]
cmp eax, 0x7865742e
jne 0x1400020b7
cmp byte [rbx + 4], 0x74
je 0x1400020be
cmp eax, 0x45474150
jne 0x1400020da
mov ecx, dword [rbx + 0xc]
mov r9, r14
mov edx, dword [rbx + 8]
add rcx, rdi
mov r8, r15
call fcn.140002100
mov rcx, rax
test rax, rax
jne 0x1400020e4
inc esi
add rbx, 0x28
cmp esi, ebp
jb 0x1400020a8
mov rbx, qword [rsp + 0x40]
mov rax, rcx
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140002178
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rax, qword [0x14001de00]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rbp - 0x29], 0
xorps xmm0, xmm0
and dword [rbp + 0xb], 0
xorps xmm1, xmm1
and dword [rbp + 0x23], 0
mov rsi, rcx
mov ebx, 0xc0000001
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp - 0x19], xmm1
test rcx, rcx
je 0x140002341
lea rdx, [0x1400028c0]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
lea rax, [rbp - 9]
and qword [rsp + 0x48], 0
lea r9, [rbp - 0x19]
and qword [rbp + 0xf], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov qword [rbp + 0x17], rax
xorps xmm0, xmm0
mov eax, 1
mov dword [rbp + 7], 0x30
mov dword [rsp + 0x38], eax
mov edx, 0x80000000
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 0x1f], 0x240
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140002341
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
xor eax, eax
mov dword [rsp + 0x20], 5
xorps xmm0, xmm0
mov qword [rbp + 0x47], rax
lea rdx, [rbp - 0x19]
movups xmmword [rbp + 0x37], xmm0
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x140002337
cmp dword [rbp + 0x3f], 0x1000
jbe 0x140002337
mov ecx, dword [rbp + 0x3f]
call fcn.140001d8c
mov rdi, rax
test rax, rax
je 0x140002337
mov ecx, dword [rbp + 0x3f]
xor eax, eax
and qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rbp - 0x21], rax
xor r8d, r8d
lea rax, [rbp - 0x21]
xor edx, edx
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x19]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x140002329
mov r8d, dword [rbp + 0x3f]
lea r9, [0x140002900]
mov rdx, rdi
mov rcx, rsi
call fcn.140001700
mov rdx, qword [0x14001de10]
lea r9, [0x140002920]
mov rcx, rsi
mov qword [rdx + 0x60], rax
mov rdx, rdi
mov r8d, dword [rbp + 0x3f]
call fcn.140001700
mov rcx, qword [0x14001de10]
mov qword [rcx + 0x68], rax
mov edx, 0x5347
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400025b0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400023e8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
and qword [rbp + 0x7f], 0
mov rsi, rdx
mov rdx, rcx
mov edi, r8d
lea rcx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
lea rax, [rbp - 1]
and qword [rsp + 0x48], 0
lea r9, [rbp + 0xf]
and qword [rbp + 0x27], 0
lea r8, [rbp + 0x1f]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp + 0x7f]
mov qword [rbp + 0x2f], rax
xorps xmm0, xmm0
mov eax, 3
mov dword [rbp + 0x1f], 0x30
mov dword [rsp + 0x38], eax
mov edx, 0x10000000
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 0x37], 0x240
movdqu xmmword [rbp + 0x3f], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x1400024cd
mov rcx, qword [rbp + 0x7f]
xor eax, eax
and qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rbp - 9], rax
xor r8d, r8d
lea rax, [rbp - 9]
xor edx, edx
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xf]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rbp + 0x7f]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xc0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140007420
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
xor byte [rdi], cl
sub dword [rsp + 0x20], eax
Function at 0x14002a1f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14002a215
cmp rax, rcx
je 0x14002a21b
cmp rdx, 4
jae 0x14002a21f
xor eax, eax
xor r8d, r8d
jmp 0x14002a2b0
pop rbp
jmp fcn.140013e70
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14004d780]
movdqa xmm3, xmmword [0x14004d790]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14002a240
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14002a2c7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14002a2b0
pop rbp
ret
Function at 0x140034a20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push r13
push r12
push rsp
push rsi
push rdi
push rbx
sub rsp, 0x48
sub esp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm6
mov rdi, r8
mov edi, eax
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov ecx, dword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb case.0x14000ab0c.1335
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
stc
invalid
jne case.0x14000ab0c.1335
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jl case.0x14000ab0c.1337
std
in eax, dx
jne case.0x14000ab0c.1335
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
out 0xa, al
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x140034b6c
add byte [rax], al
invalid
cmp byte [rdx], 0xed
jne 0x140034b75
movzx r15d, byte [rdx + 1]
mov r8d, r15d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
sal byte [rcx + rax], 0x44
or al, al
jne 0x140034b75
cmp rbx, 3
jb 0x140034ad1
invalid
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
movzx r12d, byte [rdx + 2]
shl r15d, 6
shl edi, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
mov eax, dword [rsi]
mov rcx, rax
sub rcx, rbx
cmp rcx, r8
jb 0x140034c5f
and r15d, 0x3c0
or r15d, r14d
or r12d, r15d
lea r8d, [r12 + 0x10000]
mov r9d, r8d
shr r9d, 0x12
shr r8d, 4
and r8d, 0xff00
or r8d, r9d
shl r15d, 0xa
out 0xa, eax
and r15d, 0xff0000
or r15d, r8d
shl r12d, 0x18
or r12d, r15d
movd xmm6, r12d
pand xmm6, xmmword [0x14004dad0]
por xmm6, xmmword [0x14004dae0]
cmp rcx, 3
jbe 0x140034c91
add rdx, 3
mov rcx, qword [rsi + 8]
mov ecx, dword [rsi + 8]
movd dword [rcx + rbx], xmm6
add rbx, 4
mov qword [rsi + 0x10], rbx
add rdi, 0xfffffffffffffffd
jmp 0x140034c03
test rdi, rdi
je 0x140034c00
mov eax, dword [rax]
add byte [rax], al
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x140034b98
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r13, rdx
mov rdx, rbx
call fcn.14004c1d0
mov rdx, r13
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
mov rcx, rax
sub rcx, rbx
jmp 0x140034af0
mov qword [rsp + 0x20], 1
mov r8d, 4
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
call fcn.14004c1d0
mov rdx, r14
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
jmp 0x140034b4e

Function at 0x1400350e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov esi, ecx
Function at 0x140040a80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.140033b80
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rax
neg rcx
jno 0x140040acd
mov qword [rbp - 0x20], rdi
movabs rax, 0x8000000000000000
mov qword [rbp - 0x28], rax
jmp 0x140040afe
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.140040990
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rax, rbx
neg rax
jno 0x140040b85
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x140040b6a
lea rax, [rdi - 1]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi - 1]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x140040b2e
mov rcx, qword [rbp - 8]
call rax
mov r8, qword [rbp - 8]
mov rax, qword [rbp]
cmp qword [rax + 8], 0
je 0x140040b57
cmp qword [rax + 0x10], 0x11
jb 0x140040b48
mov r8, qword [r8 - 8]
mov rcx, qword [0x1400a11f8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1400a11f8]
xor edx, edx
mov r8, qword [rbp - 0x10]
call qword [sym.imp.kernel32.dll_HeapFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140040ba4
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x140040b77
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
je 0x140040b77
mov rcx, qword [0x1400a11f8]
xor edx, edx
mov r8, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.kernel32.dll_HeapFree]
Function at 0x140045a50
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140045b44
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x140045b0a
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x28], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x140045ac5
mov eax, dword [rbp - 0x28]
mov ecx, 2
test rax, rax
jne 0x140045adc
jmp 0x140045ae9
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x140045ae9
cmp eax, 0x3e5
jne 0x140045afa
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140045aed
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x140045aef
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.14004c1d0
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140045a81
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14004c470
int3

Function at 0x14004a2c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14004a30e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004a30e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004a30e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004a30e
cmp dword [rcx + 0x84], 0xe
jbe 0x14004a30e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004a310
xor al, al
add rsp, 0x28
ret
Function at 0x14000b680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x14000b6b9
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14000b803
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x14000b6e3
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x14000b6eb
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x60], 0
jle 0x14000b7ab
cmp qword [rsp + 0x28], 0
jle 0x14000b7ab
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x60], rax
jge 0x14000b723
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.140005560
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x60], 0
jle 0x14000b7f3
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x14000b7f3
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
ret
Function at 0x14000ca40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14000ca6b
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000ca72
mov al, 1
jmp 0x14000cbcc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140001230
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140001230
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.140001240
movzx eax, al
test eax, eax
je 0x14000cac9
xor al, al
jmp 0x14000cbcc
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000cb39
cmp dword [rsp + 0x30], 1
je 0x14000cb45
cmp dword [rsp + 0x30], 3
je 0x14000cbba
jmp 0x14000cbca
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000cb91
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x14000cb91
xor al, al
jmp 0x14000cbcc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000cbab
mov dword [rsp + 0x34], 1
jmp 0x14000cbb3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14000cbcc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000cbcc
xor al, al
add rsp, 0xa8
ret
Function at 0x14000de2c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000deb0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140010670]
cmp byte [rcx + rax], 0
je 0x14000deb0
dec r8
sub rdx, 1
jne 0x14000de96
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000ee74
Capabilities:
Parse pe header

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