joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048460
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1400d2070]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x50]
call fcn.140048390
nop
mov edx, 0x18
lea rcx, [rsp + 0x38]
call fcn.140001d80
lea rcx, [rsp + 0x20]
call fcn.140002280
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x38]
call fcn.14001e660
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14001e610
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
call fcn.140003970
mov qword [rsp + 0x30], rax
mov r9, qword [rsp + 0x28]
xor r8d, r8d
lea rdx, [0x1400b6ac8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14001e610
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.140002040
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x38]
call fcn.14001e640
nop
lea rcx, [rsp + 0x50]
call fcn.140003bf0
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140069a00
add rsp, 0x88
ret

Function at 0x1400489e0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1a8
mov rax, qword [0x1400d2070]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rcx, [rsp + 0x40]
call fcn.140048550
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea r8, str..log
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140006610
nop
lea rcx, [rsp + 0x40]
call fcn.140003bf0
lea rcx, [rsp + 0x60]
call fcn.140003970
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140048ae9
mov edx, 0x108
lea rcx, [rsp + 0x80]
call fcn.140001d80
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.140049c10
nop
lea rcx, [rsp + 0x60]
call fcn.140003970
mov r9d, 0x40
mov r8d, 0x22
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140049b60
mov dl, 0xef
lea rcx, [rsp + 0x80]
call fcn.140051ff0
mov dl, 0xbb
mov rcx, rax
call fcn.140051ff0
mov dl, 0xbf
mov rcx, rax
call fcn.140051ff0
lea rcx, [rsp + 0x80]
call fcn.14002cef0
lea rcx, [rsp + 0x80]
call fcn.140049a50
nop
lea rcx, [rsp + 0x80]
call fcn.140048be0
lea rcx, [rsp + 0x60]
call fcn.140003970
mov r9d, 0x40
mov r8d, 0xa
mov rdx, rax
mov rcx, qword [rsp + 0x1b0]
call fcn.140049b60
mov rcx, qword [rsp + 0x1b0]
call fcn.140049ab0
movzx eax, al
test eax, eax
je 0x140048baa
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x1b0]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140031520
movzx eax, al
test eax, eax
jne 0x140048baa
lea rcx, [rsp + 0x60]
call fcn.140003970
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140048baa
lea rdx, [0x140052020]
mov rcx, qword [rsp + 0x1b0]
call fcn.140049f80
mov qword [rsp + 0x38], rax
lea rdx, [0x140052020]
mov rcx, qword [rsp + 0x38]
call fcn.140049f80
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x60]
call fcn.140003bf0
movzx eax, byte [rsp + 0x20]
jmp 0x140048bbe
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x60]
call fcn.140003bf0
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140069a00
add rsp, 0x1a8
ret
Function at 0x1400493b0
Capabilities:
Get session user name

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x1c8
mov rax, qword [0x1400d2070]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rcx, qword [rsp + 0x1d0]
call fcn.14007321c
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 0
mov dword [rsp + 0xd0], 0x12c
mov edx, 0x18
lea rcx, [rsp + 0xd8]
call fcn.140001d80
lea rcx, [rsp + 0x33]
call fcn.140002280
mov r8, rax
mov edx, 0x12d
lea rcx, [rsp + 0xd8]
call fcn.14001e660
nop
xor edx, edx
lea rcx, [rsp + 0xd8]
call fcn.14001e610
lea rdx, [rsp + 0xd0]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, 0x78
lea rcx, [rsp + 0x130]
call fcn.140001d80
lea rcx, [rsp + 0x130]
call fcn.140043a70
nop
xor edx, edx
lea rcx, [rsp + 0xd8]
call fcn.14001e610
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.140043750
lea r8, [rsp + 0x130]
mov rdx, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x1d8]
call fcn.1400492f0
movzx eax, al
test eax, eax
je 0x1400495a2
mov edx, 0x38
lea rcx, [rsp + 0xf0]
call fcn.140001d80
lea rcx, [rsp + 0xf0]
call fcn.140056e70
nop
lea r8, [rsp + 0xf0]
mov rdx, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x1d8]
call fcn.140049120
movzx eax, al
test eax, eax
je 0x140049595
lea rcx, [rsp + 0xf0]
call fcn.140057400
lea rcx, [rsp + 0x50]
call fcn.140056440
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov r8d, 0x10000000
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xf0]
call fcn.1400564d0
mov byte [rsp + 0x31], al
lea rcx, [rsp + 0x50]
call fcn.1400439c0
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x14004956a
lea r8, [rsp + 0xf0]
mov rdx, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x1d8]
call fcn.140049230
mov byte [rsp + 0x30], al
jmp 0x140049595
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x1d0]
lea r8, str.Cant_set_allowed_ace_for_object___s_:__u
mov edx, 0x398
lea rcx, [0x1400ba700]
call fcn.140048c20
nop
lea rcx, [rsp + 0xf0]
call fcn.140056640
mov rcx, qword [rsp + 0x38]
call fcn.1400732a0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x32], al
lea rcx, [rsp + 0x130]
call fcn.1400439c0
nop
lea rcx, [rsp + 0xd8]
call fcn.14001e640
movzx eax, byte [rsp + 0x32]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140069a00
add rsp, 0x1c8
ret
Function at 0x14005e9f0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x50]
call fcn.140003970
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14005ea52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x50]
call fcn.140003970
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
lea r8, str.Cant_delete_file___s___error__u
mov edx, 0xa6
lea rcx, [0x1400bb510]
call fcn.140048c20
xor al, al
jmp 0x14005ea54
mov al, 1
add rsp, 0x48
ret

Function at 0x14005ea60
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x78]
call fcn.140003970
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x70]
call fcn.140003970
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14005eafb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x78]
call fcn.140003970
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x70]
call fcn.140003970
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
lea r8, str.Cant_rename_file___s__to___s___error__u
mov edx, 0xb0
lea rcx, [0x1400bb5d0]
call fcn.140048c20
xor al, al
jmp 0x14005eafd
mov al, 1
add rsp, 0x68
ret

Function at 0x14005eb10
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x50]
call fcn.140003970
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14005eb72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x50]
call fcn.140003970
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
lea r8, str.Cant_delete_folder___s___error__u
mov edx, 0xba
lea rcx, [0x1400bb680]
call fcn.140048c20
xor al, al
jmp 0x14005eb74
mov al, 1
add rsp, 0x48
ret

Function at 0x14005eb80
Capabilities:
Move file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14005ebe1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
lea r8, str.Cant_move_file___s__to___s___error__u
mov edx, 0xc4
lea rcx, [0x1400bb730]
call fcn.140048c20
xor al, al
jmp 0x14005ebe3
mov al, 1
add rsp, 0x38
ret
Function at 0x14005ebf0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14005ec4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x58]
call fcn.140003970
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
lea r8, str.Cant_delete_service__s__error__u
mov edx, 0xce
lea rcx, [0x1400bb7e0]
call fcn.140048c20
xor al, al
jmp 0x14005ec51
mov al, 1
add rsp, 0x48
ret

Function at 0x14005ec60
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14005ecfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x70]
lea r8, str.Cant_create_process___s___error__u
mov edx, 0xd9
lea rcx, [0x1400bb890]
call fcn.140048c20
xor al, al
jmp 0x14005ed37
mov edx, 0xffffffff
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x68
ret

Function at 0x14005ed70
Capabilities:
Set file attributes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140003970
mov edx, dword [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14005eda2
mov dword [rsp + 0x20], 1
jmp 0x14005edaa
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140065a20
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1400d2070]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x68]
call fcn.14000cf90
movzx eax, al
test eax, eax
je 0x140065a52
xor al, al
jmp 0x140065aab
mov r8, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
lea rcx, [rsp + 0x28]
call fcn.140052480
nop
lea rcx, [rsp + 0x28]
call fcn.140003970
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140065a8b
mov dword [rsp + 0x24], 1
jmp 0x140065a93
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x28]
call fcn.140003bf0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140069a00
add rsp, 0x58
ret

Function at 0x14006a1fd
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
Function at 0x1407c2268
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407c23ef
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 0x1407c2299
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c227f
add dl, dl
jne 0x1407c22a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c2306
xor eax, eax
add dl, dl
jne 0x1407c22b5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c23bd
add dl, dl
jne 0x1407c22c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c22d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c22e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c22ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407c22fa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407c228e
mov eax, 1
add dl, dl
jne 0x1407c2316
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c2323
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c230b
sub eax, ebx
mov ebx, 1
jne 0x1407c235c
mov ecx, 1
add dl, dl
jne 0x1407c233e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407c234b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c2333
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c228e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407c2378
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407c2385
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c236d
cmp eax, 0x7d00
jae 0x1407c23ab
cmp eax, 0x500
jb 0x1407c23a6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c228e
cmp eax, 0x7f
ja 0x1407c23ae
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c228e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407c23e2
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 0x1407c228e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400028a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002918
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140002918
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140002905
nop
cmp rbx, rcx
jae 0x140002918
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400028f0
cmp rbx, rcx
jae 0x140002918
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x14000291a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140002930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, r8d
mov rsi, rdx
shr eax, 4
mov edi, r8d
inc ax
mov r14, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x140002a4e
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140002991
xor edi, edi
mov ebx, edi
jmp 0x1400029e9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x1400029a8
xor edi, edi
mov ebx, edi
jmp 0x1400029e9
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400029d5
nop
cmp rbx, rcx
jae 0x1400029da
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400029c0
cmp rbx, rcx
jb 0x1400029e0
xor edi, edi
mov ebx, edi
jmp 0x1400029e9
xor edi, edi
cmp word [rbx], di
cmove rbx, rdi
test rbx, rbx
je 0x140002a4e
mov rax, qword [r14]
mov ecx, 1
movzx esi, word [rbx]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, esi
or ecx, eax
jge 0x140002a0f
mov edx, esi
mov rcx, r14
call fcn.140002f20
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
mov rdx, rsi
call fcn.1401ae72c
test eax, eax
je 0x140002a35
cmp eax, 0xc
je 0x140002a7c
test dil, dil
jne 0x140002a35
cmp eax, 0x50
jne 0x140002a76
mov rcx, qword [r14]
cmp esi, dword [rcx - 0xc]
jg 0x140002a6b
mov dword [rcx - 0x10], esi
mov eax, 1
mov rcx, qword [r14]
mov word [rcx + rsi*2], di
jmp 0x140002a50
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0x80070057
call fcn.140002fa0
int3
call fcn.140022b1c
int3
call fcn.140022b40
int3
Function at 0x140008ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x14001e543
cmp dword [rcx + 0xe8], 0
jne 0x14001e543
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.140032250
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001e587
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001e587
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.14001e8bc
jmp 0x14001e589
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000bc4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r14, r9
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test r8, r8
je 0x14000bcb4
call fcn.140032250
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14000bcb4
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000bcfa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov edi, 1
test rbx, rbx
je 0x14000bcd9
mov rcx, qword [r15]
mov r9, r14
mov r8, rbx
mov rdx, rsi
mov rax, qword [rcx + 0x40]
mov rcx, r15
call qword [case.0x140148145.0]
mov edi, eax
mov rcx, qword [rsi + 0xc8]
test rcx, rcx
je 0x14000bcf8
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x140]
mov rdx, r14
call qword [case.0x140148145.0]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14000ca08
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14, r8
mov rdi, rdx
mov r8, rcx
test rdx, rdx
je 0x14000caa8
movzx eax, word [rdx]
mov r9d, ebx
jmp 0x14000ca44
movzx eax, ax
add rax, rdx
mov rdx, rax
inc r9d
movzx eax, word [rax]
test ax, ax
jne 0x14000ca35
test r9d, r9d
je 0x14000caa8
cmp r9d, 1
jne 0x14000ca68
mov r8, r14
xor edx, edx
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x14000cac1
xor eax, eax
jmp 0x14000caab
lea esi, [r9 - 1]
mov rcx, rdi
test esi, esi
je 0x14000ca84
mov edx, esi
movzx eax, word [rcx]
add bx, ax
add rcx, rax
sub rdx, 1
jne 0x14000ca75
movzx edx, bx
mov rcx, r8
add edx, 2
call fcn.14000c92c
movzx r8d, bx
mov rdx, rdi
mov rcx, rax
mov qword [r14], rax
call fcn.1401c7450
mov eax, esi
jmp 0x14000caab
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
call fcn.140022b1c
int3
Function at 0x14001d694
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rdi, r9
mov rbx, r8
and qword [r9], 0
mov r14, qword [rbp + 0x40]
and dword [r14], 0
cmp qword [rcx + 0xb0], 0
je 0x14001d76c
xor r8d, r8d
call fcn.14001dafc
mov rsi, rax
test rax, rax
je 0x14001d818
mov qword [rbp - 0x20], rsi
and dword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and dword [rbp + 0x20], 0
and dword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x40]
mov dword [r14], ecx
test eax, eax
jne 0x14001d750
call fcn.140003230
mov qword [rdi], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001d750
lea ebx, [rax + 1]
jmp 0x14001d75e
mov rcx, qword [rdi]
call fcn.140003240
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001d816
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdx
lea rdx, [rbp + 0x40]
mov rax, qword [rax + 0x108]
call qword [case.0x140148145.0]
nop
mov rax, qword [rbp + 0x40]
mov ecx, dword [rax - 0x10]
test ecx, ecx
jne 0x14001d79c
xor ebx, ebx
jmp 0x14001d7f5
shr ecx, 1
mov dword [r14], ecx
call fcn.140003230
mov qword [rdi], rax
xor r8d, r8d
lea ebx, [r8 + 1]
cmp dword [r14], r8d
jbe 0x14001d7f1
lea ecx, [r8 + r8]
lea edx, [rcx + 1]
test edx, edx
js 0x14001d82d
mov rax, qword [rbp + 0x40]
cmp edx, dword [rax - 0x10]
jg 0x14001d82d
test ecx, ecx
js 0x14001d82d
cmp ecx, dword [rax - 0x10]
jg 0x14001d82d
movsxd rcx, ecx
mov dl, byte [rax + rcx*2 + 2]
shl dl, 4
sub dl, 0x51
add dl, byte [rax + rcx*2]
mov rax, qword [rdi]
mov byte [r8 + rax], dl
add r8d, ebx
cmp r8d, dword [r14]
jb 0x14001d7b5
mov rax, qword [rbp + 0x40]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001d816
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140148145.0]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002fa0
int3
Function at 0x14001d838
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 0x14001d8b3
xor r8d, r8d
call fcn.14001dafc
mov rsi, rax
test rax, rax
je 0x14001d8af
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14001d8af
mov eax, dword [rsp + 0x30]
jmp 0x14001d8c9
mov eax, edi
jmp 0x14001d8c9
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret