joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e7ea0
Capabilities:
Copy file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rsp + 0x108], rbx
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, r9d
mov r13, r8
mov r12, rcx
mov qword [rbp - 0x11], 7
xor ebx, ebx
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
cmp qword [rdx + 0x18], 8
jb 0x1400e7ef7
mov rdx, qword [rdx]
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], rbx
mov word [rbp - 1], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 1]
call fcn.140009a30
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp - 1]
mov rcx, r12
call fcn.1400e7760
mov edi, eax
cmp qword [rbp + 0x17], 8
jb 0x1400e7f46
mov rcx, qword [rbp - 1]
call fcn.14004b088
test edi, edi
jne 0x1400e7f5e
cmp qword [rbp - 0x11], 8
jb 0x1400e7f5a
mov rcx, qword [rbp - 0x29]
call fcn.14004b088
xor eax, eax
jmp 0x1400e7fc7
mov rcx, r13
call fcn.1400e7580
mov rdi, rax
neg esi
sbb eax, eax
add eax, 2
mov dword [rbp - 0x61], eax
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x59], rdi
lea rax, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rax, qword [rbp - 0x29]
mov qword [rbp - 0x51], rax
mov eax, 0x40
mov word [rbp - 0x49], ax
lea rcx, [rbp - 0x69]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x1400e7fac
cmp dword [rbp - 0x45], eax
jne 0x1400e7fac
lea ebx, [rax + 1]
mov rcx, rdi
call fcn.14004b048
nop
cmp qword [rbp - 0x11], 8
jb 0x1400e7fc5
mov rcx, qword [rbp - 0x29]
call fcn.14004b088
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14004ae00
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ea090
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov rbp, rdx
mov rsi, rcx
mov edx, 0x499
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0x49a
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rsp + 0x20]
mov edx, ILFindLastID
mov r8d, pe_nt_image_headers64
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rsp + 0x220]
mov edx, ILFindLastID
mov r8d, 0x200
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0x49e
mov rcx, rbp
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor ebx, ebx
lea rdx, [rsp + 0x20]
mov ecx, ebx
cmp eax, 1
sete cl
mov dword [rsp + 0x620], ecx
mov rcx, qword [0x140149290]
call fcn.140092370
mov eax, dword [rsp + 0x620]
cmp eax, dword [0x140149288]
je 0x1400ea21a
test eax, eax
je 0x1400ea20a
mov ecx, ebx
lea rax, [rsi + 0xf0e0]
cmp dword [rax], 0
je 0x1400ea17b
inc rcx
inc ebx
add rax, 4
cmp rcx, 0x64
jl 0x1400ea162
or ecx, 0xffffffff
jmp 0x1400ea18f
movsxd rax, ebx
lea ecx, [rbx + 0xb3b0]
mov dword [rsi + rax*4 + 0xf0e0], 1
cmp dword [rsp + 0x624], 0
mov edx, ILClone
mov eax, ILIsParent
cmove eax, edx
mov dword [rsp + 0x844], ecx
mov rcx, qword [rsi + 0x3f0]
mov dword [rsp + 0x840], eax
mov eax, dword [rsp + 0x830]
lea r9, [rsp + 0x840]
mov qword [rsp + 0x850], rax
lea rax, [rsp + 0x20]
mov edx, 0x444
mov r8d, 1
mov word [rsp + 0x848], 0x7004
mov qword [rsp + 0x858], rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rsi + 0x3f0]
mov rcx, qword [rsi + 0x78]
call fcn.140094e10
jmp 0x1400ea21a
mov rdx, qword [rsp + 0x830]
mov rcx, rsi
call fcn.1400de710
mov edx, 1
mov rcx, rbp
call qword [sym.imp.USER32.dll_EndDialog]
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.14004ae00
mov rbx, qword [rsp + 0x8a0]
add rsp, 0x870
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ea260
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x870
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r12, rdx
mov rbp, rcx
mov edx, 0x46b
mov rcx, r12
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0x46c
mov rcx, r12
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0x46d
mov rcx, r12
mov rdi, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rsp + 0x20]
mov edx, ILFindLastID
mov r8d, pe_nt_image_headers64
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rsp + 0x628]
mov edx, ILFindLastID
mov r8d, 0x104
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rsp + 0x220]
mov edx, ILFindLastID
mov r8d, 0x200
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0x49d
mov rcx, r12
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor ebx, ebx
lea rdx, [rsp + 0x20]
mov ecx, ebx
cmp eax, 1
sete cl
mov dword [rsp + 0x620], ecx
mov rcx, qword [0x140149290]
call fcn.140092370
mov eax, dword [rsp + 0x620]
cmp eax, dword [0x140149288]
je 0x1400ea41f
test eax, eax
je 0x1400ea40d
mov ecx, ebx
lea rax, [rbp + 0xf0e0]
cmp dword [rax], 0
je 0x1400ea37e
inc rcx
inc ebx
add rax, 4
cmp rcx, 0x64
jl 0x1400ea365
or ecx, 0xffffffff
jmp 0x1400ea392
movsxd rax, ebx
lea ecx, [rbx + 0xb3b0]
mov dword [rbp + rax*4 + 0xf0e0], 1
cmp dword [rsp + 0x624], 0
mov edx, ILClone
mov eax, ILIsParent
cmove eax, edx
mov dword [rsp + 0x844], ecx
mov rcx, qword [rbp + 0x3f0]
mov dword [rsp + 0x840], eax
mov eax, dword [rsp + 0x830]
lea r9, [rsp + 0x840]
mov qword [rsp + 0x850], rax
lea rax, [rsp + 0x20]
mov edx, 0x444
mov r8d, 1
mov word [rsp + 0x848], 0x7004
mov qword [rsp + 0x858], rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rbp + 0x3f0]
mov rcx, qword [rbp + 0x78]
call fcn.140094e10
jmp 0x1400ea430
mov rdx, qword [rsp + 0x830]
mov rcx, rbp
call fcn.1400de710
jmp 0x1400ea430
test eax, eax
je 0x1400ea430
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.1400de9a0
mov edx, 1
mov rcx, r12
call qword [sym.imp.USER32.dll_EndDialog]
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.14004ae00
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400ea850
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x670
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov rbx, rcx
mov rcx, qword [rcx + 0xa8]
lea r9, [rsp + 0x240]
mov edx, ILFindLastID
mov r8d, 0x104
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx + 0xa50]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
mov edx, 0x104
call qword [rax + 0x68]
lea r8, [rsp + 0x450]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
call fcn.140093e30
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x450]
mov qword [rsp + 0x20], 0
call fcn.140094590
test eax, eax
js 0x1400ea8ff
mov rax, qword [rbx + 0x38]
mov rdx, qword [rsp + 0x20]
lea rcx, [rbx + 0x38]
xor r9d, r9d
xor r8d, r8d
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.14004ae00
add rsp, 0x670
pop rbx
ret
Function at 0x1400eac70
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xa90
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov edx, 0x492
mov rbp, rcx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0x422
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov esi, pe_nt_image_headers64
lea r9, [rsp + 0x880]
mov edx, ILFindLastID
mov rcx, rbx
mov r8d, esi
mov rdi, rax
call qword [sym.imp.USER32.dll_SendMessageW]
lea edx, [rsi + 0x47]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rsp + 0x20]
xor r8d, r8d
movsxd rcx, eax
mov edx, 0x40d
mov dword [rsp + 0x20], 0x20
mov qword [rsp + 0x28], rcx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [rsp + 0x880]
lea rax, [rsp + 0x60]
sub rdx, rax
lea rcx, [rsp + 0x60]
nop word [rax + rax]
lea rax, [rsi + 0x7ffffefe]
test rax, rax
je 0x1400ead53
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400ead53
mov word [rcx], ax
add rcx, 2
dec rsi
jne 0x1400ead30
jmp 0x1400ead58
test rsi, rsi
jne 0x1400ead5c
sub rcx, 2
xor esi, esi
lea r8, [0x140103f7c]
lea rax, [rsp + 0x260]
mov word [rcx], si
sub r8, rax
mov edx, 0x200
lea rcx, [rsp + 0x260]
lea rax, [rdx + 0x7ffffdfe]
test rax, rax
je 0x1400eada4
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400eada4
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400ead80
jmp 0x1400eada9
test rdx, rdx
jne 0x1400eadad
sub rcx, 2
mov rdi, qword [rsp + 0x50]
mov word [rcx], si
mov ecx, 0x830
mov qword [rsp + 0x660], rsi
call fcn.14004af90
lea rdx, [rsp + 0x60]
mov rcx, rax
mov rbx, rax
call fcn.1400925d0
mov qword [rbx + 0x810], rdi
mov rcx, qword [rdi + 0x828]
test rcx, rcx
jne 0x1400eadfa
mov qword [rdi + 0x828], rbx
mov qword [rbx + 0x818], rsi
jmp 0x1400eae2d
lea rax, [rcx + 0x820]
cmp qword [rax], rsi
je 0x1400eae1f
nop word [rax + rax]
mov rcx, qword [rax]
lea rax, [rcx + 0x820]
cmp qword [rax], rsi
jne 0x1400eae10
mov qword [rcx + 0x820], rbx
mov qword [rbx + 0x818], rcx
mov edx, 1
mov rcx, rbp
call qword [sym.imp.USER32.dll_EndDialog]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14004ae00
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400eec80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
mov rbx, qword [rsp + 0x60]
mov eax, r8d
mov rsi, r9
sub eax, 0x2c
mov ebp, r8d
mov r12, rdx
mov rdi, rcx
je 0x1400eed65
sub eax, 0x22
je 0x1400eed43
sub eax, 0xc3
je 0x1400eed31
sub eax, 5
je 0x1400eed1a
cmp eax, 0xed
jne 0x1400eed73
lea rdx, [rcx + 0x1748]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x20], 1
call fcn.1400c4c80
test eax, eax
jns 0x1400eed73
lea rdx, [rdi + 0x1540]
mov r9d, 1
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], 1
call fcn.1400c4c80
jmp 0x1400eed73
mov rcx, qword [rcx + 0x68]
mov r9, rbx
mov r8, rsi
mov edx, 0x116
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400eed73
mov eax, 0x13a9
cmp r9w, ax
jne 0x1400eed73
call fcn.1400a9e30
jmp 0x1400eed73
mov eax, dword [rbx + 0x10]
cmp eax, 0xfffffdd9
je 0x1400eed5e
cmp eax, 0xfffffdee
jne 0x1400eed73
mov rdx, rbx
call fcn.1400c39e0
jmp 0x1400eed73
call fcn.1400a99d0
jmp 0x1400eed73
mov dword [rbx + 0xc], ILCombine
mov dword [rbx + 0x10], 0xa
mov r9, rbx
mov r8, rsi
mov edx, ebp
mov rcx, r12
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
jmp fcn.140001a50

Function at 0x1400eede0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ecx, ecx
lea rdx, [0x140103bc4]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x68]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
lea rcx, str.Static
xor r9d, r9d
mov r8d, 0x54000100
call fcn.14001ad70
lea rdx, [0x1400eedb0]
mov r9, rbx
mov rcx, rax
xor r8d, r8d
mov qword [rbx + 0x3e0], rax
add rsp, 0x50
pop rbx
jmp fcn.140009c70
Function at 0x4018e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x4019fa
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40192e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x4019e0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401912
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401a32
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401a15
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4019d9
sub eax, 0x40
and eax, 0xffffffbf
je 0x4019d9
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401a01
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x40193b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402610
Capabilities:
Parse pe header

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

Function at 0x402630
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 0x402671
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 0x402668
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x402673
add rax, 0x28
cmp rax, r9
jne 0x402654
xor eax, eax
repz ret

Function at 0x402720
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004042e0]
cmp word [rbx], 0x5a4d
je 0x402740
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402734
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x402990
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004079c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004079a0]
test rbx, rbx
je 0x4029e4
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 0x4029db
test rsi, rsi
je 0x4029db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4029c0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004079c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x140001420
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
movabs rdx, 0x27d4eb2f165667c5
mov r10, rcx
lea rcx, [rcx + 0x28]
mov r9d, dword [r10 + 0x48]
mov r8, qword [r10 + 0x18]
mov r11, qword [r10]
add r9, rcx
add rdx, r8
cmp r11, 0x1f
jbe 0x1400014fd
mov rbx, qword [r10 + 0x10]
mov rdx, qword [r10 + 8]
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, qword [r10 + 0x20]
mov rsi, rbx
imul rbx, rdi
mov rbp, rdx
rol rdx, 1
rol rsi, 7
imul rbp, rdi
add rdx, rsi
mov rsi, r8
rol rsi, 0xc
imul r8, rdi
add rdx, rsi
mov rsi, rax
rol rbp, 0x1f
rol rsi, 0x12
imul rax, rdi
add rdx, rsi
rol r8, 0x1f
movabs rsi, 0x9e3779b185ebca87
imul rbp, rsi
imul r8, rsi
xor rdx, rbp
mov rbp, rbx
movabs rbx, 0x85ebca77c2b2ae63
imul rdx, rsi
rol rbp, 0x1f
imul rbp, rsi
add rdx, rbx
xor rdx, rbp
imul rdx, rsi
add rdx, rbx
xor r8, rdx
mov rdx, rax
imul r8, rsi
rol rdx, 0x1f
imul rdx, rsi
lea rax, [r8 + rbx]
xor rdx, rax
imul rdx, rsi
add rdx, rbx
lea rsi, [r10 + 0x30]
add rdx, r11
cmp r9, rsi
jb 0x140001569
movabs rbx, 0xc2b2ae3d27d4eb4f
mov rcx, rsi
movabs r8, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop word [rax + rax]
mov rax, qword [rcx - 8]
add rcx, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r8
xor rax, rdx
rol rax, 0x1b
imul rax, r8
lea rdx, [rax + r11]
cmp r9, rcx
jae 0x140001530
mov rax, r9
sub rax, r10
lea rcx, [rax - 0x30]
and rcx, 0xfffffffffffffff8
add rcx, rsi
lea r8, [rcx + 4]
cmp r9, r8
jb 0x1400015a7
mov eax, dword [rcx]
movabs rcx, 0x9e3779b185ebca87
imul rax, rcx
mov rcx, r8
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp r9, rcx
jbe 0x1400015de
movabs r10, 0x27d4eb2f165667c5
movabs r8, 0x9e3779b185ebca87
movzx eax, byte [rcx]
add rcx, 1
imul rax, r10
xor rax, rdx
rol rax, 0xb
imul rax, r8
mov rdx, rax
cmp r9, rcx
jne 0x1400015c0
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140009210
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
lea rsi, [0x14001b330]
lea rdi, [0x14002b080]
mov rcx, qword [0x14002a040]
movq xmm6, rdi
movq xmm0, rsi
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x140009267
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140009288
mov rcx, qword [0x14002a040]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002b060], 0
jne 0x1400092a0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002a040]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000925a
mov edx, 0x414
lea r12, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
mov word [rsp + 0x40], dx
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009354
test al, 0x10
je 0x140009270
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140009270
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140009300
jmp 0x140009270

Function at 0x1400104a0
Capabilities:
Create directory

Disassembly:
push r14
mov eax, 0x2020
push r13
push r12
push rsi
push rbx
call fcn.140015bb0
sub rsp, rax
mov eax, dword [0x14002f080]
mov r12, rcx
test eax, eax
je 0x140010570
xor ebx, ebx
lea rsi, [0x14002d080]
test eax, eax
jg 0x1400104e4
jmp 0x140010510
add rbx, 1
cmp dword [0x14002f080], ebx
jle 0x140010510
mov rdx, qword [rsi + rbx*8]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1400104d8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x140010527
cmp word [r12 + 2], 0x3a
je 0x1400104f4
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400105c0
movsxd rbx, dword [0x14002f080]
cmp ebx, 0x3ff
jg 0x1400104f4
mov rcx, r12
call sub.msvcrt.dll__wcsdup
add dword [0x14002f080], 1
mov r8, rax
lea rax, [0x14002d080]
mov qword [rax + rbx*8], r8
jmp 0x1400104f4
lea r13, [rsp + 0x20]
lea r14, str._HOME_
mov r8d, 0x1000
mov rdx, r14
mov rcx, r13
call fcn.140008ad0
test al, al
je 0x1400105d8
movsxd rbx, dword [0x14002f080]
mov rcx, r13
lea rsi, [0x14002d080]
call sub.msvcrt.dll__wcsdup
mov qword [rsi + rbx*8], rax
mov eax, dword [0x14002f080]
add eax, 1
mov dword [0x14002f080], eax
jmp 0x1400104c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14001053a
xor eax, eax
jmp 0x1400104f9
mov rcx, r14
call fcn.140009150
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140015245
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14002f168]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14002f164]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140015293
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14001528b
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14001537c
inc ebx
add rax, 0x28
jmp 0x14001526b
mov rcx, r12
call fcn.140015a25
mov rbp, rax
test rax, rax
jne 0x1400152b2
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400151e0
movsxd rbx, ebx
mov rax, qword [0x14002f168]
imul rbx, rbx, 0x28
add rax, rbx
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140015ad5
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002f168]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140015316
mov rax, qword [0x14002f168]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400151e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140015376
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140015376
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14002f168]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140015376
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400151e0
inc dword [0x14002f164]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140015740
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea r13, [0x14002f1c0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002f1a0]
test rbx, rbx
je 0x14001578e
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140015788
test r12, r12
je 0x140015788
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140015760
mov rcx, r13
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140015950
Capabilities:
Parse pe header

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

Function at 0x140015974
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r9d, r8d
jbe 0x1400159ae
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp r10, rdx
ja 0x1400159a5
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400159b0
inc r8d
add rax, 0x28
jmp 0x14001598c
xor eax, eax
ret
Function at 0x140015a25
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14001c930]
mov r8, rcx
mov rcx, r9
call fcn.140015950
test eax, eax
je 0x140015a51
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140015974
xor eax, eax
add rsp, 0x28
ret