joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400706a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x3c], r8d
mov rdx, rcx
mov qword [rbp - 0x48], rdx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov r9d, 2
mov dword [rbp - 0x40], r9d
lea rcx, [rbp - 0x78]
call fcn.140002000
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9d, dword [rbp - 0x40]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.140002050
test ebx, ebx
jne 0x140070714
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
jne 0x14007073b
lea rcx, [0x1400dc130]
call fcn.1400027d0
mov rbx, rax
mov rcx, rbx
call fcn.14007dc50
mov rcx, rbx
call fcn.140002ad0
lea rcx, [0x1400dbab0]
call fcn.1400027d0
mov rbx, rax
mov rcx, rbx
call fcn.14007ae10
mov rcx, rbx
call fcn.140002ad0
int3

Function at 0x1400ab5a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140002000
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.140002050
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.1400019f0
mov dword [rax + 0x88], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1400af220
Capabilities:
Terminate process

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rcx
mov esi, edx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x50], rcx
mov edx, esi
mov dword [rbp - 0x3c], edx
lea rcx, [rbp - 0x78]
call fcn.140002000
mov rcx, qword [rbp - 0x50]
mov edx, dword [rbp - 0x3c]
call sub.KERNEL32.dll_TerminateProcess
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.140002050
call fcn.1400019f0
mov rsi, rax
mov qword [rbp - 0x48], rsi
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rbp - 0x48]
mov dword [rcx + 0x88], eax
xor eax, eax
test ebx, ebx
setne al
movzx eax, al
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400c27c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x1400c285d
xor eax, eax
cmp r8d, 4
jl 0x1400c2811
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x1400c2858
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x1400c2851
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x1400c2849
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x1400c2841
add rax, 4
test r8d, r8d
jle 0x1400c2a3a
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x1400c2858
inc rax
test r8d, r8d
jg 0x1400c2820
jmp 0x1400c2a3a
add eax, 3
jmp 0x1400c2a35
add eax, 2
jmp 0x1400c2a35
inc eax
jmp 0x1400c2a35
jmp 0x1400c2a35
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x1400c2976
add rax, 0x10
cmp rax, r10
jbe 0x1400c2880
mov eax, r8d
test al, 7
je 0x1400c2a3a
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x1400c2a3a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x1400c2a2c
mov ecx, 0x20
jmp 0x1400c2a2f
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x1400c2a1d
mov r8d, 0x20
jmp 0x1400c2a21
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x1400c2a35
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x14000ef40
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x460
mov rax, qword [0x14002f318]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r14d, 1
mov rdi, rcx
mov si, r14w
cmp dx, r14w
jne 0x14000f1b6
mov qword [rsp + 0x28], rcx
lea r9d, [r14 + 0xb]
lea rdx, [0x140031d40]
lea rcx, [0x140031de0]
mov r8d, r14d
mov word [rsp + 0x20], r14w
call fcn.1400070ac
xor ebx, ebx
mov si, ax
cmp ax, bx
jne 0x14000f40d
mov r12d, 0x98
lea rcx, [0x140030b90]
xor edx, edx
mov r8, r12
call fcn.140013900
lea ebp, [r12 + 0x68]
lea rcx, [rsp + 0x250]
mov r8, rbp
xor edx, edx
call fcn.140013900
lea rcx, [rsp + 0x150]
mov r8, rbp
xor edx, edx
call fcn.140013900
lea rcx, [rsp + 0x350]
mov r8, rbp
xor edx, edx
call fcn.140013900
lea rcx, [rsp + 0x50]
mov r8, rbp
xor edx, edx
shr al, cl
invalid
add byte [rax], al
mov rcx, qword [rdi + 4]
call fcn.140012060
lea rdx, [rsp + 0x250]
mov ecx, ebp
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, qword [0x140030a70]
lea r8, [rsp + 0x50]
mov r9d, ebp
mov edx, 0x5df
mov byte [rsp + 0x150], bl
call qword [sym.imp.USER32.dll_LoadStringA]
cmp byte [rsp + 0x50], bl
je 0x14000f06c
lea rax, [rsp + 0x50]
cmp byte [rax], 0x7c
jne 0x14000f065
mov byte [rax], bl
add rax, r14
cmp byte [rax], bl
jne 0x14000f05e
lea rcx, [0x140030b90]
mov r8, r12
xor edx, edx
call fcn.140013900
mov rax, qword [0x140030cc8]
lea rcx, [0x140030b90]
mov qword [0x140030b98], rax
lea rax, [rsp + 0x50]
mov dword [0x140030b90], r12d
mov qword [0x140030ba8], rax
lea rax, [rsp + 0x150]
mov qword [0x140030ba0], rbx
in al, dx
sbb al, byte [rdx]
add byte [rax - 0x77], cl
add eax, 0x21b05
mov r13d, 6
cmp dx, r13w
jne 0x14000f40d
mov r12d, 0x98
lea rcx, [0x140030af0]
xor edx, edx
mov r8, r12
call fcn.140013900
lea ebp, [r12 + 0x68]
lea rcx, [rsp + 0x150]
mov r8, rbp
xor edx, edx
call fcn.140013900
lea rcx, [rsp + 0x250]
mov r8, rbp
xor edx, edx
call fcn.140013900
lea rcx, [rsp + 0x350]
mov r8, rbp
xor edx, edx
call fcn.140013900
lea rcx, [rsp + 0x50]
mov r8, rbp
xor edx, edx
call fcn.140013900
lea rdx, [rsp + 0x150]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, qword [0x140030a70]
lea r8, [rsp + 0x50]
xor ebx, ebx
mov r9d, ebp
mov edx, 0x5df
mov byte [rsp + 0x250], bl
call qword [sym.imp.USER32.dll_LoadStringA]
cmp byte [rsp + 0x50], bl
je 0x14000f273
lea rax, [rsp + 0x50]
cmp byte [rax], 0x7c
jne 0x14000f26c
mov byte [rax], bl
add rax, r14
cmp byte [rax], bl
jne 0x14000f265
lea rcx, [0x140030af0]
mov r8, r12
xor edx, edx
call fcn.140013900
mov rax, qword [0x140030cc8]
lea rcx, [0x140030af0]
mov qword [0x140030af8], rax
lea rax, [rsp + 0x50]
mov dword [0x140030af0], r12d
mov qword [0x140030b08], rax
lea rax, [rsp + 0x250]
mov qword [0x140030b00], rbx
mov qword [0x140030b20], rax
add al, byte [rax]
Function at 0x140011704
Capabilities:
Get common file path
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0xe0
mov rax, qword [0x14002f318]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov rdi, rcx
mov esi, edx
mov r12d, 0x42
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8, r12
call fcn.140013900
lea r8d, [r12 - 0x20]
lea rcx, [rsp + 0xb0]
xor edx, edx
call fcn.140013900
mov edx, 0x7f02
xor ecx, ecx
mov qword [0x140030a70], rdi
call qword [sym.imp.USER32.dll_LoadCursorA]
mov edx, 0x7f00
xor ecx, ecx
mov qword [0x140030a78], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
lea rcx, [rsp + 0x60]
mov r8, r12
xor edx, edx
mov qword [0x140030a80], rax
call fcn.140013900
cmp byte [0x140031be0], 0
je 0x1400117bd
lea rcx, [0x140031be0]
call fcn.140013fc0
lea rdx, [0x140031be0]
lea rcx, [rsp + 0x60]
mov r8, rax
call fcn.140013c70
jmp 0x1400117d3
lea r8, [rsp + 0x60]
mov r9d, r12d
mov edx, 1
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadStringA]
and qword [rsp + 0x58], 0
mov qword [rsp + 0x50], rdi
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x15e
mov dword [rsp + 0x30], 0x1f4
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
lea rdx, str.TW_App_MainWnd
mov r9d, 0xff0000
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea rdx, [rsp + 0x60]
mov r8d, r12d
mov rcx, rax
mov rbx, rax
mov qword [0x140030cc8], rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rdx, [0x1400205f9]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextA]
lea r12, [0x140031c20]
mov edx, 0x100
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1400118c0
lea rax, str.Application_Error
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, str.Unable_to_determine_Windows_directory
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140003194
lea rdx, str.c:windows
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str._twacker.ini
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.TW_APP_MENU
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadMenuA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.USER32.dll_SetMenu]
test rbx, rbx
jne 0x1400118f5
xor eax, eax
jmp 0x140011949
mov rcx, rbx
call fcn.140006f2c
mov ecx, 1
call fcn.1400033cc
mov dword [rsp + 0x30], 6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x28], 0x12c
mov dword [rsp + 0x20], 0x190
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140013bb0
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop r12
pop rdi
pop rsi
ret
Function at 0x140015ed3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002f318]
jne 0x140013bca
rol rcx, 0x10
test cx, 0xffff
jne 0x140013bc6
repz ret
ror rcx, 0x10
jmp 0x140015e2c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140030de0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140030ed8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140015eb1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140030de0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140015ed3
mov rax, qword [rsp + 0x88]
mov qword [0x140030ed8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140030e78], rax
mov rax, qword [0x140030ed8]
mov qword [0x140030d50], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140030e60], rax
mov dword [0x140030d40], 0xc0000409
mov dword [0x140030d44], 1
mov rax, qword [0x14002f318]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002f320]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140030dd8], eax
mov ecx, 1
call fcn.14001aff8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140026890]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140030dd8], 0
jne 0x140015f5a
mov ecx, 1
call fcn.14001aff8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400186e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14001c128
nop
cmp dword [0x140031350], 1
je 0x14001868c
mov dword [0x14003134c], 1
mov byte [0x140031348], r12b
test ebx, ebx
jne 0x140018678
mov rcx, qword [0x1400331f8]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140018665
mov rcx, qword [0x1400331f0]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140018604
call fcn.140016b68
cmp qword [rdi], rax
jne 0x140018604
jmp 0x1400185ea
cmp rdi, rsi
jb 0x140018665
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140016b68
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400331f8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1400331f0]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140018643
cmp r13, rax
je 0x140018663
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400185ea
lea rdx, [0x140020550]
lea rcx, [0x140020538]
call fcn.140018434
lea rdx, [0x140020560]
lea rcx, [0x140020558]
call fcn.140018434
nop
test r12d, r12d
je 0x14001869b
mov ecx, 8
call fcn.14001c028
test r12d, r12d
jne 0x1400186c6
mov dword [0x140031350], 1
lea ecx, [r12 + 8]
call fcn.14001c028
mov ecx, r15d
call fcn.1400183c8
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140018554

Function at 0x1400186ec
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140018554
Function at 0x14001dc6c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140016b68
xor ebx, ebx
mov rdi, rax
cmp qword [0x140031a58], rbx
jne 0x14001dd72
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14001de47
lea rdx, [0x1400279f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001de47
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140031a58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140031a60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140031a68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140031a78], rax
test rax, rax
je 0x14001dd69
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140031a70], rax
jmp 0x14001dd79
mov rax, qword [0x140031a70]
jmp 0x14001dd80
mov rax, qword [0x140031a70]
mov r11, qword [0x140031a78]
cmp rax, rdi
je 0x14001dde8
cmp r11, rdi
je 0x14001dde8
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140031a78]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14001dde8
test rax, rax
je 0x14001dde8
call rsi
test rax, rax
je 0x14001dde2
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001dde2
test byte [rsp + 0x38], 1
jne 0x14001dde8
bts ebp, 0x15
jmp 0x14001de26
mov rcx, qword [0x140031a60]
cmp rcx, rdi
je 0x14001de26
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001de26
call rax
mov rbx, rax
test rax, rax
je 0x14001de26
mov rcx, qword [0x140031a68]
cmp rcx, rdi
je 0x14001de26
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001de26
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140031a58]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001de47
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14001de49
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140006930
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rbp, rdx
mov rdi, rcx
mov rdx, rcx
xor r12d, r12d
mov esi, r8d
mov dword [rcx], r12d
lea rcx, [0x14020a360]
call fcn.1400036f0
lea edx, [r12 + 0xa]
mov rcx, rax
mov rbx, rax
call fcn.140004820
mov rcx, rbx
call fcn.140002850
lea rcx, [0x14020a360]
mov rdx, rbp
mov dword [rdi + 4], r12d
call fcn.1400036f0
lea edx, [r12 + 0xa]
mov rcx, rax
mov rbx, rax
call fcn.140004820
mov rcx, rbx
call fcn.140002850
mov r11d, r12d
lea rax, [rdi + 8]
mov dword [rax], r11d
inc r11d
add rax, 4
cmp r11d, 0x100
jl 0x1400069b2
mov r9d, r12d
mov r11d, r12d
mov r10, r12
nop
mov r8d, dword [rdi + r10*4 + 8]
mov eax, r9d
inc r9d
cdq
idiv esi
mov eax, r11d
movsxd rcx, edx
cdq
idiv esi
movzx eax, byte [rcx + rbp]
add al, dl
add al, r11b
add al, r8b
cmp r9d, esi
movzx r11d, al
cmovge r9d, r12d
inc r10
mov eax, dword [rdi + r11*4 + 8]
mov dword [rdi + r10*4 + 4], eax
mov dword [rdi + r11*4 + 8], r8d
cmp r10, 0x100
jl 0x1400069d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140010f48
Capabilities:
Delete registry key

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

Function at 0x140010fd4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140010ffa
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140010f48
jmp 0x140011061
cmp byte [0x14020ac38], 0
jne 0x14001103e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001102e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14020ac30], rax
jmp 0x140011035
mov rax, qword [0x14020ac30]
mov byte [0x14020ac38], 1
jmp 0x140011045
mov rax, qword [0x14020ac30]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14001105b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140011061
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400114cc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
mov rbx, rdx
cmp dword [rcx - 0x10], 0
je 0x1400114fe
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400114fe
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140026910
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400179c4
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 0x140017a3e
xor r8d, r8d
call fcn.1400178f8
mov rsi, rax
test rax, rax
jne 0x1400179fa
mov eax, edi
jmp 0x140017a54
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x1400179f6
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret