joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d9dd9c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d9fe5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d9ddb48
mov rax, qword [0x6d9fe5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d9dda0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d9dda95
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d9dd9f0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d9ddb7d
mov rax, qword [0x6d9fe5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d9fe5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d9ddb60
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d9dda8e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d9ddaf0
add dword [0x6d9fe5e4], 1
cmp edi, 8
jae 0x6d9ddac3
test dil, 4
jne 0x6d9ddb34
test edi, edi
je 0x6d9ddab8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d9ddb4f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d9ddab8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d9ddadc
jmp 0x6d9ddab8
add rsi, qword [0x6d9fe5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d9dda8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d9ddab8
xor esi, esi
jmp 0x6d9dda17
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d9ddab8
mov rax, qword [0x6d9fe5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d9de2d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d9fe8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d9fe8a0]
test rbx, rbx
je 0x6d9de324
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d9de31b
test rsi, rsi
je 0x6d9de31b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d9de300
lea rcx, [0x6d9fe8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d9de560
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d9de570
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d9de580
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d9de5c1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d9de5b8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d9de5c3
add rax, 0x28
cmp rax, r9
jne 0x6d9de5a4
xor eax, eax
ret

Function at 0x6d9de660
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9fb1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d9de6cd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d9de6cd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d9de6cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d9de6c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d9de6cf
add rax, 0x28
cmp rax, r9
jne 0x6d9de6b0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d9de7d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9fb1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d9de7f0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d9de7e8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d9de84d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d9de844
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d9de854
add rax, 0x28
cmp rax, r9
jne 0x6d9de830
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d9de870
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d9fb1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d9de8de
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d9de8de
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d9de8de
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d9de8de
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d9de8d5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d9de8e5
add rcx, 0x28
cmp rcx, rax
jne 0x6d9de8c0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d9de8f8
jmp 0x6d9de8de
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d9de906
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d9de8de
test r9d, r9d
jg 0x6d9de8f0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d9dec40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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
nop
nop
nop
nop
nop
nop
Function at 0x418a20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
test dl, dl
mov rbx, rcx
mov r14d, edx
mov ebp, edx
jne 0x418bc0
movzx ecx, byte [rbx + 0x1fc]
test cl, cl
je 0x418b90
xor ebp, 1
mov byte [rsp + 0x5f], 1
mov r13d, 0x14
mov edi, 0xffffffff
xor esi, esi
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
lea r12, [rsp + 0x5f]
movzx ebp, bpl
jmp 0x418ab1
jle 0x418a9c
mov eax, edi
shr eax, 0x1f
test al, al
cmovne edi, esi
sub r13d, 1
cmp r13d, 0xffffffff
je 0x418b50
movzx ecx, byte [rbx + 0x1fc]
add ecx, r13d
mov edx, 0x30c30c31
mov eax, ecx
imul edx
mov eax, ecx
sar eax, 0x1f
sar edx, 2
sub edx, eax
lea eax, [rdx + rdx*4]
lea eax, [rdx + rax*4]
mov edx, 0x18
sub ecx, eax
movsxd rcx, ecx
lea rax, [rcx + rcx*2]
lea r15, [rbx + rax*8]
lea rcx, [r15 + 2]
call fcn.00426b40
test al, al
je 0x418a9c
mov eax, dword [r15 + 7]
add esi, 1
movabs rdx, 0xffffffffffff
movzx r9d, word [r15 + 4]
movzx r8d, byte [r15 + 3]
mov ecx, esi
cmp eax, 0xffffffff
cmove rax, rdx
movzx edx, byte [r15 + 2]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call fcn.00418360
cmp eax, 0
jge 0x418a90
cmp edi, 0xffffffff
je 0x418ba0
sub r13d, 1
add dword [rsp + 0x44], 1
cmp r13d, 0xffffffff
jne 0x418aaa
nop dword [rax]
mov eax, dword [rsp + 0x44]
test eax, eax
jne 0x418c20
test r14b, r14b
jne 0x418b6c
cmp byte [rsp + 0x5f], 0
je 0x418c4b
mov eax, dword [rsp + 0x48]
shl eax, 8
or eax, dword [rsp + 0x4c]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
test r14b, r14b
je 0x418b77
jmp 0x418c08
mov edx, dword [rsp + 0x48]
add dword [rsp + 0x4c], 1
test edx, edx
jne 0x418a9c
movzx eax, word [r15 + 4]
mov dword [rsp + 0x48], eax
jmp 0x418a9c
movzx edx, word [rcx]
lea rcx, str.SMART_Self_test_log_structure_revision_number__d_n
mov dword [rsp + 0x44], r8d
call fcn.00405e40
cmp word [rbx], 1
je 0x418a40
mov r8d, dword [rsp + 0x44]
and r8d, 4
jne 0x418a40
lea rcx, str.Warning:_ATA_Specification_requires_self_test_log_structure_revision_number__1_n
call fcn.00405e40
movzx ecx, byte [rbx + 0x1fc]
test cl, cl
jne 0x418a4f
lea rcx, str.No_self_tests_have_been_logged.___To_run_self_tests__use:_smartctl__t__n
call fcn.00405e40
xor eax, eax
jmp 0x418b77
mov eax, dword [rsp + 0x44]
mov r9d, edi
mov edi, dword [rsp + 0x4c]
lea rcx, str._d_of__d_failed_self_tests_are_outdated_by_newer_successful_extended_offline_self_test__2d_n
lea r8d, [rax + rdi]
mov edx, eax
call fcn.00405e40
test r14b, r14b
jne 0x418b6c
jmp 0x418b61
lea rcx, [0x004b9777]
call fcn.00405e40
jmp 0x418b6c

Function at 0x426260
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, [0x004d9550]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x426280
add rsp, 0x28
ret
lea rcx, str.TZGMT
call sub.msvcrt.dll__putenv
call 0x45e030
lea rcx, [0x004d955a]
call sub.msvcrt.dll__putenv
nop
add rsp, 0x28
jmp 0x45e030
jmp qword [sym.imp.msvcrt.dll__tzset]
Function at 0x4262e0
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
lea rsi, [rsp + 0x40]
mov qword [rsp + 0xc8], rdx
mov rdi, rcx
call fcn.00426260
lea rcx, [rsp + 0xc8]
call qword [sym.imp.msvcrt.dll__localtime64]
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_asctime
mov r8d, 0x40
mov rdx, rax
mov rcx, rsi
call sub.msvcrt.dll_strncpy
mov byte [rsp + 0x7f], 0
mov rdx, rsi
mov r9d, dword [rdx]
add rdx, 4
lea r8d, [r9 - 0x1010101]
not r9d
and r8d, r9d
and r8d, 0x80808080
je 0x426335
mov eax, r8d
shr eax, 0x10
test r8d, 0x8080
cmove r8d, eax
lea rax, [rdx + 2]
cmove rdx, rax
add r8b, r8b
mov eax, 0
sbb rdx, 3
sub rdx, rsi
sub edx, 1
cmovs edx, eax
movsxd rdx, edx
mov byte [rsp + rdx + 0x40], 0
cmp dword [rbx + 0x20], 0
jne 0x4263f0
mov rax, qword [sym.imp.msvcrt.dll__tzname]
mov r14, qword [rax]
lea rcx, [0x004d9550]
xor eax, eax
mov dword [rsp + 0x30], 0
mov word [rsp + 0x34], ax
mov byte [rsp + 0x36], 0
call sub.msvcrt.dll_getenv
test rax, rax
je 0x426410
lea r8, str._s__s
mov qword [rsp + 0x20], r14
mov r9, rsi
mov edx, 0x40
mov rcx, rdi
call fcn.0045e850
nop
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r14, [0x004d956f]
jle 0x426398
mov rax, qword [sym.imp.msvcrt.dll__tzname]
mov r14, qword [rax + 8]
jmp 0x426398
mov r13, qword [sym.imp.msvcrt.dll__mbsinc]
xor r12d, r12d
xor ebp, ebp
nop dword [rax]
movsxd rbx, ebp
add rbx, r14
cmp byte [rbx], 0
je 0x426460
cmp r12d, 5
jg 0x426466
mov rcx, rbx
add ebp, 1
call r13
sub rax, r14
cmp eax, ebp
mov edx, eax
jg 0x42645b
movzx eax, byte [rbx]
mov edx, ebp
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x42645b
movsxd rcx, r12d
add r12d, 1
mov byte [rsp + rcx + 0x30], al
mov ebp, edx
jmp 0x426420
cmp r12d, 1
jle 0x426480
lea r14, [rsp + 0x30]
movsxd r12, r12d
add r12, r14
mov byte [r12], 0
jmp 0x4263bd
lea r14, [rsp + 0x30]
mov r12, r14
jmp 0x426471
Function at 0x4289e0
Capabilities:
Set console window title

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rsi, rcx
lea rcx, [0x004275b0]
call rbx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov edi, eax
mov edx, 1
lea rcx, [0x004275b0]
call rbx
test edi, edi
je 0x428ae0
test rsi, rsi
je 0x428a28
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, dword [0x00501490]
test ecx, ecx
jne 0x428a70
mov edx, dword [0x0050148c]
test edx, edx
jne 0x428a96
mov eax, dword [0x00501488]
test eax, eax
jne 0x428abd
mov dword [0x00501488], 0
mov dword [0x0050148c], 0
xor eax, eax
mov dword [0x00501490], 0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, [0x004da05c]
lea rcx, str.conin_
mov r8, rax
call sub.msvcrt.dll_freopen
mov edx, dword [0x0050148c]
test edx, edx
je 0x428a3c
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, [0x004da065]
lea r8, [rax + 0x30]
lea rcx, str.conout_
call sub.msvcrt.dll_freopen
mov eax, dword [0x00501488]
test eax, eax
je 0x428a46
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, [0x004da065]
lea r8, [rax + 0x60]
lea rcx, str.conout_
call sub.msvcrt.dll_freopen
jmp 0x428a46
mov eax, 0xffffffff
jmp 0x428a66
Function at 0x429af0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
lea r12, [rsp + 0x40]
mov r13d, edx
mov rbp, r8
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
call qword [sym.imp.msvcrt.dll__localtime64]
lea r8, str._Y__m__d__H:_M:_S
mov r9, rax
mov edx, 0x20
mov rcx, r12
call sub.msvcrt.dll_strftime
test rax, rax
je 0x429c11
movzx eax, byte [rbp]
xor esi, esi
mov r15, rbp
test al, al
je 0x429c00
nop word [rax + rax]
cmp al, 0xa
je 0x429beb
movsxd rax, esi
xor ebx, ebx
lea rax, [rbp + rax + 1]
jmp 0x429b79
test r10b, r10b
je 0x429b90
movzx r10d, byte [rax]
add ebx, 1
mov r14, rax
add rax, 1
lea edx, [rsi + rbx]
cmp r10b, 0xa
jne 0x429b74
mov ecx, r13d
mov esi, edx
call fcn.00429830
mov qword [rsp + 0x28], rax
lea rax, [0x00501e70]
lea r9, [0x00501f40]
lea rdx, str._s__s__s_:___5s:
mov r8, r12
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.0045e7f0
movsxd rdx, ebx
mov r9, rdi
mov r8d, 1
mov rcx, r15
call sub.msvcrt.dll_fwrite
mov rdx, rdi
mov ecx, 0xa
call sub.msvcrt.dll_fputc
cmp byte [r14], 0
je 0x429c00
add esi, 1
movsxd r15, esi
add r15, rbp
movzx eax, byte [r15]
test al, al
jne 0x429b60
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 0x3f
mov word [rsp + 0x40], ax
jmp 0x429b46
Function at 0x435120
Capabilities:
Check os version
Connect to wmi namespace via wbemlocator

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
cmp byte [0x00501fd0], 0
mov rsi, rcx
je 0x435152
mov eax, dword [0x0049c460]
xor ebx, ebx
cmp eax, 1
jbe 0x43516e
mov eax, ebx
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ecx, ecx
mov byte [0x00501fd0], 1
xor ebx, ebx
call qword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 1
mov dword [0x0049c460], eax
ja 0x435144
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], 0
lea r9, [0x004dabe0]
mov r8d, 1
xor edx, edx
lea rcx, [0x004dabf0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4352c0
mov dword [rsp + 0x70], 0x94
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor edi, edi
test eax, eax
je 0x4351cc
cmp dword [rsp + 0x80], 2
je 0x4352c4
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsi]
mov rax, qword [rbx]
test rcx, rcx
mov rbp, qword [rax + 0x18]
je 0x4351ed
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi], 0
lea rcx, [rsp + 0x60]
lea rdx, str.._rootcimv2
call fcn.00434e70
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], 0
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call rbp
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_SysFreeString]
test ebx, ebx
js 0x4352c0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rsi]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov ebx, 1
js 0x4352a3
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x435144
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, qword [rsi]
test rcx, rcx
je 0x4352c0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi], 0
nop dword [rax + rax]
xor ebx, ebx
jmp 0x435281
cmp dword [rsp + 0x74], 5
mov dil, pe_nt_image_headers64
ja 0x4351cc
mov dil, 0
jne 0x4351cc
cmp dword [rsp + 0x78], 1
sbb edi, edi
not edi
and edi, 0x80
jmp 0x4351cc
Function at 0x435930
Capabilities:
Get storage device properties

Disassembly:
push rdi
push rbx
sub rsp, 0x68
xor eax, eax
mov r9d, 0xc
lea rdi, [rdx + 8]
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
mov byte [rsp + 0x58], 0
mov rbx, rdx
mov qword [rdx], 0
and rdi, 0xfffffffffffffff8
mov qword [rdx + 0xf8], 0
mov r10, rcx
sub rdx, rdi
lea r8, [rsp + 0x50]
add edx, 0x100
shr edx, 3
mov ecx, edx
mov edx, 0x2d1400
rep stosq qword [rdi], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rbx
mov rcx, r10
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov rax, qword [0x004e17b0]
je 0x435a64
cmp byte [rax], 1
jbe 0x435a50
cmp byte [rbx + 0xa], 0
lea rdx, [0x004dad59]
lea rax, [0x004dad55]
mov r10d, dword [rbx + 0x1c]
lea r9, [0x004dad5c]
cmove rax, rdx
mov edx, dword [rbx + 0x14]
test edx, edx
je 0x4359fb
lea r9, [rbx + rdx]
mov edx, dword [rbx + 0x10]
lea r8, [0x004dad5c]
test edx, edx
je 0x435a0d
lea r8, [rbx + rdx]
mov ecx, dword [rbx + 0xc]
lea rdx, [0x004dad5c]
test ecx, ecx
jne 0x435a40
lea rcx, str.__IOCTL_STORAGE_QUERY_PROPERTY_returns:_n____Vendor:_____s__n____Product:____s__n____Revision:___s__n____Removable:__s_n____BusType:___0x_02x_n
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], r10d
call fcn.00405e40
xor eax, eax
add rsp, 0x68
pop rbx
pop rdi
ret
lea rdx, [rbx + rcx]
jmp 0x435a1b
mov rax, qword [0x004e1890]
cmp byte [rax], 1
ja 0x4359cf
xor eax, eax
jmp 0x435a33
cmp byte [rax], 1
ja 0x435a75
mov rax, qword [0x004e1890]
cmp byte [rax], 1
jbe 0x435a89
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__IOCTL_STORAGE_QUERY_PROPERTY_failed__Error_u_n
mov edx, eax
call fcn.00405e40
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x28
mov eax, 0xffffffff
jmp 0x435a33
Function at 0x43d300
Capabilities:
Check if file exists

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rax, qword [rcx]
mov rbx, rcx
mov dword [rsp + 0x44], 0xffffffff
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x4c], 0xffffffff
mov rax, qword [rax - 0x18]
mov rcx, qword [rcx + rax + 0x10]
call fcn.004357c0
mov rsi, rax
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x44]
lea rdx, str.csmi_u__u_n
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.0045e7c0
test eax, eax
js 0x43d36b
mov rcx, rsi
call sub.msvcrt.dll_strlen
cmp dword [rsp + 0x4c], eax
je 0x43d390
mov rax, qword [rbx]
mov edx, 0x16
add rbx, qword [rax - 0x18]
mov rcx, rbx
call fcn.00419bf0
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret
mov r9d, dword [rsp + 0x44]
cmp r9d, 9
ja 0x43d36b
cmp dword [rsp + 0x48], 0x1f
ja 0x43d36b
lea rdi, [rsp + 0x50]
lea r8, str..Scsi_u:
mov edx, 0x1d
mov rcx, rdi
call fcn.0045e850
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x43d428
mov r8, qword [0x004e1890]
cmp byte [r8], 1
jbe 0x43d410
lea rcx, str.__s:_successfully_opened_n
mov rdx, rdi
call fcn.00405e40
mov eax, dword [rsp + 0x48]
mov qword [rbx + 8], rsi
mov dword [rbx + 0x10], eax
mov eax, 1
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43d486
cmp eax, 5
je 0x43d461
mov rdx, qword [rbx]
lea r8, str._s:_Error_ld
mov r9, rdi
add rbx, qword [rdx - 0x18]
mov dword [rsp + 0x20], eax
mov edx, 5
mov rcx, rbx
call fcn.00419c00
xor eax, eax
jmp 0x43d37f
mov rax, qword [rbx]
lea r8, str._s:_access_denied
mov r9, rdi
mov edx, 0xd
add rbx, qword [rax - 0x18]
mov rcx, rbx
call fcn.00419c00
xor eax, eax
jmp 0x43d37f
mov rax, qword [rbx]
lea r8, str._s:_not_found
mov r9, rdi
mov edx, 2
add rbx, qword [rax - 0x18]
mov rcx, rbx
call fcn.00419c00
xor eax, eax
jmp 0x43d37f
Function at 0x44e250
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
movsxd rbp, dword [0x00502684]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x44e430
mov rax, qword [0x00502688]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x44e2a0
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x44e3e1
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x44e284
mov rcx, rbx
call fcn.0044ef40
test rax, rax
mov r12, rax
je 0x44e454
lea rbp, [rbp + rbp*2]
lea r14, [rsp + 0x30]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00502688]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.0044f060
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov rdx, r14
mov qword [r13 + 8], rax
mov rax, qword [0x00502688]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rax + rbp + 8]
call r13
test rax, rax
je 0x44e437
mov eax, dword [rsp + 0x54]
cmp eax, 4
je 0x44e330
cmp eax, 0x40
jne 0x44e3f2
add dword [0x00502684], 1
mov r8d, 0x30
mov rdx, r14
mov rcx, rbx
call r13
test rax, rax
je 0x44e463
mov eax, dword [rsp + 0x54]
cmp eax, 4
je 0x44e35d
cmp eax, 0x40
jne 0x44e380
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sub.msvcrt.dll_memcpy
lea r12, [rsp + 0x2c]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r12
call rbp
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x54]
cmp eax, 0x40
je 0x44e3d2
cmp eax, 4
je 0x44e3d2
mov r9, r12
mov r8d, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call rbp
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r14, [rsp + 0x30]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x44e337
mov r9, rbp
add r9, qword [0x00502688]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x44e330
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0044e1e0
nop
xor ebp, ebp
jmp 0x44e2ad
mov rax, qword [0x00502688]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.0044e1e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0044e1e0
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, rbx
mov edx, 0x30
call fcn.0044e1e0
nop
nop dword [rax + rax]