joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401db85c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401ce914
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401ce914
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401db9ac
cmp rax, 0xffffffffffffffff
je 0x1401db9ac
xor edi, edi
test rbp, rbp
jle 0x1401db957
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401c8cf0
mov rbx, rax
test rax, rax
jne 0x1401db8e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401db94d
mov edx, 0x8000
mov ecx, r14d
call fcn.1401c4fa0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401cd4fc
cmp eax, 0xffffffff
je 0x1401db92d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401db8f4
mov edx, r15d
mov ecx, r14d
call fcn.1401c4fa0
jmp 0x1401db94d
cmp byte [rsi + 0x38], dil
je 0x1401db944
cmp dword [rsi + 0x34], 5
jne 0x1401db944
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401db94d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401c8d68
jmp 0x1401db9c0
jns 0x1401db9c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401ce914
cmp rax, 0xffffffffffffffff
jne 0x1401db978
cmp byte [rsi + 0x30], dil
je 0x1401db9c0
mov edi, dword [rsi + 0x2c]
jmp 0x1401db9c0
mov ecx, r14d
call fcn.1401d5764
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401db9c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1401db9c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401db9b9
mov eax, dword [rsi + 0x2c]
jmp 0x1401db9be
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401ce914
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1401dc5f0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401b65d4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401dc67a
cmp byte [rbp - 0x21], r15b
je 0x1401dc675
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401dc6b0
call fcn.1401cbbc0
test eax, eax
jne 0x1401dc69c
cmp byte [rbp - 0x21], r15b
je 0x1401dc694
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401dc6b0
cmp byte [rbp - 0x21], r15b
je 0x1401dc6ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1401b633c
test eax, eax
jne 0x1401dc750
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401b65d4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401dc6ef
cmp byte [rbp - 0x21], r15b
je 0x1401dc724
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401dc724
call fcn.1401cbbc0
test eax, eax
jne 0x1401dc710
cmp byte [rbp - 0x21], r15b
je 0x1401dc709
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401dc724
cmp byte [rbp - 0x21], r15b
je 0x1401dc721
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1401b633c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401dc750
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401dc753
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401dc761
mov rcx, rdi
call fcn.1401c8d68
cmp byte [rbp + 0x3f], r15b
je 0x1401dc770
mov rcx, qword [rbp + 0x27]
call fcn.1401c8d68
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140f904a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140f904ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140f904bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140f904a5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140f904d5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140f904c2
sub eax, 3
jb 0x140f904ef
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140f90526
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140f90516
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140f90514
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140f90503
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140f90462
jmp 0x140f904ad
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xf8c000]
mov eax, dword [rdi]
or eax, eax
je 0x140f90586
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf9bb90]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140f90536
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140f90580
mov qword [rbx], rax
add rbx, 8
jmp 0x140f90556
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140f905ca
cmp al, 0xef
ja 0x140f905b2
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140f90592
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140f905a1
mov eax, dword [rdi]
add rdi, 4
jmp 0x140f905a1
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140f90649], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140f90649
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140f90639
sub rsp, 0xffffffffffffff80
jmp 0x140001125
Function at 0x140001470
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x30]
mov r10d, dword [0x141093004]
test r10d, r10d
je 0x14000155b
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
movsxd rcx, dword [rax + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
mov edx, dword [rax + rcx + 0x18]
lea r8, [rax + 2]
lea r9, [0x141093004]
jmp 0x1400014cd
xor r10d, r10d
sub rdx, 1
jb 0x14000155b
test r10d, r10d
je 0x1400014c0
mov r11d, dword [rax + rcx + 0x20]
add r11, rax
mov esi, dword [r11 + rdx*4]
add rsi, r8
mov edi, r10d
mov r11, r9
nop word [rax + rax]
mov r14d, 0x811c9dc5
mov rbx, rsi
nop dword [rax]
mov ebp, r14d
movsx r15d, byte [rbx]
inc rbx
xor r14d, r15d
imul r14d, r14d, 0x1000193
test r15d, r15d
jne 0x140001500
cmp ebp, edi
je 0x140001530
mov edi, dword [r11 + 4]
add r11, 4
test edi, edi
jne 0x1400014f0
jmp 0x1400014c3
mov r10d, dword [rax + rcx + 0x1c]
mov esi, dword [rax + rcx + 0x24]
add r10, rax
add rsi, rax
movzx esi, word [rsi + rdx*2]
mov r10d, dword [r10 + rsi*4]
mov r10d, dword [rax + r10 + 4]
mov dword [r11], r10d
mov r10d, dword [0x141093004]
jmp 0x1400014c3
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400017e0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
ret
Function at 0x1400022e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movsxd r13, dword [rcx + 0x3c]
mov ebx, dword [rcx + r13 + 0x54]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x14000234a
lea r9, [rsp + 0x20]
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000234a
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rcx, rsi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [rdi + r13 + 6]
test ax, ax
je 0x1400023ed
movsxd rcx, dword [rdi + 0x3c]
lea rbp, [rcx + rdi]
add rbp, 0x110
xor ebx, ebx
jmp 0x140002385
movzx eax, word [rdi + r13 + 6]
inc rbx
movzx ecx, ax
add rbp, 0x28
cmp rbx, rcx
jae 0x1400023ed
cmp dword [rbp + 0x1c], 0
js 0x140002376
mov r14d, dword [rbp]
mov r15d, dword [rbp + 4]
lea r12, [rdi + r15]
add r15, rsi
mov rcx, r12
mov rdx, r15
mov r8, r14
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140002370
mov rcx, r15
mov rdx, r14
mov r8d, 0x40
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140002370
mov rcx, r15
mov rdx, r12
mov r8, r14
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x24]
mov rcx, r15
mov rdx, r14
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x140002370
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x140002644
mov r14, rdx
mov rbx, rcx
movsxd rcx, dword [rcx + 0x3c]
mov r15d, dword [rcx + rbx + 0x88]
mov r13d, dword [r15 + rbx + 0x1c]
add r13, rbx
mov rax, rdx
shr rax, 0x10
test ax, ax
je 0x140002504
mov ebp, dword [rbx + r15 + 0x18]
test ebp, ebp
je 0x140002644
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r8
mov r12d, dword [rbx + r15 + 0x20]
mov esi, dword [rbx + r15 + 0x24]
add r12, rbx
add rsi, rbx
xor edi, edi
nop dword [rax + rax]
mov ecx, dword [r12]
add rcx, rbx
mov rdx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14000251a
add r12, 4
add rsi, 2
dec ebp
jne 0x1400024e0
jmp 0x14000264b
movzx eax, r14w
mov ecx, dword [rbx + r15 + 0x10]
sub rax, rcx
mov edi, dword [r13 + rax*4]
jmp 0x140002648
movzx eax, word [rsi]
mov edi, dword [r13 + rax*4]
cmp r15d, edi
ja 0x140002648
mov rax, qword [rsp + 0x38]
add r15d, dword [rbx + rax + 0x8c]
cmp edi, r15d
jae 0x140002648
add rdi, rbx
mov rcx, rdi
mov edx, 0x2e
call sub.msvcrt.dll_strchr
mov rbx, rax
inc rbx
mov rsi, rbx
sub rsi, rdi
lea rcx, [rsi + 4]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x140002644
mov r14, rax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov rdx, rax
mov r9, rdi
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov dword [r14 + rsi*2], 0x6c0064
mov word [r14 + rsi*2 + 4], 0x6c
lea rdx, str.api_
mov r8d, 4
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x1400025d2
lea rdx, str.ext_
mov r8d, 4
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x140002620
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, r14
call fcn.140001800
test rax, rax
je 0x140002620
mov rsi, rax
mov rcx, r14
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x140002644
mov r14, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
mov r8, r14
call fcn.140002470
mov rdi, rax
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x14000264b
xor edi, edi
jmp 0x14000264b
add rdi, rbx
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140002990
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.140003800
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.140003800
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 0x140002a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1410970b4]
mov rbx, rcx
test esi, esi
jle 0x140002b30
mov rax, qword [0x1410970b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002a4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002ad5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002a30
mov rcx, rbx
call fcn.140003470
mov rdi, rax
test rax, rax
je 0x140002b52
mov rax, qword [0x1410970b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400035b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1410970b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002b37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140002ace
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002ae0
add dword [0x1410970b4], 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 [0x1410970b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002ace
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002990
nop dword [rax]
xor esi, esi
jmp 0x140002a58
mov rax, qword [0x1410970b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002990
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002990
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400030e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x141097120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x141097100]
test rbx, rbx
je 0x14000313c
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 rsi, rsi
je 0x140003133
test eax, eax
jne 0x140003133
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003118
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 0x140003470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x141094380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003490
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003498
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003490
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400034ed
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 0x1400034e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003490
add rax, 0x28
cmp rax, r9
jne 0x1400034d0
xor eax, eax
ret

Function at 0x1400034f0
Capabilities:
Parse pe header

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

Function at 0x1400035b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x141094380]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400035cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400035d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140015136
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400263a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400560f4]
call fcn.140015b40
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400263f8
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14002650a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x1400264a3
cmp qword [rbp + 0x28], 0
jle 0x1400264a3
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140026441
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140015a82
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x1400264f9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400264f9
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400153f7
Capabilities:
Create process on windows
Delete file

Disassembly:
jmp 0x140024850
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x14004d040]
xor rax, rbp
mov qword [rbp + 0x408], rax
lea rcx, [0x1400560ff]
call fcn.140015b40
nop
lea rdx, str.temp.bat
lea rcx, [rbp + 8]
call fcn.14001550a
nop
mov edx, 0x108
lea rcx, [rbp + 0x50]
call fcn.14001548d
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x50]
call fcn.140015b81
nop
mov rax, qword [rbp + 0x50]
movsxd rax, dword [rax + 4]
lea rax, [rbp + rax + 0x50]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
movzx eax, al
test eax, eax
je 0x14002491f
lea rdx, str.Failed_to_create_temporary_file
lea rcx, [rbp + 0x3e8]
call fcn.1400159ba
lea rdx, [0x14004c5a0]
lea rcx, [rbp + 0x3e8]
call fcn.140015c53
nop
mov edx, 0x88
lea rcx, [rbp + 0x180]
call fcn.140015087
lea rcx, [rbp + 0x180]
call fcn.140015839
nop
lea r8, [rbp + 8]
lea rdx, [rbp + 0x228]
lea rcx, [rbp + 0x180]
call fcn.1400157da
nop
lea rcx, [rbp + 0x228]
call fcn.1400153b6
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rbp + 8]
call fcn.140015122
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_remove]
nop
lea rcx, [rbp + 0x228]
call fcn.1400159ab
nop
lea rcx, [rbp + 0x180]
call fcn.1400152c6
nop
lea rcx, [rbp + 0x50]
call fcn.1400152d5
nop
lea rcx, [rbp + 8]
call fcn.14001521c
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1400453a0]
call fcn.140015956
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.14001558c
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret

Function at 0x140015654
Capabilities:
Terminate process

Disassembly:
jmp 0x14003c8e0
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]
nop
add rsp, 0x28
ret
Function at 0x1400157d0
Capabilities:
Parse pe header

Disassembly:
jmp 0x14003d410
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003d430
xor al, al
jmp 0x14003d4b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14003d443
xor al, al
jmp 0x14003d4b1
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 0x14003d46d
xor al, al
jmp 0x14003d4b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14003d481
xor al, al
jmp 0x14003d4b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14003d493
xor al, al
jmp 0x14003d4b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14003d4af
xor al, al
jmp 0x14003d4b1
mov al, 1
add rsp, 0x38
ret