joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000151c
Capabilities:
Contain obfuscated stackstrings
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
mov rsi, rdx
and qword [rax - 0x48], rbx
xor r9d, r9d
and dword [rax - 0x50], ebx
mov edx, 0x80000000
lea r8d, [rbx + 3]
mov dword [rax - 0x58], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400016fb
lea rdx, [rbp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000158f
mov ebx, dword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [rbp + 0x38]
mov rbx, rax
mov dword [rsi], ecx
mov byte [rbp - 0x10], 0x51
xor r9d, r9d
mov byte [rbp - 0xf], 6
mov r10d, 0x81020409
mov byte [rbp - 0xe], 0x66
mov byte [rbp - 0xd], 0x1e
mov byte [rbp - 0xc], 0x73
mov byte [rbp - 0xb], 0x25
mov byte [rbp - 0xa], 0x5c
mov byte [rbp - 9], 6
mov byte [rbp - 8], 0x11
mov al, byte [rbp - 0x10]
movzx ecx, byte [rbp + r9 - 0x10]
mov eax, r10d
sub ecx, 0x11
imul r8d, ecx, 0x25
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov eax, r10d
add r8d, 0x7f
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov byte [rbp + r9 - 0x10], r8b
inc r9
cmp r9, 9
jb 0x1400015bf
mov byte [rbp - 0x20], 0x4c
xor r9d, r9d
mov byte [rbp - 0x1f], 0x32
mov byte [rbp - 0x1e], 0x40
mov byte [rbp - 0x1d], 0x59
mov byte [rbp - 0x1c], 0x32
mov byte [rbp - 0x1b], 0x26
mov byte [rbp - 0x1a], 0x2d
mov byte [rbp - 0x19], 0x53
mov byte [rbp - 0x18], 0x6c
mov byte [rbp - 0x17], 0x58
mov byte [rbp - 0x16], 0x26
mov byte [rbp - 0x15], 0x26
mov byte [rbp - 0x14], 0x4e
mov al, byte [rbp - 0x20]
movzx ecx, byte [rbp + r9 - 0x20]
mov eax, r10d
sub ecx, 0x4e
lea r8d, [rcx + rcx*4]
add r8d, r8d
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov eax, r10d
add r8d, 0x7f
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov byte [rbp + r9 - 0x20], r8b
inc r9
cmp r9, 0xd
jb 0x14000164a
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rbx, rbx
je 0x1400016f2
mov r8d, dword [rbp + 0x38]
lea r9, [rbp + 0x30]
and qword [rsp + 0x20], 0
mov rdx, rbx
mov rcx, rdi
call rax
test eax, eax
je 0x1400016dc
mov eax, dword [rbp + 0x38]
cmp dword [rbp + 0x30], eax
je 0x1400016f2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003284
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov byte [rbp - 0x20], 0x73
xor r9d, r9d
mov byte [rbp - 0x1f], 0x58
mov r10d, 0x81020409
mov byte [rbp - 0x1e], 2
mov byte [rbp - 0x1d], 0x58
mov byte [rbp - 0x1c], 0x4c
mov byte [rbp - 0x1b], 0x58
mov byte [rbp - 0x1a], 0xd
mov byte [rbp - 0x19], 0x58
mov byte [rbp - 0x18], 6
mov byte [rbp - 0x17], 0x58
mov byte [rbp - 0x16], 0x2a
mov byte [rbp - 0x15], 0x58
mov byte [rbp - 0x14], 0x6b
mov byte [rbp - 0x13], 0x58
mov byte [rbp - 0x12], 0x22
mov byte [rbp - 0x11], 0x58
mov byte [rbp - 0x10], 0x77
mov byte [rbp - 0xf], 0x58
mov byte [rbp - 0xe], 0x41
mov byte [rbp - 0xd], 0x58
mov byte [rbp - 0xc], 1
mov byte [rbp - 0xb], 0x58
mov byte [rbp - 0xa], 0x6b
mov byte [rbp - 9], 0x58
mov byte [rbp - 8], 0x58
mov byte [rbp - 7], 0x58
mov al, byte [rbp - 0x20]
movzx ecx, byte [rbp + r9 - 0x20]
mov eax, r10d
sub ecx, 0x58
lea r8d, [rcx + rcx*2]
shl r8d, 2
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov eax, r10d
add r8d, 0x7f
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov byte [rbp + r9 - 0x20], r8b
inc r9
cmp r9, 0x1a
jb 0x140003301
lea rcx, [rbp - 0x20]
call fcn.140002c80
add rsp, 0x40
pop rbp
ret

Function at 0x140003368
Capabilities:
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 r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r15, rdx
mov rdi, rcx
mov ebp, ebx
mov esi, dword [rax + rcx + 0x88]
add rsi, rcx
cmp dword [rsi + 0x18], ebx
jbe 0x1400033e1
mov ecx, dword [rsi + 0x20]
add rcx, rdi
mov r14d, ebp
lea rax, [rcx + r14*4]
test rax, rax
je 0x1400033c1
mov edx, dword [rax]
mov rcx, r15
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1400033ca
inc ebp
cmp ebp, dword [rsi + 0x18]
jae 0x1400033e1
jmp 0x14000339d
mov ecx, dword [rsi + 0x24]
add rcx, rdi
movzx edx, word [rcx + r14*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rdi
mov ebx, dword [rcx + rdx*4]
add rbx, rdi
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140003400
Capabilities:
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 r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor esi, esi
mov r15, rdx
mov rdi, rcx
mov ebp, esi
mov ebx, dword [rax + rcx + 0x88]
add rbx, rcx
cmp dword [rbx + 0x18], esi
jbe 0x140003476
mov ecx, dword [rbx + 0x20]
add rcx, rdi
mov r14d, ebp
lea rax, [rcx + r14*4]
test rax, rax
je 0x140003459
mov edx, dword [rax]
mov rcx, r15
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140003462
inc ebp
cmp ebp, dword [rbx + 0x18]
jae 0x140003476
jmp 0x140003435
mov ecx, dword [rbx + 0x24]
add rcx, rdi
movzx edx, word [rcx + r14*2]
mov ecx, dword [rbx + 0x1c]
add rcx, rdi
mov esi, dword [rcx + rdx*4]
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x30
xor ebx, ebx
mov esi, edx
add rsi, rcx
mov r9d, edx
mov eax, 0x5a4d
mov qword [rsp + 0x60], rsi
mov rbp, r8
mov edi, ebx
lea r15d, [rbx + 1]
cmp ax, word [rcx]
jne 0x140003517
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
cmp dword [r8], 0x4550
jne 0x140003517
movzx eax, word [r8 + 0x14]
lea rdx, [r8 + 0x18]
movzx r11d, word [r8 + 6]
add rdx, rax
cmp bx, r11w
movzx r10d, bx
jae 0x140003517
mov r8d, dword [rdx + 0xc]
cmp r9d, r8d
jb 0x140003500
mov ecx, dword [rdx + 0x10]
add ecx, r8d
cmp r9d, ecx
jb 0x14000350e
add r10w, r15w
add rdx, 0x28
cmp r10w, r11w
jmp 0x1400034ea
mov edi, dword [rdx + 0x14]
sub edi, r8d
add edi, r9d
mov qword [rsp + 0x78], 8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
lea r8, [rsp + 0x78]
mov rcx, rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [0x140025b90]
test eax, eax
jne 0x14000359b
mov eax, edi
mov ebx, r15d
mov rcx, qword [rax + rbp]
mov qword [rsi], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x68]
lea r8, [rsp + 0x78]
mov rcx, rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [0x140025b90]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x60]
mov r8d, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, ebx
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004dc4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov byte [rbp + 0x20], 0x26
mov rbx, rcx
mov byte [rbp + 0x21], 0x39
xor edi, edi
mov byte [rbp + 0x22], 0x5b
mov byte [rbp + 0x23], 0x4a
mov byte [rbp + 0x24], 0x4a
mov byte [rbp + 0x25], 0x71
mov al, byte [rbp + 0x20]
movzx ecx, byte [rbp + rdi + 0x20]
mov eax, 0x81020409
sub ecx, 0x71
imul ecx, ecx, 7
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov eax, 0x81020409
add ecx, 0x7f
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov byte [rbp + rdi + 0x20], cl
inc rdi
cmp rdi, 6
jb 0x140004df9
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140004f5c
mov byte [rbp - 0x50], 0x75
xor r8d, r8d
mov byte [rbp - 0x4f], 0x68
mov byte [rbp - 0x4e], 0x7e
mov byte [rbp - 0x4d], 0x6b
mov byte [rbp - 0x4c], 0x3b
mov byte [rbp - 0x4b], 0x62
mov byte [rbp - 0x4a], 0x77
mov byte [rbp - 0x49], 0x66
mov byte [rbp - 0x48], 0x56
mov byte [rbp - 0x47], 0x3e
mov byte [rbp - 0x46], 0x59
mov byte [rbp - 0x45], 0x62
mov byte [rbp - 0x44], 0x53
mov byte [rbp - 0x43], 0x2f
mov byte [rbp - 0x42], 0x68
mov byte [rbp - 0x41], 0x47
mov byte [rbp - 0x40], 0x59
mov byte [rbp - 0x3f], 0x56
mov byte [rbp - 0x3e], 0x7b
mov byte [rbp - 0x3d], 0x62
mov byte [rbp - 0x3c], 0x59
mov byte [rbp - 0x3b], 0x35
mov byte [rbp - 0x3a], 0x3b
mov byte [rbp - 0x39], 0x65
mov byte [rbp - 0x38], 0x65
mov byte [rbp - 0x37], 0xa
mov al, byte [rbp - 0x50]
movzx ecx, byte [rbp + r8 - 0x50]
mov eax, 0xa
sub eax, ecx
imul ecx, eax, 0x2a
mov eax, 0x81020409
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov eax, 0x81020409
add ecx, 0x7f
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov byte [rbp + r8 - 0x50], cl
inc r8
cmp r8, 0x1a
jb 0x140004ec8
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140004f5c
xor eax, eax
lea rdi, [rbp - 0x30]
and dword [rbp + 0x18], eax
lea r8, [rbp - 0x30]
lea edx, [rax + 0x30]
mov ecx, edx
mov r9d, edx
rep stosb byte [rdi], al
lea rax, [rbp + 0x18]
mov rcx, rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call r10
mov rax, qword [rbp - 0x28]
jmp 0x140004f5e
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000c668
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c48c
Function at 0x140003ba0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x1078
call fcn.14000ec30
sub rsp, rax
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov r14, rdx
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x10c0]
xor ebp, ebp
mov qword [rsp + 0x30], rdx
mov r13, r8
mov qword [rsp + 0x40], rcx
test r8, r8
jne 0x140003bf2
mov rdx, rbp
jmp 0x140003cbb
mov r9d, 0x1000
lea rdx, [rsp + 0x50]
call fcn.140002520
test al, al
je 0x140003bea
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x1070], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1068], r12
mov qword [rsp + 0x1060], r15
nop dword [rax]
inc rdi
cmp byte [r14 + rdi], bpl
jne 0x140003c30
movsxd rax, dword [rsp + 0x8c]
lea rcx, [rsp + 0x50]
add rcx, rax
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x140003c98
mov eax, esi
mov r8, rdi
mov rdx, r14
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140003c91
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140003c83
cmp rdi, rax
je 0x140003cf5
inc esi
cmp esi, r15d
jb 0x140003c60
mov rdx, rbp
mov r12, qword [rsp + 0x1068]
mov rdi, qword [rsp + 0x1070]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1060]
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.140003a90
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000dba0
add rsp, 0x1078
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140003c98
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x50]
add rdx, rax
je 0x140003c98
test ecx, ecx
je 0x140003c98
lea rax, [rsp + 0x50]
mov ebp, ecx
sub rdx, rax
add rdx, r13
jmp 0x140003c9b

Function at 0x140004750
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 0x140004778
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 0x14000479e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400047a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400047f9
test ecx, ecx
jle 0x1400047d9
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 0x1400047f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400047f9
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 0x140004820
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 0x140004842
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004858
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 0x140004874
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004876
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400048b2
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 0x14000494e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400048ed
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 0x14000492e
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 0x14000494e
cmp rbx, rax
ja 0x140004900
test rbx, rbx
je 0x14000494e
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 0x140004db0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140004ddd
xor eax, eax
jmp 0x140004f49
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004e17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004e17
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 0x140004f49
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004f3c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004e5a
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 0x140004e85
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 0x140004f41
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 0x140004ef4
sub eax, 1
je 0x140004ef4
cmp eax, 2
jne 0x140004f3c
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 0x140004f41
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004f22
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 0x140004f3c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004f41
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000dba0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005320
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400053f3
cmp byte [rcx + 0x71], 0
je 0x1400053f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400053ef
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 0x1400053b4
sub eax, 1
je 0x1400053b8
cmp eax, 2
jne 0x1400053ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000dba0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400053e6
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 0x1400053ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000539c
xor al, al
jmp 0x14000539c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000dba0
add rsp, 0x60
pop rbx
ret
Function at 0x14000abc0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000ac5f
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000ac5f
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
je 0x14000ac52
mov rdi, qword [r8 + rcx + 0x58]
test rdi, rdi
je 0x14000ac52
sub rcx, rdx
movabs rsi, 0x2b992ddfa232
add rdi, rcx
cmp qword [rdi], rsi
jne 0x14000ac5f
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movabs rax, 0x2b992ddfa233
xor rcx, rbx
mov rbx, qword [rsp + 0x30]
xor rcx, rsi
cmp rcx, rsi
cmove rcx, rax
mov al, 1
mov qword [rdi], rcx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x14000b410
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000b522
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000b522
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x14000b489
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14000b52d
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14000b510
mov edx, dword [rbx + 4]
test edx, edx
je 0x14000b510
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14000b4e9
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14000b505
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000bdf0
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000b4a1
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14000b52d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000dba0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret