joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3a98e2c80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov edi, ecx
mov rbp, rdx
mov rbx, r8
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [rsp + 0x3c], 0xffffffff
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x3a98e2d42
mov eax, 0x100000
cmp rbx, rax
cmova rbx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [rsp + 0x3c]
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3a98e2d1f
mov eax, dword [rsp + 0x3c]
cmp rbx, rax
jb 0x3a98e2cf8
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8d, 0x258
lea rdx, str.src_win32_replacements.c
lea rcx, str.result___count
call qword [sym.imp.msvcrt.dll__wassert]
mov eax, dword [rsp + 0x3c]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, edi
mov r8, rbx
lea rdx, str.Error_writing__zu_bytes_to_fd__d
mov esi, eax
mov ecx, eax
call fcn.3a98f4925
mov ecx, esi
call fcn.3a98e2660
or rax, 0xffffffffffffffff
jmp 0x3a98e2ce9
Function at 0x3a98e30e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
test rdx, rdx
je 0x3a98e311a
nop word [rax + rax]
mov ebx, 0xffffffff
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x3a98e3122
add rdi, rbx
sub rsi, rbx
jne 0x3a98e30f8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, ebx
lea rdx, str.RtlGenRandom___failed__count_u_
mov ecx, eax
call fcn.3a98f4925
mov r8d, 0x2f2
lea rdx, str.src_win32_replacements.c
lea rcx, [0x3a9978652]
call qword [sym.imp.msvcrt.dll__wassert]
jmp 0x3a98e30f8

Function at 0x3a98e3860
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.3a98f1190
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.3a98f1190
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x3a98e38d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3a99a2104]
mov rbx, rcx
test esi, esi
jle 0x3a98e3a00
mov rax, qword [0x3a99a2108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3a98e391b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3a98e39a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3a98e3900
mov rcx, rbx
call fcn.3a98e4130
mov rdi, rax
test rax, rax
je 0x3a98e3a22
mov rax, qword [0x3a99a2108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.3a98e4270
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3a99a2108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3a98e3a07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3a98e399e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3a98e39b0
add dword [0x3a99a2104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x3a99a2108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3a98e399e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3a98e3860
nop dword [rax]
xor esi, esi
jmp 0x3a98e3928
mov rax, qword [0x3a99a2108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.3a98e3860
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.3a98e3860
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x3a98e3da0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3a99a2140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3a99a2120]
test rbx, rbx
je 0x3a98e3dfc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x3a98e3df3
test rsi, rsi
je 0x3a98e3df3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3a98e3dd8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x3a9979a10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3a98e4150
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3a98e4158
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3a98e4150
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3a98e41ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3a98e41a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3a98e4150
add rax, 0x28
cmp rax, r9
jne 0x3a98e4190
xor eax, eax
ret

Function at 0x3a98e41b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a9979a10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x3a98e41cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3a98e41d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x3a98e41cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x3a98e4270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a9979a10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3a98e428f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3a98e4298
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x3a98e4700
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov ebp, ecx
mov rsi, rdx
cmp ecx, 0xffffffff
je 0x3a98e4930
test rdx, rdx
js 0x3a98e4930
call sub.msvcrt.dll__get_osfhandle
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x3a98e4960
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x3a98e4960
mov ecx, ebp
call sub.msvcrt.dll__telli64
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x3a98e4930
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x3a98e4960
cmp qword [rsp + 0x68], rsi
jb 0x3a98e47f0
xor r9d, r9d
mov qword [rsp + 0x70], rsi
lea r8, [rsp + 0x74]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x3a98e47a9
cmp dword [rsp + 0x70], 0xffffffff
jne 0x3a98e4944
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x3a98e4930
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, ebp
call fcn.3a98f1870
cmp rax, 0xffffffffffffffff
je 0x3a98e4930
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x3a98e4930
mov edx, 2
mov ecx, 0x33
call sub.msvcrt.dll_calloc
mov edx, 2
mov ecx, 0x106
mov rbx, rax
call sub.msvcrt.dll_calloc
mov r12, rax
test rbx, rbx
je 0x3a98e4960
test rax, rax
je 0x3a98e4960
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov r13, rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
jmp 0x3a98e4887
mov r8d, 0x32
mov rdx, rbx
mov rcx, r13
call r15
test eax, eax
je 0x3a98e4918
mov dword [rsp + 0x38], 0
mov rdx, r12
mov rcx, rbx
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov r8d, 0x105
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r14
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x8c], eax
jne 0x3a98e4870
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r12
call sub.msvcrt.dll_free
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, rbx
mov r12d, eax
call sub.msvcrt.dll_free
test r12d, r12d
je 0x3a98e4951
mov rax, rsi
sub rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jae 0x3a98e4781
jmp 0x3a98e4951
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, rbx
xor ebx, ebx
call sub.msvcrt.dll_free
jmp 0x3a98e48d4
mov ecx, 0x16
call fcn.3a98f0ee0
mov eax, 0xffffffff
jmp 0x3a98e47d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x3a98e4930
mov ecx, 0x1b
call fcn.3a98f0ee0
jmp 0x3a98e493a
mov ecx, 9
call fcn.3a98f0ee0
jmp 0x3a98e493a
Function at 0x3a98f3720
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov rbp, rdx
xor edx, edx
mov dword [rsp + 0x28], 0x2000000
mov rbx, rcx
mov qword [rsp + 0x30], rdx
mov edi, r8d
mov edx, 0x40000000
xor r8d, r8d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x3a98f3780
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
lea rdx, str.__ls_:_Cant_open_file_for_writing
mov ecx, eax
call fcn.3a98f4925
mov eax, 0x2f
jmp 0x3a98f37fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rdx, rbp
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x3a98f37b4
cmp dword [rsp + 0x4c], edi
je 0x3a98f37d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
lea rdx, str.__ls_:_Cant_write_file
mov ecx, eax
call fcn.3a98f4925
mov rcx, rsi
call rbp
jmp 0x3a98f37f6
mov rcx, rsi
call rbp
mov edx, eax
xor eax, eax
test edx, edx
jne 0x3a98f37fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
lea rdx, str.__ls_:_Cant_close_handle
mov ecx, eax
call fcn.3a98f4925
mov eax, 0x48
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140978058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409781df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140978089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14097806f
add dl, dl
jne 0x140978096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409780f6
xor eax, eax
add dl, dl
jne 0x1409780a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409781ad
add dl, dl
jne 0x1409780b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409780c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409780d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409780dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409780ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14097807e
mov eax, 1
add dl, dl
jne 0x140978106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140978113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409780fb
sub eax, ebx
mov ebx, 1
jne 0x14097814c
mov ecx, 1
add dl, dl
jne 0x14097812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14097813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140978123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14097807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140978168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140978175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14097815d
cmp eax, 0x7d00
jae 0x14097819b
cmp eax, 0x500
jb 0x140978196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14097807e
cmp eax, 0x7f
ja 0x14097819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14097807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409781d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14097807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1408741d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x14089d020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rdx
mov rdi, rcx
mov edx, SafeArrayDestroy
call fcn.140875fa0
test rax, rax
jne 0x140874203
mov al, 1
jmp 0x1408743c9
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x60], rbp
test rdi, rdi
je 0x1408743ba
mov edx, 0x40
mov rcx, rdi
call fcn.1408772a0
test al, al
jne 0x1408743ba
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x1408743ba
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x1408743ba
lea rbx, [rdi + rax]
mov edx, 0xf8
mov rcx, rbx
call fcn.1408772a0
test al, al
jne 0x1408743ba
cmp dword [rbx], 0x4550
jne 0x1408743ba
mov edx, 0xf8
mov rcx, rbx
call fcn.1408772a0
test al, al
jne 0x1408743ba
mov eax, 0x20b
cmp word [rbx + 0x18], ax
jne 0x1408743ba
mov rcx, rdi
call fcn.1408761a0
mov ebp, eax
mov edx, SafeArrayDestroy
lea rax, vtable.peconv::default_func_resolver.0
mov rcx, rdi
mov qword [rsp + 0x40], rax
call fcn.140875fa0
test rax, rax
je 0x1408743ba
mov ecx, dword [rax]
mov r8d, dword [rax + 4]
lea rdx, [rcx + rdi]
cmp r8d, 0x20
jb 0x1408743ba
test rdx, rdx
je 0x1408743ba
cmp rdx, rdi
jb 0x1408743ba
lea rbx, [rcx + 0x20]
cmp rbx, rbp
ja 0x1408743ba
cmp rbx, 0x20
jb 0x1408743ba
cmp rbx, rcx
jb 0x1408743ba
mov qword [rsp + 0x58], rsi
xor esi, esi
mov qword [rsp + 0x50], r15
mov r15d, r8d
shr r15, 5
mov r8b, 1
test r15, r15
je 0x1408743aa
lea rdx, [rdi - 0x20]
add rdx, rbx
je 0x1408743aa
cmp rdx, rdi
jb 0x1408743aa
cmp rbx, rbp
ja 0x1408743aa
cmp rbx, 0x20
jb 0x1408743aa
lea rax, [rbx - 0x20]
cmp rbx, rax
jb 0x1408743aa
mov eax, dword [rdi + rbx - 0x1c]
test eax, eax
je 0x1408743aa
cmp rax, r14
jbe 0x140874357
sub rax, r14
lea r9, [rdi + rax]
test r9, r9
je 0x14087439a
cmp r9, rdi
jb 0x14087439a
lea rcx, [rax + 1]
cmp rcx, rbp
ja 0x14087439a
cmp rcx, 1
jb 0x14087439a
cmp rcx, rax
jb 0x14087439a
lea rax, [rsp + 0x40]
mov r8, r14
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov qword [rsp + 0x28], rdx
mov rdx, rbp
call fcn.1408743e0
movzx r8d, al
inc rsi
add rbx, 0x20
cmp rsi, r15
jb 0x140874325
mov r15, qword [rsp + 0x50]
movzx eax, r8b
mov rsi, qword [rsp + 0x58]
jmp 0x1408743bc
xor al, al
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140879db0
add rsp, 0x68
pop r14
pop rdi
ret
Function at 0x1408745c0
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14089d020]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea r9, str.ntdll
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
lea r8d, [rax - 1]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
cmp eax, 0x40
jae 0x14087460e
movzx ecx, byte [rax + r9]
mov byte [rsp + rax + 0x20], cl
inc eax
cmp byte [rax + r9], 0
jne 0x1408745f7
mov ecx, eax
cmp rcx, 0x40
jae 0x1408746e8
lea r9, [rsp + 0x20]
add r9, rcx
lea ecx, [rax - 4]
mov byte [r9], 0
cmp byte [rsp + rcx + 0x20], 0x2e
je 0x140874659
inc eax
mov byte [r9], 0x2e
mov byte [rsp + rax + 0x20], 0x64
inc eax
mov byte [rsp + rax + 0x20], 0x6c
inc eax
mov byte [rsp + rax + 0x20], 0x6c
inc eax
cmp eax, 0x40
jae 0x1408746e8
mov byte [rsp + rax + 0x20], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x70], rdi
mov rcx, qword [rax + 0x18]
mov rdi, qword [rcx + 0x10]
mov rbx, qword [rdi + 0x30]
test rbx, rbx
je 0x1408746b9
movsxd rax, dword [rbx + 0x3c]
mov ecx, dword [rax + rbx + 0x88]
xor eax, eax
test ecx, ecx
je 0x1408746ac
mov edx, dword [rcx + rbx + 0xc]
lea rcx, [rsp + 0x20]
add rdx, rbx
call fcn.140880518
mov r8d, eax
xor eax, eax
test r8d, r8d
je 0x1408746e3
mov rdi, qword [rdi]
test r8d, r8d
jne 0x140874677
test rax, rax
jne 0x1408746c4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140879db0
add rsp, 0x78
ret
mov rax, rbx
jmp 0x1408746c4
call fcn.140879f04
int3

Function at 0x140874820
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14089d020]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov eax, 2
test ecx, ecx
mov qword [rsp + 0x30], rdi
mov r14d, 4
mov qword [rsp + 0x40], rdi
cmovne r14d, eax
mov dword [rsp + 0x38], edi
call fcn.1408745c0
mov rbp, rax
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
movzx ecx, word [rsi + 0x14]
lea rbx, [rsi + 0x18]
add rbx, rcx
cmp di, word [rsi + 6]
jae 0x1408748cc
nop dword [rax]
nop word [rax + rax]
mov r8d, 8
lea rcx, str..mrdata
mov rdx, rbx
call fcn.1408803c0
test eax, eax
je 0x1408748b9
movzx eax, word [rsi + 6]
add rbx, 0x28
inc edi
cmp edi, eax
jl 0x140874890
jmp 0x1408748cc
mov eax, dword [rbx + 0xc]
add rax, rbp
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 8]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x30], 0
je 0x14087490b
cmp qword [rsp + 0x40], 0
je 0x14087490b
lea rax, [rsp + 0x38]
mov r9d, r14d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x14087490b
mov eax, 1
jmp 0x14087490d
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140879db0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140875970
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x60
mov rax, qword [0x14089d020]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov rbx, rcx
call fcn.1408761a0
mov ebp, eax
test eax, eax
je 0x140875b26
test rbx, rbx
je 0x140875b26
mov edx, 0x40
mov rcx, rbx
call fcn.1408772a0
test al, al
jne 0x140875b26
mov r15d, 0x5a4d
cmp word [rbx], r15w
jne 0x140875b26
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140875b26
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.1408772a0
test al, al
jne 0x140875b26
cmp dword [rdi], 0x4550
jne 0x140875b26
mov edx, 0xf8
mov rcx, rdi
call fcn.1408772a0
test al, al
jne 0x140875b26
mov r12d, 0x20b
cmp word [rdi + 0x18], r12w
jne 0x140875b26
mov qword [rsp + 0x98], r14
lea rax, vtable.peconv::default_func_resolver.0
test rsi, rsi
mov qword [rsp + 0x20], rax
lea r14, [rsp + 0x20]
mov qword [rsp + 0x30], rbx
cmovne r14, rsi
mov qword [rsp + 0x38], rbp
xor esi, esi
mov rcx, rbx
mov dword [rsp + 0x41], esi
mov word [rsp + 0x45], si
mov byte [rsp + 0x47], sil
lea edx, [rsi + 0x40]
call fcn.1408772a0
test al, al
jne 0x140875ab8
cmp word [rbx], r15w
jne 0x140875ab8
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140875ab8
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.1408772a0
test al, al
jne 0x140875ab8
cmp dword [rdi], 0x4550
jne 0x140875ab8
mov edx, 0xf8
mov rcx, rdi
call fcn.1408772a0
test al, al
jne 0x140875ab8
movzx esi, word [rdi + 0x18]
lea rax, vtable.FillImportThunks.0
mov qword [rsp + 0x48], r14
cmp si, r12w
mov qword [rsp + 0x28], rax
mov edx, 1
mov rcx, rbx
sete byte [rsp + 0x40]
call fcn.140875fa0
mov r14, qword [rsp + 0x98]
test rax, rax
jne 0x140875af0
mov al, 1
jmp 0x140875b28
mov ecx, dword [rax]
lea r8, [rcx + rbx]
test r8, r8
je 0x140875b26
cmp r8, rbx
jb 0x140875b26
lea rax, [rcx + 0x14]
cmp rax, rbp
ja 0x140875b26
cmp rax, 0x14
jb 0x140875b26
cmp rax, rcx
jb 0x140875b26
lea r9, [rsp + 0x28]
mov rdx, rbp
mov rcx, rbx
call fcn.1408755d0
jmp 0x140875b28
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140879db0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140875ce0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140875d05
test rdx, rdx
je 0x140875d17
cmp rdx, 0x40
jae 0x140875d25
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, 0x40
call fcn.1408772a0
test al, al
jne 0x140875d05
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140875d05
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x140875d05
lea rbx, [rax + rdi]
mov rcx, rax
test rsi, rsi
je 0x140875d6a
test rbx, rbx
je 0x140875d05
cmp rbx, rdi
jb 0x140875d05
add rax, 0xf8
cmp rax, rsi
ja 0x140875d05
cmp rax, 0xf8
jb 0x140875d05
cmp rax, rcx
jb 0x140875d05
jmp 0x140875d7b
mov edx, 0xf8
mov rcx, rbx
call fcn.1408772a0
test al, al
jne 0x140875d05
mov rsi, qword [rsp + 0x38]
xor eax, eax
cmp dword [rbx], 0x4550
cmovne rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140875da0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140875e90
mov edx, 0x40
call fcn.1408772a0
test al, al
jne 0x140875e90
mov edi, 0x5a4d
cmp word [rbx], di
jne 0x140875e90
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140875e90
lea rsi, [rbx + rax]
mov edx, 0xf8
mov rcx, rsi
call fcn.1408772a0
test al, al
jne 0x140875e90
cmp dword [rsi], 0x4550
jne 0x140875e90
mov edx, 0x40
mov rcx, rbx
call fcn.1408772a0
test al, al
jne 0x140875e7d
cmp word [rbx], di
jne 0x140875e7d
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140875e7d
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.1408772a0
test al, al
jne 0x140875e7d
cmp dword [rdi], 0x4550
jne 0x140875e7d
mov edx, 0xf8
mov rcx, rdi
call fcn.1408772a0
test al, al
jne 0x140875e7d
xor eax, eax
mov ecx, 0x20b
cmp word [rdi + 0x18], cx
cmovne rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret