joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a491c
Capabilities:
Parse pe header

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

Function at 0x1400b0ba8
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 0x1400b0bdf
call fcn.1400ae1d8
mov dword [rax], socket
call fcn.1400a9b94
xor eax, eax
jmp 0x1400b0c6d
mov rdx, r9
mov rcx, r8
call fcn.1400b0b44
mov rbx, rax
test rax, rax
je 0x1400b0c6a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400b0a70]
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 0x1400b0c57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ae14c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400b0c3e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400b0c4d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400bae04
jmp 0x1400b0c6a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400b0c67
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 0x1400b12a0
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.1400a4460
sub rsp, rax
mov rax, qword [0x140104100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400bc068
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400b12ef
mov rax, rbp
jmp 0x1400b13f7
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 + 0x106e50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400bd62c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x106e50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400b13f3
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 0x1400b13f3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400bd62c
test rax, rax
js 0x1400b13f3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400b13f3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400b13e5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400b13e5
cmp byte [rcx], 0xd
jne 0x1400b13cb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400b13da
cmp byte [rcx + 1], 0xa
jne 0x1400b13da
inc rcx
jmp 0x1400b13da
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x104540]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400b13ad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400b13f7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400a3910
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 0x1400b79ec
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 0x1400b7a5b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b7a5b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b7a5b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b7a5b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b7a5b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b7a5b
cmp dword [rcx + 0xf8], 0
je 0x1400b7a5b
mov ecx, ebx
call fcn.1400b7b0c
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.1400b78e8
nop
cmp dword [rbp + 0x20], 0
je 0x1400b7aa9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400b7ab4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400b79ec
Function at 0x1400b7bf0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400b79ec

Function at 0x1400bd6d8
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, [0x140106e50]
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 0x1400bd72f
cmp word [rdx], r13w
jne 0x1400bd72f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400bd734
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400bd859
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400bd87a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400bd76d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400bd794
cmp r9, r8
jae 0x1400bd7a4
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 0x1400bd74e
jmp 0x1400bd859
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 0x1400bd84e
cmp dword [rsp + 0x80], esi
je 0x1400bd84e
lea r8, [0x140106e50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400bd826
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400bd7f6
mov word [rbx], r13w
jmp 0x1400bd856
mov ecx, recv
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 0x1400bd803
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400bd856
cmp word [rsp + 0x70], r13w
jne 0x1400bd833
cmp rbx, r14
je 0x1400bd7f0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400bd634
cmp word [rsp + 0x70], r13w
je 0x1400bd859
mov ecx, recv
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, [0x140106e50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400bd853
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400bd859
Function at 0x1400bf4ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400bf4c2
mov al, 1
jmp 0x1400bf522
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400bf4d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400bf520
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400c3704
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400bf520
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400bf520
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bf520
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400bf522
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400c2e38
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 0x1400c2e68
xor eax, eax
jmp 0x1400c2f2b
mov rbp, rbx
cmp word [rax], si
je 0x1400c2e8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c2e74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c2e70
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.1400c1550
movsxd r14, eax
test eax, eax
jne 0x1400c2ecb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c2e61
mov rcx, r14
call fcn.1400bae40
mov rdi, rax
test rax, rax
jne 0x1400c2ee4
xor ecx, ecx
call fcn.1400bae04
jmp 0x1400c2ec0
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.1400c1550
test eax, eax
jne 0x1400c2f15
mov rcx, rdi
call fcn.1400bae04
jmp 0x1400c2f1f
xor ecx, ecx
call fcn.1400bae04
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 0x1400c5c58
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400ba844
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400c5cf9
cmp ebx, dword [rsp + 0x30]
je 0x1400c5cf2
test esi, esi
je 0x1400c5cf2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400c5ccd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400c5cda
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400c5cb7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400c5cde
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400c5cfb
mov eax, 1
jmp 0x1400c5cfb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ca05c
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.1400bd634
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400bd634
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400ca1ac
cmp rax, 0xffffffffffffffff
je 0x1400ca1ac
xor edi, edi
test rbp, rbp
jle 0x1400ca157
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400bc83c
mov rbx, rax
test rax, rax
jne 0x1400ca0e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ca14d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b8984
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.1400beca8
cmp eax, 0xffffffff
je 0x1400ca12d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ca0f4
mov edx, r15d
mov ecx, r14d
call fcn.1400b8984
jmp 0x1400ca14d
cmp byte [rsi + 0x38], dil
je 0x1400ca144
cmp dword [rsi + 0x34], 5
jne 0x1400ca144
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x1400ca14d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400bae04
jmp 0x1400ca1c0
jns 0x1400ca1c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400bd634
cmp rax, 0xffffffffffffffff
jne 0x1400ca178
cmp byte [rsi + 0x30], dil
je 0x1400ca1c0
mov edi, dword [rsi + 0x2c]
jmp 0x1400ca1c0
mov ecx, r14d
call fcn.1400c3704
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400ca1c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x1400ca1c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400ca1b9
mov eax, dword [rsi + 0x2c]
jmp 0x1400ca1be
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400bd634
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 0x1400cabd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400cabf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400cabf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180005f00
Capabilities:
Set uefi variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, qword [0x180125248]
mov edx, 0x28
mov rcx, rbx
mov rdi, r8
call fcn.180006850
mov edx, 0x47e0
mov qword [rdi], rax
mov rcx, rbx
call fcn.180006850
cmp dword [0x180125260], 0x12173f8a
mov rcx, qword [rdi]
mov qword [rcx + 0x10], rax
jne 0x180006058
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableExW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalReAlloc]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNode]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetThreadIdealProcessorEx]
lea rax, str.WqA4nWbkMQ76Al53OV8qBZEfK89P
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
lea rcx, str.H951QxkIYd1XOaX9tMF8Wk66vjn
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetDurationFormatEx]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessPreferredUILanguages]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_TransmitCommChar]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetDynamicTimeZoneInformation]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitAtomTable]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileNameW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNode]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSizeEx]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180008f50
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov ecx, 0xa5
nop word [rax + rax]
inc ecx
test cl, 1
jne 0x180008f70
lea eax, [rcx*4]
mov edx, 0xffffbf81
sub edx, eax
lea r11d, [rcx - 0x370b]
mov r8d, 0xffffd9e6
sub r8d, ecx
add r8d, 0x271
lea eax, [rdx + 0x15dc]
mov ebx, r8d
lea r9d, [rdx + rax]
sub ebx, ecx
lea r10d, [rax - 0x549]
mov edx, 0xffffa32d
sub edx, ecx
lea esi, [r9 - 0x24c0]
sub esi, edx
lea r14d, [r10 - 0x2667]
sub esi, 0x269a
add r9d, 0xffffd877
sub ebx, esi
mov eax, ecx
lea edi, [rdx + 0xc40]
add ebx, r9d
sub eax, edi
mov edx, esi
sub edx, r10d
sub edi, 0x2479
add edx, 0xfffffa44
add r14d, eax
add edx, r11d
lea r9d, [rdi - 0x135b]
test dl, 1
je 0x18000900f
inc edx
test dl, 1
jne 0x180009008
lea r11d, [rdx - 0x4c2d]
mov eax, 0xffffe850
sub eax, edi
add r8d, r9d
add ebx, eax
add r11d, r14d
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
je 0x180009057
nop word [rax + rax]
inc ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
jne 0x180009040
add r8d, r14d
lea r10d, [rcx - 0x184b]
add r8d, esi
lea eax, [rdi*2 + 0x387a]
sub r11d, ebx
mov r9d, r8d
test cl, 1
cmove r10d, ecx
lea ecx, [rax - 0x1fb5]
nop
inc ecx
test cl, 1
jne 0x180009080
sub ecx, eax
sub r9d, 0x1bb6
sub ecx, 0x1ea9
sub r8d, r9d
mov eax, r9d
mov edx, r10d
sub eax, r10d
neg edx
add ecx, eax
add r8d, r11d
test dl, 1
je 0x1800090b7
mov eax, 0xffffeab2
test edx, edx
jg 0x1800090bc
mov eax, 0x154e
add eax, edx
cmp ebx, 0xffffff65
jne 0x1800090f2
sub eax, ecx
cmp eax, 0x181fc
jne 0x1800090f2
cmp r8d, 0xffff6148
jne 0x1800090f2
cmp ecx, 0xfffe92aa
jne 0x1800090f2
cmp r9d, 0xfffed1af
jne 0x1800090f2
cmp r10d, 0xa8
je 0x1800090fe
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18000a780
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x18000a7a4
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x18000a832
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x18000a800
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x18000a800
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1800a00d0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000a81d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18000a825
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x18000a7c1
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x18000a910
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x18000a849
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000a84b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000a87d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1800a00d0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000a90d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000a8b8
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 rsi, 0xfff
jbe 0x18000a8ee
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.18008943c
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18000a90d
cmp rsi, rax
ja 0x18000a8c1
test rsi, rsi
je 0x18000a90d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18008943c
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x18008bac0
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 0x18008bb2f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18008bb2f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18008bb2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18008bb2f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18008bb2f
cmp dword [rcx + 0x84], 0xe
jbe 0x18008bb2f
cmp dword [rcx + 0xf8], 0
je 0x18008bb2f
mov ecx, ebx
call fcn.18008bbe0
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.18008b9bc
nop
cmp dword [rbp + 0x20], 0
je 0x18008bb7d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18008bb88
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18008bac0

Function at 0x18008d37c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18008d392
mov al, 1
jmp 0x18008d3f2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18008d3a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18008d3f0
mov ecx, dword [rcx + 0x18]
nop
call fcn.180098294
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18008d3f0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18008d3f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008d3f0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18008d3f2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180092c14
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.180080480
sub rsp, rax
mov rax, qword [0x1800bf080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18008d25c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180092c63
mov rax, rbp
jmp 0x180092d6b
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x124ac0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180094634
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x124ac0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180092d67
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 0x180092d67
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180094634
test rax, rax
js 0x180092d67
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180092d67
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180092d59
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180092d59
cmp byte [rcx], 0xd
jne 0x180092d3f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180092d4e
cmp byte [rcx + 1], 0xa
jne 0x180092d4e
inc rcx
jmp 0x180092d4e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xbf4b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180092d21
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180092d6b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180080450
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret