joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140113530
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140156c00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x1401135e1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140122bc4
cmp rax, 1
jne 0x140113617
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x1401135bd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x1401135b0
cmp rcx, 1
jb 0x140113617
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140113580
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140113920
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1401170e0
int3

Function at 0x1401137a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140156c00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14011384f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140122bc4
cmp rax, 1
jne 0x140113885
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14011382c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140113820
cmp rcx, 1
jb 0x140113885
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1401137f0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140113920
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401170e0
int3

Function at 0x140114388
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401143d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401143d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401143d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401143d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1401143d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401143d4
xor al, al
add rsp, 0x28
ret
Function at 0x140118754
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 0x1401187c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401187c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401187c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401187c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401187c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1401187c3
cmp dword [rcx + 0xf8], 0
je 0x1401187c3
mov ecx, ebx
call fcn.140118874
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.140118650
nop
cmp dword [rbp + 0x20], 0
je 0x140118811
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14011881c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140118754

Function at 0x140118958
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 0x1401187c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401187c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401187c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401187c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401187c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1401187c3
cmp dword [rcx + 0xf8], 0
je 0x1401187c3
mov ecx, ebx
call fcn.140118874
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.140118650
nop
cmp dword [rbp + 0x20], 0
je 0x140118811
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14011881c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140118754
Function at 0x14012a4b0
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 0x14012a537
mov rsi, rbx
cmp word [rax], bp
je 0x14012a4f6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14012a4e0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14012a4dc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140125b18
mov rdi, rax
test rax, rax
je 0x14012a524
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140130170
mov rbp, rdi
xor ecx, ecx
call fcn.140126660
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 0x14012c7e0
Capabilities:
Get file size

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

Function at 0x14012ffc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14012ffe8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14012ffe8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003980
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rdx + 0x18], 7
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x30], rdx
jbe 0x1400039bd
mov rax, qword [rdx]
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x18], 7
mov qword [rsp + 0x38], r13
jbe 0x1400039d1
mov rax, qword [rcx]
mov qword [rsp + 0x38], rax
mov ecx, 0x72
xor edx, edx
call fcn.140001150
mov ecx, 0x75
mov edx, 1
movzx r15d, ax
call fcn.140001150
mov ecx, 0x6e
mov edx, 2
movzx r14d, ax
call fcn.140001150
mov ecx, 0x61
mov edx, 3
movzx ebp, ax
call fcn.140001150
mov ecx, 0x73
mov edx, 4
movzx esi, ax
call fcn.140001150
xor ecx, ecx
mov edx, 5
movzx edi, ax
call fcn.140001150
movzx ecx, word [0x14003e51c]
mov edx, 6
movzx ebx, ax
call fcn.140001150
movzx ecx, word [0x14003e51e]
mov edx, 7
movzx r9d, ax
call fcn.140001150
movzx ecx, word [0x14003e520]
mov edx, 8
movzx r8d, ax
call fcn.140001150
movzx ecx, word [0x14003e522]
mov edx, 9
movzx r11d, ax
call fcn.140001150
movzx ecx, word [0x14003e524]
mov edx, 0xa
movzx r10d, ax
call fcn.140001150
mov ecx, 0x133
xor r15w, cx
mov ecx, 0x134
xor r14w, cx
mov word [rsp + 0x40], r15w
mov ecx, 0x135
mov word [rsp + 0x42], r14w
xor bp, cx
mov ecx, 0x136
xor si, cx
mov word [rsp + 0x44], bp
mov ecx, 0x137
mov word [rsp + 0x46], si
xor di, cx
mov ecx, 0x138
xor bx, cx
mov word [rsp + 0x48], di
mov ecx, 0x139
mov word [rsp + 0x4a], bx
xor r9w, cx
mov ecx, 0x13a
xor r8w, cx
mov word [rsp + 0x4c], r9w
mov r9, qword [rsp + 0x30]
mov ecx, 0x13b
xor r11w, cx
mov word [rsp + 0x4e], r8w
mov ecx, 0x13c
mov word [rsp + 0x50], r11w
xor r10w, cx
mov ecx, 0x13d
xor ax, cx
mov word [rsp + 0x52], r10w
xor ebx, ebx
mov word [rsp + 0x54], ax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov word [rsp + 0x56], bx
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [r13 + 0x18]
cmp rdx, 7
jbe 0x140003ba0
mov rcx, qword [r13]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140003b9b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003c26
mov rcx, r8
call fcn.14000eb04
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x18], 7
mov word [r13], bx
mov rdx, qword [r12 + 0x18]
cmp rdx, 7
jbe 0x140003bee
mov rcx, qword [r12]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140003be9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003c26
mov rcx, r8
call fcn.14000eb04
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], 7
mov word [r12], bx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000e7c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140017e4c
int3
Function at 0x140003c30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 7
mov dword [rsp + 0x40], ebp
jbe 0x140003c52
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140003ce6
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140003cc5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003cc0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003d8f
mov rcx, r8
call fcn.14000eb04
mov al, 1
mov rsi, qword [rsp + 0x78]
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140003d2b
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140003d27
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003d22
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003d8f
mov rcx, r8
call fcn.14000eb04
xor al, al
jmp 0x140003cc7
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x41200
mov qword [rsp + 0x20], rbp
lea rdx, [0x1400470a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140003d78
cmp rax, 7
jbe 0x140003d27
lea rdx, [rax*2 + 2]
jmp 0x140003cfe
cmp rax, 7
jbe 0x140003cc5
lea rdx, [rax*2 + 2]
jmp 0x140003c98
call fcn.140017e4c
int3
Function at 0x140003da0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 7
mov dword [rsp + 0x40], ebp
jbe 0x140003dc2
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140003e56
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140003e35
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003e30
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003eff
mov rcx, r8
call fcn.14000eb04
mov al, 1
mov rsi, qword [rsp + 0x78]
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140003e9b
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140003e97
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003e92
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003eff
mov rcx, r8
call fcn.14000eb04
xor al, al
jmp 0x140003e37
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x2400
mov qword [rsp + 0x20], rbp
lea rdx, [0x140044ca0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140003ee8
cmp rax, 7
jbe 0x140003e97
lea rdx, [rax*2 + 2]
jmp 0x140003e6e
cmp rax, 7
jbe 0x140003e35
lea rdx, [rax*2 + 2]
jmp 0x140003e08
call fcn.140017e4c
int3
Function at 0x140005720
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov ecx, 2
xor edi, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000579e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14000579e
lea rdx, str.mp24_cod.exe
lea rcx, [rsp + 0x4c]
call fcn.14001c2e4
test eax, eax
je 0x14000579a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140005771
jmp 0x14000579e
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000e7c0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14000d6f4
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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000d722
xor eax, eax
jmp 0x14000d808
cmp qword [rcx + 0x68], 0
je 0x14000d733
call fcn.14000d824
jmp 0x14000d808
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d74a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000d74c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000d77e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400308b0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000d802
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000d7b5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000d7de
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140018b70
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000d802
cmp rsi, rbx
ja 0x14000d7bc
test rsi, rsi
je 0x14000d802
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140018b70
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x14000f620
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f66a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f66a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f66a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f66a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f66a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000f66c
xor al, al
add rsp, 0x28
ret
Function at 0x14001b32c
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 0x14001b39b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001b39b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001b39b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001b39b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001b39b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001b39b
cmp dword [rcx + 0xf8], 0
je 0x14001b39b
mov ecx, ebx
call fcn.14001b44c
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.14001b228
nop
cmp dword [rbp + 0x20], 0
je 0x14001b3e9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001b3f4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001b32c

Function at 0x14001b530
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001b32c
Function at 0x140023da4
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.14000ef00
sub rsp, rax
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140020f5c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140023df3
mov rax, rbp
jmp 0x140023efb
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 + 0x89b80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140024ec4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x89b80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140023ef7
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 0x140023ef7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140024ec4
test rax, rax
js 0x140023ef7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140023ef7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140023ee9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140023ee9
cmp byte [rcx], 0xd
jne 0x140023ecf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140023ede
cmp byte [rcx + 1], 0xa
jne 0x140023ede
inc rcx
jmp 0x140023ede
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x44490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140023eb1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140023efb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000e7c0
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 0x14002411c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140024132
mov al, 1
jmp 0x140024192
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140024143
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140024190
mov ecx, dword [rcx + 0x18]
nop
call fcn.140028af8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140024190
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140024190
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140024190
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140024192
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140024264
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, [0x140089b80]
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 0x1400242bb
cmp word [rdx], r13w
jne 0x1400242bb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400242c0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400243e5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140024406
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400242f9
mov rdx, r9
mov word [rbx], cx
jmp 0x140024320
cmp r9, r8
jae 0x140024330
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 0x1400242da
jmp 0x1400243e5
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 0x1400243da
cmp dword [rsp + 0x80], esi
je 0x1400243da
lea r8, [0x140089b80]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400243b2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140024382
mov word [rbx], r13w
jmp 0x1400243e2
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 0x14002438f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400243e2
cmp word [rsp + 0x70], r13w
jne 0x1400243bf
cmp rbx, r14
je 0x14002437c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140024ecc
cmp word [rsp + 0x70], r13w
je 0x1400243e5
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, [0x140089b80]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400243df
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400243e5