joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180054590
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18006eebc], 0
je 0x1800545ad
mov eax, dword [0x18006eebc]
jmp 0x180054673
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800545c0
xor eax, eax
jmp 0x180054673
mov ecx, 0x10
call fcn.180055cd8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18005462e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180054613
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180055cd0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18006eebc], eax
mov qword [0x18006eec0], 0
mov eax, dword [rsp + 0x20]
jmp 0x180054673
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180054648
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800545e9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18006eec8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18006eec8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x14001130c
Capabilities:
Terminate process

Disassembly:
jmp 0x140016200
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 0x1400113d4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017550
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017570
xor al, al
jmp 0x1400175f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017583
xor al, al
jmp 0x1400175f1
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 0x1400175ad
xor al, al
jmp 0x1400175f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400175c1
xor al, al
jmp 0x1400175f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400175d3
xor al, al
jmp 0x1400175f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400175ef
xor al, al
jmp 0x1400175f1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x1400043f0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400019c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002692
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140007108]
test eax, eax
je 0x14000272a
lea rax, [0x1400070e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140007110]
mov qword [rbp - 8], rax
jmp 0x14000270e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002702
cmp qword [rbp - 0x10], 0
je 0x140002702
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400026c8
lea rax, [0x1400070e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000272b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002830
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002858
mov eax, 0
jmp 0x1400028a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002881
mov eax, 0
jmp 0x1400028a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400028a1
mov eax, 0
jmp 0x1400028a6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400028ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000292a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002921
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002921
mov rax, qword [rbp - 8]
jmp 0x14000293f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400028f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400010d0
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140049040]
xor rax, rsp
mov qword [rsp + 0x290], rax
xorps xmm0, xmm0
xor edi, edi
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], edi
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call fcn.140002490
lea edx, [rdi + 1]
mov rcx, qword [rax + 0x30]
call fcn.140008190
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rsi, rax
call fcn.140008360
test eax, eax
jne 0x140001137
mov ebx, edi
jmp 0x140001144
mov edx, eax
mov rcx, rsi
call fcn.140007c50
mov rbx, rax
mov edx, 1
lea r8d, [rdx + 0x3b]
call fcn.140006d80
call rax
mov rcx, rax
lea r8, [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 0x30
xor edx, edx
mov qword [rsp + 0x20], rax
call rbx
mov ebx, dword [rsp + 0x60]
mov edx, 1
lea r8d, [rdx + 0x7f]
call fcn.140006d80
mov r8d, ebx
xor edx, edx
mov ecx, 0x400
call rax
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x104
mov rbx, rax
call fcn.140006d50
xor edx, edx
lea rcx, [rsp + 0x180]
mov r8d, 0x104
call fcn.140006d50
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
mov edx, 1
lea r8d, [rdx + 0x3b]
call fcn.140006d80
call rax
mov rcx, rax
lea rdx, [rsp + 0x180]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x14000120b
call fcn.140014434
mov qword [rsi + 0x80], rdi
mov rcx, rsi
call fcn.140014434
lea rcx, [rsp + 0x70]
lea r9, [rsp + 0x180]
sub r9, rcx
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rcx]
movzx edx, byte [rcx + r9]
sub r8d, edx
jne 0x140001245
inc rcx
test edx, edx
jne 0x140001230
test r8d, r8d
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14000a600
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140002490
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
lea rsi, [0x14002e7e0]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rsi + rdx*2 + 2], 0
lea rdx, [rdx + 1]
jne 0x1400024b0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rdi
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14000250e
lea rdi, [rdx + rdx]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x60]
mov r8, rdi
mov rdx, rsi
call fcn.140014718
test eax, eax
je 0x140002520
mov rax, qword gs:[0x60]
mov rbx, qword [rbx]
mov rcx, qword [rax + 0x18]
cmp rbx, qword [rcx + 0x10]
je 0x14000250e
test rbx, rbx
jne 0x1400024e0
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140006d80
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov ebx, 2
mov edi, edx
mov r11d, 0x135
xor r9d, r9d
lea r10d, [rbx - 3]
nop word [rax + rax]
lea eax, [r11 + 7]
add r11d, 0x13
cdq
lea ecx, [r10 + 2]
sub eax, edx
sar eax, 1
add eax, ebx
lea ebx, [r10 + 1]
add eax, r11d
lea r11d, [rax + rax*2]
lea eax, [r10 + 1]
add r11d, r11d
cmp eax, 3
mov r10d, 6
cmovne r10d, ecx
cmp r10d, 0xd
jl 0x140006da0
mov eax, r11d
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
lea eax, [rbx*2 + 7]
add eax, r10d
add eax, r11d
mov ecx, eax
test eax, eax
jle 0x140006e05
test al, 1
jne 0x140006e05
cdq
inc r9d
sub eax, edx
sar eax, 1
test eax, eax
jg 0x140006df5
imul r9d, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp r9d, eax
jne 0x140006e25
mov edx, r8d
mov ecx, edi
mov rbx, qword [rsp + 0x10]
pop rdi
jmp fcn.140006e30
mov rbx, qword [rsp + 0x10]
xor eax, eax
pop rdi
ret
Function at 0x140008190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
mov edx, 0x98
mov ecx, 1
call fcn.14000eeb4
mov rbx, rax
test rax, rax
je 0x140008347
mov dword [rax], esi
lea rdx, [rdi + 0x3c]
xor esi, esi
mov qword [rax + 8], 0xffffffffffffffff
mov rcx, rax
mov dword [rax + 4], esi
mov dword [rax + 0x10], esi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x28], rdi
call fcn.140007fc0
mov edx, eax
mov rcx, rbx
add rdx, qword [rbx + 0x20]
mov qword [rbx + 0x30], rdx
lea rax, [rdx + 0x18]
add rdx, 0x14
mov qword [rbx + 0x38], rax
add rax, 0x70
mov qword [rbx + 0x40], rax
call fcn.140007f20
mov rdx, qword [rbx + 0x40]
movzx ecx, ax
add rcx, qword [rbx + 0x38]
mov qword [rbx + 0x48], rcx
mov rcx, rbx
call fcn.140007fc0
test eax, eax
jne 0x14000823c
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x70], rsi
jmp 0x1400082b3
mov edx, eax
mov rcx, rbx
call fcn.140007c50
mov rcx, rbx
mov qword [rbx + 0x50], rax
lea rdx, [rax + 0x20]
call fcn.140007fc0
mov edx, eax
mov rcx, rbx
call fcn.140007c50
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x1c
mov qword [rbx + 0x58], rax
call fcn.140007fc0
mov edx, eax
mov rcx, rbx
call fcn.140007c50
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x24
mov qword [rbx + 0x68], rax
call fcn.140007fc0
mov edx, eax
mov rcx, rbx
call fcn.140007c50
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x18
mov qword [rbx + 0x70], rax
call fcn.140007fc0
mov dword [rbx + 0x60], eax
mov rdx, qword [rbx + 0x40]
mov rcx, rbx
add rdx, 0x30
mov qword [rbx + 0x80], rsi
call fcn.140007fc0
test eax, eax
je 0x14000832d
mov edx, eax
mov rcx, rbx
call fcn.140007c50
mov rcx, rbx
mov qword [rbx + 0x88], rax
lea rdx, [rax + 0xc]
call fcn.140007fc0
cmp eax, 2
jne 0x14000832d
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
add rdx, 0x14
call fcn.140007fc0
mov edx, eax
mov rcx, rbx
call fcn.140007c50
mov rdx, rax
mov qword [rbx + 0x90], rax
mov rcx, rbx
call fcn.140007fc0
cmp eax, 0x53445352
je 0x140008334
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x88], rsi
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 1
call fcn.14000eea8
int3
Function at 0x14000a2d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp dword [0x14006bd60], 0
jne 0x14000a46c
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
call fcn.140002490
mov edx, 1
mov rcx, qword [rax + 0x30]
call fcn.140008190
xor edi, edi
lea r15, [0x14006bd60]
mov rsi, rax
mov r14d, edi
mov ebp, edi
cmp dword [rax + 0x60], edi
jbe 0x14000a3f0
mov qword [rsp + 0x50], rbx
nop dword [rax]
mov rax, qword [rsi + 0x58]
mov rbx, qword [rsi + 0x28]
mov ecx, ebp
mov r9d, dword [rax + rcx*4]
cmp dword [rsi], edi
je 0x14000a348
lea rdx, [rbx + r9]
jmp 0x14000a383
mov rax, qword [rsi + 0x30]
mov r8d, edi
mov r11, qword [rsi + 0x48]
movzx r10d, word [rax + 6]
test r10d, r10d
je 0x14000a380
lea rax, [r11 + 8]
mov edx, dword [rax + 4]
cmp edx, r9d
ja 0x14000a374
add edx, dword [rax]
cmp r9d, edx
jb 0x14000a476
inc r8d
add rax, 0x28
cmp r8d, r10d
jb 0x14000a361
mov rdx, rdi
cmp byte [rdx], 0x5a
jne 0x14000a3e0
cmp byte [rdx + 1], 0x77
jne 0x14000a3e0
mov r9d, edi
mov r8d, 0xe14b0d06
mov rax, rdx
nop word [rax + rax]
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc r9d
add ecx, eax
mov eax, r9d
add rax, rdx
xor r8d, ecx
cmp byte [rax], dil
jne 0x14000a3a0
mov eax, r14d
lea rcx, [rax + rax*2]
lea rbx, [rcx*4]
mov rcx, rsi
mov dword [rbx + r15 + 4], r8d
call fcn.140008360
mov dword [rbx + r15 + 8], eax
inc r14d
inc ebp
cmp ebp, dword [rsi + 0x60]
jb 0x14000a330
mov rbx, qword [rsp + 0x50]
mov edx, r14d
lea r9, [0x14000a290]
mov r8d, 0xc
mov dword [0x14006bd60], r14d
lea rcx, [0x14006bd64]
call fcn.140016390
mov eax, dword [0x14006bd60]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
test eax, eax
je 0x14000a447
nop dword [rax]
mov eax, edi
lea rdx, [rax + rax*2]
mov dword [r15 + rdx*4 + 0xc], edi
inc edi
mov eax, dword [0x14006bd60]
cmp edi, eax
jb 0x14000a430
mov edx, eax
lea r9, [0x14000a2b0]
mov r8d, 0xc
lea rcx, [0x14006bd64]
call fcn.140016390
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x48
ret
mov eax, r8d
lea rcx, [rax + rax*4]
lea rdx, [r11 + rcx*8]
test rdx, rdx
je 0x14000a380
sub r9d, dword [rdx + 0xc]
mov edx, dword [rdx + 0x14]
mov eax, r9d
add rax, rbx
add rdx, rax
jmp 0x14000a383

Function at 0x14000aec0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000af0a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000af0a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000af0a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000af0a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000af0a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000af0c
xor al, al
add rsp, 0x28
ret
Function at 0x14000eea8
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 0x14000ed13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ed13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ed13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ed13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ed13
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ed13
cmp dword [rcx + 0xf8], 0
je 0x14000ed13
mov ecx, ebx
call fcn.14000edc4
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.14000eba0
nop
cmp dword [rbp + 0x20], 0
je 0x14000ed61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ed6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000eca4
Function at 0x14001d6f4
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 0x14001d77b
mov rsi, rbx
cmp word [rax], bp
je 0x14001d73a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001d724
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001d720
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140018918
mov rdi, rax
test rax, rax
je 0x14001d768
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140025070
mov rbp, rdi
xor ecx, ecx
call fcn.140017ce4
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 0x1400209a8
Capabilities:
Get file size

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

Function at 0x140021e2c
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, [0x14006a770]
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 0x140021e83
cmp word [rdx], r13w
jne 0x140021e83
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140021e88
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140021fad
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140021fce
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140021ec1
mov rdx, r9
mov word [rbx], cx
jmp 0x140021ee8
cmp r9, r8
jae 0x140021ef8
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 0x140021ea2
jmp 0x140021fad
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 0x140021fa2
cmp dword [rsp + 0x80], esi
je 0x140021fa2
lea r8, [0x14006a770]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140021f7a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140021f4a
mov word [rbx], r13w
jmp 0x140021faa
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 0x140021f57
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140021faa
cmp word [rsp + 0x70], r13w
jne 0x140021f87
cmp rbx, r14
je 0x140021f44
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140021d4c
cmp word [rsp + 0x70], r13w
je 0x140021fad
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, [0x14006a770]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140021fa7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140021fad
Function at 0x140023b9c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140021d4c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140021d4c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140023cec
cmp rax, 0xffffffffffffffff
je 0x140023cec
xor edi, edi
test rbp, rbp
jle 0x140023c97
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140017c6c
mov rbx, rax
test rax, rax
jne 0x140023c24
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140023c8d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400171e0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001bfc4
cmp eax, 0xffffffff
je 0x140023c6d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140023c34
mov edx, r15d
mov ecx, r14d
call fcn.1400171e0
jmp 0x140023c8d
cmp byte [rsi + 0x38], dil
je 0x140023c84
cmp dword [rsi + 0x34], 5
jne 0x140023c84
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140023c8d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140017ce4
jmp 0x140023d00
jns 0x140023d00
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140021d4c
cmp rax, 0xffffffffffffffff
jne 0x140023cb8
cmp byte [rsi + 0x30], dil
je 0x140023d00
mov edi, dword [rsi + 0x2c]
jmp 0x140023d00
mov ecx, r14d
call fcn.14001b58c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140023d00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140023d00
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140023cf9
mov eax, dword [rsi + 0x2c]
jmp 0x140023cfe
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140021d4c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140024b10
Capabilities:
Parse pe header

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