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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x48], 0
jne 0x14002e675
xor r8d, r8d
xor edx, edx
lea rcx, str.winmm.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x48], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x48], 0
je 0x14002e675
lea rdx, str.timeBeginPeriod
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x50], rax
lea rdx, str.timeEndPeriod
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x58], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x50], 0
je 0x14002e666
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x58], 0
jne 0x14002e675
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x48], 0
jmp 0x14002e6c9
mov rax, qword [rsp + 0x40]
add rax, 0x60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x90], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
lea r8, [0x14002e550]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x88], rax
add rsp, 0x38
ret
Function at 0x14003eee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
je 0x14003ef14
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x38], eax
jmp 0x14003ef1c
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x88], eax
jg 0x14003f116
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x30]
cmp dword [rsp + 0x88], eax
jae 0x14003ef65
movsxd rax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x48], rax
jmp 0x14003ef7b
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
call fcn.14001cf80
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003efa9
movsxd rax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
xor eax, eax
jmp 0x14003f11b
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
sar rax, 0x2f
cmp eax, 0xfffffffb
jne 0x14003f028
mov rax, qword [rsp + 0x28]
movabs rcx, 0x7fffffffffff
mov rax, qword [rax]
and rax, rcx
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x28]
movabs rcx, 0x7fffffffffff
mov rax, qword [rax]
and rax, rcx
add rax, 0x18
mov qword [rsp + 0x50], rax
mov ecx, dword [rsp + 0x20]
mov edx, dword [rsp + 0x3c]
add edx, ecx
mov ecx, edx
mov edx, ecx
mov rcx, qword [rsp + 0x70]
call fcn.14003e750
mov r8d, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov rcx, rax
call fcn.14003eb00
mov qword [rsp + 0x30], rax
jmp 0x14003f09b
xor eax, eax
test eax, eax
je 0x14003f057
mov eax, dword [rsp + 0x20]
add eax, 0xb
mov edx, eax
mov rcx, qword [rsp + 0x70]
call fcn.14003e750
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov rcx, rax
call fcn.140031420
mov qword [rsp + 0x30], rax
jmp 0x14003f09b
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
sar rax, 0x2f
cmp eax, 0xfffffff2
jae 0x14003f096
mov rax, qword [rsp + 0x28]
movsd xmm0, qword [rax]
movaps xmm2, xmm0
mov edx, 0xf000035
mov rcx, qword [rsp + 0x70]
call fcn.140052fe0
mov edx, dword [rsp + 0x20]
mov rcx, rax
call fcn.14003e750
mov qword [rsp + 0x30], rax
jmp 0x14003f09b
jmp 0x14003ef8d
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jne 0x14003f0da
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
jmp 0x14003f116
cmp dword [rsp + 0x20], 0
je 0x14003f104
mov rax, qword [rsp + 0x80]
add rax, 0x18
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.14003eb00
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
jmp 0x14003ef38
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400462d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0x200
mov dword [rsp + 0x24], 0
jmp 0x140046300
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.14003e6b0
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov r9, qword [rsp + 0x58]
mov r8d, eax
mov edx, 1
call fcn.1400cb380
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
je 0x1400463cc
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x28]
add rax, 8
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x28], rax
mov eax, dword [rsp + 0x24]
mov r8d, eax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.14001b7a0
mov r8, rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140045b20
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + 0x10], rcx
jb 0x1400463ca
mov rcx, qword [rsp + 0x50]
call fcn.140018660
jmp 0x1400463d1
jmp 0x1400462f0
add rsp, 0x48
ret
Function at 0x1400463e0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp dword [rsp + 0x70], 0
je 0x1400464c3
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.14003e6b0
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x70]
mov r9, qword [rsp + 0x68]
mov r8d, eax
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.1400cb380
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x28]
add rax, 8
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x28], rax
mov eax, dword [rsp + 0x20]
mov r8d, eax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.14001b7a0
mov r8, rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140045b20
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + 0x10], rcx
jb 0x1400464a2
mov rcx, qword [rsp + 0x60]
call fcn.140018660
cmp dword [rsp + 0x20], 0
jbe 0x1400464b3
mov dword [rsp + 0x24], 1
jmp 0x1400464bb
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
jmp 0x14004653f
mov rcx, qword [rsp + 0x68]
call fcn.1400d3284
mov dword [rsp + 0x28], eax
mov rdx, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x28]
call fcn.1400d4364
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x28]
add rax, 8
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
add rax, 0x78
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call fcn.140045b20
cmp dword [rsp + 0x28], 0xffffffff
je 0x140046533
mov dword [rsp + 0x2c], 1
jmp 0x14004653b
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
add rsp, 0x58
ret
Function at 0x140046820
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 1
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x20]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x30], rax
jmp 0x14004686f
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x28]
cmp qword [rsp + 0x30], rax
jae 0x14004691a
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.1400318c0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400468d0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
sar rax, 3
inc eax
mov r8d, 4
mov edx, eax
mov rcx, qword [rsp + 0x60]
call fcn.140011310
cmp dword [rsp + 0x20], 0
je 0x140046905
mov eax, dword [rsp + 0x24]
mov r9, qword [rsp + 0x40]
mov r8d, eax
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1400d143c
mov ecx, dword [rsp + 0x24]
cmp rax, rcx
jne 0x140046905
mov dword [rsp + 0x28], 1
jmp 0x14004690d
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x20], eax
jmp 0x140046861
xor eax, eax
test eax, eax
je 0x140046974
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
add rax, 8
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x28], rax
cmp dword [rsp + 0x70], 0
jne 0x14004696d
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov ecx, 8
imul rcx, rcx, 0x25
mov rax, qword [rax + rcx + 0x1a8]
mov r8, rax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.140045b60
mov eax, 1
jmp 0x140046985
xor r8d, r8d
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.140014d00
add rsp, 0x58
ret
Function at 0x14005a380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp], 0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
lea rax, [rcx + rax*8]
mov qword [rsp + 8], rax
jmp 0x14005a3be
mov rax, qword [rsp + 8]
sub rax, 8
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, byte [rax + 5]
cmp eax, 0x13
jne 0x14005a4c1
mov rax, qword [rsp + 8]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 2]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax + 4]
mov rcx, qword [rsp + 0x18]
movzx ecx, byte [rcx + 4]
xor eax, ecx
and eax, 0x20
test eax, eax
jne 0x14005a43b
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 6]
mov rcx, qword [rsp + 0x18]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jne 0x14005a43b
jmp 0x14005a3b0
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax + 4]
mov rcx, qword [rsp + 0x18]
movzx ecx, byte [rcx + 4]
and eax, ecx
not eax
and eax, 0x20
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
movzx eax, byte [rcx + rax*8 + 4]
or eax, 0x20
mov rcx, qword [rsp + 8]
movzx ecx, word [rcx]
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x20]
mov byte [rdx + rcx*8 + 4], al
mov rax, qword [rsp + 8]
movzx eax, word [rax + 2]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
movzx eax, byte [rcx + rax*8 + 4]
or eax, 0x20
mov rcx, qword [rsp + 8]
movzx ecx, word [rcx + 2]
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x20]
mov byte [rdx + rcx*8 + 4], al
jmp 0x14005a3b0
cmp dword [rsp], 0
jne 0x14005a389
add rsp, 0x28
ret
Function at 0x1400721b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xb4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140072291
mov ecx, dword [rsp + 0x20]
call fcn.1400cb888
mov ecx, eax
call fcn.14006a640
xor eax, 0x18
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x90]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 4]
and eax, 0x20
test eax, eax
je 0x140072268
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 4]
and eax, 0xffffffdf
mov rcx, qword [rsp + 0x30]
mov byte [rcx + 4], al
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 7]
test eax, eax
je 0x140072268
mov rax, qword [rsp + 0x50]
mov r9d, dword [rax + 0xe0]
mov r8d, dword [rsp + 0x28]
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
call fcn.14006e540
mov eax, dword [rsp + 0x24]
mov ecx, 1
mov dword [rsp + 0x2c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x2c]
shl eax, cl
not eax
mov ecx, dword [rsp + 0x20]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x1400721c8
add rsp, 0x48
ret
Function at 0x140096cc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x38
movzx eax, word [rsp + 0x48]
add eax, 8
cdqe
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2 + 0x192]
mov dword [rsp], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp], eax
jbe 0x140096dfe
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x20]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, dword [rsp + 0x50]
jne 0x140096d4d
mov rax, qword [rsp + 0x18]
movzx eax, byte [rax + 4]
and eax, 0x1f
test eax, eax
je 0x140096d37
mov dword [rsp + 0xc], 1
jmp 0x140096d3f
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 0xc]
jmp 0x140096e77
mov rax, qword [rsp + 0x18]
movzx eax, byte [rax + 4]
and eax, 0x1f
test eax, eax
jne 0x140096ded
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x20]
movzx eax, word [rcx + rax*8 + 2]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x20]
movzx eax, word [rcx + rax*8 + 2]
mov dword [rsp + 8], eax
movzx eax, word [rsp + 0x48]
cmp eax, 0x42
je 0x140096dc8
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x20]
movzx eax, byte [rcx + rax*8 + 4]
mov ecx, dword [rsp + 8]
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 0x20]
movzx ecx, byte [rdx + rcx*8 + 4]
xor eax, ecx
and eax, 0x1f
test eax, eax
jne 0x140096ded
mov eax, dword [rsp + 8]
cmp dword [rsp + 4], eax
je 0x140096de6
cmp dword [rsp + 4], 0x8000
jae 0x140096de6
cmp dword [rsp + 8], 0x8000
jb 0x140096ded
xor eax, eax
jmp 0x140096e77
mov rax, qword [rsp + 0x18]
movzx eax, word [rax + 6]
mov dword [rsp], eax
jmp 0x140096ced
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2 + 0x192]
mov dword [rsp], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp], eax
jbe 0x140096e75
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x20]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, dword [rsp + 0x50]
jne 0x140096e67
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 4]
and eax, 0x1f
test eax, eax
je 0x140096e59
mov dword [rsp + 0x10], 1
jmp 0x140096e61
mov dword [rsp + 0x10], 0
mov eax, dword [rsp + 0x10]
jmp 0x140096e77
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 6]
mov dword [rsp], eax
jmp 0x140096e13
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400adb64
Capabilities:
Parse pe header

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

Function at 0x1400cae34
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400cacc7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cacc7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cacc7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cacc7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cacc7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cacc7
cmp dword [rcx + 0xf8], 0
je 0x1400cacc7
mov ecx, ebx
call fcn.1400cad68
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400cab58
cmp dword [rbp + 0x20], 0
je 0x1400cad14
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400cad1c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400cac60
Function at 0x1400de944
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400de66a
call fcn.1400caef8
mov dword [rax], 0x16
call fcn.1400d8b14
jmp 0x1400de7b5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400de7b5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400de7b5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400de699
lock or dword [rcx + 0x14], 0x10
jmp 0x1400de7b5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400de6ad
call fcn.1400e229c
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1400de6bd
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1400de6c0
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1400ca1fc
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1400de0c0
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400de7a3
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400de751
mov rcx, rbx
call fcn.1400ca1fc
cmp eax, 0xffffffff
je 0x1400de73c
mov rcx, rbx
call fcn.1400ca1fc
cmp eax, 0xfffffffe
je 0x1400de73c
mov rcx, rbx
call fcn.1400ca1fc
movsxd rdi, eax
lea r14, [0x140113ea0]
mov rcx, rbx
sar rdi, 6
call fcn.1400ca1fc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400de743
lea rdx, [0x1401124f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400de751
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400de775
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400de775
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400de775
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1400de793
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1400de79e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1400de7ba
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400de634

Function at 0x1400e48ec
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400e490c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400cae88
or eax, 0xffffffff
jmp 0x1400e490e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400046ac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r9, qword [rcx]
mov r12, rdx
movsxd rdx, dword [rcx + 0xc]
mov rdi, rcx
mov rcx, r12
mov r8d, 1
call fcn.14003c3ac
mov ecx, dword [rdi + 0xc]
cmp rax, 1
mov r8, rax
mov eax, ecx
sete r15b
cdq
idiv dword [rdi + 0x1c]
xor ebx, ebx
mov dword [rdi + 0x20], eax
cmp r8, 1
jne 0x140004835
add dword [rdi + 0x18], ecx
lea r9d, [rbx + 0x18]
or dword [rsp + 0x28], 0xffffffff
lea rcx, [rdi + 0x28]
mov r8, qword [rdi + 0x30]
lea rdx, str.read
mov dword [rsp + 0x20], eax
call fcn.140002f30
mov r14d, dword [rdi + 0x20]
mov ebp, ebx
mov r13d, dword [rdi + 0x1c]
mov edx, ebx
mov rsi, r12
test r14d, r14d
je 0x1400047ea
mov eax, r13d
dec r14d
mov r8d, ebx
cmp r13d, 1
jne 0x140004755
cmp byte [rsi], bl
jmp 0x140004758
cmp word [rsi], bx
sete r8b
mov ecx, eax
test r8d, r8d
je 0x14000478e
test rdx, rdx
je 0x140004786
cmp rsi, rdx
je 0x140004786
imul eax, ebp
mov rcx, rdx
mov r8, rsi
sub r8, rdx
cdqe
sub rcx, rax
call fcn.140033b00
mov ecx, dword [rdi + 0x1c]
movsxd rdx, ecx
add rdx, rsi
inc ebp
movsxd rax, ecx
add rsi, rax
mov eax, ecx
test r14d, r14d
jne 0x140004745
test rdx, rdx
je 0x1400047bc
cmp rsi, rdx
je 0x1400047bc
imul ecx, ebp
sub rsi, rdx
mov r8, rsi
movsxd rax, ecx
mov rcx, rdx
sub rcx, rax
call fcn.140033b00
lea rsi, [rdi + 0x28]
test ebp, ebp
je 0x1400047ee
or dword [rsp + 0x28], 0xffffffff
lea rdx, str.nulls_removed
mov r9d, 1
mov dword [rsp + 0x20], ebp
mov r8, rbx
mov rcx, rsi
call fcn.140002f30
sub dword [rdi + 0x20], ebp
jmp 0x1400047ee
lea rsi, [rdi + 0x28]
cmp dword [rdi + 0x1c], 1
jle 0x140004835
test byte [rdi + 8], 0x80
je 0x140004835
movsxd rdx, dword [rdi + 0x20]
jmp 0x140004811
dec rdx
movzx eax, word [r12 + rdx*2]
rol ax, 8
mov word [r12 + rdx*2], ax
test rdx, rdx
jne 0x140004800
or dword [rsp + 0x28], 0xffffffff
lea rdx, str.endian_swap
or dword [rsp + 0x20], 0xffffffff
xor r9d, r9d
mov r8, rbx
mov rcx, rsi
call fcn.140002f30
test r15b, r15b
jne 0x140004842
mov rcx, rdi
call fcn.14000450c
mov rbx, qword [rsp + 0x60]
mov al, r15b
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140004d54
Capabilities:
Write file on windows

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, 0x30
mov rbx, rcx
mov rdi, rdx
movsxd rcx, dword [rcx + 0x20]
mov eax, dword [rbx + 0x1c]
imul eax, ecx
test r8, r8
cmovne rdi, r8
xor ebp, ebp
or r14, 0xffffffffffffffff
test byte [rbx + 8], 0x80
mov dword [rbx + 0xc], eax
je 0x140004e07
test rdx, rdx
jne 0x140004dc9
lea eax, [rbp + 2]
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.140002b8c
mov ecx, dword [rbx + 0x20]
mov rdx, rdi
add ecx, ecx
mov rbp, rax
movsxd r8, ecx
mov rcx, rax
call fcn.140033b00
mov ecx, dword [rbx + 0x20]
mov rdx, rbp
mov rdi, rbp
movsxd rcx, ecx
jmp 0x140004ddd
dec rcx
movzx eax, word [rdx + rcx*2]
rol ax, 8
mov word [rdx + rcx*2], ax
test rcx, rcx
jne 0x140004dce
lea rsi, [rbx + 0x28]
mov dword [rsp + 0x28], r14d
mov rcx, rsi
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea rdx, str.endian_swap
xor r8d, r8d
call fcn.140002f30
jmp 0x140004e0b
lea rsi, [rbx + 0x28]
movsxd rdx, dword [rbx + 0xc]
mov r8d, 1
mov r9, qword [rbx]
mov rcx, rdi
call fcn.14003c6c4
cmp rax, 1
sete dil
test rbp, rbp
je 0x140004e35
mov rcx, rbp
call fcn.14001279c
test dil, dil
je 0x140004e67
mov eax, dword [rbx + 0xc]
lea rdx, str.write
add dword [rbx + 0x18], eax
mov r9d, 0x18
mov eax, dword [rbx + 0x20]
mov rcx, rsi
mov r8, qword [rbx + 0x30]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.140002f30
jmp 0x140004e6f
mov rcx, rbx
call fcn.14000450c
mov rbx, qword [rsp + 0x40]
mov al, dil
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret