joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ced0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400c0e70]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14000cf08
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14000cf70
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14000cf80
mov esi, dword [0x1400e8198]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14000cff0
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14000d038
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14000cef7
mov rcx, rbx
call fcn.14000cdd0
mov qword [rsi + r12*8 + 8], rax
jmp 0x14000cef7
call fcn.14000cdd0
mov qword [rbx + 0x10], rax
jmp 0x14000cef7
mov r10d, dword [rsi]
test r10d, r10d
je 0x14000d09a
mov r9d, dword [0x1400b8030]
test r9d, r9d
je 0x14000d0c8
lock add dword [0x1400e81a0], 1
jne 0x14000d0fc
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14000d0a7
mov eax, dword [rsi]
test eax, eax
je 0x14000cf11
lock sub dword [0x1400e81a0], 1
js 0x14000cf11
mov rcx, qword [0x1400e81a8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14000cf11
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x14000d123
mov qword [rax], rdi
mov ecx, dword [0x1400e8198]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000cf4b
call r13
jmp 0x14000cf4b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x14000d123
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x14000d013
call fcn.14000ce70
mov dword [0x1400b8030], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14000cf9c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14000cf11
mov rax, qword [0x1400e8190]
lea r12, [rax + 1]
mov qword [0x1400e8190], r12
mov qword [rbx + 0x10], r12
jmp 0x14000cfb7
lock add dword [0x1400b8034], 1
je 0x14000d081
mov r8d, dword [0x1400b8030]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x1400b8030]
test r8d, r8d
jne 0x14000d090
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14000d0f0
jmp 0x14000d090
mov rcx, qword [0x1400e81a8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000cfaa
lock sub dword [0x1400e81a0], 1
jmp 0x14000cfaa
call sym.abort
nop
nop dword [rax]
Function at 0x140018020
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x140018068
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x1400e8ca0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14001804e

Function at 0x14001a8f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14001a91c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14001b550
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400baf70], 0
jne 0x14001b656
mov byte [0x1400baf70], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001b62c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001b61d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400bd1b1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14001b618
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14001b5e7
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14001b6eb
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001b651
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14001b651
Function at 0x14007b8b0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007b8f8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007b8ca
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008f510
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008f538
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14008f580
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008f550
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008f58c
call rbp
cmp dword [rax], 4
je 0x14008f550
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400b6180
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400bafa0]
jmp sym.__emutls_get_address

Function at 0x1400b6190
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400bafa0]
jmp sym.__emutls_get_address

Function at 0x406e30
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
call fcn.00401250
xor r9d, r9d
test al, al
je 0x406ea0
cmp qword [0x0045a1b0], r9
jne 0x406e98
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x004440f8]
lea r9, [0x0045a1b0]
lea r8, [0x00408c78]
mov qword [0x0045a1c0], rax
lea rax, [0x0045a1b8]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.0041bba0
mov rcx, qword [0x0045a1c0]
mov qword [0x0045a1b0], rax
jmp 0x406ef7
mov ecx, dword [0x0045a1b8]
jmp 0x406f1d
cmp qword [0x0045a230], 0
jne 0x406f17
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x004440f8]
lea r9, [0x0045a230]
lea r8, [0x00405e60]
mov qword [0x0045a240], rax
lea rax, [0x0045a238]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.0041bba0
mov rcx, qword [0x0045a240]
mov qword [0x0045a230], rax
mov edx, 0x1388
call qword [0x004440e0]
cmp eax, 0x102
jne 0x406f2d
lea rcx, [0x0044f920]
call fcn.0040becc
jmp 0x406f2d
mov ecx, dword [0x0045a238]
mov r8d, 2
lea edx, [r8 + 4]
call qword [0x00444420]
add rsp, 0x38
ret
Function at 0x14003ca00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003ca0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003ca1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003ca05
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003ca35
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003ca22
sub eax, 3
jb 0x14003ca4f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003ca86
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003ca76
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003ca74
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003ca63
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003c9c2
jmp 0x14003ca0d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x23e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003cad2
cmp rsi, rcx
jae 0x14003cada
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003cab9
cmp al, 0x8f
ja 0x14003cab9
cmp byte [rsi - 2], 0xf
je 0x14003cabf
sub al, 0xe8
cmp al, 1
ja 0x14003caa3
cmp rsi, rcx
jae 0x14003cada
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003caa9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003cada
lodsb al, byte [rsi]
jmp 0x14003cab9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x39000]
mov eax, dword [rdi]
or eax, eax
je 0x14003cb43
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x40fb8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14003cae7
jns 0x14003cb1c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14003cb26
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003cb3d
mov qword [rbx], rax
add rbx, 8
jmp 0x14003cb07
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14003cb9b
sub rsp, 0xffffffffffffff80
jmp 0x1400242ac
Function at 0x180011b50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180011b72
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x180011bec
mov rdi, r14
mov rcx, rbx
call fcn.180015050
test rax, rax
jle 0x180011bc4
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.1800580a0
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 0x180011bdc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180011be4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180011b86
sub r14, rdi
jmp 0x180011ccf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180011c03
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180011c05
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180011c37
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800580a0
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 0x180011ccc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180011c72
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 0x180011cad
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18003d918
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180011ccc
cmp rbp, rax
ja 0x180011c80
test rbp, rbp
je 0x180011ccc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18003d918
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x1800293a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800295c0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800294a7
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180029404
mov rax, qword [0x180076008]
cmp qword [rsp + 0x20], rax
ja 0x180029404
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800293c6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180058740
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180029433
jmp 0x1800294a7
cmp dword [rsp + 0x50], 0x10000
jne 0x18002948a
cmp qword [rsp + 0x48], 0x10000
jb 0x18002948a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180029478
mov rax, qword [rsp + 0x28]
jmp 0x1800294a9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800294a2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800295c0
mov qword [rsp + 0x20], rax
jmp 0x1800293c6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800294b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180029600
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800295b3
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18002950b
mov rax, qword [0x180076008]
cmp qword [rsp + 0x20], rax
ja 0x18002950b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800294cd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180058740
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18002953a
jmp 0x1800295b3
cmp dword [rsp + 0x50], 0x10000
jne 0x180029591
cmp qword [rsp + 0x48], 0x10000
jb 0x180029591
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18002957f
mov rax, qword [rsp + 0x28]
jmp 0x1800295b5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800295ae
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180029600
mov qword [rsp + 0x20], rax
jmp 0x1800294cd
xor eax, eax
add rsp, 0x68
ret
Function at 0x180029650
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180029be0
mov qword [rsp + 0x28], 0
cmp qword [0x180078358], 0
jne 0x180029698
cmp qword [0x180078350], 0
je 0x180029698
mov rax, qword [0x180078350]
mov qword [0x180078358], rax
cmp qword [0x180078358], 0
je 0x18002973e
mov rax, qword [0x180078358]
cmp qword [rax + 0x10], 0
je 0x18002973e
mov rax, qword [0x180078358]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18002973e
mov rax, qword [0x180078358]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18002973e
mov rax, qword [0x180078358]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180029704
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18002970b
xor eax, eax
jmp 0x1800298b9
mov rax, qword [0x180078358]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.180058740
mov rax, qword [rsp + 0x28]
jmp 0x1800298b9
mov rax, qword [0x180078350]
mov qword [0x180078358], rax
jmp 0x180029760
mov rax, qword [0x180078358]
mov rax, qword [rax + 8]
mov qword [0x180078358], rax
cmp qword [0x180078358], 0
je 0x1800297ad
cmp qword [0x180078358], 0
je 0x1800297ab
mov rax, qword [0x180078358]
cmp qword [rax + 0x10], 0
je 0x1800297ab
mov rax, qword [0x180078358]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800297ab
mov rax, qword [0x180078358]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800297ab
jmp 0x1800296dc
jmp 0x18002974e
mov rcx, qword [rsp + 0x60]
call fcn.18002bb40
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800298c0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800298b7
mov rax, qword [rsp + 0x48]
mov qword [0x180078358], rax
mov rax, qword [0x180078358]
mov dword [rax], 0x52727464
mov rax, qword [0x180078358]
mov qword [rax + 0x10], 0
mov rax, qword [0x180078358]
mov rcx, qword [0x180078350]
mov qword [rax + 8], rcx
mov rax, qword [0x180078358]
mov qword [0x180078350], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180078358]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180029868
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800298a2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18002985e
mov rax, qword [0x180078358]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800296dc
xor eax, eax
add rsp, 0x58
ret
Function at 0x18002bd30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180058740
jmp 0x18002bd78
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18002bd98
jmp 0x18002be35
cmp dword [rsp + 0x68], 0x1000
jne 0x18002bdbd
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18002bdbd
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18002bdbf
jmp 0x18002bd63
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18002bdf5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x18002bdf5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18002bdfa
jmp 0x18002bd63
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x18002bd63
mov rax, qword [rsp + 0x20]
jmp 0x18002be37
xor eax, eax
add rsp, 0x88
ret

Function at 0x180040c8c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180040ca2
mov al, 1
jmp 0x180040d02
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180040cb3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180040d00
mov ecx, dword [rcx + 0x18]
nop
call fcn.18004c288
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180040d00
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180040d00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180040d00
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180040d02
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180046804
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.18002f1c0
sub rsp, rax
mov rax, qword [0x1800760c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180040b6c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180046853
mov rax, rbp
jmp 0x18004695b
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 + 0x792b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180048250
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x792b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180046957
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 0x180046957
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180048250
test rax, rax
js 0x180046957
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180046957
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180046949
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180046949
cmp byte [rcx], 0xd
jne 0x18004692f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004693e
cmp byte [rcx + 1], 0xa
jne 0x18004693e
inc rcx
jmp 0x18004693e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x764f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180046911
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004695b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18002e950
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret