joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400766c1
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14010bfc0
mov rax, rcx
neg rcx
test rax, 7
je 0x14010bfdd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14010c038
test al, 7
jne 0x14010bfd0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14010bff1
mov rdx, qword [rax - 8]
test dl, dl
je 0x14010c062
test dh, dh
je 0x14010c05c
shr rdx, 0x10
test dl, dl
je 0x14010c056
test dh, dh
je 0x14010c050
shr rdx, 0x10
test dl, dl
je 0x14010c04a
test dh, dh
je 0x14010c044
shr edx, 0x10
test dl, dl
je 0x14010c03e
test dh, dh
jne 0x14010bff1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140076a2c
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140097610
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140096f90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009764f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b3020]
jmp 0x140097659
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140076b80
Capabilities:
Query environment variable

Disassembly:
jmp 0x14012dce0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14012db10
lea rcx, [rsp + 0x40]
call fcn.14012dc90
movzx eax, al
test eax, eax
jne 0x14012dd28
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14012db40
mov rax, qword [rsp + 0x70]
jmp 0x14012def9
lea rcx, [rsp + 0x40]
call fcn.14012dc60
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14012dc00
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14012dc60
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140077625
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14012ddce
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14012db40
mov rax, qword [rsp + 0x80]
jmp 0x14012def9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14007691e
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400767de
lea rcx, [rsp + 0x48]
call fcn.14007647d
movzx eax, al
test eax, eax
jne 0x14012de35
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400757d0
lea rcx, [rsp + 0x40]
call fcn.14012db40
mov rax, qword [rsp + 0x88]
jmp 0x14012def9
lea rcx, [rsp + 0x48]
call fcn.140076e5a
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14012dc60
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140077625
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14012decb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400757d0
lea rcx, [rsp + 0x40]
call fcn.14012db40
mov rax, qword [rsp + 0xa0]
jmp 0x14012def9
lea rcx, [rsp + 0x48]
call fcn.1400767b6
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400757d0
lea rcx, [rsp + 0x40]
call fcn.14012db40
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140076b8f
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140097540
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140096f10
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140097581
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b3020]
jmp 0x140097587
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140076c16
Capabilities:
Get geographical location

Disassembly:
jmp 0x140110a00
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14010f930
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140110a67
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401b3030]
jmp 0x140110a89
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14007641e
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140076c2a
Capabilities:
Terminate process

Disassembly:
jmp 0x14007e020
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x140076e05
Capabilities:
Print debug messages

Disassembly:
jmp 0x14014e380
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14014e3a6
jmp 0x14014e423
mov rcx, qword [rbp + 0x30]
call fcn.1400766c1
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14014e3bf
jmp 0x14014e423
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14014e3dc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140075929
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140075d07
test eax, eax
jne 0x14014e423
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400768a6
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140077049
Capabilities:
Create process on windows

Disassembly:
jmp 0x140149030
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.140076306
lea rcx, [rsp + 0xb8]
call fcn.140076306
lea rcx, [rsp + 0x88]
call fcn.140076306
call fcn.140076b30
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.14007611c
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1401490d2
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400765f4
lea rcx, [rsp + 0xb8]
call fcn.1400765f4
lea rcx, [rsp + 0xe8]
call fcn.1400765f4
mov eax, dword [rsp + 0x54]
jmp 0x140149278
call fcn.140076b30
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.14007611c
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140149132
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400765f4
lea rcx, [rsp + 0xb8]
call fcn.1400765f4
lea rcx, [rsp + 0xe8]
call fcn.1400765f4
mov eax, dword [rsp + 0x5c]
jmp 0x140149278
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x1401491b8
call fcn.140076b30
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.14007611c
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1401491a6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400765f4
lea rcx, [rsp + 0xb8]
call fcn.1400765f4
lea rcx, [rsp + 0xe8]
call fcn.1400765f4
mov eax, dword [rsp + 0x64]
jmp 0x140149278
lea rcx, [rsp + 0x88]
call fcn.14007628e
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.14007628e
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.14007628e
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400765f4
lea rcx, [rsp + 0xb8]
call fcn.1400765f4
lea rcx, [rsp + 0xe8]
call fcn.1400765f4
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret
Function at 0x1400772b0
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007f370
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007f390
xor al, al
jmp 0x14007f411
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14007f3a3
xor al, al
jmp 0x14007f411
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14007f3cd
xor al, al
jmp 0x14007f411
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14007f3e1
xor al, al
jmp 0x14007f411
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14007f3f3
xor al, al
jmp 0x14007f411
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007f40f
xor al, al
jmp 0x14007f411
mov al, 1
add rsp, 0x38
ret
Function at 0x1400777b0
Capabilities:
Terminate process

Disassembly:
jmp 0x14010c9b0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14010c9de
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140077ef4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140077f58
Capabilities:
Print debug messages

Disassembly:
jmp 0x140125f60
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140078002
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140097680
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140096fd0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400976c9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b3020]
jmp 0x1400976d8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400780ac
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401505c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140076306
lea rcx, [rsp + 0x48]
call fcn.140076306
call fcn.140076b30
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14007611c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14015062f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400765f4
lea rcx, [rsp + 0x78]
call fcn.1400765f4
mov eax, dword [rsp + 0x24]
jmp 0x1401506c0
call fcn.140076b30
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14007611c
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140150676
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400765f4
lea rcx, [rsp + 0x78]
call fcn.1400765f4
mov eax, dword [rsp + 0x2c]
jmp 0x1401506c0
lea rcx, [rsp + 0x48]
call fcn.14007628e
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14007628e
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400765f4
lea rcx, [rsp + 0x78]
call fcn.1400765f4
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14013d3f0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140075929
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401a2a50]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14013d5e2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14013d536
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14013d536
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14013d51b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14013d4b8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14013d5a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013d601
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14013d5dd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013d601
jmp 0x14013d48e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400768a6
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14013d6b0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140075929
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401a2a50]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14013d8bd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14013d809
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14013d809
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14013d7e9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14013d778
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14013d87d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013d8dc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14013d8b8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013d8dc
jmp 0x14013d74e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400768a6
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x410ddc
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xa8], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x410e4c
call fcn.00410d5c
test rax, rax
mov rsi, rax
jne 0x410e08
mov eax, edi
jmp 0x410e62
lea rax, [rsp + 0x60]
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 + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x410e04
mov r9, qword [rcx + 0xd0]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x412f4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x28
mov r12, r8
mov rbx, rdx
mov r13, rcx
xor edi, edi
call fcn.00428264
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rdi
mov rsi, rax
je 0x412f9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.004128d4
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
add rsp, 0x28
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x413018
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
test rdx, 0xffffffffffff0000
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
jne 0x41304c
cmp dword [rcx + 0xa8], 0
jne 0x41304c
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.00428264
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.00412fc8
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4140dc
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.0042f468
test rax, rax
mov rsi, rax
je 0x414151
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
test rbx, rbx
movzx edi, ax
je 0x41414c
cmp dword [rbx], 0x38
jb 0x41414c
mov rax, qword [rbp + 0x40]
or dword [rbx + 4], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x30], 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x41414c
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x414158
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x41b498
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x41b4f2
call fcn.00428264
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x41b4f2
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x41b514
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.0041af18
test rdi, rdi
mov esi, eax
je 0x41b512
test rbx, rbx
je 0x41b512
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x421bc8
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x421bfe
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x421cb5
call fcn.00433bc4
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x421c1d
mov ecx, 0x80004005
call fcn.0040d5ac
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x118]
mov rdx, rsi
mov rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x50]
mov rcx, rdi
call fcn.0045b400
test eax, eax
je 0x421c88
cmp eax, 0xc
je 0x421c82
cmp eax, 0x16
je 0x421c7c
cmp eax, 0x22
je 0x421c7c
cmp eax, 0x50
je 0x421c88
call fcn.0042f0a0
int3
call fcn.0042f0a0
int3
call fcn.0042f058
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x421cb3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret