joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002570
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000261c
cmp byte [rcx + 0x71], 0
je 0x14000261c
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400025dd
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400025e1
sub eax, 1
je 0x1400025e5
sub eax, 2
je 0x14000261c
xor al, al
jmp 0x14000261e
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002613
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400025dd
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000261e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002f50
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x18000c1e4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18000c097
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000c097
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000c097
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000c097
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000c097
cmp dword [rcx + 0x84], 0xe
jbe 0x18000c097
cmp dword [rcx + 0xf8], 0
je 0x18000c097
mov ecx, ebx
call fcn.18000c148
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18000bf24
nop
cmp dword [rbp + 0x20], 0
je 0x18000c0e5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000c0f0
int3
xor r8d, r8d
xor edx, edx
jmp 0x18000c028

Function at 0x18000c514
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x18000c54b
call fcn.18000dea4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.18000dd68
xor eax, eax
jmp 0x18000c5d9
mov rdx, r9
mov rcx, r8
call fcn.18000c4b0
mov rbx, rax
test rax, rax
je 0x18000c5d6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18000c3dc]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18000c5c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18000de18
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18000c5aa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18000c5b9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.18000f468
jmp 0x18000c5d6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18000c5d3
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800136c8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800136f8
xor eax, eax
jmp 0x1800137bb
mov rbp, rbx
cmp word [rax], si
je 0x18001371d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180013704
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180013700
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800135e8
movsxd r14, eax
test eax, eax
jne 0x18001375b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800136f1
mov rcx, r14
call fcn.18000f4a4
mov rdi, rax
test rax, rax
jne 0x180013774
xor ecx, ecx
call fcn.18000f468
jmp 0x180013750
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800135e8
test eax, eax
jne 0x1800137a5
mov rcx, rdi
call fcn.18000f468
jmp 0x1800137af
xor ecx, ecx
call fcn.18000f468
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800137d8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18001385f
mov rsi, rbx
cmp word [rax], bp
je 0x18001381e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180013808
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180013804
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18000f4a4
mov rdi, rax
test rax, rax
je 0x18001384c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180006a00
mov rbp, rdi
xor ecx, ecx
call fcn.18000f468
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800190a8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.18000b958
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180019132
cmp byte [rbp - 0x21], r15b
je 0x18001912d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x180019168
call fcn.18000e130
test eax, eax
jne 0x180019154
cmp byte [rbp - 0x21], r15b
je 0x18001914c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180019168
cmp byte [rbp - 0x21], r15b
je 0x180019165
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.180011d0c
test eax, eax
jne 0x180019208
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18000b958
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800191a7
cmp byte [rbp - 0x21], r15b
je 0x1800191dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800191dc
call fcn.18000e130
test eax, eax
jne 0x1800191c8
cmp byte [rbp - 0x21], r15b
je 0x1800191c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800191dc
cmp byte [rbp - 0x21], r15b
je 0x1800191d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.180011d0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x180019208
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18001920b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x180019219
mov rcx, rdi
call fcn.18000f468
cmp byte [rbp + 0x3f], r15b
je 0x180019228
mov rcx, qword [rbp + 0x27]
call fcn.18000f468
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180001f10
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
mov rax, qword [0x18000c008]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x130
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0x130
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x180001f80
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x190]
call fcn.180005d70
mov eax, dword [rsp + 0x28]
jmp 0x18000202e
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x180001faf
mov dword [rsp + 0x2c], 0
mov rcx, qword [rsp + 0x190]
call fcn.180005d70
mov eax, dword [rsp + 0x2c]
jmp 0x18000202e
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x18000200a
mov rcx, qword [rsp + 0x190]
call fcn.180005c40
mov rdx, rax
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x180002008
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x190]
call fcn.180005d70
mov eax, dword [rsp + 0x30]
jmp 0x18000202e
jmp 0x180001faf
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x190]
call fcn.180005d70
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1800088b0
add rsp, 0x180
pop rdi
ret

Function at 0x180003b50
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x18
xor eax, eax
cmp eax, 1
je 0x180003b84
movsx eax, byte [rsp + 0x28]
cmp eax, 0x41
jl 0x180003b84
movsx eax, byte [rsp + 0x28]
cmp eax, 0x5a
jg 0x180003b84
movsx eax, byte [rsp + 0x28]
or eax, 0x20
mov dword [rsp], eax
jmp 0x180003b8c
movsx eax, byte [rsp + 0x28]
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
add rsp, 0x18
ret
Function at 0x180003bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x18000c008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x60]
add eax, 5
mov eax, eax
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x60]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsxd rax, dword [rsp + 0x60]
mov r8, rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0xe9
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
sub rax, qword [rsp + 0x20]
sub eax, 5
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 1], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov byte [rcx + rax], 0xe9
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
sub eax, 5
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 1], eax
movsxd rax, dword [rsp + 0x60]
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800088b0
add rsp, 0x48
ret
Function at 0x1400018fc
Capabilities:
Parse pe header

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

Function at 0x140003c18
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003a44
Function at 0x14000bae0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000bb08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000bb08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000b970
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x1c8], 0
mov ebx, edx
mov rdi, rcx
jne 0x14000b998
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14001706c
test ebx, ebx
jne 0x14000b9b3
mov qword [0x140268560], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140275874], eax
cmp qword [0x140268560], 0
je 0x14000b9e1
mov edx, ebx
mov rcx, rdi
call fcn.14001706c
movsxd rcx, eax
mov qword [0x140268560], rcx
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ebx, 2
jl 0x14000b9d1
mov rax, qword [rdi + 0x1c8]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140275874]
mov rcx, qword [rdi + 0x1c8]
mov edx, eax
mov rax, qword [rbx + 0xa0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
Function at 0x14000f450
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 r12
push r14
push r15
sub rsp, 0x80
mov rbx, r8
mov edi, edx
test r8, r8
je 0x14000f620
mov rax, qword [rcx]
call qword [rax]
mov rbp, rax
test edi, edi
je 0x14000f4c0
cmp edi, 3
je 0x14000f4c0
sub edi, 1
je 0x14000f4af
cmp edi, 1
jne 0x14000f620
movzx edx, bx
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x14000f622
movzx edx, bx
mov rcx, rbp
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x14000f622
movzx edx, bx
mov r8d, 0xa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x14000f620
xor ebx, ebx
mov esi, ebx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x14000f620
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x14000f586
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.14000dec0
test rax, rax
je 0x14000f55f
mov rsi, qword [rsp + 0x50]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000f586
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x14000f620
cmp edi, 3
jne 0x14000f61b
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x1d]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x14000f60d
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x14000f60d
lea ecx, [rdx + 1]
and ecx, 0xfffffffe
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [rdi + 0x1e]
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
mov rdi, rax
test rax, rax
je 0x14000f60d
mov r8d, 0xff00ff
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test eax, eax
jns 0x14000f60a
mov rcx, rdi
call qword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x14000f622
mov rbx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x14000f622
mov rax, rsi
jmp 0x14000f622
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14000f6e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, r8
mov qword [r8 + 0x28], rsi
mov rdi, rdx
test rdx, rdx
jne 0x14000f704
lea eax, [rdx + 1]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rcx]
mov qword [rsp + 0x50], r15
call qword [rax]
movzx edx, di
mov r8d, 0xa
mov rcx, rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000f80b
mov rdx, rax
mov qword [rsp + 0x40], rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x14000f806
mov rcx, rax
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14000f7f8
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov qword [rbx + 0x28], rsi
cmp qword [rbx + 0x20], rdi
jl 0x14000f7d6
cmp rdi, 1
jne 0x14000f794
movzx ecx, byte [r14]
mov rax, qword [rbx + 0x18]
mov byte [rax], cl
inc qword [rbx + 0x28]
jmp 0x14000f7f3
cmp rdi, 2
jne 0x14000f7ab
movzx ecx, word [r14]
mov rax, qword [rbx + 0x18]
mov word [rax], cx
add qword [rbx + 0x28], rdi
jmp 0x14000f7f3
cmp rdi, 4
jne 0x14000f7c0
mov ecx, dword [r14]
mov rax, qword [rbx + 0x18]
mov dword [rax], ecx
add qword [rbx + 0x28], rdi
jmp 0x14000f7f3
cmp rdi, 8
jne 0x14000f7d6
mov rcx, qword [r14]
mov rax, qword [rbx + 0x18]
mov qword [rax], rcx
add qword [rbx + 0x28], rdi
jmp 0x14000f7f3
test eax, eax
je 0x14000f7f3
mov rdx, rdi
mov rcx, rbx
call fcn.140010950
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.1401b0690
mov esi, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rsi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001530c
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 0x140015374
call fcn.14001b8a4
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 0x140015374
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400153ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov edi, 1
test rbx, rbx
je 0x140015399
mov rcx, qword [r15]
mov r9, r14
mov r8, rbx
mov rdx, rsi
mov rax, qword [rcx + 0x40]
mov rcx, r15
call qword [case.0x1400456ce.0]
mov edi, eax
mov rcx, qword [rsi + 0xc8]
test rcx, rcx
je 0x1400153b8
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x140]
mov rdx, r14
call qword [case.0x1400456ce.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 0x140019828
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x140019890
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x14001987a
cmp qword [rcx + 0x18], 0
jne 0x140019875
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x140019896
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140019890
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.140070eb4
call fcn.14001edb8
int3
call fcn.14001edb8
int3

Function at 0x140019e00
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 0x140019e7b
xor r8d, r8d
call fcn.14001a0c4
mov rsi, rax
test rax, rax
je 0x140019e77
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 0x140019e77
mov eax, dword [rsp + 0x30]
jmp 0x140019e91
mov eax, edi
jmp 0x140019e91
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
Function at 0x14001aa18
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14001aa7f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001aa93
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001aa93
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x1400456ce.0]
jmp 0x14001aa98
cmp dword [rcx + 8], 0
je 0x14001aa93
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14001aa98
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14001df88
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001dfae
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14001aa18
jmp 0x14001e019
cmp byte [0x14026e138], 0
jne 0x14001dff2
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001dfe2
lea rdx, [0x1401dd4c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14026e130], rax
jmp 0x14001dfe9
mov rax, qword [0x14026e130]
mov byte [0x14026e138], 1
jmp 0x14001dff9
mov rax, qword [0x14026e130]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14001e013
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x1400456ce.0]
jmp 0x14001e019
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14001e024
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14001e318
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x14001e35a
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret