joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100048e8c
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r12, qword [rsp + 0xa0]
mov r13, rcx
mov r14d, 0x2028
mov rcx, r14
mov rbp, r9
mov rsi, r8
mov rbx, rdx
call fcn.10008f098
mov r8, r14
mov rcx, rax
xor edx, edx
mov rdi, rax
call sub.msvcrt.dll_memset
mov dword [rdi], 0x484d4752
mov dword [rdi + 4], 1
mov dword [rdi + 8], r14d
movdqu xmm0, xmmword [rbx]
xor ebx, ebx
movdqu xmmword [rdi + 0x18], xmm0
cmp rsi, rbx
je 0x100048ef7
mov qword [rdi + 0xc], rbx
mov eax, dword [rsi]
mov dword [rdi + 0x14], eax
mov r14d, 0x3ff
cmp rbp, rbx
je 0x100048f11
lea rcx, [rdi + 0x28]
mov r8, rbp
mov rdx, r14
call sub.msvcrt.dll_wcscpy_s
cmp r12, rbx
je 0x100048f28
lea rcx, [rdi + 0x828]
mov r8, r12
mov rdx, r14
call sub.msvcrt.dll_wcscpy_s
lea r9, [rsp + 0x30]
mov r8d, 0x2028
mov rdx, rdi
mov rcx, r13
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x100048f58
mov rcx, rdi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x100048f8e
cmp rsi, rbx
je 0x100048f7f
mov r8d, dword [rsi]
mov rdx, qword [rsi + 0x10]
lea r9, [rsp + 0x30]
mov rcx, r13
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x100048f84
mov ebx, 1
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x100048fa4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov r12, rcx
mov ecx, 0x2028
call fcn.10008f098
mov rbx, rax
jmp 0x100048fde
xor edi, edi
cmp rbx, rdi
jne 0x100048fec
xor eax, eax
jmp 0x1000490e1
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
mov r8d, 0x2028
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x1000490d7
cmp dword [rsp + 0x58], 0x2028
jne 0x1000490d7
cmp dword [rbx], 0x484d4752
jne 0x1000490cb
cmp dword [rbx + 4], 1
jne 0x10004903d
cmp dword [rbx + 8], 0x2028
je 0x100049092
cmp dword [rbx + 8], 0x2030
jne 0x1000490cb
lea rdx, [rbx + 0x10]
lea rcx, [rbx + 0xc]
mov r8d, 0x2018
call sub.msvcrt.dll_memmove
mov dword [rbx + 8], 0x2028
mov word [rbx + 0x2024], di
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 7]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100049092
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x1000490e1
mov edx, dword [rbx + 0x14]
cmp edx, edi
je 0x1000490bc
mov r9d, 1
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000490bc
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x1000490e1
mov rcx, rbx
call sub.msvcrt.dll_free
mov eax, 1
jmp 0x1000490e1
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x1000490e1
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x10004dc6c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov r12b, r9b
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
xor edi, edi
mov dword [rcx + 0x10], edi
mov dword [rcx + 8], 1
mov dword [rcx + 0xc], edi
mov dword [rcx + 0x28], edi
mov qword [rcx + 0x20], rdi
mov byte [rcx + 0x14], dil
mov dword [rcx + 0x18], 3
lea rax, [0x10001cda0]
mov qword [rcx], rax
lea eax, [rdi + 2]
mul r13
lea r14, [rdi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.10008f138
mov qword [rbx + 0x68], rax
cmp rax, rdi
je 0x10004dcf4
mov r8, rbp
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_wcscpy_s
mov dword [rbx + 0x70], r13d
mov qword [rbx + 0x60], rdi
mov qword [rbx + 0x88], rdi
mov qword [rbx + 0x80], rdi
mov qword [rbx + 0x98], rdi
mov byte [rbx + 0x34], r12b
mov qword [rbx + 0x78], rdi
mov byte [rbx + 0x90], dil
mov qword [rbx + 0x50], rdi
mov dword [rbx + 0x3c], edi
mov dword [rbx + 0x38], edi
mov dword [rbx + 0x40], edi
movzx ecx, r12b
mov eax, 4
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.10008f138
mov qword [rbx + 0x48], rax
cmp rax, rdi
je 0x10004dd70
cmp byte [rbx + 0x34], dil
jbe 0x10004dd70
mov rcx, rdi
mov rax, qword [rbx + 0x48]
mov dword [rcx + rax], 0x64
inc edi
add rcx, 4
movzx eax, byte [rbx + 0x34]
cmp edi, eax
jb 0x10004dd57
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x10004efd4
Capabilities:
Get common file path
Set current directory
Write file on windows

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 r13
sub rsp, 0x20
mov rbx, qword [0x1000aad60]
mov r13d, 4
lea rdx, [0x10001d280]
mov ecx, r13d
call fcn.100061728
xor esi, esi
cmp dword [rbx + 0x18], esi
jbe 0x10004f07a
xor ebp, ebp
mov rax, qword [rbx + 0x10]
mov rdi, qword [rax + rbp]
cmp dword [rdi + 0x18], 1
je 0x10004f026
cmp dword [rdi + 0x18], 3
jne 0x10004f06f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
test al, al
je 0x10004f06f
cmp dword [rdi + 0x18], 1
jne 0x10004f046
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
test al, al
jne 0x10004f06f
cmp byte [rdi + 0x14], 0
mov r9, qword [rdi + 0x20]
lea rax, [0x10001d300]
lea r8, [0x100002fa0]
lea rdx, [0x10001d318]
mov ecx, r13d
cmovne r8, rax
call fcn.100061728
inc esi
add rbp, 8
cmp esi, dword [rbx + 0x18]
jb 0x10004f012
lea rdx, [0x10001d330]
mov ecx, r13d
call fcn.100061728
xor edi, edi
cmp dword [rbx + 0x18], edi
jbe 0x10004f0d2
xor esi, esi
mov rax, qword [rbx + 0x10]
mov rbp, qword [rsi + rax]
cmp dword [rbp + 0x18], 1
je 0x10004f0a6
cmp dword [rbp + 0x18], 3
jne 0x10004f0c7
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 8]
test al, al
jne 0x10004f0c7
mov r8, qword [rbp + 0x20]
lea rdx, [0x100014e84]
mov ecx, r13d
call fcn.100061728
inc edi
add rsi, 8
cmp edi, dword [rbx + 0x18]
jb 0x10004f092
lea rdx, [0x10001d3b0]
mov ecx, r13d
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r13
jmp fcn.100061728
Function at 0x1000502a8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x20
mov rbx, rcx
mov r13d, 0x40
mov rcx, r13
call fcn.10008f098
xor edi, edi
lea r12, [0x1000201a8]
cmp rax, rdi
je 0x100050304
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], 0x10
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], edi
mov qword [rax], r12
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], 0x3e8
jmp 0x100050307
mov rax, rdi
mov rcx, r13
mov qword [rbx + 0x60], rax
call fcn.10008f098
cmp rax, rdi
je 0x100050340
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], 0x10
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], edi
mov qword [rax], r12
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], 0x3e8
jmp 0x100050343
mov rax, rdi
mov rcx, rax
mov qword [rbx + 0x68], rax
call fcn.1000602cc
mov rcx, r13
call fcn.10008f098
cmp rax, rdi
je 0x10005038b
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], 0x10
mov qword [rax + 0x18], rdi
lea rcx, [0x1000201d0]
mov dword [rax + 0x20], edi
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], 0x3e8
mov qword [rax], rcx
jmp 0x10005038e
mov rax, rdi
mov rcx, rax
mov qword [rbx + 0x70], rax
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
add rsp, 0x20
pop r13
jmp fcn.1000602cc
Function at 0x1000602cc
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
test rcx, rcx
jne 0x10006030c
lea rax, [0x100020570]
mov byte [rsp + 0x30], 1
lea r8d, [rcx + 1]
mov qword [rsp + 0x28], rax
lea rax, [0x100020590]
xor edx, edx
mov r9d, 0xfffe
mov qword [rsp + 0x20], rax
call fcn.100062dc8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x48
ret

Function at 0x100060794
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
and dword [rax + 0x18], 0
lea rdx, [0x100002fa0]
lea rcx, [rax - 0x30]
call fcn.10005db10
nop
mov esi, 0x40
mov dword [rsp + 0x68], esi
lea eax, [rsi - 0x3e]
mul rsi
lea rcx, [rsi - 0x41]
cmovo rax, rcx
mov rcx, rax
call fcn.10008f098
mov rbx, rax
test rax, rax
jne 0x100060811
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.10005da9c
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rax, rdi
jmp 0x100060883
lea r8, [rsp + 0x68]
mov rdx, rax
mov ecx, 3
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x100060836
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.10005dd54
jmp 0x100060859
mov dword [rsp + 0x68], esi
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [entry0]
test eax, eax
je 0x100060859
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.10005dd54
mov rcx, rbx
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.10005da9c
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rax, rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x100060aa8
Capabilities:
Check if file exists
Create process on windows
Query environment variable

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x10009f140]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebx, ebx
cmp byte [0x1000aacb8], bl
jne 0x100060ad4
xor al, al
jmp 0x100060b56
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], bx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
lea rdx, [0x1000205b0]
mov r8d, 0x3e
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x100060acd
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x100060acd
lea r8, [rsp + 0x70]
lea rdx, [0x1000149c0]
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setg al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.10008f560
add rsp, 0x290
pop rbx
ret
Function at 0x100061038
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r8d, 1
cmp dword [rsp + 0x40], r8d
mov rbx, rax
jle 0x100061097
lea rdx, [rax + 8]
mov rcx, qword [rdx]
cmp word [rcx], 0x2f
je 0x100061089
cmp word [rcx], 0x2d
jne 0x1000610a9
inc r8d
add rdx, 8
cmp r8d, dword [rsp + 0x40]
jl 0x10006107a
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x1000610c0
movsxd r8, r8d
mov rdx, rsi
mov rcx, rdi
mov r8, qword [rax + r8*8]
call sub.msvcrt.dll_wcscpy_s
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
jmp 0x100061099
Function at 0x10006115c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r12, rcx
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
mov r14, rdx
repne scasw ax, word [rdi]
mov eax, 0x40000000
not rcx
dec rcx
cmp ecx, eax
mov rsi, rcx
cmova esi, eax
xor r13d, r13d
cmp esi, 1
jb 0x10006127a
cmp word [r12], 0x7c
jne 0x10006127a
lea rcx, [r12 + 2]
lea r8d, [r13 + 0xa]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstoul]
mov ebx, eax
cmp eax, r13d
je 0x10006127a
shr eax, 4
xor ecx, ecx
inc eax
movzx r13d, ax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8, r13
mov rcx, rax
xor eax, eax
lea edx, [rax + 6]
movzx r9d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
xor eax, eax
cmp rdi, rax
jne 0x100061230
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
xor ecx, ecx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx r9d, di
mov r8, r13
mov edx, 6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
xor r13d, r13d
mov rdi, rax
cmp rax, r13
je 0x10006127a
jmp 0x100061233
xor r13d, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x10006127a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
cmp rax, r13
je 0x10006127a
and ebx, 0xf
jbe 0x100061273
mov edi, ebx
movzx ecx, word [rdx]
inc ecx
sub rdi, 1
lea rdx, [rdx + rcx*2]
jne 0x100061264
movzx esi, word [rdx]
lea r12, [rdx + 2]
lea ecx, [rsi + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.10008f098
mov rbx, rax
cmp rax, r13
jne 0x1000612a7
xor eax, eax
jmp 0x10006134e
lea rdi, [rsi + rsi]
mov rdx, r12
mov rcx, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov word [rdi + rbx], r13w
or rsi, 0xffffffffffffffff
xor eax, eax
mov rcx, rsi
mov rdi, rbx
mov qword [rsp + 0x70], r13
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x100061316
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
mov edi, ecx
lea rdx, [rcx + rcx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x70], rax
call sub.msvcrt.dll_wcscpy_s
jmp 0x100061349
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov ecx, 0x500
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, rbx
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x70]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100061a50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x10009f140]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov bpl, r8b
mov edi, edx
mov rsi, rcx
lea rbx, [rsp + 0x60]
cmp edx, 0x40
ja 0x100061afd
je 0x100061af1
mov eax, edx
sub eax, 1
je 0x100061ae5
sub eax, 1
je 0x100061ad9
sub eax, 2
je 0x100061acd
sub eax, 4
je 0x100061ac1
sub eax, 8
je 0x100061ab5
cmp eax, 0x10
jne 0x100061b29
lea rbx, [0x1000206b8]
jmp 0x100061b90
lea rbx, [0x100020690]
jmp 0x100061b90
lea rbx, [0x100020670]
jmp 0x100061b90
lea rbx, [0x1000206a0]
jmp 0x100061b90
lea rbx, [0x100020658]
jmp 0x100061b90
lea rbx, [0x100020648]
jmp 0x100061b90
lea rbx, [0x1000206e0]
jmp 0x100061b90
cmp edx, 0x80
je 0x100061b89
cmp edx, 0x100
je 0x100061b80
cmp edx, 0x200
je 0x100061b77
cmp edx, 0x400
je 0x100061b6e
cmp edx, 0x800
je 0x100061b65
mov rax, qword [0x1000a85d8]
test rax, rax
je 0x100061b46
mov ecx, edx
call rax
mov rbx, rax
test rax, rax
jne 0x100061b90
lea rbx, [rsp + 0x60]
or r8, 0xffffffffffffffff
lea r9, [0x100020750]
lea rcx, [rsp + 0x60]
lea edx, [r8 + 0x11]
mov dword [rsp + 0x20], edi
call sub.msvcrt.dll__snwprintf_s
jmp 0x100061b90
lea rbx, [0x100020740]
jmp 0x100061b90
lea rbx, [0x100020730]
jmp 0x100061b90
lea rbx, [0x100020718]
jmp 0x100061b90
lea rbx, [0x100020708]
jmp 0x100061b90
lea rbx, [0x1000206f0]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
test bpl, bpl
je 0x100061c4c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x100061c30
and qword [rsp + 0x30], 0
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x48]
lea rcx, [0x100020638]
mov edx, 0xc0000000
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x48], 0x18
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
test rax, rax
je 0x100061c67
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100061c67
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x100061c67
and qword [rsp + 0x20], rax
lea r8d, [rcx + rcx - 2]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.10008f560
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000693cc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x1000ab178]
test rcx, rcx
jne 0x1000693f2
call fcn.100069480
test eax, eax
je 0x100069419
mov rcx, qword [0x1000ab178]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x10006946d
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x10006941d
xor eax, eax
jmp 0x10006946d
mov eax, dword [rax]
mov rcx, qword [0x1000ab178]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x10006944a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x10006946d
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x1000ab178]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x100069451
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x100071a34
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
cmp qword [0x1000abac0], 0
mov esi, dword [0x1000ab13c]
mov edi, ecx
mov dword [0x1000ab13c], ecx
jne 0x100071ad2
cmp qword [0x1000abac8], 0
jne 0x100071ad2
lea rcx, [0x100021658]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x100071a98
lea rcx, [0x100021658]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x100071a98
lea rdx, [0x100021668]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x1000abac0], rax
lea rcx, [0x100021678]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x100071ad2
lea rcx, [0x100021678]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x100071ad2
lea rdx, [0x100021668]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x1000abac8], rax
mov eax, dword [0x1000a7e64]
cmp eax, 0xffffffff
jne 0x100071b81
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
lea rdx, [0x100021638]
mov r9d, 0x2000000
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.KERNEL32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100071b6a
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [0x1000a7e64]
lea rdx, [0x100021688]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_RegCloseKey]
test ebx, ebx
jne 0x100071b6a
cmp dword [rsp + 0x58], 4
jne 0x100071b6a
mov eax, dword [0x1000a7e64]
jmp 0x100071b72
xor eax, eax
mov dword [0x1000a7e64], eax
test eax, eax
je 0x100071b85
mov eax, 1
mov dword [0x1000a7e64], eax
test eax, eax
jne 0x100071ba5
mov rax, qword [0x1000abac0]
test rax, rax
je 0x100071b95
mov ecx, edi
call rax
mov rax, qword [0x1000abac8]
test rax, rax
je 0x100071ba5
mov ecx, edi
call rax
mov eax, esi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x100071bb8
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1000abae0], 0
jne 0x100071c74
lea rdx, [0x100002fb0]
xor ecx, ecx
mov dword [0x1000abae0], 1
xor esi, esi
call fcn.100071a10
lea rdx, [0x100002fb0]
xor ecx, ecx
mov rdi, rax
call fcn.100071a10
mov rbx, rax
test rdi, rdi
je 0x100071c11
test rax, rax
je 0x100071c11
cmp rdi, rax
jne 0x100071c16
mov esi, 1
test rdi, rdi
je 0x100071c23
mov rcx, rdi
call sub.msvcrt.dll_free
test rbx, rbx
je 0x100071c35
cmp rbx, rdi
je 0x100071c35
mov rcx, rbx
call sub.msvcrt.dll_free
xor ecx, ecx
call sub.msvcrt.dll_free
test esi, esi
je 0x100071c74
lea rcx, [0x1000216a0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x100021700]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x100021760]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x1000217b8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x10007ed88
Capabilities:
Write file on windows

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
push r13
push r14
sub rsp, 0x30
mov eax, dword [rcx + 0x20]
xor ebp, ebp
mov r13, r9
mov esi, r8d
mov r12, rdx
mov rdi, rcx
test eax, eax
je 0x10007ef41
sub eax, 1
je 0x10007ee77
cmp eax, 1
jne 0x10007eeda
mov rcx, qword [rcx + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ecx, dword [rdi + 0x3c]
lea edx, [rsi + rcx]
cmp edx, eax
jbe 0x10007ee46
mov rcx, qword [rdi + 0x28]
mov ebx, dword [rdi + 0x3c]
mov rax, qword [rcx]
add ebx, esi
call qword [rax + 0x20]
add eax, eax
cmp ebx, eax
ja 0x10007ee07
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ebx, eax
add ebx, ebx
mov rbp, qword [rdi + 0x28]
cmp ebx, dword [rbp + 0xc]
jbe 0x10007ee46
lea rdx, [0x100002fb0]
mov ecx, ebx
call fcn.100071a10
mov r14, rax
test rax, rax
je 0x10007ee6d
mov r8d, dword [rbp + 0xc]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_free
mov qword [rbp + 0x10], r14
mov dword [rbp + 0xc], ebx
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov ecx, dword [rdi + 0x3c]
mov r8, rsi
add rcx, rax
mov rdx, r12
call sub.msvcrt.dll_memcpy
mov dword [r13], esi
add dword [rdi + 0x3c], esi
jmp 0x10007ef41
mov eax, 0x8007000e
jmp 0x10007ef43
mov ecx, dword [rcx + 0x38]
mov ebx, 0x10000
lea eax, [rcx + rsi]
cmp eax, ebx
ja 0x10007ee9a
add rcx, qword [rdi + 0x30]
mov r8, rsi
call sub.msvcrt.dll_memcpy
add dword [rdi + 0x38], esi
jmp 0x10007ef3d
cmp ecx, ebx
je 0x10007eeba
test ecx, ecx
je 0x10007eeed
mov r8d, ebx
sub r8d, ecx
add rcx, qword [rdi + 0x30]
call sub.msvcrt.dll_memcpy
mov ecx, dword [rdi + 0x38]
sub r12, rcx
add r12, rbx
test ecx, ecx
je 0x10007eeed
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi]
and qword [rsp + 0x20], rbp
mov r9, r13
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10007eee1
mov eax, 0x80004005
jmp 0x10007ef43
add dword [rdi + 0x3c], ebx
mov ebp, ebx
sub ebp, dword [rdi + 0x38]
and dword [rdi + 0x38], 0
mov ebx, esi
sub ebx, ebp
shr ebx, 0x10
test ebx, ebx
je 0x10007ef21
mov rcx, qword [rdi]
and qword [rsp + 0x20], 0
shl ebx, 0x10
mov r8d, ebx
mov r9, r13
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007eeda
add dword [rdi + 0x3c], ebx
mov eax, ebx
add ebp, ebx
add r12, rax
cmp ebp, esi
jae 0x10007ef3d
mov rcx, qword [rdi + 0x30]
mov eax, esi
mov rdx, r12
sub eax, ebp
mov r8d, eax
mov ebx, eax
call sub.msvcrt.dll_memcpy
mov dword [rdi + 0x38], ebx
mov dword [r13], esi
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x10007ef68
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x20]
mov rbx, rcx
test eax, eax
je 0x10007efba
sub eax, 1
je 0x10007ef84
cmp eax, 1
je 0x10007efba
jmp 0x10007efa9
mov r8d, dword [rcx + 0x38]
test r8d, r8d
je 0x10007efba
mov rdx, qword [rcx + 0x30]
mov rcx, qword [rcx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10007efb0
mov eax, 0x80004005
jmp 0x10007efbc
mov eax, dword [rbx + 0x38]
add dword [rbx + 0x3c], eax
and dword [rbx + 0x38], 0
xor eax, eax
add rsp, 0x30
pop rbx
ret