joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053ac
Capabilities:
Get user security identifier

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 + 0x40]
mov rsi, rcx
mov rdx, rcx
mov qword [r11 - 0x18], rax
lea rax, [r11 + 0x30]
lea r9, [r11 + 0x38]
mov qword [r11 - 0x20], rax
xor r8d, r8d
xor ecx, ecx
mov dword [r11 + 0x38], 0
mov dword [rsp + 0x78], 0
mov qword [r11 - 0x28], 0
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4054a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4054a0
mov ebx, dword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, 8
mov r8, rbx
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [rsp + 0x78]
inc ebx
mov rbp, rax
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rsp + 0x80]
mov r8, rbp
mov rdi, rax
lea rax, [rsp + 0x88]
mov rdx, rsi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x4054a0
mov rax, rbp
jmp 0x4054a2
xor eax, eax
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4054ac
Capabilities:
Get session user name
Manipulate user privileges

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov rax, rsp
sub rsp, 0x378
xor ebp, ebp
lea r9, [rax + 0x30]
lea rdx, [rsp + 0x30]
mov r8d, 0xf0fff
xor ecx, ecx
mov dword [rsp + 0x30], 0x30
mov qword [rax + 0x30], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
call sub.ADVAPI32.dll_LsaOpenPolicy
cmp eax, ebp
je 0x405508
mov rcx, qword [rsp + 0x3a8]
jmp 0x4055a0
lea rcx, [rsp + 0x60]
lea rdx, [0x00497c50]
mov r8d, 0x2c
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x8c]
xor edx, edx
mov r8d, 0xd4
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_wcslen]
lea rdx, [rsp + 0x3a0]
lea rcx, [rsp + 0x160]
add ax, ax
mov dword [rsp + 0x3a0], 0x100
mov word [rsp + 0x20], ax
add ax, 2
mov word [rsp + 0x22], ax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, ebp
je 0x4054fb
lea rcx, [rsp + 0x160]
call fcn.004053ac
mov rcx, qword [rsp + 0x3a8]
cmp rax, rbp
mov rbx, rax
jne 0x4055ae
cmp rcx, rbp
je 0x4055aa
call sub.ADVAPI32.dll_LsaClose
xor al, al
jmp 0x4055f5
mov esi, 1
lea r8, [rsp + 0x20]
mov rdx, rax
mov r9d, esi
call sub.ADVAPI32.dll_LsaAddAccountRights
movzx edi, bpl
cmp eax, ebp
cmove edi, esi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x3a8]
cmp rcx, rbp
je 0x4055f2
call sub.ADVAPI32.dll_LsaClose
mov al, dil
add rsp, 0x378
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x405658
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
xor ebx, ebx
cmp eax, ebx
setne al
cmp al, bl
mov byte [rsp + 0x60], al
je 0x40570f
call qword [sym.imp.USER32.dll_EmptyClipboard]
cmp eax, ebx
je 0x40570f
mov esi, dword [rdi + 8]
mov rbp, qword [rdi]
lea rcx, [rsp + 0x68]
inc esi
mov edx, 0x2002
mov qword [rsp + 0x68], rbx
add rsi, rsi
mov r8, rsi
call fcn.0040aee8
cmp al, bl
jne 0x4056b8
lea rcx, [rsp + 0x68]
jmp 0x4056fc
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp rax, rbx
je 0x4056b1
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x68]
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rcx, [rsp + 0x68]
cmp rax, rbx
jne 0x405703
call fcn.0040af10
jmp 0x40570f
mov qword [rsp + 0x68], rbx
call fcn.0040af10
mov bl, 1
lea rcx, [rsp + 0x60]
call fcn.00405628
mov al, bl
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x405c94
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rbx, rcx
lea rcx, [rsp + 0x20]
xor edi, edi
mov edx, 0x114
mov word [rsp + 0x20], di
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov esi, eax
call fcn.00402a7c
cmp esi, edi
je 0x405cd9
cmp esi, 0x114
jae 0x405cd9
mov edi, 1
mov al, dil
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret

Function at 0x405eb8
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x405ec6
and edx, 0x3fff
jmp fcn.00405e10

Function at 0x405ecc
Capabilities:
Delete directory

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040a484
mov ebx, eax
cmp eax, 1
je 0x405efc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x405efc
mov al, 1
jmp 0x405f4d
test ebx, ebx
je 0x405f4b
lea rcx, [rsp + 0x28]
call fcn.00402868
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040ab50
test al, al
je 0x405f41
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x405f4d
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x405f74
Capabilities:
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, rdx
mov r12, rcx
call fcn.0040a484
mov esi, eax
mov rcx, rbp
call fcn.0040a484
mov edi, eax
mov ebx, 1
cmp esi, ebx
je 0x405fc3
cmp eax, ebx
je 0x405fc3
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x405fc3
mov al, bl
jmp 0x406051
test esi, esi
jne 0x405fcf
test edi, edi
je 0x40604f
lea rcx, [rsp + 0x48]
call fcn.00402868
nop
lea rcx, [rsp + 0x38]
call fcn.00402868
nop
cmp esi, ebx
je 0x405fed
cmp edi, ebx
jne 0x405fef
xor bl, bl
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
mov rdx, rbp
mov rcx, r12
call fcn.0040ab98
test al, al
je 0x40603a
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x406051
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4061c4
Capabilities:
Create directory

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040a484
mov ebx, eax
cmp eax, 1
je 0x406203
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4061f6
mov al, 1
jmp 0x406256
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406254
test ebx, ebx
je 0x406254
lea rcx, [rsp + 0x28]
call fcn.00402868
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040ab50
test al, al
je 0x40624a
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x406256
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x40627c
Capabilities:
Delete file

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
call fcn.004075a8
cmp eax, 0xffffffff
je 0x4062b2
test al, 0x10
jne 0x4062b2
test al, 1
je 0x4062b2
and eax, 0xfffffffe
mov edx, eax
mov rcx, rbx
call fcn.00405e10
test al, al
je 0x406323
mov rcx, rbx
call fcn.0040a484
mov edi, eax
cmp eax, 1
je 0x4062d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4062d2
mov al, 1
jmp 0x406323
test edi, edi
je 0x406321
lea rcx, [rsp + 0x28]
call fcn.00402868
nop
cmp edi, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.0040ab50
test al, al
je 0x406317
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x406323
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x406354
Capabilities:
Get common file path

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
mov dword [rcx + 8], 0
mov rax, qword [rcx]
mov word [rax], 0
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x114
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x406456
cmp ebx, 0x114
jae 0x4063c0
mov word [rsp + 0x268], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.00402a7c
mov al, 1
jmp 0x406456
lea rcx, [rsp + 0x20]
call fcn.00402868
nop
cmp ebx, dword [rsp + 0x2c]
jbe 0x4063dd
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.004024f4
mov rdx, qword [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r11d, eax
test eax, eax
jne 0x4063ff
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
xor al, al
jmp 0x406456
mov rcx, qword [rsp + 0x20]
mov word [rcx + rbx*2], 0
xor eax, eax
cmp word [rcx], ax
je 0x40641d
inc eax
add rcx, 2
cmp word [rcx], 0
jne 0x406411
mov dword [rsp + 0x28], eax
cmp eax, r11d
jne 0x40644a
lea eax, [rbx - 1]
cmp eax, r11d
jne 0x40644a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.00402ae4
nop
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
mov al, 1
jmp 0x406456
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x278
pop rdi
pop rbx
ret

Function at 0x406548
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rbx, rcx
lea rdx, [rsp + 0x20]
xor edi, edi
mov ecx, 0x114
mov word [rsp + 0x20], di
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov esi, eax
call fcn.00402a7c
mov rcx, rbx
call fcn.00409ce4
cmp esi, edi
je 0x406595
cmp esi, 0x114
jae 0x406595
mov edi, 1
mov al, dil
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x4065a4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbp, r9
mov rsi, r8
mov r12b, dl
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
shl ebx, 2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, ebx
shl edi, 0xc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r13d, eax
xor r13d, edi
xor edi, edi
mov ebx, edi
lea r15d, [rdi + 1]
mov dword [rsi + 8], edi
mov rcx, qword [rsi]
mov byte [rcx], dil
cmp r12b, dil
je 0x40666c
mov r10d, r13d
mov r9, rdi
mov r11d, 8
mov r8d, r10d
and r8d, 0xf
shr r10d, 4
lea edx, [r8 + 0x30]
lea eax, [r8 + 0x37]
movzx ecx, al
movzx eax, dl
cmp r8d, 0xa
cmovb ecx, eax
mov byte [rsp + r9 + 0x38], cl
add r9, r15
sub r11, r15
jne 0x406610
mov byte [rsp + r9 + 0x38], dil
cmp rbp, rdi
je 0x40664f
mov rcx, rsi
call fcn.00403114
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.00402320
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
cmove eax, r15d
add r13d, eax
mov r12b, r15b
cmp rbp, rdi
je 0x406683
lea rdx, str..tmp
mov rcx, rsi
call fcn.00402320
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.00402904
nop
mov rdx, qword [rsi]
lea rcx, [rsp + 0x28]
call fcn.00402d24
mov rcx, qword [rsp + 0x28]
call fcn.00408270
cmp al, dil
je 0x4066c5
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
jmp 0x40670c
cmp rbp, rdi
je 0x4066e1
mov r8d, r15d
mov rdx, qword [rsp + 0x28]
mov rcx, rbp
call fcn.00409014
cmp al, dil
jne 0x40671a
jmp 0x4066f0
mov rcx, qword [rsp + 0x28]
call fcn.004061c4
cmp al, dil
jne 0x406729
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x406702
cmp eax, 0xb7
jne 0x406738
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
add ebx, r15d
cmp ebx, 0x64
jb 0x4065f6
jmp 0x406742
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov al, r15b
jmp 0x40674d
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov al, r15b
jmp 0x40674d
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov dword [rsi + 8], edi
mov rax, qword [rsi]
mov byte [rax], dil
xor al, al
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x4075a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040a484
mov ebx, eax
cmp eax, 1
je 0x4075d5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407626
test ebx, ebx
je 0x407621
lea rcx, [rsp + 0x28]
call fcn.00402868
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040ab50
test al, al
je 0x407617
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov eax, ebx
jmp 0x407626
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov eax, 0xffffffff
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x4083b0
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbp, rcx
movsxd rbx, dword [rcx + 8]
mov rdi, rbx
test ebx, ebx
je 0x408400
shl rdi, 3
add ebx, 0xffffffff
sub rdi, 8
mov rax, qword [rbp]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x4083fc
mov rcx, qword [rsi]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x4083d8
mov dword [rbp + 8], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test eax, eax
je 0x408505
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x80], rbx
test eax, eax
je 0x40843f
add rcx, rcx
call fcn.0040377c
mov rbx, rax
mov qword [rsp + 0x80], rax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test eax, eax
je 0x4084fb
cmp eax, edi
ja 0x4084fb
lea rcx, [rsp + 0x28]
call fcn.00402868
nop
xor r13d, r13d
xor edi, edi
test esi, esi
je 0x4084dc
mov r12, rbx
cmp word [r12], 0
jne 0x4084d2
lea rdx, [rbx + r13*2]
lea rcx, [rsp + 0x28]
call fcn.00402a7c
lea r13d, [rdi + 1]
mov rcx, rbp
call fcn.00431004
mov ecx, InitCommonControls
call fcn.0040377c
mov qword [rsp + 0x88], rax
test rax, rax
je 0x4084be
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.004029f4
mov r11, rax
jmp 0x4084c1
xor r11d, r11d
mov ecx, dword [rbp + 8]
lea eax, [rcx + 1]
mov dword [rbp + 8], eax
mov rax, qword [rbp]
mov qword [rax + rcx*8], r11
inc edi
add r12, 2
cmp edi, esi
jb 0x408473
cmp r13d, esi
sete dil
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
mov al, dil
jmp 0x408505
mov rcx, rbx
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x4085d4
Capabilities:
Get file size

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp byte [rcx + 9], 0
mov rbx, rdx
je 0x4085f3
cmp byte [rcx + 0xa], 0
je 0x4085f3
mov rax, qword [rcx + 0x10]
mov qword [rdx], rax
jmp 0x40862f
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, eax
jne 0x40861e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40861e
xor al, al
jmp 0x408631
mov ecx, dword [rsp + 0x40]
mov rax, rdi
shl rcx, 0x20
add rcx, rdi
mov qword [rbx], rcx
mov al, 1
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x408754
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
setne al
mov dword [rbx], ecx
add rsp, 0x30
pop rbx
ret

Function at 0x408790
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x400000
cmp r8d, eax
cmova r8d, eax
jmp fcn.00408754

Function at 0x4088c4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, 0x400000
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
cmova r8d, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x4089d8
Capabilities:
Clear file content

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.00408694
xor ebx, ebx
cmp al, bl
je 0x408a00
cmp qword [rsp + 0x50], rdi
je 0x408a04
xor al, al
jmp 0x408a12
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, ebx
setne al
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x40b39c
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x128
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x40b3d9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40b3d9
mov qword [rbx], 0
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.00402904
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.0040b2f4
nop
mov r8w, 0x20
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.0040b37c
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.004027a4
nop
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov dword [rsp + 0xb0], 0x68
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xec], 0
mov word [rsp + 0xf2], 0
mov qword [rsp + 0xf8], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40b4ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40b505
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0x90]
mov qword [rbx], r11
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x128
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40c040
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x40c070
Capabilities:
Set registry value

Disassembly:
mov al, r8b
xor r8d, r8d
cmp al, r8b
setne r8b
jmp fcn.0040c040

Function at 0x40c084
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, r8
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x40c0c8
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x40c0f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x48
ret
Function at 0x40c1a4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov r11, rsp
sub rsp, 0x40
mov rax, qword [r8]
mov dword [r8 + 8], 0
mov rsi, rcx
mov word [rax], 0
mov rcx, qword [rcx]
lea rax, [r11 + 0x30]
mov rbx, r8
mov qword [r11 - 0x18], rax
lea r9, [r11 - 0x10]
xor r8d, r8d
mov qword [r11 - 0x20], 0
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x70], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c203
cmp eax, 0xea
jne 0x40c279
mov edx, dword [rsp + 0x70]
cmp edx, dword [rbx + 0xc]
mov dword [rsp + 0x78], edx
jbe 0x40c218
mov rcx, rbx
call fcn.004024f4
mov rax, qword [rbx]
lea rcx, [rsp + 0x78]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x70]
mov rdx, qword [rbx]
cmp ecx, dword [rsp + 0x78]
cmova ecx, dword [rsp + 0x78]
mov dword [rsp + 0x70], ecx
shr rcx, 1
mov word [rdx + rcx*2], 0
xor ecx, ecx
cmp word [rdx], cx
je 0x40c276
add rdx, 2
inc ecx
cmp word [rdx], 0
jne 0x40c26a
mov dword [rbx + 8], ecx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x40c378
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
mov rax, rsp
sub rsp, 0x260
mov rdi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rsi, rcx
lea rcx, [rax + 0x38]
mov r9d, 0x2001f
mov qword [rax + 0x38], 0
call fcn.0040c324
test eax, eax
mov ebx, eax
jne 0x40c42c
mov ebx, 0x105
jmp 0x40c3c4
lea rdx, [rsp + 0x50]
call fcn.0040c378
test eax, eax
jne 0x40c42a
mov rcx, qword [rsp + 0x298]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x290]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x290], ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rcx, [rsp + 0x298]
test eax, eax
je 0x40c3b6
call fcn.0040c00c
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
lea rcx, [rsp + 0x298]
call fcn.0040c00c
mov eax, ebx
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret