joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003737f
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
sub byte [rax - 0x77], cl
iretd
mov r12d, 0x20
mov r13d, 0xffffffff
mov rbp, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rsi, qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test r12, r12
je 0x14003740f
pop rsi
mov r14, rdi
cmp r12, r13
cmp esp, ebp
mov r15d, 0xffffffff
cmovb r15, r12
cmovb edi, esp
add rdi, r15
sub r12, r15
sub esp, edi
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call rbp
cmp eax, 0xc0000000
add byte [rax], al
add al, al
jb 0x1400373ac
mov ebx, eax
mov rcx, r14
mov edx, r15d
cli
call rsi
test al, al
jne 0x1400373ac
and ebx, 0x7fffffff
je 0x14003740f
invalid
mov al, byte [0x140075320]
mov edx, 4
xor ecx, ecx
call fcn.140047120
test rax, rax
je 0x140037422
mov dword [rax], ebx
jmp 0x140037411
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop rsp
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
add byte [rax], al
add al, ch
scasd eax, dword [rdi]
test byte [rcx], 0
int3

Function at 0x14003bde0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14003be05
cmp rax, rcx
je 0x14003be0b
cmp rdx, 4
jae 0x14003be12
xor eax, eax
xor r8d, r8d
jmp 0x14003beb0
pop rbp
jmp fcn.14001bf50
xor eax, eax
jmp 0x14003bec7
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140059690]
movdqa xmm3, xmmword [0x1400596a0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14003be40
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14003bec7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14003beb0
pop rbp
ret
Function at 0x140044160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
cmp al, byte [rax + r8*8 - 0x3f6af0bf]
Function at 0x140055df0
Capabilities:
Parse pe header

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

Function at 0x1400580a0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov rbx, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.14001a830
mov rax, qword [rbp - 0x28]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x140058129
mov rdi, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14005815b
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14005816f
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x14005818b
mov rcx, qword [rbp - 0x20]
mov edx, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.1400183a0
mov rcx, qword [rbx]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test r14, r14
je 0x14005818b
mov edx, 1
mov rcx, rdi
call fcn.1400183a0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140007d40
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x140007d7b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007da0
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400300e0], 0
jne 0x140007db8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007d6e
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d3fa]
mov qword [rsp + 0x20], 0
lea rdi, [0x140030100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007e84
test al, 0x10
je 0x140007d84
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007d84
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007e30
jmp 0x140007d84

Function at 0x14000e4f0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015590
sub rsp, rax
mov eax, dword [0x140034100]
mov rsi, rcx
test eax, eax
je 0x14000e590
xor ebx, ebx
lea rdi, [0x140032100]
test eax, eax
jg 0x14000e52c
jmp 0x14000e540
add rbx, 1
cmp dword [0x140034100], ebx
jle 0x14000e540
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e520
jmp 0x14000e577
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e555
cmp word [rsi + 2], 0x3a
je 0x14000e577
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e5e0
movsxd rbx, dword [0x140034100]
cmp ebx, 0x3ff
jle 0x14000e5f8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e61a
movsxd rbx, dword [0x140034100]
mov rcx, rdi
lea rdi, [0x140032100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140034100]
add eax, 1
mov dword [0x140034100], eax
jmp 0x14000e511
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e564
xor eax, eax
jmp 0x14000e57c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140034100], 1
mov rdx, rax
lea rax, [0x140032100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e577
mov rcx, rbx
call fcn.140007c80
nop
nop word cs:[rax + rax]
nop
Function at 0x141b30058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b301df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141b30089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b3006f
add dl, dl
jne 0x141b30096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b300f6
xor eax, eax
add dl, dl
jne 0x141b300a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b301ad
add dl, dl
jne 0x141b300b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b300c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b300d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b300dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b300ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b3007e
mov eax, 1
add dl, dl
jne 0x141b30106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b30113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b300fb
sub eax, ebx
mov ebx, 1
jne 0x141b3014c
mov ecx, 1
add dl, dl
jne 0x141b3012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b3013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b30123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b3007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b30168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b30175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b3015d
cmp eax, 0x7d00
jae 0x141b3019b
cmp eax, 0x500
jb 0x141b30196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b3007e
cmp eax, 0x7f
ja 0x141b3019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b3007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b301d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141b3007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14002934c
Capabilities:
Clear file content

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 r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c944
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c944
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f258
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d620
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b00c
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c944
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c944
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140b28000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140b2800a
jmp 0x140b2a00f
jmp fcn.140722058
Function at 0x1000199f8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
jne 0x100019a2e
lea r8, [0x100002a48]
lea rcx, [0x100002a18]
mov edx, 0x16ab
call fcn.10009a050
xor eax, eax
test rbx, rbx
setne al
test eax, eax
jne 0x100019a5d
lea r8, [0x1000029f8]
lea rcx, [0x100002a18]
mov edx, 0x16ac
call fcn.10009a050
mov ecx, 0x80004005
call fcn.1000196c8
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rdi]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x100019aa0
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 [0x100165138]
xor rax, rsp
mov qword [rsp + 0x270], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
mov r9d, 0x2001f
call fcn.10001993c
jmp 0x100019b03
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.100019aa0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x100019b70
lea rax, [rsp + 0x60]
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 0x100019af4
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100019b5e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.1000197b0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x100019b7b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10014e600
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10001a2cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, 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 r12, rax
mov qword [rsp + 0x38], rax
cmp rax, rbx
jne 0x10001a33d
call fcn.10001973c
mov ebx, eax
jmp 0x10001a49e
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x10001a360
call fcn.10001973c
mov ebx, eax
jmp 0x10001a494
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r13, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x10001a385
call fcn.10001973c
mov ebx, eax
jmp 0x10001a494
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x10001a3be
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x10001a3b4
lea rcx, [rsp + 0x70]
call fcn.10001c4a8
nop
mov eax, 0x8007000e
jmp 0x10001a4c4
mov esi, eax
cmp rsi, rbx
jne 0x10001a3ca
mov rsi, rbx
jmp 0x10001a3e0
xor edx, edx
or rax, 0xffffffffffffffff
div rsi
cmp rax, 2
jb 0x10001a4b9
add rsi, rsi
cmp qword [rsp + 0x70], rbx
je 0x10001a3ff
lea r8, [0x100004140]
mov edx, 0x207
lea rcx, [0x100002940]
call fcn.10009a050
cmp rsi, 0x400
jbe 0x10001a41c
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.100068d28
mov r11, qword [rsp + 0x70]
jmp 0x10001a426
lea r11, [rsp + 0x78]
mov qword [rsp + 0x70], r11
jmp 0x10001a43d
cmp r11, rbx
jne 0x10001a449
mov ebx, 0x8007000e
jmp 0x10001a494
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r11
mov r9d, edi
mov r8, r13
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x10001a470
call fcn.10001973c
mov ebx, eax
jmp 0x10001a494
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.10001b10c
mov ebx, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x10001a4b5
lea rcx, [rsp + 0x70]
call fcn.10001c4a8
nop
mov eax, ebx
jmp 0x10001a4c4
mov ecx, 0x80070057
call fcn.1000196c8
nop
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.10014e600
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x100029890
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, rcx
xor edi, edi
mov byte [rax + 8], dil
mov byte [rax + 0x10], dil
mov qword [rax + 0x20], rdi
mov r12, rdi
mov qword [rax + 0x18], rdi
mov qword [rax - 0x70], rdi
mov qword [rax - 0x68], rdi
mov qword [rax - 0x60], rdi
mov dword [rax - 0x58], edi
lea rdx, [rcx + 0x188]
lea r8, [rax + 0x20]
mov rcx, qword [rcx + 0x238]
call fcn.1001238c8
mov esi, eax
lea r15, [0x1001653b8]
cmp eax, edi
jl 0x100029a7a
lea rdx, [rsp + 0xb8]
mov rcx, rbp
call fcn.10003e754
mov esi, eax
cmp eax, edi
jl 0x100029a7a
mov rbx, qword [rsp + 0xc8]
test byte [rbp + 0x150], 4
je 0x100029a21
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call fcn.10010d814
mov esi, eax
cmp eax, edi
jl 0x100029a82
cmp byte [rsp + 0xb0], dil
jne 0x100029a21
cmp byte [rsp + 0xb8], dil
jne 0x100029a21
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rbp + 0x238]
call fcn.1001238c8
mov esi, eax
cmp eax, edi
jl 0x100029a17
lea rdx, [rbp + 0x1e0]
mov r12, qword [rsp + 0xc0]
mov rcx, r12
call fcn.10010c280
mov esi, eax
cmp eax, edi
jl 0x100029a6a
cmp qword [rbp + 0x1e0], rdi
je 0x100029a21
mov rdx, rbx
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, edi
jne 0x100029a21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100029a04
test byte [rcx + 0x1c], 1
je 0x100029a04
cmp byte [rcx + 0x19], 2
jb 0x100029a04
mov edx, 0x134
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9, qword [rbp + 0x1e0]
lea r8, [0x100003cc8]
mov rcx, qword [rcx + 0x10]
call fcn.10001e39c
movzx esi, r13w
or esi, 0x80070000
cmp r13d, edi
cmovle esi, r13d
jmp 0x100029a6a
mov r12, qword [rsp + 0xc0]
jmp 0x100029a6a
cmp dword [rbp + 0x14c], 4
setne dl
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.10010d668
mov esi, eax
cmp eax, edi
jl 0x100029a6a
cmp qword [rbp + 0x1d8], rdi
je 0x100029a60
lea r8, [0x100004aa8]
mov edx, 0x17e5
lea rcx, [0x100004680]
call fcn.10009a050
mov qword [rbp + 0x1d8], rbx
mov rbx, rdi
cmp r12, rdi
je 0x100029a82
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x100029a82
mov rbx, qword [rsp + 0xc8]
cmp rbx, rdi
je 0x100029a90
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, edi
jge 0x100029af4
lea rcx, [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11d, 0x8078014b
mov dword [rbp + 0x20], r11d
cmp esi, r11d
cmovne edi, esi
mov dword [rbp + 0x24], edi
lea rcx, [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100029af4
test byte [rcx + 0x1c], 1
je 0x100029af4
cmp byte [rcx + 0x19], 2
jb 0x100029af4
mov edx, VarBstrCmp
mov eax, dword [rbp + 0x24]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x20]
lea r8, [0x100003cc8]
mov rcx, qword [rcx + 0x10]
call fcn.10001d914
nop
mov eax, esi
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10003949c
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
sub rsp, 0x260
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rdi, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
lea r13, [0x100003cc8]
cmp rcx, r12
je 0x100039505
test byte [rcx + 0x1c], 1
je 0x100039505
cmp byte [rcx + 0x19], 4
jb 0x100039505
mov rcx, qword [rcx + 0x10]
mov edx, 0x26a
mov r8, r13
call fcn.10001c854
mov edx, dword [rdi + 0x14c]
mov rcx, qword [rdi + 0x158]
lea r8, [rsp + 0x30]
call fcn.10011ce04
cmp eax, ebp
mov ebx, eax
jge 0x100039567
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100039687
test byte [rcx + 0x1c], 1
je 0x100039687
cmp byte [rcx + 0x19], 2
jb 0x100039687
mov r9, qword [rdi + 0x158]
mov rcx, qword [rcx + 0x10]
mov edx, 0x26b
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x100039680
mov ebx, 0x101
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, rbx
mov dword [rsp + 0x38], ebx
call sub.msvcrt.dll_memset
mov r11, qword [rdi + 0x260]
lea rcx, [rsp + 0x40]
cmp r11, rbp
jne 0x1000395e6
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, ebp
jne 0x10003961d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x1000395df
test byte [rcx + 0x1c], 1
je 0x1000395df
cmp byte [rcx + 0x19], 2
jb 0x1000395df
mov rcx, qword [rcx + 0x10]
movzx r9d, ax
mov edx, 0x26c
or r9d, 0x80070000
cmp eax, ebp
mov r8, r13
cmovle r9d, eax
call fcn.10001c878
mov word [rsp + 0x40], bp
jmp 0x10003961d
lea rax, [rsp + 0x40]
sub r11, rax
lea rax, [rbx + 0x7ffffefd]
cmp rax, rbp
je 0x100039611
movzx eax, word [r11 + rcx]
cmp ax, bp
je 0x100039611
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x1000395ee
cmp rbx, rbp
jne 0x10003961a
sub rcx, 2
mov word [rcx], bp
mov r8, qword [rdi + 0x188]
mov rdx, qword [rdi + 0x158]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
call fcn.1000eb2a0
cmp eax, ebp
mov ebx, eax
jge 0x100039680
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100039687
test byte [rcx + 0x1c], 1
je 0x100039687
cmp byte [rcx + 0x19], 2
jb 0x100039687
mov r9, qword [rdi + 0x158]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x160]
mov edx, 0x26d
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.10001e39c
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0x30], rbp
je 0x1000396a0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x1000396c2
test byte [rcx + 0x1c], 1
je 0x1000396c2
cmp byte [rcx + 0x19], 4
jb 0x1000396c2
mov rcx, qword [rcx + 0x10]
mov edx, 0x26e
mov r8, r13
call fcn.10001c854
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10014e600
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x100053c24
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x20]
mov rsi, r8
xor r9d, r9d
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov rdi, rdx
xor ebx, ebx
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
cmp eax, ebx
jne 0x100053cde
cmp dword [rsi], ebx
je 0x100053c99
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100053d55
test byte [rcx + 0x1c], 1
je 0x100053d55
cmp byte [rcx + 0x19], 4
jb 0x100053d55
mov edx, 0x1f8
jmp 0x100053cc9
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100053d55
test byte [rcx + 0x1c], 1
je 0x100053d55
cmp byte [rcx + 0x19], 4
jb 0x100053d55
mov edx, 0x1f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov r9, rdi
call fcn.10001db08
jmp 0x100053d55
cmp eax, 2
jne 0x100053d09
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100053d55
test byte [rcx + 0x1c], 1
je 0x100053d55
cmp byte [rcx + 0x19], 3
jb 0x100053d55
mov edx, 0x1fa
jmp 0x100053cc9
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100053d55
test byte [rcx + 0x1c], 1
je 0x100053d55
cmp byte [rcx + 0x19], 2
jb 0x100053d55
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x1fb
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret