joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140082950
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400829d9
lea r8, [rsp + 0x34]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400829d9
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add rsp, 0x40
pop rbx
ret
xor al, al
add rsp, 0x40
pop rbx
ret

Function at 0x1400829f0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x1f4
mov rbx, rcx
mov dword [rsp + 0x20], 2
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x140082a6d
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], eax
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x140082a6d
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140082a6d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
Function at 0x140082a80
Capabilities:
Enumerate processes

Disassembly:
push r14
push r15
sub rsp, 0xab8
xor edx, edx
mov qword [rsp + 0xad8], rbx
mov r15, rcx
mov dword [rsp + 0x30], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rbx, r15
nop dword [rax]
movzx ecx, word [rbx]
cmp cx, 0x20
je 0x140082acf
cmp cx, 9
jne 0x140082ad5
add rbx, 2
jmp 0x140082ac0
mov qword [rsp + 0xae0], rbp
mov qword [rsp + 0xae8], rsi
mov qword [rsp + 0xab0], rdi
test cx, cx
je 0x140082bd0
xor esi, esi
cmp cx, 0x2d
je 0x140082bf4
cmp cx, 0x2b
jne 0x140082b13
movzx ecx, word [rbx + 2]
lea rax, [rbx + 2]
mov rbx, rax
cmp cx, 0x30
jne 0x140082b43
movzx eax, word [rbx + 2]
mov ecx, 0xffdf
sub ax, 0x58
test cx, ax
jne 0x140082b43
movzx ecx, word [rbx + 4]
lea rdi, [rbx + 4]
call fcn.1400d0b70
test eax, eax
je 0x140082b43
mov ebp, 1
jmp 0x140082b49
mov ebp, esi
lea rdi, [rbx + 4]
test ebp, ebp
mov ecx, esi
cmove rdi, rbx
movzx ebx, word [rdi]
cmp ebx, 0x20
je 0x140082bb2
nop dword [rax]
cmp ebx, 9
je 0x140082bb2
test ebx, ebx
je 0x140082bcc
cmp ebx, 0x2e
je 0x140082bf4
test ebp, ebp
je 0x140082b98
movzx ecx, bx
call fcn.1400dceac
test eax, eax
jne 0x140082ba0
test ebx, 0xffffff80
jne 0x140082bf4
mov edx, 2
mov ecx, ebx
call fcn.1400d7464
jmp 0x140082bf4
lea eax, [rbx - 0x30]
cmp eax, 9
ja 0x140082b82
movzx ebx, word [rdi + 2]
add rdi, 2
mov ecx, 1
cmp ebx, 0x20
jne 0x140082b60
movzx eax, word [rdi]
cmp ax, 0x20
je 0x140082bc1
cmp ax, 9
jne 0x140082bc7
add rdi, 2
jmp 0x140082bb2
test ax, ax
jne 0x140082bf4
test ecx, ecx
je 0x140082bf4
mov rcx, r15
call fcn.140005a80
mov rcx, r15
test al, al
je 0x140082bec
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400d22a0
jmp 0x140082bf1
call fcn.1400d283c
mov rsi, rax
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
mov rdi, qword [rsp + 0xab0]
mov rbp, qword [rsp + 0xae0]
mov rbx, qword [rsp + 0xad8]
test eax, eax
je 0x140082ccc
test esi, esi
je 0x140082c30
cmp esi, dword [rsp + 0x38]
je 0x140082ceb
lea rax, [rsp + 0x480]
lea r9, [rsp + 0x270]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x690]
lea rdx, [rsp + 0x8a0]
lea rcx, [rsp + 0x5c]
call fcn.1400ddef4
lea rax, [rsp + 0x270]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140082c70
lea r8, [rsp + 0x480]
xor edx, edx
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x140082c90
mov rdx, r15
lea rcx, [rsp + 0x270]
call fcn.1400d0944
mov rcx, r14
test eax, eax
je 0x140082d0a
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140082c22
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0xae8]
add rsp, 0xab8
pop r15
pop r14
ret
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rsi, qword [rsp + 0xae8]
add rsp, 0xab8
pop r15
pop r14
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
mov rsi, qword [rsp + 0xae8]
add rsp, 0xab8
pop r15
pop r14
ret
Function at 0x14009d560
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp word [rcx], 0
mov rbx, rcx
je 0x14009d673
xor dil, dil
cmp word [rcx + 2], 0
je 0x14009d5b3
movzx eax, word [rbx]
cmp ax, 0x21
je 0x14009d5a3
cmp ax, 0x2b
je 0x14009d59f
cmp ax, 0x5e
jne 0x14009d5b3
mov al, 2
jmp 0x14009d5a5
mov al, 1
jmp 0x14009d5a5
mov al, 4
add rbx, 2
or dil, al
cmp word [rbx + 2], 0
jne 0x14009d586
xor ecx, ecx
mov byte [rsp + 0x40], 0
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140022190
movzx esi, al
test al, al
je 0x14009d673
movzx eax, dil
or al, 4
test byte [rsp + 0x40], 0xc
movzx ecx, al
movzx eax, dil
cmove ecx, eax
movzx r8d, cl
movzx eax, r8b
or al, 2
test byte [rsp + 0x40], 3
movzx ecx, al
cmove ecx, r8d
movzx edx, cl
mov rcx, rbx
movzx eax, dl
or al, 1
test byte [rsp + 0x40], 0x30
movzx edi, al
cmove edi, edx
xor edx, edx
call fcn.140022070
movzx edx, ax
test ax, ax
jne 0x14009d63e
xor edx, edx
movzx ecx, sil
call fcn.140022f70
movzx edx, ax
mov eax, 0x100
and dx, ax
movzx eax, dil
or al, 8
movzx ecx, al
test dx, dx
movzx eax, dil
cmove ecx, eax
movzx eax, cl
shl ax, 8
or ax, si
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14009f270
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x30
mov r14, rdx
mov rbx, rcx
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14009f290
cmp ax, 9
jne 0x14009f296
add rbx, 2
jmp 0x14009f281
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
test ax, ax
je 0x14009f4da
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x14009f2c7
mov word [rdx + 2], ax
mov al, 1
mov byte [rdx], 0
jmp 0x14009f4dc
mov byte [rdx], 1
xor sil, sil
mov edx, 0x2b
call fcn.1400cbb24
mov rbp, rax
test rax, rax
je 0x14009f3a8
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x14009f308
nop dword [rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x14009f2ff
cmp ax, 9
jne 0x14009f308
sub rdi, 2
cmp rdi, rbx
ja 0x14009f2f0
sub rdi, rbx
lea rdx, str.Ctrl
sar rdi, 1
mov rcx, rbx
inc rdi
mov r8, rdi
call fcn.1400d2a10
test eax, eax
jne 0x14009f32b
mov al, 1
jmp 0x14009f361
mov r8, rdi
lea rdx, [0x14010f5f8]
mov rcx, rbx
call fcn.1400d2a10
test eax, eax
jne 0x14009f345
mov al, 4
jmp 0x14009f361
mov r8, rdi
lea rdx, str.Shift
mov rcx, rbx
call fcn.1400d2a10
test eax, eax
jne 0x14009f4da
mov al, reloc.WSOCK32.dll_recv
or sil, al
lea rbx, [rbp + 2]
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14009f37f
cmp ax, 9
jne 0x14009f385
add rbx, 2
jmp 0x14009f370
test ax, ax
je 0x14009f4da
mov edx, 0x2b
lea rcx, [rbx + 2]
call fcn.1400cbb24
mov rbp, rax
test rax, rax
jne 0x14009f2e3
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x14009f492
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [rbx]
mov rbp, rax
call qword [sym.imp.USER32.dll_CharLowerW]
mov rdi, rax
cmp ax, 0xa
jne 0x14009f3d6
mov dl, 0xd
jmp 0x14009f4ad
mov rdx, rbp
movzx ecx, di
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdx, ax
mov r8, rdx
shr r8, 8
cmp r8b, 0xff
jne 0x14009f446
cmp dl, 0xff
jne 0x14009f446
movzx ebp, di
test ebp, 0xffffff80
jne 0x14009f44c
mov edx, 0x103
mov ecx, ebp
call fcn.1400d7464
test eax, eax
je 0x14009f44c
mov edx, 2
mov ecx, ebp
call fcn.1400d7464
mov edx, 1
movzx edi, dil
mov ecx, ebp
mov ebx, eax
call fcn.1400d7464
test eax, eax
movzx ecx, dil
setne r8b
and cl, 0xdf
test ebx, ebx
movzx edx, cl
cmove edx, edi
test r8b, 0x38
je 0x14009f450
xor dl, dl
jmp 0x14009f4ad
movzx eax, r8b
and al, 6
cmp al, 6
jne 0x14009f460
or sil, 8
jmp 0x14009f480
test r8b, 2
je 0x14009f470
test sil, 3
jne 0x14009f470
or sil, 1
test r8b, 4
je 0x14009f480
test sil, 0xc
jne 0x14009f480
or sil, 4
test r8b, 1
je 0x14009f4ad
test sil, 0x30
jne 0x14009f4ad
or sil, 0x10
jmp 0x14009f4ad
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140022190
movzx edx, al
movzx eax, dl
mov word [r14 + 2], ax
test sil, 1
je 0x14009f4bf
or byte [r14], 8
test sil, 4
je 0x14009f4c9
or byte [r14], 0x10
test sil, 0x10
je 0x14009f4d3
or byte [r14], 4
test dl, dl
setne al
jmp 0x14009f4dc
xor al, al
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400a6e80
Capabilities:
Set current directory

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov esi, r9d
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
mov edi, 1
xor r15d, r15d
mov qword [r11 + 8], r15
mov qword [r11 - 0x48], rcx
mov rax, qword [rcx + 8]
mov qword [r11 - 0x40], rax
mov r10d, r15d
mov dword [r11 - 0x38], r15d
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x54], eax
lea rcx, [r11 - 0x48]
mov qword [rbx + 8], rcx
test eax, eax
jle 0x1400a7027
lea r13, [0x1401340a0]
lea r12, [0x1400fb87c]
nop dword [rax]
cmp r10d, esi
jl 0x1400a6fbf
mov r8, qword [0x14012fc08]
mov rcx, r8
mov rax, r13
mov edx, 2
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x1400a6f10
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
mov dword [r8 + 0x3c], r15d
mov qword [0x140137210], r15
cmp dword [0x14013423c], edx
je 0x1400a6fba
mov rax, qword [0x1401320f0]
mov rcx, r12
test rax, rax
je 0x1400a6fb4
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r10d, dword [rsp + 0x50]
movsxd rcx, r10d
add rcx, rcx
mov rax, qword [rbx]
mov rcx, qword [rax + rcx*8]
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, r14
lea r8, str.call
mov rdx, rcx
call fcn.1400a2b00
test eax, eax
je 0x1400a7024
cmp qword [rsp + 0x90], 0
jne 0x1400a701d
mov r10d, dword [rsp + 0x50]
inc r10d
mov dword [rsp + 0x50], r10d
cmp r10d, dword [rsp + 0x54]
jl 0x1400a6ef0
jmp 0x1400a7027
mov edi, 3
jmp 0x1400a7027
mov edi, r15d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rdx
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400a8680
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x30030
call fcn.1400eb380
sub rsp, rax
mov rbx, qword [rsp + 0x30060]
mov rsi, r9
mov rdi, r8
mov rax, rdx
test rbx, rbx
je 0x1400a86b9
cmp word [rbx], 0
jne 0x1400a86c0
lea rbx, str.ERROR
xor ecx, ecx
lea r9, [rsp + 0x30060]
mov word [rsp + 0x10030], cx
lea r8, [rsp + 0x30]
mov word [rsp + 0x30040], cx
mov edx, 0x8000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp word [rsi], 0
movzx eax, word [rdi]
je 0x1400a8760
test ax, ax
lea rcx, [rsp + 0x30040]
lea rax, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x10030]
cmovne rcx, rdi
mov dword [rsp + 0x20], 0xffff
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, qword [0x140136490]
lea rdx, [rsp + 0x10030]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
lea r11, [rsp + 0x30030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
test ax, ax
je 0x1400a8783
lea r9, [rsp + 0x30]
mov r8d, 0xffff
lea rdx, [rsp + 0x10030]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x1400a879b
lea r8, [rsp + 0x30]
mov edx, 0xffff
lea rcx, [rsp + 0x10030]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x1400a872b
lea rax, [rsp + 0x10030]
cmp word [rax], 0
jne 0x1400a87bd
cmp word [rax + 2], 0
je 0x1400a872b
mov word [rax], 0xa
add rax, 2
jmp 0x1400a87a7
Function at 0x1400a87d0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x290
mov r15, rdx
mov rdi, rcx
mov esi, 1
test rcx, rcx
je 0x1400a8876
cmp word [rcx], 0
je 0x1400a8876
lea r8d, [rsi + 3]
lea rdx, [0x14011bfe8]
call fcn.1400dceb8
test eax, eax
lea rcx, [rdi + 8]
mov r8, rdi
cmove r8, rcx
test r8, r8
je 0x1400a8864
movzx edx, word [r8]
test dx, dx
je 0x1400a8864
mov r9d, 0x3f
nop dword [rax + rax]
lea rcx, [0x140119778]
movzx eax, r9w
nop dword [rax + rax]
cmp dx, ax
je 0x1400a8964
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400a8840
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x1400a8830
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400a8985
mov qword [rsp + 0x2b8], rbx
xor r9d, r9d
xor ebx, ebx
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov edx, 0x40000000
mov dword [rsp + 0x28], ebx
mov rcx, rdi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400a8993
mov qword [rsp + 0x2c0], rbp
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x2c8], r14
inc rcx
cmp word [r15 + rcx*2], bx
jne 0x1400a88c5
mov eax, ecx
lea ebp, [rcx*2 + 2]
lea r14, [r15 + rax*2]
mov r8d, 4
lea r9, [rsp + 0x2b0]
mov word [r14], 0x5d
lea rdx, [0x14011bce0]
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400a893c
cmp dword [rsp + 0x2b0], 4
jne 0x1400a893c
lea r9, [rsp + 0x2b0]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400a893c
cmp dword [rsp + 0x2b0], ebp
je 0x1400a893e
mov esi, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x2c0]
test eax, eax
mov word [r14], bx
mov r14, qword [rsp + 0x2c8]
cmovne ebx, esi
mov eax, ebx
jmp 0x1400a8995
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400a8876
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
add rsp, 0x290
pop r15
pop rdi
pop rsi
ret
mov eax, esi
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x290
pop r15
pop rdi
pop rsi
ret
Function at 0x1400a9440
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x240
xor esi, esi
mov dword [r11 + 0x10], 0xff
lea rax, [r11 + 0x20]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [r11 + 0x10]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400a954c
nop
mov rax, qword [0x14012fc08]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x270]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400a9559
mov rcx, qword [rsp + 0x270]
call fcn.1400a9440
mov rcx, qword [rsp + 0x270]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400a9559
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x1400a9559
lea rax, [rsp + 0x278]
mov dword [rsp + 0x268], 0xff
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x268]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400a9490
xor eax, eax
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a9570
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x1400a969f
test r8, r8
je 0x1400a95a3
cmp word [r8], 0
jne 0x1400a95ac
test rsi, rsi
je 0x1400a969f
mov rax, qword [0x14012fc08]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x58]
or r9d, 0x2001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400a96a4
mov rcx, qword [rsp + 0x58]
test rsi, rsi
jne 0x1400a9687
call fcn.1400a9440
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400a96a6
mov eax, dword [0x140139100]
test al, 1
jne 0x1400a9648
or eax, 1
lea rcx, str.advapi32
mov dword [0x140139100], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RegDeleteKeyExW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140139108], rax
jmp 0x1400a964f
mov r10, qword [0x140139108]
mov rax, qword [0x14012fc08]
mov r8d, dword [rax + 0x110]
test r8d, r8d
je 0x1400a9677
test r10, r10
je 0x1400a9677
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call r10
mov ebx, eax
jmp 0x1400a96a4
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x1400a96a4
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400a96a4
mov ebx, 0x57
test ebx, ebx
setne dl
mov r8d, ebx
mov rcx, r14
call fcn.140050dc0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x1400aa850
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x40]
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x1400aa880
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x40]
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x1400aa910
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x40]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor ecx, ecx
test eax, eax
cmovne rcx, qword [rsp + 0x30]
mov rax, rcx
add rsp, 0x28
ret
Function at 0x1400ae4e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400eb380
sub rsp, rax
mov rdi, rdx
mov r8d, 0x7fff
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x1400ae542
lea rcx, [rbx + 1]
cmp rcx, 0x7fff
ja 0x1400ae542
lea r8, [rbx*2 + 2]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.1400cfd20
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
xor eax, eax
mov word [rdi], ax
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
Function at 0x1400aeea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov esi, r9d
mov r12d, r8d
mov r14d, edx
mov r13, rcx
mov r15d, ebx
test rcx, rcx
je 0x1400aeede
xor edx, edx
lea r8d, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
jmp 0x1400aeee5
mov rdi, qword [0x140134278]
test rdi, rdi
je 0x1400af0ad
mov qword [rsp + 0x80], rbp
lea rbp, [0x140137f78]
test r14d, r14d
jns 0x1400aef0e
movzx eax, r14w
neg ax
movzx edx, ax
jmp 0x1400aef46
test r14d, r14d
mov dword [rsp + 0x44], ebx
mov eax, 1
mov qword [rsp + 0x48], rbp
cmovne eax, r14d
lea r9, [rsp + 0x40]
lea r8, [0x1400aee80]
mov dword [rsp + 0x40], eax
mov edx, ntohs
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov rdx, qword [rsp + 0x48]
cmp rdx, rbp
je 0x1400af078
mov r8d, ntohs
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400af078
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400af078
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400af078
cmp r12d, 0xffffffff
cmovne esi, r12d
test esi, esi
jne 0x1400aefa8
lea ecx, [rsi + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
movzx eax, word [rbp + 4]
lea r8, [rbp + 6]
mov r11, rbx
mov r9d, ebx
cmp bx, ax
jae 0x1400af078
mov rdx, r8
mov r10d, eax
mov ebp, 0x100
nop word [rax + rax]
movzx eax, byte [r8]
mov ecx, ebx
test eax, eax
cmove eax, ebp
cmp eax, r9d
jle 0x1400aefe8
cmp r9d, esi
setl cl
jmp 0x1400aefed
cmp eax, esi
setge cl
test ecx, ecx
je 0x1400aeff7
mov r11, rdx
mov r9d, eax
add rdx, 0xe
add r8, 0xe
sub r10, 1
jne 0x1400aefd0
test r11, r11
je 0x1400af078
movzx edx, word [r11 + 0xc]
lea r8d, [r10 + 3]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400af078
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400af078
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400af078
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], ebx
mov r9d, 0x30000
mov edx, eax
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov r15, rax
mov rcx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x80]
test rcx, rcx
je 0x1400af09a
test r15, r15
je 0x1400af09a
mov qword [rcx], rdi
mov rax, r15
jmp 0x1400af0ce
test r13, r13
je 0x1400af0a8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
jne 0x1400af095
test r14d, r14d
jle 0x1400af0b8
lea ebx, [r14 - 1]
jmp 0x1400af0c0
cmp r14d, 0xffffffff
cmovl ebx, r14d
mov r8d, ebx
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret