joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022ab8
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
or rbx, 0xffffffffffffffff
mov rax, rdx
mov rdi, rcx
test rcx, rcx
je 0x140022c58
test rax, rax
jne 0x140022aec
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140022c58
mov r9d, 0x2000
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call fcn.140014f40
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140022b32
mov rax, qword [0x140042e40]
test rax, rax
je 0x140022c9b
mov r8, qword [0x140042e38]
lea rdx, [0x14000b1a8]
xor ecx, ecx
call rax
jmp 0x140022c9b
mov rsi, qword [rdi + 8]
mov r8d, 0x20
mov rcx, rax
mov rdx, rsi
call fcn.1400252dc
test eax, eax
je 0x140022c0b
mov eax, dword [rsi + 0xc]
test eax, eax
je 0x140022b76
mov r8d, eax
shl r8d, 3
test r8d, r8d
je 0x140022b76
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
call fcn.1400252dc
test eax, eax
je 0x140022c0b
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x140022b96
lea r8d, [rax + rax]
test r8d, r8d
je 0x140022b96
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
call fcn.1400252dc
test eax, eax
je 0x140022c0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x140022c0b
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140022c0b
cmp dword [rsp + 0x34], 0
je 0x140022bed
mov rax, qword [0x140042e40]
mov edi, 0x18
test rax, rax
je 0x140022bda
mov r8, qword [0x140042e38]
xor edx, edx
mov ecx, edi
call rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140022c88
jmp 0x140022c80
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov dword [rdi + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x140022c2b
mov rax, qword [0x140042e40]
test rax, rax
je 0x140022c88
mov r8, qword [0x140042e38]
lea rdx, [0x14000b1a8]
xor ecx, ecx
call rax
jmp 0x140022c88
mov eax, dword [rsp + 0x44]
mov rcx, rbx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [rdi + 0x20], 0
mov eax, 1
jmp 0x140022c9d
mov rax, qword [0x140042e40]
mov edi, 0x57
test rax, rax
je 0x140022c76
mov r8, qword [0x140042e38]
xor edx, edx
mov ecx, edi
call rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140022c9b
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140022c9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140022df4
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r14, rdx
mov rbp, rcx
mov ebx, r15d
mov edi, r15d
mov qword [rax + 8], r15
test rcx, rcx
jne 0x140022e32
lea ecx, [rbp + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140022f16
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140022e87
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140022e87
cmp dword [rsp + 0x64], r15d
je 0x140022f31
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140022e95
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140022efd
mov rsi, qword [rbx + 0x18]
test rsi, rsi
je 0x140022ebe
cmp rdi, rsi
cmove rdi, r15
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rbx + 0x20]
test rsi, rsi
je 0x140022edb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140022ee9
call fcn.1400158bc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x140022f16
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov edx, 0x40
mov rcx, rsi
call fcn.140025174
mov rdi, rax
test rax, rax
je 0x140022e87
movabs rax, 0x434f5453534552
cmp qword [rdi], rax
jne 0x140022f67
mov edx, dword [rsp + 0x60]
mov rcx, rdi
call fcn.140022cb4
jmp 0x140022f75
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r15d
test eax, eax
je 0x140022e87
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140022e87
mov dword [rax], 6
mov qword [rax + 0x18], rdi
mov ecx, dword [rdi + 0x14]
lea edx, [rcx + rcx*2]
mov ecx, dword [rdi + 0x10]
lea r8d, [rcx + rcx*2]
shl edx, 4
mov rcx, rsi
shl r8d, 4
call fcn.140025220
mov qword [rbx + 0x20], rax
test rax, rax
je 0x140022e87
mov rcx, rbp
call fcn.1400157e8
mov qword [rbx + 0x30], rax
test rax, rax
je 0x140022e87
mov rcx, rsi
mov qword [rbx + 0x28], r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
jmp 0x140022f18
Function at 0x140024dd8
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov rdi, r8
mov rax, rdx
mov rbp, rcx
test rcx, rcx
je 0x140024f0a
test rax, rax
je 0x140024f0a
test byte [rcx], 2
jne 0x140024e14
lea ecx, [rbx + 0x32]
jmp 0x140024f0f
and qword [rsp + 0x30], rbx
and dword [rsp + 0x28], ebx
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140024f15
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140024e6a
cmp dword [rsp + 0x64], ebx
je 0x140024e8a
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140024f15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140024f15
and qword [rsp + 0x28], rbx
and dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8d, [r9 + 2]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
je 0x140024e6a
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x140024e6a
mov r8d, dword [rsp + 0x60]
mov rdx, rax
mov rcx, rbp
call fcn.140024cec
mov rcx, r14
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140024f06
mov ecx, dword [rsp + 0x60]
mov dword [rdi], ecx
mov eax, ebp
jmp 0x140024f20
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140024f1d
and dword [rdi], 0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140024f3c
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov r10, r9
mov edi, r8d
mov esi, edx
mov r13, rcx
mov ebx, ebp
mov dword [rax + 8], ebp
mov dword [rax + 0x28], ebp
test rcx, rcx
je 0x14002512b
test r9, r9
je 0x14002512b
lea r9d, [rsi + rdi]
cmp r9d, esi
jb 0x14002512b
cmp r9d, edi
jb 0x14002512b
mov rax, qword [rcx + 0x20]
cmp r9d, dword [rax + 0x1c]
jae 0x14002512b
mov qword [rsp + 0x30], rbp
lea r12d, [rbp + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, r10
mov r8d, r12d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140025136
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140024ffa
cmp dword [rsp + 0x44], ebp
je 0x14002501a
lea ecx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140025136
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140025136
xor r9d, r9d
xor edx, edx
mov rcx, r14
lea r8d, [r9 + 2]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
je 0x140024ffa
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
test rax, rax
je 0x140024ffa
mov rbp, rsi
add rbp, qword [r13 + 0x28]
je 0x14002507b
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.140015eb0
mov rsi, rax
jmp 0x14002507d
xor esi, esi
test rsi, rsi
je 0x1400250ed
mov ecx, dword [rsp + 0x80]
lea rax, [rdi + rbp]
add rcx, rsi
cmp rcx, rax
ja 0x1400250ed
lea rdx, [rsp + 0xa0]
mov rcx, r15
call fcn.140015eb0
test rax, rax
je 0x1400250ed
mov r9d, dword [rsp + 0x80]
cmp dword [rsp + 0xa0], r9d
jne 0x1400250ed
mov rcx, qword [rsp + 0x40]
mov r8d, dword [rsp + 0xa0]
mov edx, ecx
add r8, rax
add rdx, r15
cmp r8, rdx
ja 0x1400250f2
mov r8d, r9d
mov rdx, rax
mov rcx, rsi
call fcn.1400307f0
test eax, eax
jne 0x14002510b
xor r12d, r12d
jmp 0x14002510b
mov rcx, qword [rsp + 0x40]
cmp ecx, edi
jne 0x14002510b
mov r8, rdi
mov rdx, r15
mov rcx, rbp
call fcn.1400307f0
neg eax
sbb ecx, ecx
and r12d, ecx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
jmp 0x14002514d
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140025148
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002514d
mov eax, 0x80004005
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140025174
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movsxd rdi, edx
mov rsi, rcx
cmp edi, 1
jge 0x14002519b
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140025202
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140025202
and dword [rsp + 0x48], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400251ee
cmp edi, dword [rsp + 0x48]
je 0x140025214
mov ecx, 0x26
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rax, rbx
jmp 0x140025204

Function at 0x140025220
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, edx
mov rsi, rcx
test edx, edx
js 0x1400252a0
cmp r8d, 1
jl 0x1400252a0
cmp r8d, edx
jl 0x1400252a0
movsxd rbx, r8d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400252c4
test edi, edi
jle 0x14002529b
and dword [rsp + 0x48], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400252ab
cmp edi, dword [rsp + 0x48]
je 0x14002529b
mov ecx, 0x26
jmp 0x1400252a5
mov rax, rbx
jmp 0x1400252c6
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400252c4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400252dc
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, r8d
test rcx, rcx
je 0x14002531d
test rdx, rdx
je 0x14002531d
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140025328
cmp ebx, dword [rsp + 0x40]
je 0x140025316
mov ecx, 0x1d
jmp 0x140025322
mov eax, 1
jmp 0x14002532a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140025338
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
mov rbp, rcx
mov ebx, r14d
mov edi, r14d
mov qword [rsp + 0x60], r14
test rcx, rcx
jne 0x14002536e
lea ecx, [rbp + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140025482
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400253c3
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400253c3
cmp dword [rsp + 0x64], r14d
je 0x140025497
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x1400253d1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140025469
mov rsi, qword [rbx + 0x18]
test rsi, rsi
je 0x1400253fe
cmp rdi, rsi
cmove rdi, r14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rbx + 0x20]
test rsi, rsi
je 0x14002541b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rbx + 0x28]
test rsi, rsi
je 0x140025438
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rbx + 0x30]
test rsi, rsi
je 0x140025455
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x140025482
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov edx, 0x68
mov rcx, rsi
call fcn.140025174
mov rdi, rax
test rax, rax
je 0x1400253c3
mov edx, dword [rsp + 0x60]
mov rcx, rax
call fcn.140027684
test eax, eax
je 0x1400253c3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400253c3
mov dword [rax], 6
mov qword [rax + 0x18], rdi
mov edx, dword [rdi + 0x34]
shl edx, 5
mov rcx, rsi
call fcn.140025174
mov qword [rbx + 0x20], rax
test rax, rax
je 0x1400253c3
mov edx, dword [rdi + 0x38]
mov rcx, rsi
add edx, edx
call fcn.140025174
mov qword [rbx + 0x28], rax
test rax, rax
je 0x1400253c3
mov eax, dword [rdi + 0x3c]
mov rcx, rsi
lea edx, [rax + rax*2]
shl edx, 4
call fcn.140025174
mov qword [rbx + 0x30], rax
test rax, rax
je 0x1400253c3
mov rcx, rbp
call fcn.1400157e8
mov qword [rbx + 0x38], rax
test rax, rax
je 0x1400253c3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
jmp 0x140025484
Function at 0x14002716c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14003e060]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14002729e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rbx + 8]
lea r8d, [rbx + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400272b6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400272a9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400272a9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1400272a9
mov rax, qword [rbx + 8]
mov dword [rbx], 6
movabs rcx, 0x4c554343534552
and dword [rax + 8], 0
and dword [rax + 0x14], 0
and dword [rax + 0x18], 0
mov qword [rax], rcx
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0xc], 0xa
mov dword [rax + 0x10], 0x200
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x14002727a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14002727a
xor eax, eax
jmp 0x14002727f
mov eax, 1
mov rcx, rdi
mov dword [rbx + 0x20], eax
call fcn.1400157e8
mov qword [rbx + 0x28], rax
test rax, rax
je 0x1400272a9
and qword [rbx + 0x38], 0
and dword [rbx + 0x30], 0
jmp 0x1400272b8
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400272b6
mov rcx, rbx
call fcn.1400272dc
xor ebx, ebx
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140028130
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14002c9bd
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x14002e232
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x14002b1cb

Function at 0x14002caa9
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
or dword [rdi], ecx
mov bh, 0x49
adc al, 0x48
lea eax, [rax + rcx + 0x18]
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
jmp 0x1400288cb
Function at 0x140034ca8
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x14003e060]
xor rax, rbp
mov qword [rbp + 0x68], rax
and dword [rbp], 0
mov eax, dword [rsp]
sub rsp, 0x10
lea r14, [rsp + 0x20]
mov eax, dword [r14]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140034dab
mov r15, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x140034d36
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x140034dab
mov eax, edx
not eax
and ecx, eax
je 0x140034d51
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x140034dab
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r14
lea rax, [r15 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x140034dab
mov r9d, 4
mov r8d, 0x1000
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140034dab
lea r9, [rbp + 4]
mov r8d, 0x104
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140034dab
mov eax, 1
jmp 0x140034dad
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.140028130
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r15
pop r14
pop rbp
ret

Function at 0x14003c010
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
cmp dword [0x140042e48], 0
jne 0x14003c0d2
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp], rdi
mov esi, 0x7fff
mov eax, 0x13579bdf
mov r8d, 0x87654321
lea rbx, [0x140042e60]
lea rbp, [0x140043460]
xor r9d, r9d
mov r10d, r8d
mov r11d, eax
lea edi, [r9 + 0x20]
nop
sub r9d, 0x61c88647
mov edx, r8d
sar edx, 5
add r10d, r9d
add r11d, r9d
add edx, r11d
lea ecx, [r10 + r8*8]
xor edx, ecx
lea ecx, [r9 + r8]
xor edx, ecx
add eax, edx
mov ecx, eax
sar ecx, 5
lea edx, [r11 + rax*8]
add ecx, r10d
xor edx, ecx
lea ecx, [r9 + rax]
xor edx, ecx
add r8d, edx
dec edi
jne 0x14003c060
add eax, r8d
add rbx, 2
movzx ecx, ax
and cx, si
mov word [rbx - 2], cx
cmp rbx, rbp
jb 0x14003c052
mov rdi, qword [rsp]
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov dword [0x140042e48], 1
add rsp, 8
ret
Function at 0x14003c0e0
Capabilities:
Encode data using xor

Disassembly:
push rdi
mov rax, qword [rcx - 0x20]
mov rdx, qword [rcx - 0x28]
xor edi, edi
sub rax, 2
mov qword [rsp + 0x10], rbx
mov rbx, qword [rcx - 0x68]
mov r11, rcx
mov r10d, edi
cmp rdx, rax
jae 0x14003c161
mov qword [rsp + 0x18], rsi
lea rsi, [0x140042e60]
movzx ecx, byte [rdx + 2]
lea r9, [rdx + 1]
movzx r8d, word [rsi + rcx*2 + 0x400]
movzx ecx, byte [r9]
movzx ecx, word [rsi + rcx*2 + 0x200]
xor r8d, ecx
movzx ecx, byte [rdx]
movzx edx, word [rsi + rcx*2]
xor r8d, edx
movsxd rdx, r10d
movsxd rcx, r8d
lea r8, [rbx + rcx*2]
movzx ecx, word [rbx + rcx*2]
mov word [r11 + rdx*2], cx
mov word [r8], r10w
inc r10d
mov rdx, r9
cmp r9, rax
jb 0x14003c110
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
add rax, 2
cmp rdx, rax
jae 0x14003c190
sub rax, rdx
nop dword [rax]
nop word [rax + rax]
movsxd rcx, r10d
inc r10d
mov word [r11 + rcx*2], di
dec rax
jne 0x14003c180
pop rdi
ret
Function at 0x140011249
Capabilities:
Terminate process

Disassembly:
jmp 0x140013980
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret

Function at 0x1400112e4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014cd0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014cf0
xor al, al
jmp 0x140014d71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014d03
xor al, al
jmp 0x140014d71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014d2d
xor al, al
jmp 0x140014d71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014d41
xor al, al
jmp 0x140014d71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014d53
xor al, al
jmp 0x140014d71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014d6f
xor al, al
jmp 0x140014d71
mov al, 1
add rsp, 0x38
ret