joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180080ac0
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 0x180080973
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180080973
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180080973
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180080973
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180080973
cmp dword [rcx + 0x84], 0xe
jbe 0x180080973
cmp dword [rcx + 0xf8], 0
je 0x180080973
mov ecx, ebx
call fcn.180080a24
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.180080800
nop
cmp dword [rbp + 0x20], 0
je 0x1800809c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800809cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x180080904

Function at 0x180081088
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1800810bf
call fcn.180083df8
mov dword [rax], 0x16
call fcn.180080eb8
xor eax, eax
jmp 0x18008114d
mov rdx, r9
mov rcx, r8
call fcn.180081024
mov rbx, rax
test rax, rax
je 0x18008114a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x180080f50]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x180081137
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180083d6c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18008111e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18008112d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.180083e90
jmp 0x18008114a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180081147
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800870e4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180087114
xor eax, eax
jmp 0x1800871d7
mov rbp, rbx
cmp word [rax], si
je 0x180087139
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180087120
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18008711c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180087004
movsxd r14, eax
test eax, eax
jne 0x180087177
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18008710d
mov rcx, r14
call fcn.18008564c
mov rdi, rax
test rax, rax
jne 0x180087190
xor ecx, ecx
call fcn.180083e90
jmp 0x18008716c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180087004
test eax, eax
jne 0x1800871c1
mov rcx, rdi
call fcn.180083e90
jmp 0x1800871cb
xor ecx, ecx
call fcn.180083e90
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800871f4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18008727b
mov rsi, rbx
cmp word [rax], bp
je 0x18008723a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180087224
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180087220
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18008564c
mov rdi, rax
test rax, rax
je 0x180087268
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18008d6f0
mov rbp, rdi
xor ecx, ecx
call fcn.180083e90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18008cf50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18008cf78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18008cf78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x180001100
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001131
xor eax, eax
lea r8, section..text
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140010990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x28]
mov rbx, rcx
mov rax, qword [rdi]
mov qword [rcx + 0x28], rax
mov rax, qword [rcx + 0x18]
movzx r9d, byte [rdi + 0xc]
mov r8, qword [rax + 0x30]
movzx eax, byte [r8 + 0x4a]
cmp al, r9b
jbe 0x1400109ee
nop
dec al
movzx eax, al
mov byte [r8 + 0x4a], al
movzx edx, word [r8 + rax*2 + 0xc4]
mov rax, qword [r8]
add rdx, rdx
mov rcx, qword [rax + 0x30]
mov eax, dword [r8 + 0x30]
mov dword [rcx + rdx*8 + 0xc], eax
movzx eax, byte [r8 + 0x4a]
cmp al, r9b
ja 0x1400109c0
cmp byte [rdi + 0xd], 0
je 0x140010a0e
mov rax, qword [rbx + 0x18]
mov rcx, rbx
movzx edx, byte [rdi + 0xc]
shl edx, 6
or edx, 0x23
mov r8d, dword [rax + 8]
call fcn.140013380
movzx eax, byte [rbx + 0x4a]
lea rdx, [rbx + 0x38]
mov dword [rbx + 0x3c], eax
mov rcx, rbx
mov r8d, dword [rdi + 8]
mov eax, dword [rbx + 0x30]
mov dword [rbx + 0x34], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140013480

Function at 0x1400163f0
Capabilities:
Encode data using xor

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 rsi, r8
mov edi, r8d
shr r8, 5
mov rbp, rdx
inc r8
mov r14, rcx
mov r9, rsi
cmp rsi, r8
jb 0x14001644e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r9 + rdx - 1]
mov eax, edi
shl eax, 5
sub r9, r8
add ecx, eax
mov eax, edi
shr eax, 2
add ecx, eax
xor edi, ecx
cmp r9, r8
jae 0x140016430
mov r15, qword [r14 + 0x20]
movsxd rax, edi
movsxd rcx, dword [r15 + 0xc]
mov rbx, qword [r15]
dec rcx
and rcx, rax
mov rbx, qword [rbx + rcx*8]
test rbx, rbx
je 0x140016495
nop dword [rax + rax]
cmp qword [rbx + 0x10], rsi
jne 0x14001648d
lea rdx, [rbx + 0x18]
mov r8, rsi
mov rcx, rbp
call fcn.140022140
test eax, eax
je 0x14001654f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140016470
lea rax, [rsi + 1]
cmp rax, 0xffffffffffffffe5
jbe 0x1400164ae
lea rdx, str.memory_allocation_error:_block_too_big
mov rcx, r14
call fcn.140012cc0
lea r9, [rsi + 0x19]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call fcn.140015cf0
mov r8, rsi
mov rbx, rax
mov qword [rax + 0x10], rsi
mov dword [rax + 0xc], edi
mov rcx, qword [r14 + 0x20]
movzx edx, byte [rcx + 0x20]
lea rcx, [rax + 0x18]
and dl, 3
mov byte [rax + 8], 4
mov byte [rax + 9], dl
mov rdx, rbp
mov byte [rax + 0xa], 0
call fcn.140022240
mov byte [rbx + rsi + 0x18], 0
mov r8, qword [r14 + 0x20]
mov eax, edi
mov edx, dword [r8 + 0xc]
dec edx
and rdx, rax
mov rax, qword [r8]
mov rcx, qword [rax + rdx*8]
mov qword [rbx], rcx
mov rax, qword [r8]
mov qword [rax + rdx*8], rbx
inc dword [r8 + 8]
mov edx, dword [r8 + 0xc]
cmp dword [r8 + 8], edx
jbe 0x140016533
cmp edx, 0x3ffffffe
jg 0x140016533
add edx, edx
mov rcx, r14
call fcn.140016570
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
movzx eax, byte [r15 + 0x20]
movzx ecx, byte [rbx + 9]
not eax
and eax, ecx
test al, 3
je 0x140016533
xor cl, 3
mov byte [rbx + 9], cl
jmp 0x140016533
Function at 0x140016770
Capabilities:
Encode data using xor

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, 0x20
mov r14, rcx
lea rax, str.__index
mov r15d, 0x128
mov r13d, 0x11
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r15 + rax - 0x128]
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [rdi + rbp], 0
jne 0x1400167c0
mov r8, rdi
mov esi, edi
shr r8, 5
mov rdx, rdi
inc r8
cmp rdi, r8
jb 0x1400167fd
nop dword [rax]
movzx ecx, byte [rdx + rbp - 1]
mov eax, esi
shl eax, 5
sub rdx, r8
add ecx, eax
mov eax, esi
shr eax, 2
add ecx, eax
xor esi, ecx
cmp rdx, r8
jae 0x1400167e0
mov r12, qword [r14 + 0x20]
movsxd rax, esi
movsxd rcx, dword [r12 + 0xc]
mov rbx, qword [r12]
dec rcx
and rcx, rax
mov rbx, qword [rbx + rcx*8]
test rbx, rbx
je 0x140016845
nop dword [rax]
cmp qword [rbx + 0x10], rdi
jne 0x14001683d
lea rdx, [rbx + 0x18]
mov r8, rdi
mov rcx, rbp
call fcn.140022140
test eax, eax
je 0x140016929
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140016820
lea rax, [rdi + 1]
cmp rax, 0xffffffffffffffe5
jbe 0x14001685e
lea rdx, str.memory_allocation_error:_block_too_big
mov rcx, r14
call fcn.140012cc0
lea r9, [rdi + 0x19]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call fcn.140015cf0
mov rbx, rax
mov r8, rdi
mov rdx, rbp
mov qword [rax + 0x10], rdi
mov dword [rax + 0xc], esi
mov rax, qword [r14 + 0x20]
movzx ecx, byte [rax + 0x20]
and cl, 3
mov byte [rbx + 8], 4
mov byte [rbx + 9], cl
lea rcx, [rbx + 0x18]
mov byte [rbx + 0xa], 0
call fcn.140022240
mov byte [rbx + rdi + 0x18], 0
mov r8, qword [r14 + 0x20]
mov eax, esi
mov edx, dword [r8 + 0xc]
dec edx
and rdx, rax
mov rax, qword [r8]
mov rcx, qword [rax + rdx*8]
mov qword [rbx], rcx
mov rax, qword [r8]
mov qword [rax + rdx*8], rbx
inc dword [r8 + 8]
mov edx, dword [r8 + 0xc]
cmp dword [r8 + 8], edx
jbe 0x1400168e3
cmp edx, 0x3ffffffe
jg 0x1400168e3
add edx, edx
mov rcx, r14
call fcn.140016570
mov rax, qword [r14 + 0x20]
mov qword [r15 + rax], rbx
mov rax, qword [r14 + 0x20]
mov rcx, qword [r15 + rax]
add r15, 8
lea rax, str.__index
or byte [rcx + 9], 0x20
sub r13, 1
jne 0x1400167b0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movzx eax, byte [r12 + 0x20]
movzx ecx, byte [rbx + 9]
not eax
and eax, ecx
test al, 3
je 0x1400168e3
xor cl, 3
mov byte [rbx + 9], cl
jmp 0x1400168e3
Function at 0x140018c30
Capabilities:
Encode data using xor

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, 0x20
mov r13, rcx
lea r12, [0x140058350]
xor r15d, r15d
nop dword [rax]
mov rbp, qword [r12]
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rdi + rbp], 0
jne 0x140018c70
mov r8, rdi
mov esi, edi
shr r8, 5
mov rdx, rdi
inc r8
cmp rdi, r8
jb 0x140018cad
nop dword [rax]
movzx ecx, byte [rdx + rbp - 1]
mov eax, esi
shl eax, 5
sub rdx, r8
add ecx, eax
mov eax, esi
shr eax, 2
add ecx, eax
xor esi, ecx
cmp rdx, r8
jae 0x140018c90
mov r14, qword [r13 + 0x20]
movsxd rax, esi
movsxd rcx, dword [r14 + 0xc]
mov rbx, qword [r14]
dec rcx
and rcx, rax
mov rbx, qword [rbx + rcx*8]
test rbx, rbx
je 0x140018cf5
nop word [rax + rax]
cmp qword [rbx + 0x10], rdi
jne 0x140018ced
lea rdx, [rbx + 0x18]
mov r8, rdi
mov rcx, rbp
call fcn.140022140
test eax, eax
je 0x140018dcc
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140018cd0
lea rax, [rdi + 1]
cmp rax, 0xffffffffffffffe5
jbe 0x140018d0e
lea rdx, str.memory_allocation_error:_block_too_big
mov rcx, r13
call fcn.140012cc0
lea r9, [rdi + 0x19]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.140015cf0
mov rbx, rax
mov r8, rdi
mov rdx, rbp
mov qword [rax + 0x10], rdi
mov dword [rax + 0xc], esi
mov rax, qword [r13 + 0x20]
movzx ecx, byte [rax + 0x20]
and cl, 3
mov byte [rbx + 8], 4
mov byte [rbx + 9], cl
lea rcx, [rbx + 0x18]
mov byte [rbx + 0xa], 0
call fcn.140022240
mov byte [rbx + rdi + 0x18], 0
mov r8, qword [r13 + 0x20]
mov eax, esi
mov edx, dword [r8 + 0xc]
dec edx
and rdx, rax
mov rax, qword [r8]
mov rcx, qword [rax + rdx*8]
mov qword [rbx], rcx
mov rax, qword [r8]
mov qword [rax + rdx*8], rbx
inc dword [r8 + 8]
mov edx, dword [r8 + 0xc]
cmp dword [r8 + 8], edx
jbe 0x140018d93
cmp edx, 0x3ffffffe
jg 0x140018d93
add edx, edx
mov rcx, r13
call fcn.140016570
or byte [rbx + 9], 0x20
lea eax, [r15 + 1]
inc r15d
mov byte [rbx + 0xa], al
add r12, 8
cmp r15d, 0x15
jl 0x140018c60
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movzx eax, byte [r14 + 0x20]
movzx ecx, byte [rbx + 9]
not eax
and eax, ecx
test al, 3
je 0x140018d93
xor cl, 3
mov byte [rbx + 9], cl
jmp 0x140018d93
Function at 0x14001c920
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14006b008]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rsi, r8
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x38]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], r8
mov rdi, rdx
mov r14, rcx
mov ebx, 0x200
nop dword [rax]
lea rax, [rsp + 0x20]
sub r8, rax
sub r8, 0x18
je 0x14001c9a0
lea rdx, [rsp + 0x38]
call fcn.140019a10
inc dword [rsp + 0x28]
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140009810
cmp rbx, rsi
lea rcx, [rsp + 0x38]
mov rax, rsi
mov r9, rdi
cmovbe rax, rbx
mov edx, 1
mov r8, rax
mov rbx, rax
call fcn.140042ffc
mov r8, qword [rsp + 0x20]
add r8, rax
mov qword [rsp + 0x20], r8
sub rsi, rax
je 0x14001c9e0
cmp rax, rbx
jne 0x14001c9e0
mov rcx, qword [rsp + 0x30]
jmp 0x14001c970
lea rax, [rsp + 0x20]
sub r8, rax
sub r8, 0x18
je 0x14001ca13
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call fcn.140019a10
mov ebx, dword [rsp + 0x28]
lea rax, [rsp + 0x38]
inc ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], ebx
jmp 0x14001ca17
mov ebx, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
cmp ebx, 2
jl 0x14001ca63
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + 0x70]
cmp qword [rcx + 0x78], rax
jb 0x14001ca37
mov rcx, rdi
call fcn.140011db0
mov r8, qword [rdi + 0x10]
mov edx, ebx
sub r8, qword [rdi + 0x18]
mov rcx, rdi
sar r8, 4
dec r8d
call fcn.140016950
lea eax, [rbx - 1]
movsxd rcx, eax
neg rcx
shl rcx, 4
add qword [rdi + 0x10], rcx
jmp 0x14001ca8c
test ebx, ebx
jne 0x14001ca8c
mov rbx, qword [rdi + 0x10]
lea rdx, [0x140058d66]
xor r8d, r8d
mov rcx, rdi
call fcn.1400163f0
mov qword [rbx], rax
mov dword [rbx + 8], 4
add qword [rdi + 0x10], 0x10
mov dword [rsp + 0x28], 1
test rsi, rsi
je 0x14001caab
mov edx, 0xffffffff
mov rcx, r14
call fcn.140019810
test rax, rax
je 0x14001cab0
mov eax, 1
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140021300
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140021cec
Capabilities:
Parse pe header

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

Function at 0x140043e64
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 0x140043ccf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140043ccf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140043ccf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140043ccf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140043ccf
cmp dword [rcx + 0x84], 0xe
jbe 0x140043ccf
cmp dword [rcx + 0xf8], 0
je 0x140043ccf
mov ecx, ebx
call fcn.140043d80
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.140043b5c
nop
cmp dword [rbp + 0x20], 0
je 0x140043d1d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140043d28
int3
xor r8d, r8d
xor edx, edx
jmp 0x140043c60
Function at 0x14004dfcc
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, [0x14006c5b0]
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 0x14004e023
cmp word [rdx], r13w
jne 0x14004e023
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004e028
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004e14d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004e16e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004e061
mov rdx, r9
mov word [rbx], cx
jmp 0x14004e088
cmp r9, r8
jae 0x14004e098
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 0x14004e042
jmp 0x14004e14d
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 0x14004e142
cmp dword [rsp + 0x80], esi
je 0x14004e142
lea r8, [0x14006c5b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004e11a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004e0ea
mov word [rbx], r13w
jmp 0x14004e14a
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 0x14004e0f7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004e14a
cmp word [rsp + 0x70], r13w
jne 0x14004e127
cmp rbx, r14
je 0x14004e0e4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140054934
cmp word [rsp + 0x70], r13w
je 0x14004e14d
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, [0x14006c5b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004e147
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004e14d
Function at 0x14004eecc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004eee2
mov al, 1
jmp 0x14004ef42
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004eef3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004ef40
mov ecx, dword [rcx + 0x18]
nop
call fcn.140051da4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004ef40
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004ef40
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004ef40
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004ef42
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14004f170
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004f190
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400254b4
or eax, 0xffffffff
jmp 0x14004f192
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400513a0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400513d0
xor eax, eax
jmp 0x140051493
mov rbp, rbx
cmp word [rax], si
je 0x1400513f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400513dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400513d8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400512c0
movsxd r14, eax
test eax, eax
jne 0x140051433
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400513c9
mov rcx, r14
call fcn.14004ab14
mov rdi, rax
test rax, rax
jne 0x14005144c
xor ecx, ecx
call fcn.14004a1e4
jmp 0x140051428
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400512c0
test eax, eax
jne 0x14005147d
mov rcx, rdi
call fcn.14004a1e4
jmp 0x140051487
xor ecx, ecx
call fcn.14004a1e4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret