joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180102c30
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1801031c0
mov qword [rsp + 0x28], 0
cmp qword [0x1802f06c0], 0
jne 0x180102c78
cmp qword [0x1802f06b8], 0
je 0x180102c78
mov rax, qword [0x1802f06b8]
mov qword [0x1802f06c0], rax
cmp qword [0x1802f06c0], 0
je 0x180102d1e
mov rax, qword [0x1802f06c0]
cmp qword [rax + 0x10], 0
je 0x180102d1e
mov rax, qword [0x1802f06c0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180102d1e
mov rax, qword [0x1802f06c0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180102d1e
mov rax, qword [0x1802f06c0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180102ce4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180102ceb
xor eax, eax
jmp 0x180102e99
mov rax, qword [0x1802f06c0]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180102e99
mov rax, qword [0x1802f06b8]
mov qword [0x1802f06c0], rax
jmp 0x180102d40
mov rax, qword [0x1802f06c0]
mov rax, qword [rax + 8]
mov qword [0x1802f06c0], rax
cmp qword [0x1802f06c0], 0
je 0x180102d8d
cmp qword [0x1802f06c0], 0
je 0x180102d8b
mov rax, qword [0x1802f06c0]
cmp qword [rax + 0x10], 0
je 0x180102d8b
mov rax, qword [0x1802f06c0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180102d8b
mov rax, qword [0x1802f06c0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180102d8b
jmp 0x180102cbc
jmp 0x180102d2e
mov rcx, qword [rsp + 0x60]
call fcn.180104e10
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180102ea0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180102e97
mov rax, qword [rsp + 0x48]
mov qword [0x1802f06c0], rax
mov rax, qword [0x1802f06c0]
mov dword [rax], 0x52727464
mov rax, qword [0x1802f06c0]
mov qword [rax + 0x10], 0
mov rax, qword [0x1802f06c0]
mov rcx, qword [0x1802f06b8]
mov qword [rax + 8], rcx
mov rax, qword [0x1802f06c0]
mov qword [0x1802f06b8], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1802f06c0]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180102e48
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180102e82
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180102e3e
mov rax, qword [0x1802f06c0]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180102cbc
xor eax, eax
add rsp, 0x58
ret
Function at 0x180103bb0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, Ordinal_50
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180103bf7
xor al, al
jmp 0x180103c99
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180103c21
xor al, al
jmp 0x180103c99
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180103c91
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180103c91
mov al, 1
jmp 0x180103c99
jmp 0x180103c97
xor al, al
add rsp, 0x78
ret

Function at 0x180103fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1802f06b8]
mov qword [rsp + 0x28], rax
jmp 0x180103fc0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180103fef
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180103fed
call sub.KERNEL32.dll_GetLastError
jmp 0x180103ff1
jmp 0x180103fb2
xor eax, eax
add rsp, 0x38
ret
Function at 0x1801046b0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1802f06d0], eax
je 0x1801046cb
mov eax, 0x10dd
jmp 0x1801047f0
mov rax, qword [0x1802f06e8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180104775
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180104740
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180104740
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180103300
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x38]
call fcn.180106b84
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1801046d7
mov qword [0x1802f06e8], 0
call fcn.180103d60
mov rax, qword [0x1802f06e0]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1801047d9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x48]
call fcn.180106b84
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180104791
mov qword [0x1802f06e0], 0
mov dword [0x1802f06d0], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180104d20
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1802f06d4], 0
je 0x180104d3d
mov eax, dword [0x1802f06d4]
jmp 0x180104e03
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180104d50
xor eax, eax
jmp 0x180104e03
mov ecx, reloc.WS2_32.dll_recv
call fcn.180106c6c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180104dbe
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180104da3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x38]
call fcn.180106b84
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1802f06d4], eax
mov qword [0x1802f06d8], 0
mov eax, dword [rsp + 0x20]
jmp 0x180104e03
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180104dd8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180104d79
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1802f06e0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1802f06e0], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x18010636c
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 0x1801063f0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1801063f0
dec r8
sub rdx, 1
jne 0x1801063d6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x181006058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1810061df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x181006089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18100606f
add dl, dl
jne 0x181006096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1810060f6
xor eax, eax
add dl, dl
jne 0x1810060a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1810061ad
add dl, dl
jne 0x1810060b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1810060c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1810060d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1810060dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1810060ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18100607e
mov eax, 1
add dl, dl
jne 0x181006106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x181006113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1810060fb
sub eax, ebx
mov ebx, 1
jne 0x18100614c
mov ecx, 1
add dl, dl
jne 0x18100612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18100613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x181006123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18100607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x181006168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x181006175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18100615d
cmp eax, 0x7d00
jae 0x18100619b
cmp eax, 0x500
jb 0x181006196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18100607e
cmp eax, 0x7f
ja 0x18100619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18100607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1810061d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18100607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140005701
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140005701
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x14000560b
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140005728
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140005622
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x140005622
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140005635
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140005682
mov r9d, eax
cmp eax, 0x800
jae 0x14000564f
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x140005682
cmp eax, 0x10000
jae 0x140005669
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x140005682
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x140005701
add qword [r14], 2
test sil, sil
jne 0x1400056a3
cmp r10d, 3
jae 0x1400056af
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x1400056de
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x1400056c0
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x1400055bf
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x14000570f
Function at 0x1400062d0
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 0x1400062f2
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 0x14000636c
mov rdi, r14
mov rcx, rbx
call fcn.140007f70
test rax, rax
jle 0x140006344
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14005ce60
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 0x14000635c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006364
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140006306
sub r14, rdi
jmp 0x14000644f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140006383
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006385
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400063b7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14005ce60
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 0x14000644c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400063f2
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 0x14000642d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14003b6f8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000644c
cmp rbp, rax
ja 0x140006400
test rbp, rbp
je 0x14000644c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14003b6f8
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140027120
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001325e
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140013241
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14001322c

Function at 0x140032b68
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140038983
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140038983
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140038983
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140038983
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140038983
cmp dword [rcx + 0x84], 0xe
jbe 0x140038983
cmp dword [rcx + 0xf8], 0
je 0x140038983
mov ecx, ebx
call fcn.140038a34
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140038810
nop
cmp dword [rbp + 0x20], 0
je 0x1400389d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400389dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140038914

Function at 0x140048a70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140048a86
mov al, 1
jmp 0x140048ae6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140048a97
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140048ae4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140054390
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140048ae4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140048ae4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140048ae4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140048ae6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004b600
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004b620
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003a28c
or eax, 0xffffffff
jmp 0x14004b622
xor eax, eax
add rsp, 0x28
ret

Function at 0x14004c9dc
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.140032710
sub rsp, rax
mov rax, qword [0x1400760c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140048950
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004ca2b
mov rax, rbp
jmp 0x14004cb33
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x79050]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004d928
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x79050]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004cb2f
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 0x14004cb2f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004d928
test rax, rax
js 0x14004cb2f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004cb2f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004cb21
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004cb21
cmp byte [rcx], 0xd
jne 0x14004cb07
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004cb16
cmp byte [rcx + 1], 0xa
jne 0x14004cb16
inc rcx
jmp 0x14004cb16
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x764e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004cae9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004cb33
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140031f00
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 0x14004ccc8
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, [0x140079050]
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 0x14004cd1f
cmp word [rdx], r13w
jne 0x14004cd1f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004cd24
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004ce49
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004ce6a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004cd5d
mov rdx, r9
mov word [rbx], cx
jmp 0x14004cd84
cmp r9, r8
jae 0x14004cd94
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 0x14004cd3e
jmp 0x14004ce49
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 0x14004ce3e
cmp dword [rsp + 0x80], esi
je 0x14004ce3e
lea r8, [0x140079050]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004ce16
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004cde6
mov word [rbx], r13w
jmp 0x14004ce46
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 0x14004cdf3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004ce46
cmp word [rsp + 0x70], r13w
jne 0x14004ce23
cmp rbx, r14
je 0x14004cde0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004d930
cmp word [rsp + 0x70], r13w
je 0x14004ce49
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, [0x140079050]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004ce43
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004ce49