joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000285b0
Capabilities:
Check os version

Disassembly:
lea rsp, [rsp - 0xb8]
mov qword [0x100056e80], 0
mov dword [rsp + 0x20], 0x94
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetVersionExA
mov eax, dword [rsp + 0x30]
mov dword [0x100056cc0], eax
mov eax, dword [rsp + 0x24]
mov dword [0x100056cd0], eax
mov eax, dword [rsp + 0x28]
mov dword [0x100056ce0], eax
mov eax, dword [rsp + 0x2c]
mov dword [0x100056cf0], eax
lea rdx, [0x100056d01]
lea rcx, [rsp + 0x34]
mov r8d, pe_nt_image_headers64
call fcn.100001d60
lea rcx, [rsp + 0x34]
call fcn.100002ab0
mov byte [0x100056d00], al
lea rcx, str.kernel32
call sub.kernel32.dll_GetModuleHandleA
mov qword [0x100056e90], rax
test rax, rax
je 0x100028658
mov rcx, qword [0x100056e90]
lea rdx, str.GetDiskFreeSpaceExA
call sub.kernel32.dll_GetProcAddress
mov qword [0x100056e80], rax
nop
cmp dword [0x100056cd0], 6
jae 0x10002866c
mov dword [0x100039c50], 0
nop
cmp dword [0x100056cd0], 6
jb 0x100028688
cmp dword [0x100056ce0], 1
jb 0x100028688
mov dword [0x100039c60], 2
nop
lea rsp, [rsp + 0xb8]
ret

Function at 0x100035b60
Capabilities:
Hash data with crc32

Disassembly:
test rdx, rdx
jne 0x100035b68
xor eax, eax
ret
xor ecx, 0xffffffff
jmp 0x100035cac
movzx r9d, byte [rdx]
xor r9d, ecx
and r9d, 0xff
mov r10d, ecx
shr r10d, 8
lea r11, [0x10003b7c0]
xor r10d, dword [r11 + r9*4]
mov ecx, r10d
add rdx, 1
movzx r9d, byte [rdx]
xor r9d, ecx
and r9d, 0xff
mov r10d, ecx
shr r10d, 8
lea r11, [0x10003b7c0]
xor r10d, dword [r11 + r9*4]
mov ecx, r10d
add rdx, 1
movzx r9d, byte [rdx]
xor r9d, ecx
and r9d, 0xff
mov r10d, ecx
shr r10d, 8
lea r11, [0x10003b7c0]
xor r10d, dword [r11 + r9*4]
mov ecx, r10d
add rdx, 1
movzx r9d, byte [rdx]
xor r9d, ecx
and r9d, 0xff
mov r10d, ecx
shr r10d, 8
lea r11, [0x10003b7c0]
xor r10d, dword [r11 + r9*4]
mov ecx, r10d
add rdx, 1
movzx r9d, byte [rdx]
xor r9d, ecx
and r9d, 0xff
mov r10d, ecx
shr r10d, 8
lea r11, [0x10003b7c0]
xor r10d, dword [r11 + r9*4]
mov ecx, r10d
add rdx, 1
movzx r9d, byte [rdx]
xor r9d, ecx
and r9d, 0xff
mov r10d, ecx
shr r10d, 8
lea r11, [0x10003b7c0]
xor r10d, dword [r11 + r9*4]
mov ecx, r10d
add rdx, 1
movzx r9d, byte [rdx]
xor r9d, ecx
and r9d, 0xff
mov r10d, ecx
shr r10d, 8
lea r11, [0x10003b7c0]
xor r10d, dword [r11 + r9*4]
mov ecx, r10d
add rdx, 1
movzx r9d, byte [rdx]
xor r9d, ecx
and r9d, 0xff
mov r10d, ecx
shr r10d, 8
lea r11, [0x10003b7c0]
xor r10d, dword [r11 + r9*4]
mov ecx, r10d
add rdx, 1
sub r8d, 8
cmp r8d, 8
jae 0x100035b70
jmp 0x100035ce3
movzx r9d, byte [rdx]
xor r9d, ecx
and r9d, 0xff
mov r10d, ecx
shr r10d, 8
lea r11, [0x10003b7c0]
xor r10d, dword [r11 + r9*4]
mov ecx, r10d
add rdx, 1
sub r8d, 1
test r8d, r8d
ja 0x100035cb8
xor ecx, 0xffffffff
mov eax, ecx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000b7c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000b7d0]
mov dword [rax], 1
mov rax, qword [0x14000b7e0]
mov dword [rax], 1
mov rax, qword [0x14000b760]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000b7b0]
mov dword [0x14000e020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000b890]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000b870]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000b710]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001a00
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0c4]
mov rbx, rcx
test esi, esi
jle 0x140001ba0
mov rax, qword [0x14000e0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001abb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001aa0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001bc2
mov rax, qword [0x14000e0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ba7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001b50
add dword [0x14000e0c4], 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 [0x14000e0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001ac8
mov rax, qword [0x14000e0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140002270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x1400023a0
ja 0x1400022b8
test edx, edx
je 0x140002338
mov eax, dword [0x14000e108]
test eax, eax
je 0x140002420
mov dword [0x14000e108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x1400022a5
mov eax, dword [0x14000e108]
test eax, eax
je 0x1400022a5
lea r12, [0x14000e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x140002324
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 0x140002448
test eax, eax
jne 0x140002448
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022f8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400022a5
mov eax, dword [0x14000e108]
test eax, eax
jne 0x1400023b8
mov eax, dword [0x14000e108]
cmp eax, 1
jne 0x1400022a5
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x140002371
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sym.free
test rbx, rbx
jne 0x140002360
lea rcx, [0x14000e120]
mov qword [0x14000e100], 0
mov dword [0x14000e108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1400022a5
call sym._fpreset
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x14000e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x14000240c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002438
test rsi, rsi
je 0x140002438
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400023e8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140002342
lea rcx, [0x14000e120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x14000229b
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400023e8
jmp 0x14000240c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022f8
jmp 0x140002324

Function at 0x140002460
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002478
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002480
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002490
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400024dd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400024d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400024df
add rax, 0x28
cmp rax, r9
jne 0x1400024c0
xor eax, eax
ret
Function at 0x1400024e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002570
mov rdx, qword [0x14000b760]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000255e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000255e
cmp word [rax + 0x18], 0x20b
jne 0x14000255e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002570
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002549
add rbx, 0x28
cmp rbx, rdi
je 0x140002570
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002540
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov r8, qword [0x14000b760]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025a0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400025f5
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400025ec
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400025a0
add rax, 0x28
cmp rax, r9
jne 0x1400025d8
xor eax, eax
ret

Function at 0x140002600
Capabilities:
Parse pe header

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

Function at 0x140002640
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000b760]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002660
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002668
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002660
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400026b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400026a7
test rcx, rcx
je 0x140002660
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002698
xor eax, eax
ret

Function at 0x1400026c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b760]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400026df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400026e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002700
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b760]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002720
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002728
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002720
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002720
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002774
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002780
add rdx, 0x28
cmp r9, rdx
jne 0x140002760
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000b760]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400027b4
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x1400027c0
mov rax, r9
ret
cmp word [rcx + 0x18], 0x20b
jne 0x1400027b4
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400027b4
movzx edx, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r10w, r10w
je 0x1400027b4
lea ecx, [r10 - 1]
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000280c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002820
add rdx, 0x28
cmp rdx, r10
jne 0x1400027f8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002830
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000283e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002815
test r8d, r8d
jg 0x140002828
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140467c60
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140467c6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140467c7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140467c65
lea eax, [rcx + 1]
jmp 0x140467c8b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140467c9e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140467c84
sub eax, 3
jb 0x140467cbe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140467d0d
sar eax, 1
movsxd rbp, eax
jb 0x140467cf4
jmp 0x140467ccc
add ebx, ebx
jne 0x140467cca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140467cf4
inc ecx
add ebx, ebx
jne 0x140467cda
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140467cf4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140467ced
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140467cdc
add ecx, 2
jmp 0x140467cf9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140467c22
jmp 0x140467c6d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x349a00
mov dl, 0x29
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140467d5d
cmp rsi, rcx
jae 0x140467d65
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140467d44
cmp al, 0x8f
ja 0x140467d44
cmp byte [rsi - 2], 0xf
je 0x140467d4a
sub al, 0xe8
cmp al, 1
ja 0x140467d2e
cmp rsi, rcx
jae 0x140467d65
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140467d34
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140467d65
lodsb al, byte [rsi]
jmp 0x140467d44
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x462000]
mov eax, dword [rdi]
or eax, eax
je 0x140467dce
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x46d144]
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 0x140467d72
jns 0x140467da7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140467db1
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 0x140467dc8
mov qword [rbx], rax
add rbx, 8
jmp 0x140467d92
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 0x140467e12
cmp al, 0xef
ja 0x140467dfa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140467dda
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140467de9
mov eax, dword [rdi]
add rdi, 4
jmp 0x140467de9
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 + 0x24f]
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140467e66
sub rsp, 0xffffffffffffff80
jmp 0x1402157ec
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00406b00]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00406b10]
mov dword [rax], 1
mov rax, qword [0x00406b20]
mov dword [rax], 1
mov rax, qword [0x00406af0]
mov dword [rax], 1
mov rax, qword [0x004069b0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00406ae0]
mov dword [0x00409008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00406aa0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00406900]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401948
Capabilities:
Delete file
Query environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x80]
lea rcx, str.USERPROFILE
call sym.getenv
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x401a38
lea rax, [rbp - 0x19]
mov rcx, rax
call fcn.00402bf0
lea rcx, [rbp - 0x19]
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x40]
mov r8, rcx
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x60]
lea rdx, [rbp - 0x40]
lea r8, str.Pictures_sls.cab
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____char_const_
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x19]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
test eax, eax
setne al
test al, al
je 0x401a08
lea rdx, str.Arquivo_exclu
mov rcx, qword [sym.imp.libstdc_6.dll_std::cout]
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [0x00406930]
mov rcx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
jmp 0x401a2a
lea rdx, str.Erro_ao_excluir_o_arquivo.
mov rcx, qword [sym.imp.libstdc_6.dll_std::cerr]
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [0x00406930]
mov rcx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x401aa2
lea rdx, str.Diret
mov rcx, qword [sym.imp.libstdc_6.dll_std::cerr]
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [0x00406930]
mov rcx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
jmp 0x401aa2
add rsp, 0x78
pop rbx
pop rbp
ret
Function at 0x401aa9
Capabilities:
Delete file
Query environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x80]
lea rcx, str.USERPROFILE
call sym.getenv
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x401b99
lea rax, [rbp - 0x19]
mov rcx, rax
call fcn.00402bf0
lea rcx, [rbp - 0x19]
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x40]
mov r8, rcx
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x60]
lea rdx, [rbp - 0x40]
lea r8, str.Pictureslpk.cab
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____char_const_
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x19]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
test eax, eax
setne al
test al, al
je 0x401b69
lea rdx, str.Arquivo_exclu
mov rcx, qword [sym.imp.libstdc_6.dll_std::cout]
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [0x00406930]
mov rcx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
jmp 0x401b8b
lea rdx, str.Erro_ao_excluir_o_arquivo.
mov rcx, qword [sym.imp.libstdc_6.dll_std::cerr]
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [0x00406930]
mov rcx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x401c03
lea rdx, str.Diret
mov rcx, qword [sym.imp.libstdc_6.dll_std::cerr]
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [0x00406930]
mov rcx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
jmp 0x401c03
add rsp, 0x78
pop rbx
pop rbp
ret