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

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400364cf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400364cf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400364cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400364cf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400364cf
cmp dword [rcx + 0x84], 0xe
jbe 0x1400364cf
cmp dword [rcx + 0xf8], 0
je 0x1400364cf
mov ecx, ebx
call fcn.140036570
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14003634c
cmp dword [rbp + 0x20], 0
je 0x14003651c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140036524
int3
xor r8d, r8d
xor edx, edx
jmp 0x140036468
Function at 0x140041b58
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14002ae30
sub rsp, rax
mov rax, qword [0x140087710]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.14003dd6c
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x140041bac
mov rax, r14
jmp 0x140041cc6
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x140000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0x8bd50]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.140041f34
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rdi*8 + 0x8bd50]
cmp r13, qword [rbx + rcx + 0x30]
je 0x140041c13
or rax, 0xffffffffffffffff
jmp 0x140041cc6
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0x8bd50]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140041c0a
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.140041f34
test rax, rax
js 0x140041c0a
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x140041c0a
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x140041cba
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140041cba
cmp byte [rcx], 0xd
jne 0x140041ca0
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140041caf
cmp byte [rcx + 1], 0xa
jne 0x140041caf
inc rcx
jmp 0x140041caf
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x88160]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x140041c82
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002ad40
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140049e80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x14008bd50]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x140049ee5
cmp byte [r14], 0xa
jne 0x140049ee5
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x140049f06
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x14004a060
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x14004a020
cmp al, 0xd
je 0x140049f3a
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x14004a015
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x140049f60
cmp byte [rax], 0xa
jne 0x140049f52
mov byte [rbx], 0xa
mov eax, 2
jmp 0x140049f58
mov byte [rbx], SafeArrayDestroy
mov rax, r13
add rsi, rax
jmp 0x14004a012
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004a008
cmp dword [rsp + 0x78], 0
je 0x14004a008
mov rcx, rdi
lea r10, [0x14008bd50]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x140049fd8
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x140049fe4
mov rcx, rdi
mov byte [rbx], SafeArrayDestroy
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x14004a012
cmp byte [rsp + 0x70], 0xa
jne 0x140049fe9
cmp rbx, r14
jne 0x140049fe9
mov byte [rbx], 0xa
jmp 0x14004a012
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.140041f3c
cmp byte [rsp + 0x70], 0xa
lea r10, [0x14008bd50]
je 0x14004a015
jmp 0x14004a00f
lea r10, [0x14008bd50]
mov byte [rbx], SafeArrayDestroy
add rbx, r13
cmp rsi, rbp
jb 0x140049f1f
jmp 0x14004a060
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x14004a059
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x14004a060
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a080
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 r11, [0x14008bd50]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x14004a0ec
cmp word [r14], r10w
jne 0x14004a0ec
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x14004a10d
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x14004a2e6
mov ecx, SafeArrayGetDim
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x14004a2a4
cmp ax, cx
je 0x14004a149
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x14004a23d
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x14004a171
cmp word [rax], r10w
jne 0x14004a163
mov word [rbx], r10w
mov eax, 4
jmp 0x14004a169
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x14004a287
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004a28c
cmp dword [rsp + 0x80], 0
je 0x14004a28c
mov rcx, rdi
lea r11, [0x14008bd50]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x14004a24b
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x14004a1e3
mov word [rbx], r10w
jmp 0x14004a235
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, SafeArrayGetDim
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x14004a204
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, SafeArrayGetDim
cmp rsi, rbp
jb 0x14004a129
jmp 0x14004a2e6
cmp word [rsp + 0x70], r10w
jne 0x14004a258
cmp rbx, r14
je 0x14004a1dd
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140041f3c
mov r10d, 0xa
lea r11, [0x14008bd50]
cmp word [rsp + 0x70], r10w
je 0x14004a238
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x14004a23d
mov ecx, SafeArrayGetDim
lea r11, [0x14008bd50]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x14004a23d
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x14004a2dd
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x14004a2e6
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [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
Function at 0x140820e40
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140820fc7
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 0x140820e71
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140820e57
add dl, dl
jne 0x140820e7e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140820ede
xor eax, eax
add dl, dl
jne 0x140820e8d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140820f95
add dl, dl
jne 0x140820e9e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140820eab
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140820eb8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140820ec5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140820ed2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140820e66
mov eax, 1
add dl, dl
jne 0x140820eee
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140820efb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140820ee3
sub eax, ebx
mov ebx, 1
jne 0x140820f34
mov ecx, 1
add dl, dl
jne 0x140820f16
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140820f23
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140820f0b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140820e66
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140820f50
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140820f5d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140820f45
cmp eax, 0x7d00
jae 0x140820f83
cmp eax, 0x500
jb 0x140820f7e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140820e66
cmp eax, 0x7f
ja 0x140820f86
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140820e66
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140820fba
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 0x140820e66
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400073d0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xf0
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x70], 0x68
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xor ebx, ebx
movups xmmword [r11 - 0x50], xmm0
mov dword [r11 - 0x4c], 1
mov word [r11 - 0x48], bx
movups xmmword [r11 - 0x70], xmm0
movups xmmword [r11 - 0x60], xmm0
movups xmmword [r11 - 0x40], xmm0
movups xmmword [r11 - 0x30], xmm0
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000748c
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14000b580
add rsp, 0xf0
pop rbx
ret

Function at 0x14000a040
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14000a068
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp 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]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000a08e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000a090
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000a0e9
test ecx, ecx
jle 0x14000a0c9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000a0e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000a0e9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x14000a110
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000a132
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000a148
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a164
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a166
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a1a2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000a23e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000a1dd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000a21e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000a23e
cmp rbx, rax
ja 0x14000a1f0
test rbx, rbx
je 0x14000a23e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14000a6a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000a6cd
xor eax, eax
jmp 0x14000a839
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a707
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000a707
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000a839
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000a82c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a74a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000a775
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a831
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000a7e4
sub eax, 1
je 0x14000a7e4
cmp eax, 2
jne 0x14000a82c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a831
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000a812
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000a82c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a831
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000b580
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000ab80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000ac53
cmp byte [rcx + 0x71], 0
je 0x14000ac53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000ac4f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
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]
test eax, eax
je 0x14000ac14
sub eax, 1
je 0x14000ac18
cmp eax, 2
jne 0x14000ac4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b580
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000ac46
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000ac4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000abfc
xor al, al
jmp 0x14000abfc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b580
add rsp, 0x60
pop rbx
ret

Function at 0x14000bf00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bf4a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bf4a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bf4a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bf4a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bf4a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bf4c
xor al, al
add rsp, 0x28
ret
Function at 0x65281440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
cdqe
add rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov eax, eax
add rax, qword [rbp + 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov eax, eax
add rax, qword [rbp + 0x10]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov eax, eax
add rax, qword [rbp + 0x10]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov eax, eax
add rax, qword [rbp + 0x10]
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
jmp 0x6528150a
mov eax, dword [rbp - 4]
shl rax, 2
add rax, qword [rbp - 0x28]
mov eax, dword [rax]
mov eax, eax
add rax, qword [rbp + 0x10]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x65281506
mov eax, dword [rbp - 4]
add rax, rax
add rax, qword [rbp - 0x38]
movzx eax, word [rax]
movzx eax, ax
shl rax, 2
add rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov eax, eax
add rax, qword [rbp + 0x10]
jmp 0x65281520
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x18]
cmp eax, dword [rbp - 4]
seta al
test al, al
jne 0x652814b9
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x65281526
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0xbe0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb80], rcx
mov dword [rbp + 0xb88], edx
mov qword [rbp + 0xb90], r8
mov eax, dword [rbp + 0xb88]
cmp eax, 1
je 0x6528156e
cmp eax, 1
jb 0x6528172d
cmp eax, 3
ja 0x6528172e
jmp 0x6528172d
mov qword [rbp + 0xb50], 0
mov qword [rbp + 0xb48], 0
lea rdx, [rbp - 0x60]
lea rax, [0x65283020]
mov ecx, 0x173
mov rdi, rdx
mov rsi, rax
rep movsq qword [rdi], qword [rsi]
mov rax, rsi
mov rdx, rdi
mov ecx, dword [rax]
mov dword [rdx], ecx
add rdx, 4
add rax, 4
movzx ecx, byte [rax]
mov byte [rdx], cl
add rdx, 1
add rax, 1
mov dword [rbp + 0xb44], 0xb9d
mov edx, 0
lea rcx, str.werfault.exe
mov rax, qword [sym.imp.ole32.dll_CoLoadLibrary]
call rax
mov qword [rbp + 0xb50], rax
cmp qword [rbp + 0xb50], 0
jne 0x652815f6
mov eax, 0
jmp 0x65281733
mov eax, dword [rbp + 0xb44]
cdqe
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0xb48], rax
lea r8, [0x65287020]
mov eax, 0
mov edx, 6
mov rdi, r8
mov rcx, rdx
rep stosq qword [rdi], rax
lea rax, [0x65284020]
mov qword [0x65287028], rax
mov qword [0x65287030], 0x30
mov rax, qword [rbp + 0xb80]
mov qword [0x65287020], rax
mov qword [0x65287038], 0x7f
mov qword [0x65287040], 0xa
mov dword [rbp + 0xb40], 0x8a893
mov dword [rbp + 0xb5c], 0
jmp 0x65281704
mov eax, dword [rbp + 0xb5c]
cdqe
mov r8, rax
add r8, qword [rbp + 0xb48]
mov eax, dword [rbp + 0xb40]
mov edx, dword [rbp + 0xb5c]
mov ecx, edx
sub ecx, eax
mov eax, ecx
add eax, dword [rbp + 0xb40]
cdqe
movzx r9d, byte [rbp + rax - 0x60]
mov r10, qword [0x65287028]
mov ecx, dword [rbp + 0xb5c]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 3
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
add eax, eax
add eax, edx
shl eax, 4
mov edx, ecx
sub edx, eax
movsxd rax, edx
add rax, r10
movzx eax, byte [rax]
xor eax, r9d
mov byte [r8], al
add dword [rbp + 0xb5c], 1
mov eax, dword [rbp + 0xb5c]
cmp eax, dword [rbp + 0xb44]
setl al
test al, al
jne 0x6528168f
mov rax, qword [rbp + 0xb48]
lea rcx, [0x65287020]
call rax
jmp 0x6528172d
nop
mov eax, 1
add rsp, 0xbe0
pop rsi
pop rdi
pop rbp
ret