joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400124f0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140034030]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r8, qword [rdx + 0x10]
cmp qword [rcx + 0x10], r8
jne 0x14001253d
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
jb 0x140012523
mov rcx, qword [rsi]
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x140012530
mov rdx, qword [rdi]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140012611
lea rbx, [rsp + 0x48]
mov rcx, rbx
mov rdx, rdi
call fcn.140002cc0
cmp qword [rbx + 0x18], 8
jb 0x140012559
mov rbx, qword [rsp + 0x48]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.140002cc0
cmp qword [rdi + 0x18], 8
jb 0x140012575
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, 1
sete bl
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x1400125cb
mov rcx, qword [rsp + 0x28]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x1400125c6
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14001262a
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14001fa5c
mov rax, qword [rsp + 0x60]
cmp rax, 8
jb 0x140012613
mov rcx, qword [rsp + 0x48]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x14001260a
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14001262a
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14001fa5c
jmp 0x140012613
mov bl, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400209b0
mov eax, ebx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140016ef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
movzx edx, cx
cmp byte [0x140034418], 1
jne 0x140016fad
mov r8d, 5
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov ecx, 0x40
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r15, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
mov rcx, rax
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
or byte [r12 + 0xa], 0x40
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, r12
mov r8, rdi
mov r9, rsi
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov rsi, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, rsi
jmp 0x140016fc4
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.USER32.dll_DialogBoxParamW]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140016fe0
Capabilities:
Get graphical window text

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x850
mov ebp, r9d
mov rsi, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140034030]
xor rax, rsp
mov qword [rsp + 0x848], rax
call qword [sym.imp.USER32.dll_GetDC]
mov r15, rax
mov rcx, rdi
mov edx, 0x31
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14001703d
mov rcx, r15
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov r8d, 0x400
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r8d, dword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x140017062
mov rdx, qword [rsi]
lea r9, [rsp + 0x38]
mov rcx, r15
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
xor ebx, ebx
test eax, eax
je 0x140017100
lea r12, [rsp + 0x40]
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea r9, [rsp + 0x30]
mov rcx, r15
mov rdx, r12
mov r8d, eax
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x140017100
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
sub eax, ecx
js 0x140017100
mov r8d, dword [rsp + 0x8b0]
mov edx, dword [r14]
mov r9d, dword [r14 + 8]
add ecx, edx
mov ebx, r9d
sub ebx, ecx
test r8d, r8d
cmovne ebx, r8d
add ebx, eax
test bpl, bpl
je 0x1400170d6
sub edx, ebx
mov dword [r14], edx
jmp 0x1400170dd
add r9d, ebx
mov dword [r14 + 8], r9d
mov r8d, dword [r14 + 4]
mov eax, dword [r14 + 0xc]
sub eax, r8d
sub r9d, edx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 1
mov rcx, rdi
call qword [sym.imp.USER32.dll_MoveWindow]
mov rax, qword [rsi + 0x18]
cmp rax, 8
jb 0x140017141
mov rcx, qword [rsi]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x14001713c
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14001717a
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14001fa5c
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 7
mov word [rsi], 0
mov rcx, qword [rsp + 0x848]
xor rcx, rsp
call fcn.1400209b0
mov eax, ebx
add rsp, 0x850
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140017190
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x140034030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov byte [r8], 0
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1400171e9
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000001
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1400171e9
xor edi, edi
jmp 0x14001723c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor edi, edi
lea r9, [rsp + 0x44]
mov rdx, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017231
cmp dword [rsp + 0x44], 4
jne 0x140017231
cmp dword [rsp + 0x34], 1
sete byte [rsi]
mov dil, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400209b0
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x140017700
Capabilities:
Get graphical window text

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x870
mov rsi, rcx
mov rax, qword [0x140034030]
xor rax, rsp
mov qword [rsp + 0x868], rax
mov edx, 0x3f6
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov rcx, rdi
mov edx, 0x31
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140017765
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
lea r14, [rsp + 0x38]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.USER32.dll_GetWindowRect]
xor ecx, ecx
mov rdx, rsi
mov r8, r14
mov r9d, 2
call qword [sym.imp.USER32.dll_MapWindowPoints]
lea r14, [rsp + 0x60]
mov rcx, rdi
mov rdx, r14
mov r8d, 0x400
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea r9, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
mov r8d, eax
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x140017802
mov eax, dword [rsp + 0x48]
mov ebp, dword [rsp + 0x38]
mov ebx, dword [rsp + 0x40]
sub ebx, ebp
cmp eax, ebx
jl 0x140017802
cvtsi2ss xmm0, eax
cvtsi2ss xmm1, ebx
divss xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
cvttss2si eax, xmm0
imul eax, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x3c]
mov r14d, r8d
sub r14d, dword [rsp + 0x44]
add r14d, eax
test r14d, r14d
jg 0x140017825
mov rcx, qword [rsp + 0x868]
xor rcx, rsp
call fcn.1400209b0
nop
add rsp, 0x870
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r12d, 1
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
mov r15, qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, rdi
mov edx, ebp
mov r9d, ebx
call r15
mov rdi, qword [0x140034408]
mov rcx, qword [rdi + 8]
call fcn.1400226d0
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov qword [rdi + 0x10], rdi
mov qword [0x140034410], 0
lea rdi, [rsp + 0x34]
mov dword [rdi], 0x3ed
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.140017610
mov dword [rdi], 0x3f4
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x34]
call fcn.140017610
lea rdi, [rsp + 0x50]
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
add r14d, dword [rdi + 0xc]
mov dword [rdi + 0xc], r14d
mov edx, dword [rdi]
mov r8d, dword [rdi + 4]
sub r14d, r8d
mov r9d, dword [rdi + 8]
sub r9d, edx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
mov rcx, rsi
call r15
lea rdx, [0x14002d790]
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140024440
lea rdx, [0x14002d794]
mov rcx, rsi
call fcn.140024440
lea rdx, [0x14002d798]
mov rcx, rsi
call fcn.140024440
lea rdx, [0x14002d79c]
mov rcx, rsi
call fcn.140024440
lea rdx, [0x14002d7a0]
mov rcx, rsi
call fcn.140024440
lea rdx, [0x14002d7a4]
mov rcx, rsi
call fcn.140024440
lea rdx, [0x14002d7a8]
mov rcx, rsi
call fcn.140024440
lea rdx, [0x14002d7ac]
mov rcx, rsi
call fcn.140024440
jmp 0x140017802
Function at 0x1400187f0
Capabilities:
Get graphical window text

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov eax, 0x9cc0
call fcn.1400209e0
sub rsp, rax
movaps xmmword [rsp + 0x9cb0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140034030]
xor rax, rsp
mov qword [rsp + 0x9ca8], rax
lea rdx, [rsp + 0x4e80]
mov r8d, 0x2711
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rbx, [rsp + 0x4c]
lea r14, [rsp + 0x48]
mov rcx, rdi
mov edx, 0xb0
mov r8, rbx
mov r9, r14
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, dword [r14]
mov eax, dword [rbx]
mov edi, 0xfffffffe
cmp r9d, eax
je 0x1400188c8
sub r9d, eax
lea r8, [rsp + rax*2]
add r8, 0x4e80
lea rdi, [rsp + 0x50]
mov edx, 0x2711
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov eax, dword [rsp + 0x48]
sub eax, dword [rsp + 0x4c]
mov word [rsp + rax*2 + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
not edi
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
xor r14d, r14d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r15, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r8, [rsp + 0x4e80]
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
call r15
mov ebx, eax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call r15
mov esi, eax
add ebx, edi
add esi, ebx
mov rcx, qword [rsp + 0x9ca8]
xor rcx, rsp
call fcn.1400209b0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x9cb0]
add rsp, 0x9cc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140022260
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140034030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x14002231b
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14002231b
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [0x140036010]
cmp eax, 0xffffffff
je 0x140022319
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [0x140036010]
cmp eax, 3
je 0x140022332
cmp eax, 1
je 0x1400222e9
test eax, eax
jne 0x140022319
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x14002230f
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rbx, rax
jne 0x140022319
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x14002231b
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400209b0
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x14002231b
Function at 0x10000c4c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x10003c108]
xor rax, rsp
mov qword [rsp + 0x270], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x10000c5c4
test rcx, rcx
je 0x10000c53a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test ebx, ebx
mov qword [rsp + 0x48], rcx
jmp 0x10000c560
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.10000c4c0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x10000c5c4
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10000c548
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x10000c5b2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.10000c410
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x10000c5cf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10002d830
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10000cc14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x10003c108]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
cmp rax, rbx
jne 0x10000cc88
call fcn.10000c1a0
mov ebx, eax
jmp 0x10000cdc9
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x10000ccab
call fcn.10000c1a0
mov ebx, eax
jmp 0x10000cdbf
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x10000ccd0
call fcn.10000c1a0
mov ebx, eax
jmp 0x10000cdbf
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x10000cd09
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x10000ccff
lea rcx, [rsp + 0x70]
call fcn.100021f18
nop
mov eax, 0x8007000e
jmp 0x10000cde2
mov ecx, eax
cmp rcx, rbx
je 0x10000cd47
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x10000cd3d
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x10000cd47
lea rcx, [rsp + 0x70]
call fcn.100010798
mov rax, qword [rsp + 0x70]
jmp 0x10000cd51
mov ecx, 0x80070057
call fcn.10000c158
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x10000cd68
cmp rax, rbx
jne 0x10000cd74
mov ebx, 0x8007000e
jmp 0x10000cdbf
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x10000cd9b
call fcn.10000c1a0
mov ebx, eax
jmp 0x10000cdbf
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.10000d94c
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x10000cde0
lea rcx, [rsp + 0x70]
call fcn.100021f18
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.10002d830
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x1000132fc
Capabilities:
Check os version
Print debug messages

Disassembly:
push rdi
sub rsp, 0x100
mov rax, qword [0x10003c108]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov qword [0x100040df8], rcx
lea rcx, [0x100002ff8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x100040df0], rax
test rax, rax
jne 0x10001333e
xor eax, eax
jmp 0x1000134f0
mov r10, qword [0x10003fbf8]
test byte [r10 + 0x4c], 4
je 0x100013394
and qword [rsp + 0x30], 0
lea rdx, [0x1000026c8]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
lea r8, [0x100001fd0]
repne scasb al, byte [rdi]
mov eax, 0xa
not rcx
movzx r9d, ax
mov qword [rsp + 0x28], rcx
mov rcx, qword [r10 + 0x40]
mov qword [rsp + 0x20], rdx
lea edx, [rax + 0x21]
call sub.ADVAPI32.dll_TraceMessage
mov rax, qword [0x100040df0]
lea rdx, [0x100003008]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, SysAllocStringByteLen
mov dword [rsp + 0x50], DllRegisterServer
mov rdi, rax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1000133e2
lea rcx, [0x100003020]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x100013337
cmp dword [rsp + 0x54], 6
jb 0x100013412
test rdi, rdi
jne 0x1000133f7
lea rcx, [0x100003040]
jmp 0x1000133d7
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rdi
test eax, eax
jne 0x100013412
lea rcx, [0x100003078]
jmp 0x1000133d7
mov rax, qword [0x100040e58]
test rax, rax
jne 0x10001342b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [0x100040e58], rax
mov dword [rsp + 0x40], 2
test rdi, rdi
je 0x10001345b
lea r8, [rsp + 0x40]
mov r9d, 4
xor edx, edx
mov rcx, rax
call rdi
test eax, eax
jne 0x10001345b
lea rcx, [0x1000030b0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x100040e60], rax
test rax, rax
jne 0x100013480
lea rcx, [0x1000030f0]
jmp 0x1000133d7
test rdi, rdi
je 0x1000134a8
lea r8, [rsp + 0x40]
mov r9d, 4
xor edx, edx
mov rcx, rax
call rdi
test eax, eax
jne 0x1000134a8
lea rcx, [0x100003118]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rax, [0x10003fb78]
lea rdx, [0x100003158]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000134df
and qword [0x10003fb78], 0
jmp 0x1000134eb
lea rcx, [0x10003fb70]
call fcn.1000138b4
mov eax, 1
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.10002d830
add rsp, 0x100
pop rdi
ret
Function at 0x10001370c
Capabilities:
Check for time delay via gettickcount

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
mov edi, r8d
mov ebp, edx
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, ebp
mov esi, eax
jmp 0x10001374e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
jae 0x100013760
mov edx, edi
sub edx, eax
cmp edx, ebp
cmova edx, ebp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
cmp eax, 0x102
je 0x100013739
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret

Function at 0x1000138b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rbp, [0x10003c5d0]
xor ebx, ebx
xor edi, edi
mov rsi, rbp
mov rcx, qword [0x10003fb78]
test rcx, rcx
je 0x10001394a
mov rdx, qword [rsi + 8]
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10001390b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10001394a
mov rdx, qword [rsi]
lea rcx, [rdi + rdi*2]
xor r9d, r9d
lea rax, [rbp + rcx*8 + 0x10]
lea rcx, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
add rsi, 0x18
cmp edi, 0x236
jb 0x1000138ce
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x100013ff8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x40
mov edi, dword [0x10003fb28]
lea eax, [rdx + rdx]
mov esi, edx
mov dword [0x10003fb4c], 1
lea r12, [0x1000026c8]
and edi, 0x3fffffff
mov dword [0x10003fb50], eax
mov rcx, qword [0x10003fb30]
lea rdx, [0x10003fb38]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, qword [0x10003fb60]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000140d8
mov ebx, dword [0x10003fb28]
and ebx, 0x3fffffff
cmp ebx, edi
jl 0x1000140cb
mov r10, qword [0x10003fbf8]
test byte [r10 + 0x4c], 1
je 0x1000140b7
and qword [rsp + 0x30], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
lea r8, [0x100001fc0]
repne scasb al, byte [rdi]
mov eax, 0x10
not rcx
lea edx, [rax + 0x1b]
movzx r9d, ax
mov qword [rsp + 0x28], rcx
mov rcx, qword [r10 + 0x40]
mov qword [rsp + 0x20], r12
call sub.ADVAPI32.dll_TraceMessage
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
inc dword [0x10003fb4c]
mov edi, ebx
jmp 0x100014035
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
ret