joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0xc70
mov rax, qword [0x0040f008]
mov qword [rsp + 0xc60], rax
cmp byte [0x00410228], 0
jne 0x401301
cmp byte [0x00410229], 0
je 0x40140b
mov rdx, rcx
lea rcx, [rsp + 0x460]
lea rdi, [rsp + 0xc88]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x860]
mov r8, rdi
call qword [sym.imp.USER32.dll_wvsprintfA]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x5c]
movzx edi, word [rsp + 0x58]
movzx r10d, word [rsp + 0x50]
movzx r9d, word [rsp + 0x56]
movzx r8d, word [rsp + 0x52]
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rdx, str._02i__02i__02i__02i:_02i:_02i:_03i
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_wsprintfA]
xor eax, eax
lea rdi, [rsp + 0x60]
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x860]
repne scasb al, byte [rdi]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [rdx + rcx]
inc rcx
test al, al
mov byte [rdi + rcx - 2], al
jne 0x4013b0
cmp byte [0x00410228], al
je 0x4013d2
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [0x00410229], 0
je 0x40140b
lea rdx, [0x0040b3b0]
lea rcx, str.KxAdmSvc.log
call fcn.00402c90
test rax, rax
mov rdi, rax
je 0x40140b
lea rcx, [rsp + 0x60]
mov rdx, rax
call fcn.00402b30
mov rcx, rdi
call fcn.00402ab0
mov rcx, qword [rsp + 0xc60]
call fcn.0040a3f0
add rsp, 0xc70
pop rdi
ret
Function at 0x401880
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov rbx, rcx
lea rcx, str.KXAPI::DeleteFile_____s__n
mov qword [rsp + 0x48], rdi
mov rdi, rdx
call fcn.004012c0
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40193f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4018ea
lea rcx, str.KXAPI::DeleteFile___ERROR_FILE_NOT_FOUND_n
call fcn.004012c0
mov eax, 1
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
cmp byte [rbx + 4], 0
je 0x401924
lea rcx, str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004012c0
mov r9d, 4
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.00401560
mov eax, 1
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
lea rcx, str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004012c0
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x28
ret
Function at 0x401db0
Capabilities:
Copy file
Set file attributes

Disassembly:
mov r11, rsp
sub rsp, 0x2a8
mov rax, qword [0x0040f008]
mov qword [rsp + 0x270], rax
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
mov rdi, rdx
mov rcx, r8
mov edx, 0x80
mov ebp, r9d
mov rbx, r8
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, str.KXAPI::IsFileExist___s__n
mov rdx, rdi
call fcn.004012c0
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x401e4f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
jmp 0x401fc3
lea rdx, [rsp + 0x160]
mov rcx, rdi
sub rdx, rdi
nop
movzx eax, byte [rcx]
inc rcx
test al, al
mov byte [rdx + rcx - 1], al
jne 0x401e60
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CopyFile_error__ld_n_____s__n_____s__n
mov r9, rbx
mov edx, eax
mov r8, rdi
call fcn.004012c0
xor eax, eax
lea rdi, [rsp + 0x160]
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0xd0]
xor r8d, r8d
repne scasb al, byte [rdi]
lea rax, [rsp + 0x160]
not rcx
mov byte [rcx + rax - 2], 0x5f
lea rcx, [rsp + 0x160]
call sub.LZ32.dll_LZOpenFileA
lea rdx, [rsp + 0x40]
mov r8w, 0x1001
mov rcx, rbx
mov ebp, eax
call sub.LZ32.dll_LZOpenFileA
cmp eax, 0xffffffff
mov edi, eax
jne 0x401f05
lea rdx, [rsp + 0x160]
lea rcx, str.LZCopy_LZERROR_BADINHANDLE_error___can_not_create_target_file._n_____s_____s__n
mov r8, rbx
call fcn.004012c0
lea ecx, [rdi + 6]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x401fd3
mov edx, eax
mov ecx, ebp
call sub.LZ32.dll_LZCopy
test eax, eax
jns 0x401fb0
cmp eax, 0xfffffffa
je 0x401f97
cmp eax, 0xfffffffb
je 0x401f7e
cmp eax, 0xfffffffd
je 0x401f65
cmp eax, 0xfffffffe
je 0x401f4c
cmp eax, 0xffffffff
jne 0x401fb5
lea rdx, [rsp + 0x160]
lea rcx, str.LZCopy_LZERROR_BADINHANDLE_error_n_____s_____s__n
mov r8, rbx
call fcn.004012c0
jmp 0x401fb5
lea rdx, [rsp + 0x160]
lea rcx, str.LZCopy_LZERROR_BADOUTHANDLE_error_n_____s_____s__n
mov r8, rbx
call fcn.004012c0
jmp 0x401fb5
lea rdx, [rsp + 0x160]
lea rcx, str.LZCopy_LZERROR_READ_error_n_____s_____s__n
mov r8, rbx
call fcn.004012c0
jmp 0x401fb5
lea rdx, [rsp + 0x160]
lea rcx, str.LZCopy_LZERROR_GLOBALLOC_error_n_____s_____s__n
mov r8, rbx
call fcn.004012c0
jmp 0x401fb5
lea rdx, [rsp + 0x160]
lea rcx, str.LZCopy_LZERROR_GLOBLOCK_error_n_____s_____s__n
mov r8, rbx
call fcn.004012c0
jmp 0x401fb5
mov esi, 1
mov ecx, ebp
call sub.LZ32.dll_LZClose
mov ecx, edi
call sub.LZ32.dll_LZClose
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
mov rdi, qword [rsp + 0x288]
mov rsi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x298]
mov rbx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x270]
call fcn.0040a3f0
add rsp, 0x2a8
ret
Function at 0x402030
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x30], r9d
mov rbx, r8
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x20], rax
mov rdi, rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4020f7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, eax
je 0x4020d9
lea rdx, str.Dbg2Log
mov rcx, rbx
call fcn.00402630
test eax, eax
je 0x4020d9
lea rdx, str.Debug
mov rcx, rbx
call fcn.00402630
test eax, eax
je 0x4020d9
lea rcx, str.GetRegValueLong______Get_value_error____ld_for__s_n
mov r8, rbx
mov edx, edi
call fcn.004012c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x58
ret
lea rcx, str.GetRegValueLong___Open_registry_error____ld_for__s_n
mov r8, rdi
mov edx, eax
call fcn.004012c0
mov eax, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x58
ret
Function at 0x402510
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x004102d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x004103c8]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x402591
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x004103c8]
jmp 0x4025ad
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x004103c8], r11
mov qword [0x00410368], rax
mov rax, qword [0x0040f008]
mov qword [0x00410240], r11
mov qword [0x00410350], rdi
mov dword [0x00410230], 0xc0000409
mov dword [0x00410234], 1
mov qword [rsp + 0x50], rax
mov rax, qword [section..data]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0040b8b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x0040f008]
jne 0x40a409
rol rcx, 0x10
test cx, 0xffff
jne 0x40a405
ret
ror rcx, 0x10
jmp 0x402510
Function at 0x4060d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x40], r12
lea r12, [0x0040f660]
mov rax, r12
xor ebx, ebx
nop
nop
cmp ecx, dword [rax]
je 0x4060ff
inc ebx
add rax, 0x10
cmp ebx, 0x13
jb 0x4060f0
cmp ebx, 0x13
je 0x4062e9
mov eax, dword [0x004107b0]
mov qword [rsp + 0x68], rdi
cmp eax, 1
je 0x40629e
test eax, eax
jne 0x40612d
cmp dword [0x0040f018], 1
je 0x40629e
cmp ecx, 0xfc
je 0x4062e4
mov qword [rsp + 0x58], rbp
lea rbp, [0x00410870]
mov qword [rsp + 0x60], rsi
lea rsi, [0x00400000]
lea rdx, [0x0041088a]
mov r8d, 0x104
mov rax, qword [rsi + 0xbcb8]
xor ecx, ecx
mov qword [rbp], rax
mov rax, qword [rsi + 0xbcc0]
mov qword [rbp + 8], rax
mov rax, qword [rsi + 0xbcc8]
mov qword [rbp + 0x10], rax
movzx eax, word [rsi + 0xbcd0]
mov word [rbp + 0x18], ax
mov byte [0x0041098e], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4061e0
mov rax, qword [rsi + 0xbca0]
mov qword [rsi + 0x1088a], rax
mov rax, qword [rsi + 0xbca8]
mov qword [rsi + 0x10892], rax
mov eax, dword [rsi + 0xbcb0]
mov dword [rsi + 0x1089a], eax
movzx eax, word [rsi + 0xbcb4]
mov word [rsi + 0x1089e], ax
movzx eax, byte [rsi + 0xbcb6]
mov byte [rsi + 0x108a0], al
mov rsi, qword [rsp + 0x60]
xor eax, eax
lea rdi, [0x0041088a]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x406215
lea rcx, [rcx + rbp - 0x22]
lea r8d, [rax + 3]
lea rdx, [0x0040bc9c]
call fcn.00409730
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x0040bc98]
movsxd rdx, ebx
mov word [rdi - 1], ax
movzx eax, byte [0x0040bc9a]
add rdx, rdx
mov r8, qword [r12 + rdx*8 + 8]
mov byte [rdi + 1], al
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor edx, edx
nop
nop
nop
nop
movzx eax, byte [r8 + rdx]
inc rdx
test al, al
mov byte [rdi + rdx - 2], al
jne 0x406260
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.00409580
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x4062e4
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x30]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [r12 + rcx*8 + 8]
mov rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret

Function at 0x407890
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x0040f008]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4078d3
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
call fcn.0040a3f0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.00409cd0
mov rcx, qword [rsp + 0x28]
call fcn.0040a3f0
add rsp, 0x38
ret
Function at 0x407c00
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0x88], r13
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x78], r15
mov rax, qword [0x0040f008]
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea rdx, [rbp + 8]
mov eax, dword [rsp + 0x20]
lea r12, [rsp + 0x20]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x407d5e
mov r14, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x004107fc]
mov edi, dword [rbp + 0x3c]
xor ebx, ebx
cmp ecx, 2
jne 0x407cd4
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x407cce
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x407cce
lea rcx, [rbp]
mov dword [rbp], ebx
call rax
cmp eax, 1
jne 0x407cce
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
mov ecx, dword [0x004107fc]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x407cf9
add edx, edi
lea eax, [rdi + rdi*2]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r12
mov eax, 0x11
mov r13d, edx
sub rbx, r13
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x407d5e
mov r9d, 4
mov r8d, 0x1000
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x407d5e
lea r9, [rbp + 4]
mov r8d, esi
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x407d5e
mov eax, r15d
jmp 0x407d60
xor eax, eax
mov rcx, qword [rbp + 0x68]
call fcn.0040a3f0
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
mov rdi, qword [rbp + 0xb0]
mov r12, qword [rbp + 0xb8]
mov r13, qword [rbp + 0x88]
mov r14, qword [rbp + 0x80]
mov r15, qword [rbp + 0x78]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x408490
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x498
mov rax, qword [0x0040f008]
mov qword [rsp + 0x450], rax
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
xor esi, esi
xor r13d, r13d
test r8d, r8d
mov r12d, r8d
mov rbp, rdx
jne 0x4084d0
xor eax, eax
jmp 0x4086d2
movsxd rax, ecx
mov qword [rsp + 0x460], r15
lea r9, [0x004110e0]
mov r15b, al
mov rdx, rax
sar rdx, 5
and r15d, 0x1f
mov rax, qword [r9 + rdx*8]
mov qword [rsp + 0x38], rdx
imul r15, r15, 0x38
test byte [r15 + rax + 8], 0x20
je 0x40851c
xor edx, edx
lea r8d, [rdx + 2]
call fcn.00409e40
mov rdx, qword [rsp + 0x38]
lea r9, [0x004110e0]
mov rcx, qword [r9 + rdx*8]
mov qword [rsp + 0x480], rdi
mov qword [rsp + 0x468], r14
test byte [r15 + rcx + 8], 0x80
je 0x408633
xor r14d, r14d
test r12d, r12d
mov rdi, rbp
je 0x408681
mov qword [rsp + 0x4b8], rbx
nop
nop
nop
nop
lea rbx, [rsp + 0x40]
xor ecx, ecx
mov eax, edi
sub eax, ebp
cmp eax, r12d
jae 0x408596
movzx eax, byte [rdi]
inc rdi
cmp al, 0xa
jne 0x408585
mov byte [rbx], 0xd
inc rbx
inc esi
inc rcx
inc rcx
mov byte [rbx], al
inc rbx
cmp rcx, 0x400
jl 0x408567
mov rcx, qword [r9 + rdx*8]
lea rax, [rsp + 0x40]
mov r8d, ebx
mov rcx, qword [r15 + rcx]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
sub r8d, eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408628
movsxd rax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub rbx, rcx
add r13d, eax
cmp rax, rbx
jl 0x4085f0
mov rdx, qword [rsp + 0x38]
mov eax, edi
lea r9, [0x004110e0]
sub eax, ebp
cmp eax, r12d
jb 0x408560
mov rbx, qword [rsp + 0x4b8]
test r13d, r13d
jne 0x4086b4
test r14d, r14d
je 0x408675
cmp r14d, 5
jne 0x408666
call fcn.00405610
mov dword [rax], 9
call fcn.00405640
mov dword [rax], r14d
lea eax, [r14 - 6]
jmp 0x4086ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x4085f0
mov rcx, qword [r15 + rcx]
lea r9, [rsp + 0x30]
mov r8d, r12d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40865b
mov r13d, dword [rsp + 0x30]
xor r14d, r14d
jmp 0x4085f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x408601
mov ecx, r14d
call fcn.00405670
mov eax, 0xffffffff
jmp 0x4086ba
mov rdx, qword [rsp + 0x38]
lea r9, [0x004110e0]
mov rax, qword [r9 + rdx*8]
test byte [r15 + rax + 8], 0x40
je 0x408697
cmp byte [rbp], 0x1a
jne 0x408697
xor eax, eax
jmp 0x4086ba
call fcn.00405610
mov dword [rax], 0x1c
call fcn.00405640
mov dword [rax], 0
mov eax, 0xffffffff
jmp 0x4086ba
sub r13d, esi
mov eax, r13d
mov rdi, qword [rsp + 0x480]
mov r14, qword [rsp + 0x468]
mov r15, qword [rsp + 0x460]
mov r13, qword [rsp + 0x470]
mov r12, qword [rsp + 0x478]
mov rsi, qword [rsp + 0x488]
mov rbp, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x450]
call fcn.0040a3f0
add rsp, 0x498
ret
Function at 0x409580
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
cmp qword [0x00410f20], rsi
mov ebx, r8d
mov rbp, rdx
mov r12, rcx
jne 0x409666
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
je 0x409656
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x00410f20], rax
je 0x409656
lea rdx, str.GetActiveWindow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetLastActivePopup
mov rcx, rdi
mov qword [0x00410f28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x004107fc], 2
mov qword [0x00410f30], rax
jne 0x40965d
lea rdx, str.GetUserObjectInformationA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x00410f40], rax
je 0x40965d
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x00410f38], rax
jmp 0x40966d
xor eax, eax
jmp 0x4096f7
mov rax, qword [0x00410f38]
jmp 0x40966d
mov rax, qword [0x00410f38]
test rax, rax
je 0x4096bb
call rax
test rax, rax
je 0x4096a6
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call qword [0x00410f40]
test eax, eax
je 0x4096a6
test byte [rsp + 0x40], 1
jne 0x4096bb
cmp dword [0x00410808], 4
jb 0x4096b5
bts ebx, 0x15
jmp 0x4096e5
bts ebx, 0x12
jmp 0x4096e5
mov rax, qword [0x00410f28]
test rax, rax
je 0x4096e5
call rax
test rax, rax
mov rsi, rax
je 0x4096e5
mov rdx, qword [0x00410f30]
test rdx, rdx
je 0x4096e5
mov rcx, rax
call rdx
mov rsi, rax
mov r9d, ebx
mov r8, rbp
mov rdx, r12
mov rcx, rsi
call qword [0x00410f20]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x409f00
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov ebp, edx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov qword [rsp + 0x28], r13
mov esi, ecx
call fcn.00409330
cmp eax, 0xffffffff
mov r13d, eax
je 0x40a073
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.00409330
cmp eax, 0xffffffff
je 0x40a073
mov qword [rsp + 0x40], rbx
mov ebx, ebp
mov qword [rsp + 0x20], r14
sub ebx, eax
test ebx, ebx
jle 0x40a010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x409f97
call fcn.00405610
lea edi, [rbp - 1]
mov dword [rax], 0xc
jmp 0x40a058
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x30], r12
call fcn.0040a340
mov r12d, eax
nop
nop
mov r8d, ebx
cmp ebx, r14d
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.00408490
cmp eax, 0xffffffff
je 0x409fd1
sub ebx, eax
test ebx, ebx
jg 0x409fb0
jmp 0x409feb
call fcn.00405640
cmp dword [rax], 5
jne 0x409fe6
call fcn.00405610
mov dword [rax], 0xd
mov edi, 0xffffffff
mov edx, r12d
mov ecx, esi
call fcn.0040a340
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x30]
jmp 0x40a058
test ebx, ebx
jns 0x40a058
xor r8d, r8d
mov edx, ebp
mov ecx, esi
call fcn.00409330
mov ecx, esi
call fcn.004080d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb edi, edi
neg edi
dec edi
cmp edi, 0xffffffff
jne 0x40a058
call fcn.00405610
mov dword [rax], 0xd
call fcn.00405640
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
xor r8d, r8d
mov edx, r13d
mov ecx, esi
call fcn.00409330
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov eax, edi
jmp 0x40a078
mov eax, 0xffffffff
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140001230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor eax, eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0xf
mov byte [rcx], al
mov dword [rsp + 0x38], 1
cmp r8d, 1
jne 0x1400012f9
movdqa xmm0, xmmword [str.ABCDVHMYN1234567_]
movdqu xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x30], 0x3938
test edx, edx
jle 0x140001377
mov edi, edx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
movsxd rax, ecx
movzx r9d, byte [rsp + rax + 0x20]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400012e6
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400012db
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400012ee
mov rcx, rbx
call fcn.140003ab0
sub rdi, 1
jne 0x140001291
jmp 0x140001377
mov dword [rsp + 0x20], 0x34333231
mov dword [rsp + 0x24], 0x38373635
mov byte [rsp + 0x28], 0x39
test edx, edx
jle 0x140001377
mov edi, edx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x38e38e39
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*8]
sub r8d, ecx
movsxd rax, r8d
movzx r9d, byte [rsp + rax + 0x20]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140001369
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000135e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140001371
mov rcx, rbx
call fcn.140003ab0
sub rdi, 1
jne 0x140001314
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140004100
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r8
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov rbx, r9
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x140004142
xor eax, eax
jmp 0x140004184
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140004150
mov rcx, qword [rsp + 0x30]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400041b0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140004b3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004b86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004b86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004b86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004b86
cmp dword [rcx + 0x84], 0xe
jbe 0x140004b86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004b88
xor al, al
add rsp, 0x28
ret