joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002660
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov r14d, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x180060870], edi
je 0x1800026a9
cmp rbx, 0x20
jae 0x180002692
xor ecx, ecx
jmp 0x180002694
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180060870], edi
jne 0x180002688
cmp qword [0x180060878], r14
mov qword [rsp + 0x60], r13
je 0x18000284b
mov ecx, dword [0x18006193c]
mov ebx, r15d
test ecx, ecx
je 0x1800026e1
mov rdx, qword [0x180061930]
mov rax, rdx
cmp qword [rax], r14
je 0x1800026ec
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800026d2
mov r14d, 4
jmp 0x180002851
cmp ebx, 0xffffffff
je 0x1800026e1
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x1800027b0
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180002020
mov r14d, eax
test eax, eax
jne 0x180002851
xor edx, edx
mov ecx, ebx
call fcn.180002100
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x1800027a0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18000278c
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, eax
mov qword [rsp + 0x58], rsi
nop dword [rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180002778
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x180002750
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180060878]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x180002851
mov rdx, qword [0x180061930]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.1800014c0
mov edx, dword [0x18006193c]
dec edx
cmp ebx, edx
jae 0x1800027ff
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x180061930]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x180061938]
mov eax, ecx
mov dword [0x18006193c], edx
shr eax, 1
cmp eax, 0x20
jb 0x180002851
cmp eax, edx
jb 0x180002851
mov r8, qword [0x180061930]
mov eax, ecx
mov rcx, qword [0x180060878]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180002851
shr dword [0x180061938], 1
mov qword [0x180061930], rax
jmp 0x180002851
mov r14d, 2
xchg dword [0x180060870], r15d
mov r13, qword [rsp + 0x60]
mov eax, r14d
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180002870
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180060870], ebp
je 0x1800028c7
cmp rbx, 0x20
jae 0x1800028b0
xor ecx, ecx
jmp 0x1800028b2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180060870], ebp
jne 0x1800028a6
cmp qword [0x180060878], r15
je 0x1800029c1
test rdi, rdi
jne 0x1800028e7
mov ecx, esi
call fcn.180002210
mov edi, eax
jmp 0x1800029c6
mov ecx, dword [0x18006193c]
mov ebx, r15d
test ecx, ecx
je 0x18000290f
mov rdx, qword [0x180061930]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x180002919
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180002900
mov edi, 4
jmp 0x1800029c6
cmp ebx, 0xffffffff
je 0x18000290f
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800029b8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180002020
mov edi, eax
test eax, eax
jne 0x1800029c6
mov edx, esi
mov ecx, ebx
call fcn.180002100
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x1800029c6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800029a2
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180002998
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180002970
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180060878]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800029c6
neg esi
sbb edi, edi
add edi, 6
jmp 0x1800029c6
mov edi, 2
xchg dword [0x180060870], r15d
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, 0x30
pop r15
ret
Function at 0x18000ab30
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18000acdf
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18000acf0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18000aca4
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18000ac1d
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18000ac93
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18000ac5a
mov r10, qword [rdx]
cmp r10, rax
je 0x18000ac54
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18000ac93
cmp r9, rdx
je 0x18000ac6f
nop
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x18000acb9
cmp r9, rdx
jne 0x18000ac60
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x18000abd0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18000ac93
lea rcx, str.invalid_hash_bucket_count
call fcn.1800161dc
int3
Function at 0x180014fa0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
test edx, edx
je 0x180015072
cmp edx, 1
jne 0x180015068
lea rdx, [0x180007a20]
call qword [sym.imp.ScriptHookRDR2.dll_void___cdecl_scriptRegister_struct_HINSTANCE______ptr64__void____cdecl___void__]
lea rcx, [0x180014f50]
call qword [sym.imp.ScriptHookRDR2.dll_void___cdecl_keyboardHandlerRegister_void____cdecl___unsigned_long_int__unsigned_short_int__unsigned_char__int__int__int__int__]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor esi, esi
mov edi, 1
mov ebx, esi
xor eax, eax
lock cmpxchg dword [0x180060870], edi
je 0x180015021
cmp rbx, 0x20
jae 0x18001500a
xor ecx, ecx
jmp 0x18001500c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180060870], edi
jne 0x180015000
cmp qword [0x180060878], rsi
jne 0x18001503e
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x180060878], rax
mov ecx, esi
mov qword [rsp + 0x28], rsi
xchg dword [0x180060870], ecx
xor ecx, ecx
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x180005ad0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x18001514d
mov eax, 1
jmp 0x18001514f
xor edx, edx
xor ecx, ecx
call fcn.180002870
call fcn.180002660
xor esi, esi
mov edi, 1
mov ebx, esi
xor eax, eax
lock cmpxchg dword [0x180060870], edi
je 0x1800150b6
cmp rbx, 0x20
jae 0x18001509f
xor ecx, ecx
jmp 0x1800150a1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180060870], edi
jne 0x180015095
cmp qword [0x180060878], rsi
je 0x180015131
xor ecx, ecx
call fcn.180002210
test eax, eax
jne 0x180015131
mov rcx, qword [0x180061940]
mov qword [0x180061940], rsi
test rcx, rcx
je 0x1800150f9
nop dword [rax]
mov rbx, qword [rcx]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
test rbx, rbx
jne 0x1800150e0
mov r8, qword [0x180061930]
xor edx, edx
mov rcx, qword [0x180060878]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180060878]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov qword [0x180060878], rsi
mov qword [0x180061930], rsi
mov qword [0x180061938], rsi
xchg dword [0x180060870], esi
mov rcx, rbp
call qword [sym.imp.ScriptHookRDR2.dll_void___cdecl_scriptUnregister_struct_HINSTANCE______ptr64_]
lea rcx, [0x180014f50]
call qword [sym.imp.ScriptHookRDR2.dll_void___cdecl_keyboardHandlerUnregister_void____cdecl___unsigned_long_int__unsigned_short_int__unsigned_char__int__int__int__int__]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800245e0
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 0x180024610
xor eax, eax
jmp 0x1800246d3
mov rbp, rbx
cmp word [rax], si
je 0x180024635
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002461c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180024618
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.180024500
movsxd r14, eax
test eax, eax
jne 0x180024673
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180024609
mov rcx, r14
call fcn.1800223a4
mov rdi, rax
test rax, rax
jne 0x18002468c
xor ecx, ecx
call fcn.180022368
jmp 0x180024668
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.180024500
test eax, eax
jne 0x1800246bd
mov rcx, rdi
call fcn.180022368
jmp 0x1800246c7
xor ecx, ecx
call fcn.180022368
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 0x180028c00
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.18001ff74
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 0x180028ca1
cmp ebx, dword [rsp + 0x30]
je 0x180028c9a
test esi, esi
je 0x180028c9a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180028c75
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180028c82
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180028c5f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180028c86
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180028ca3
mov eax, 1
jmp 0x180028ca3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18002ca90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002cab8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002cab8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400151bc
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 0x14001523a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015231
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 0x140015231
mov rax, qword [rbp - 8]
jmp 0x14001524f
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 0x140015204
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000c008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000c008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140004ca0
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 0x140004cd1
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 0x140004d4b
mov rdi, r14
mov rcx, rbx
call fcn.140002b80
test rax, rax
jle 0x140004d23
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140008520
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 0x140004d3b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140004d43
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004ce5
sub r14, rdi
jmp 0x140004e2f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140004d62
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004d64
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004d96
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140008520
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 0x140004e2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004dd1
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 0x140004e0d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14000df90
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140004e2c
cmp rbp, rax
ja 0x140004de0
test rbp, rbp
je 0x140004e2c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14000df90
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 0x14000756c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400075b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400075b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400075b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400075b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400075b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400075b8
xor al, al
add rsp, 0x28
ret
Function at 0x14000ed84
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 0x14000edbb
call fcn.14000fd4c
mov dword [rax], 0x16
call fcn.14000d050
xor eax, eax
jmp 0x14000ee49
mov rdx, r9
mov rcx, r8
call fcn.14000ed20
mov rbx, rax
test rax, rax
je 0x14000ee46
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14000ec4c]
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 0x14000ee33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000fcc0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000ee1a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000ee29
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400167e4
jmp 0x14000ee46
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000ee43
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 0x14001378c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013588
Function at 0x140018f48
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.140006e10
sub rsp, rax
mov rax, qword [0x1400b0098]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400178b4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018f97
mov rax, rbp
jmp 0x14001909f
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 + 0xb2680]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001a068
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xb2680]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001909b
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 0x14001909b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001a068
test rax, rax
js 0x14001909b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001909b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001908d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001908d
cmp byte [rcx], 0xd
jne 0x140019073
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140019082
cmp byte [rcx + 1], 0xa
jne 0x140019082
inc rcx
jmp 0x140019082
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb04a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140019055
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001909f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006870
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 0x1400192c0
Capabilities:
Get file size

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