joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea r12, [rsp - 0x40]
cmp r12, qword [r14 + 0x10]
jbe 0x4c852b
push rbp
mov rbp, rsp
sub rsp, 0xb8
mov rdx, rax
mov r8d, dword [rax + 0x3c]
add r8, rdx
nop
cmp dword [r8], 0x4550
jne 0x4c8376
mov qword [rsp + 0x80], rdx
mov r8d, dword [r8 + 0x88]
add r8, rdx
mov qword [rsp + 0xb0], r8
mov r9d, dword [r8 + 0x1c]
mov r10d, dword [r8 + 0x20]
mov r11d, dword [r8 + 0x24]
add r9, rdx
mov qword [rsp + 0x58], r9
add r10, rdx
mov qword [rsp + 0x50], r10
add r11, rdx
mov qword [rsp + 0x48], r11
xor eax, eax
xor ecx, ecx
xor ebx, ebx
xor esi, esi
jmp 0x4c8391
xor eax, eax
xor ebx, ebx
mov rcx, rbx
add rsp, 0xb8
pop rbp
ret
mov qword [rbx + rsi*8 - 0x18], rdi
inc rax
mov rsi, r15
mov r12d, dword [r8 + 0x18]
cmp rax, r12
jae 0x4c848a
mov qword [rsp + 0x78], rax
lea r12, [r10 + rax*4]
mov r12d, dword [r12]
add r12, rdx
lea r13, [r11 + rax*2]
movzx r13d, word [r13]
lea r13, [r9 + r13*4]
mov r13d, dword [r13]
add r13, rdx
mov qword [rsp + 0x60], r13
test r12, r12
je 0x4c83e5
cmp byte [r12], 0
jne 0x4c83da
xor edi, edi
xor r12d, r12d
jmp 0x4c83ea
mov rdi, r12
xor r15d, r15d
jmp 0x4c849f
xor edi, edi
xor r12d, r12d
lea r15, [rsi + 1]
cmp rcx, r15
jae 0x4c8453
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x40], r12
mov rax, rbx
mov rbx, r15
mov edi, 1
lea rsi, [0x004ebde0]
call fcn.00466f40
mov rdx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov r8, qword [rsp + 0xb0]
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
mov r11, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov r13, qword [rsp + 0x60]
mov r15, rbx
mov rbx, rax
mov rax, qword [rsp + 0x78]
lea rsi, [r15 + r15*2]
mov qword [rbx + rsi*8 - 0x10], r12
mov qword [rbx + rsi*8 - 8], r13
cmp dword [0x00687330], 0
je 0x4c8386
mov r12, r11
call fcn.0046d2c0
mov qword [r11], rdi
mov r13, qword [rbx + rsi*8 - 0x18]
mov qword [r11 + 8], r13
mov r11, r12
jmp 0x4c8386
mov rax, rbx
mov rbx, rsi
add rsp, 0xb8
pop rbp
ret
inc r15
inc r12
cmp byte [r12], 0
jne 0x4c8499
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], r15
mov rbx, qword [rsp + 0x90]
xor eax, eax
mov rcx, r15
nop dword [rax]
call fcn.004678a0
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x68]
mov r8, qword [rsp + 0xb0]
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
mov r11, qword [rsp + 0x48]
mov r13, qword [rsp + 0x60]
mov rdi, rax
mov r12, rbx
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xa8]
jmp 0x4c83ea
mov qword [rsp + 8], rax
call fcn.0046b380
mov rax, qword [rsp + 8]
jmp fcn.004c8300
Function at 0x4c9d80
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
nop
mov rax, qword [rax + 0x18]
nop
mov rax, qword [rax + 0x20]
nop
xor r10, r10
cmp r10, qword [rsp + 8]
nop
je 0x4c9da9
nop
mov rax, qword [rax]
nop
inc r10
jmp 0x4c9d97
mov rcx, qword [rax + 0x30]
nop
mov qword [rsp + 0x18], rcx
nop
mov rcx, qword [rax + 0x20]
nop
mov qword [rsp + 0x10], rcx
nop
mov rcx, rax
nop
add rcx, 0x38
nop
mov qword [rsp + 0x20], rcx
ret
Function at 0x4cb000
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x4cb03f
jb 0x4cb054
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesdeclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x4cb0c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x4cb194
jb 0x4cb1f3
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.004cafa0
aeskeygenassist xmm1, xmm0, 1
call fcn.004cafc0
aeskeygenassist xmm1, xmm2, 2
call fcn.004cafa0
aeskeygenassist xmm1, xmm0, 2
call fcn.004cafc0
aeskeygenassist xmm1, xmm2, 4
call fcn.004cafa0
aeskeygenassist xmm1, xmm0, 4
call fcn.004cafc0
aeskeygenassist xmm1, xmm2, 8
call fcn.004cafa0
aeskeygenassist xmm1, xmm0, 8
call fcn.004cafc0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004cafa0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004cafc0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004cafa0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004cafc0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004cafa0
jmp 0x4cb261
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.004caf00
aeskeygenassist xmm1, xmm2, 2
call fcn.004caf60
aeskeygenassist xmm1, xmm2, 4
call fcn.004caf00
aeskeygenassist xmm1, xmm2, 8
call fcn.004caf60
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004caf00
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004caf60
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004caf00
aeskeygenassist xmm1, xmm2, 0x80
call fcn.004caf60
jmp 0x4cb261
aeskeygenassist xmm1, xmm0, 1
call fcn.004caec0
aeskeygenassist xmm1, xmm0, 2
call fcn.004caec0
aeskeygenassist xmm1, xmm0, 4
call fcn.004caec0
aeskeygenassist xmm1, xmm0, 8
call fcn.004caec0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004caec0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004caec0
aeskeygenassist xmm1, xmm0, 0x40
call fcn.004caec0
aeskeygenassist xmm1, xmm0, 0x80
call fcn.004caec0
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.004caec0
aeskeygenassist xmm1, xmm0, 0x36
call fcn.004caec0
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x4cb26e
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret
Function at 0x4ccac0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4cccfb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rbx
nop
call fcn.004a5360
xorps xmm15, xmm15
mov r14, qword [0x006872c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
add qword [rcx + 0x68], rax
mov rdx, qword [rcx + 0x60]
test rdx, rdx
jle 0x4ccc0a
nop dword [rax]
cmp rdx, 0x40
ja 0x4ccced
lea rsi, [rdx - 0x40]
mov rdi, rsi
neg rsi
sar rdi, 0x3f
and rdi, rdx
lea rdx, [rcx + rdi]
lea rdx, [rdx + 0x20]
cmp rax, rsi
cmovl rsi, rax
mov qword [rsp + 0x28], rsi
mov rbx, qword [rsp + 0x60]
cmp rbx, rdx
je 0x4ccb79
mov rax, rdx
mov rcx, rsi
nop
call fcn.0046dfe0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x60]
add rdx, rsi
mov qword [rcx + 0x60], rdx
cmp rdx, 0x40
jne 0x4ccbe1
mov qword [rsp], rcx
lea rax, [rcx + 0x20]
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call fcn.004cd120
xorps xmm15, xmm15
mov r14, qword [0x006872c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x60], 0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
cmp rax, rsi
jb 0x4ccce2
mov rdi, qword [rsp + 0x70]
sub rdi, rsi
mov rdx, rdi
neg rdx
sar rdx, 0x3f
and rdx, rsi
mov r8, rax
sub r8, rsi
add rbx, rdx
jmp 0x4ccc17
mov r8, rax
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
cmp r8, 0x40
jl 0x4ccc95
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdi
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
and r8, 0xffffffffffffffc0
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], rdi
call fcn.004cd120
xorps xmm15, xmm15
mov r14, qword [0x006872c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rdx, rax
sub rax, rcx
sar rax, 0x3f
mov r8, qword [rsp + 0x38]
and rax, r8
and rax, 0xffffffffffffffc0
mov rcx, qword [rsp + 0x40]
lea rbx, [rcx + rax]
sub r8, rdx
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
test r8, r8
je 0x4cccd8
lea rdx, [rcx + 0x20]
cmp r8, 0x40
mov esi, 0x40
cmovl rsi, r8
cmp rbx, rdx
je 0x4cccd4
mov qword [rsp + 0x38], rsi
mov rax, rdx
mov rcx, rsi
nop dword [rax + rax]
call fcn.0046dfe0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x38]
mov qword [rcx + 0x60], rsi
xor ebx, ebx
xor ecx, ecx
add rsp, 0x48
pop rbp
ret
mov rcx, rax
mov rax, rsi
call fcn.0046d720
mov rax, rdx
mov ecx, 0x40
call fcn.0046d720
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046b380
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.004ccac0
Function at 0x140011244
Capabilities:
Terminate process

Disassembly:
jmp 0x140013a30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112df
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014d80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014da0
xor al, al
jmp 0x140014e21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014db3
xor al, al
jmp 0x140014e21
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014ddd
xor al, al
jmp 0x140014e21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014df1
xor al, al
jmp 0x140014e21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014e03
xor al, al
jmp 0x140014e21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014e1f
xor al, al
jmp 0x140014e21
mov al, 1
add rsp, 0x38
ret
Function at 0x2488058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.024881df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x2488089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x248806f
add dl, dl
jne 0x2488096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x24880f6
xor eax, eax
add dl, dl
jne 0x24880a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x24881ad
add dl, dl
jne 0x24880b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x24880c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x24880d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x24880dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x24880ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x248807e
mov eax, 1
add dl, dl
jne 0x2488106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2488113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x24880fb
sub eax, ebx
mov ebx, 1
jne 0x248814c
mov ecx, 1
add dl, dl
jne 0x248812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x248813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x2488123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x248807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x2488168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2488175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x248815d
cmp eax, 0x7d00
jae 0x248819b
cmp eax, 0x500
jb 0x2488196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x248807e
cmp eax, 0x7f
ja 0x248819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x248807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x24881d2
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 0x248807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004300
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000434a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000434a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000434a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000434a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000434a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000434c
xor al, al
add rsp, 0x28
ret

Function at 0x140001008
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001069
lea rcx, str.Windows_original_main_args:_n
call fcn.140001148
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], ebx
jle 0x140001069
xor edi, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [rdi + r8]
call fcn.140001148
inc ebx
lea rdi, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebx, dword [rax]
jl 0x14000103e
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
test edi, edi
jle 0x1400010b5
xor edx, edx
mov r9d, edi
mov rcx, qword [rax]
lea rax, [rax + 0x10]
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010a2
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010cc
mov rcx, qword [rbx]
mov rax, qword [section..data]
test rax, rax
jne 0x1400010db
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
lea r9, str._J_ms8m
mov byte [rsp + 0x60], 0
mov r8d, 2
mov byte [rsp + 0x58], 0
mov rdx, rbx
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov ecx, edi
mov qword [rsp + 0x40], rax
lea rax, [0x140002314]
mov qword [rsp + 0x38], rax
lea rax, [0x140002318]
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x1400018f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000193e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000193e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000193e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000193e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000193e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001940
xor al, al
add rsp, 0x28
ret
Function at 0x140005f30
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140005fd0
jmp 0x140005fbf
jae 0x14000608f
cmp r8, 0x201
jae 0x140005fd0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140006027
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x140005fff
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14001df10
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140006050
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400060fb
mov r8d, r13d
cmp r12, r8
jne 0x140005fb0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000612f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140005fbf
jmp 0x140005fd0
cmp r14, r8
jb 0x140006149
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140008070
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1400060e4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140002e40
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1400060cf
jmp 0x1400060e4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_129f3b9964af4d4a709d1383930ade12dfe7c081library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001ebe0
jmp 0x14000615e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001ef30
ud2
Function at 0x1400066b0
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x1400066c5
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.1400066e0
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.14000d8c0

Function at 0x14000d8c0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.14000f200
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14000d920
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.14000fdb0
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x14000d92c
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14000d958
test rdi, rdi
je 0x14000d984
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140002e40
xor eax, eax
jmp 0x14000d923
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x14000d923
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140002e40
jmp 0x14000d920
xor eax, eax
jmp 0x14000d923
Function at 0x14000dd90
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x38]
call fcn.14000f200
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14000de06
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.14000fdb0
mov rax, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
cmp rax, rbx
jne 0x14000de19
mov eax, 1
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp], rax
mov qword [rbp - 8], rdx
lea rcx, [rbp - 0x38]
mov rdx, rdi
mov r8, rsi
call fcn.14000f200
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
cmp rax, rbx
je 0x14000de6a
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.14000fdb0
mov rsi, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
cmp rsi, rbx
jne 0x14000de9d
mov rcx, qword [rbp - 8]
mov r14, qword [rbp]
mov eax, 1
test r14, r14
je 0x14000de0b
add r14, r14
mov r8d, 2
mov rsi, rdx
mov rdx, r14
call fcn.140002e40
mov eax, 1
mov rdx, rsi
jmp 0x14000de0b
mov qword [rbp - 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x14000dfb0]
lea r9, [rbp - 0x20]
mov rcx, qword [rbp - 8]
mov rbx, rcx
mov rdi, rdx
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
mov r14, qword [rbp]
je 0x14000df22
mov rdx, qword [rbp - 0x20]
test rsi, rsi
je 0x14000defc
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdi, rdx
mov rdx, rsi
call fcn.140002e40
mov rdx, rdi
test r14, r14
je 0x14000df1b
add r14, r14
mov r8d, 2
mov rcx, rbx
mov rsi, rdx
mov rdx, r14
call fcn.140002e40
mov rdx, rsi
xor eax, eax
jmp 0x14000de0b
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
test rsi, rsi
je 0x14000df51
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdi, rdx
mov rdx, rsi
call fcn.140002e40
mov rdx, rdi
mov rcx, rbx
mov eax, 1
test r14, r14
jne 0x14000de7c
jmp 0x14000de0b
Function at 0x14000dfd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140021388]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000e008
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000e066
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14000e093
test eax, eax
js 0x14000e072
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000e089
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140007dc0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400043f0
mov ecx, 7
int 0x29
ud2