joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007550
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub rsp, 0xf8
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0xbc], eax
cmp dword [rsp + 0xbc], 2
jae 0x140007591
mov dword [rsp + 0xf4], 1
jmp 0x1400076e9
mov dword [rsp + 0x78], 0x40
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x80]
shr rcx, 0x14
mov dword [rsp + 0x74], ecx
cmp dword [rsp + 0x74], 0x800
jae 0x1400075d2
mov dword [rsp + 0xf4], 1
jmp 0x1400076e9
xor edx, edx
xor eax, eax
mov r9d, eax
lea rcx, str..PhysicalDrive0
mov r8d, 3
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x68], rax
jne 0x14000762c
mov dword [rsp + 0xf4], 1
jmp 0x1400076e9
xor eax, eax
mov r8d, eax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
mov edx, 0x70000
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x18
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 0
jne 0x14000768d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0xf4], 1
jmp 0x1400076e9
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x5c]
imul rax, rcx
mov ecx, dword [rsp + 0x60]
imul rax, rcx
mov ecx, dword [rsp + 0x64]
imul rax, rcx
cqo
mov ecx, 0x40000000
idiv rcx
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x48], 0x64
jae 0x1400076de
mov dword [rsp + 0xf4], 1
jmp 0x1400076e9
mov dword [rsp + 0xf4], 0
mov eax, dword [rsp + 0xf4]
add rsp, 0xf8
ret

Function at 0x140007700
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x168
xor edx, edx
mov qword [rsp + 0x158], rcx
mov ecx, 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x150], rax
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x150], rax
jne 0x140007748
mov dword [rsp + 0x164], 0
jmp 0x140007809
mov dword [rsp + 0x20], 0x130
mov rcx, qword [rsp + 0x150]
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
cmp eax, 0
jne 0x140007789
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x164], 0
jmp 0x140007809
jmp 0x14000778e
mov rdx, qword [rsp + 0x158]
lea rax, [rsp + 0x20]
add rax, 0x2c
mov rcx, rax
call fcn.14000c750
cmp eax, 0
jne 0x1400077d0
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x164], 1
jmp 0x140007809
jmp 0x1400077d5
mov rcx, qword [rsp + 0x150]
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
cmp eax, 0
jne 0x14000778e
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x164], 0
mov eax, dword [rsp + 0x164]
add rsp, 0x168
ret
Function at 0x140007f44
Capabilities:
Parse pe header

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

Function at 0x14000cfc8
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 0x14000ce33
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ce33
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ce33
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ce33
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ce33
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ce33
cmp dword [rcx + 0xf8], 0
je 0x14000ce33
mov ecx, ebx
call fcn.14000cee4
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.14000ccc0
nop
cmp dword [rbp + 0x20], 0
je 0x14000ce81
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ce8c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000cdc4
Function at 0x140016398
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 0x1400163c8
xor eax, eax
jmp 0x14001648b
mov rbp, rbx
cmp word [rax], si
je 0x1400163ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400163d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400163d0
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.1400162b8
movsxd r14, eax
test eax, eax
jne 0x14001642b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400163c1
mov rcx, r14
call fcn.1400101c4
mov rdi, rax
test rax, rax
jne 0x140016444
xor ecx, ecx
call fcn.140010224
jmp 0x140016420
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.1400162b8
test eax, eax
jne 0x140016475
mov rcx, rdi
call fcn.140010224
jmp 0x14001647f
xor ecx, ecx
call fcn.140010224
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 0x14001ac6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ac82
mov al, 1
jmp 0x14001ace2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ac93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001ace0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140016d9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001ace0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ace0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001ace0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001ace2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001bc08
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140010260
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001bc92
cmp byte [rbp - 0x21], r15b
je 0x14001bc8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001bcc8
call fcn.140011320
test eax, eax
jne 0x14001bcb4
cmp byte [rbp - 0x21], r15b
je 0x14001bcac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001bcc8
cmp byte [rbp - 0x21], r15b
je 0x14001bcc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140012168
test eax, eax
jne 0x14001bd68
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140010260
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001bd07
cmp byte [rbp - 0x21], r15b
je 0x14001bd3c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001bd3c
call fcn.140011320
test eax, eax
jne 0x14001bd28
cmp byte [rbp - 0x21], r15b
je 0x14001bd21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001bd3c
cmp byte [rbp - 0x21], r15b
je 0x14001bd39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140012168
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001bd68
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001bd6b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001bd79
mov rcx, rdi
call fcn.140010224
cmp byte [rbp + 0x3f], r15b
je 0x14001bd88
mov rcx, qword [rbp + 0x27]
call fcn.140010224
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001c0f0
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, [0x140255a70]
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 0x14001c147
cmp word [rdx], r13w
jne 0x14001c147
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001c14c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001c271
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001c292
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001c185
mov rdx, r9
mov word [rbx], cx
jmp 0x14001c1ac
cmp r9, r8
jae 0x14001c1bc
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 0x14001c166
jmp 0x14001c271
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 0x14001c266
cmp dword [rsp + 0x80], esi
je 0x14001c266
lea r8, [0x140255a70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001c23e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001c20e
mov word [rbx], r13w
jmp 0x14001c26e
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 0x14001c21b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001c26e
cmp word [rsp + 0x70], r13w
jne 0x14001c24b
cmp rbx, r14
je 0x14001c208
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001c010
cmp word [rsp + 0x70], r13w
je 0x14001c271
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, [0x140255a70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001c26b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001c271
Function at 0x1405831b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14058333f
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 0x1405831e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405831cf
add dl, dl
jne 0x1405831f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140583256
xor eax, eax
add dl, dl
jne 0x140583205
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14058330d
add dl, dl
jne 0x140583216
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140583223
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140583230
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14058323d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14058324a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405831de
mov eax, 1
add dl, dl
jne 0x140583266
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140583273
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14058325b
sub eax, ebx
mov ebx, 1
jne 0x1405832ac
mov ecx, 1
add dl, dl
jne 0x14058328e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14058329b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140583283
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405831de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405832c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405832d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405832bd
cmp eax, 0x7d00
jae 0x1405832fb
cmp eax, 0x500
jb 0x1405832f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405831de
cmp eax, 0x7f
ja 0x1405832fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405831de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140583332
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 0x1405831de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004620
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
mov r9, rcx
jne 0x140004642
xor edx, edx
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx + 0x7e]
inc edx
xor byte [rcx + r9 + 0xa], al
cmp edx, 0xa
jb 0x140004630
mov byte [r9 + 9], 1
lea rax, [r9 + 0xa]
ret

Function at 0x1400074b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x58
mov rcx, qword gs:[0x58]
mov eax, dword [0x14005fc10]
mov r10d, 0x1a0
mov r8, qword [rcx + rax*8]
mov ecx, 0x1e8
mov eax, dword [rcx + r8]
test al, 1
jne 0x140007676
movaps xmm0, xmmword [0x140047ac0]
lea rdx, [r8 + r10]
movaps xmm1, xmmword [0x140047ad0]
xor r9d, r9d
mov qword [rdx], r9
or eax, 1
mov word [rdx + 8], r9w
mov byte [rdx + 0xa], r9b
movaps xmmword [rsp], xmm0
movaps xmm0, xmmword [0x140047ae0]
mov dword [rcx + r8], eax
xor eax, eax
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0xe]
movsd xmm0, qword [0x140047b00]
movsd qword [rsp + 0x40], xmm0
xorps xmm0, xmm0
movups xmmword [rdx + 0xc], xmm0
movups xmmword [rdx + 0x1c], xmm0
movups xmmword [rdx + 0x2c], xmm0
mov qword [rdx + 0x3c], rax
mov word [rdx + 0x44], ax
lea rax, [rsp + 0xe]
movaps xmmword [rsp + 0x10], xmm1
sub rdx, rcx
movaps xmm1, xmmword [0x140047af0]
movaps xmmword [rsp + 0x30], xmm1
nop dword [rax + rax]
movzx ecx, word [rax - 2]
add r9d, 0x1d
mov word [rax + rdx + 0xc], cx
movzx ecx, word [rax]
mov word [rax + rdx + 0xe], cx
movzx ecx, word [rax + 2]
mov word [rax + rdx + 0x10], cx
movzx ecx, word [rax + 4]
mov word [rax + rdx + 0x12], cx
movzx ecx, word [rax + 6]
mov word [rax + rdx + 0x14], cx
movzx ecx, word [rax + 8]
mov word [rax + rdx + 0x16], cx
movzx ecx, word [rax + 0xa]
mov word [rax + rdx + 0x18], cx
movzx ecx, word [rax + 0xc]
mov word [rax + rdx + 0x1a], cx
movzx ecx, word [rax + 0xe]
mov word [rax + rdx + 0x1c], cx
movzx ecx, word [rax + 0x10]
mov word [rax + rdx + 0x1e], cx
movzx ecx, word [rax + 0x12]
mov word [rax + rdx + 0x20], cx
movzx ecx, word [rax + 0x14]
mov word [rax + rdx + 0x22], cx
movzx ecx, word [rax + 0x16]
mov word [rax + rdx + 0x24], cx
movzx ecx, word [rax + 0x18]
mov word [rax + rdx + 0x26], cx
movzx ecx, word [rax + 0x1a]
mov word [rax + rdx + 0x28], cx
movzx ecx, word [rax + 0x1c]
mov word [rax + rdx + 0x2a], cx
movzx ecx, word [rax + 0x1e]
mov word [rax + rdx + 0x2c], cx
movzx ecx, word [rax + 0x20]
mov word [rax + rdx + 0x2e], cx
movzx ecx, word [rax + 0x22]
mov word [rax + rdx + 0x30], cx
movzx ecx, word [rax + 0x24]
mov word [rax + rdx + 0x32], cx
movzx ecx, word [rax + 0x26]
mov word [rax + rdx + 0x34], cx
movzx ecx, word [rax + 0x28]
mov word [rax + rdx + 0x36], cx
movzx ecx, word [rax + 0x2a]
mov word [rax + rdx + 0x38], cx
movzx ecx, word [rax + 0x2c]
mov word [rax + rdx + 0x3a], cx
movzx ecx, word [rax + 0x2e]
mov word [rax + rdx + 0x3c], cx
movzx ecx, word [rax + 0x30]
mov word [rax + rdx + 0x3e], cx
movzx ecx, word [rax + 0x32]
mov word [rax + rdx + 0x40], cx
movzx ecx, word [rax + 0x34]
mov word [rax + rdx + 0x42], cx
movzx ecx, word [rax + 0x36]
mov word [rax + rdx + 0x44], cx
lea rax, [rax + 0x3a]
cmp r9d, 0x1d
jb 0x140007560
lea rax, [r8 + r10]
add rsp, 0x58
ret
Function at 0x140018b60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140018b91
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140018c0b
mov rdi, r14
mov rcx, rbx
call fcn.140012630
test rax, rax
jle 0x140018be3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140044bb0
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 0x140018bfb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140018c03
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140018ba5
sub r14, rdi
jmp 0x140018cef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140018c22
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140018c24
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140018c56
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140044bb0
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 0x140018cec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140018c91
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 0x140018ccd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140029f5c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140018cec
cmp rbp, rax
ja 0x140018ca0
test rbp, rbp
je 0x140018cec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140029f5c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001e28c
Capabilities:
Parse pe header

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

Function at 0x140024ce4
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 0x140024b4f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024b4f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024b4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024b4f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024b4f
cmp dword [rcx + 0x84], 0xe
jbe 0x140024b4f
cmp dword [rcx + 0xf8], 0
je 0x140024b4f
mov ecx, ebx
call fcn.140024c00
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.1400249dc
nop
cmp dword [rbp + 0x20], 0
je 0x140024b9d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140024ba8
int3
xor r8d, r8d
xor edx, edx
jmp 0x140024ae0
Function at 0x14003726c
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.14001ddf0
sub rsp, rax
mov rax, qword [0x14005e100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140034bf4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400372bb
mov rax, rbp
jmp 0x1400373c3
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 + 0x60790]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140038554
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x60790]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400373bf
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 0x1400373bf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140038554
test rax, rax
js 0x1400373bf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400373bf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400373b1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400373b1
cmp byte [rcx], 0xd
jne 0x140037397
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400373a6
cmp byte [rcx + 1], 0xa
jne 0x1400373a6
inc rcx
jmp 0x1400373a6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5e550]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140037379
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400373c3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001ddc0
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 0x1400376e0
Capabilities:
Get file size

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