joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b790
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x004e6410]
test rcx, rcx
je 0x41b8e8
cmp dword [rcx], 1
je 0x41b7b3
call fcn.0041b650
mov rax, qword [0x004e6408]
test rax, rax
je 0x41b910
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r12, rax
test rax, rax
je 0x41b7e0
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call fcn.0041aff0
cmp qword [0x004e9050], 0
mov rbx, rax
je 0x41b7d3
test rax, rax
je 0x41b7d3
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.0041b6d0
mov rdi, qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je 0x4b4256
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x004e6408]
test rax, rax
je 0x41b938
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x4b4256
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.0041ed20
mov qword [0x004e6410], rax
mov rcx, rax
jmp 0x41b7a9
lea r8, [0x0041a5d0]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041ed20
mov qword [0x004e6408], rax
jmp 0x41b7c3
lea r8, [0x0041a5d0]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041ed20
mov qword [0x004e6408], rax
jmp 0x41b8be
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x41ed20
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rsi, r8
mov r12, rcx
movsxd rbx, edx
call sub.msvcrt.dll_strlen
mov r8, rax
lea eax, [rax + 0xf]
mov dword [rbp - 0x54], eax
lea eax, [r8 + 0x51]
lea edi, [r8 + 0x10]
cdqe
lea r15d, [r8 + 0x50]
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040d5d0
movabs rcx, 0x656d68732d636367
sub rsp, rax
movsxd r13, r8d
mov rdx, r12
mov eax, 0x326d
mov r8, r13
mov qword [rsp + 0x20], rcx
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r14 + r13 + 0x10]
movsxd r12, dword [rbp - 0x54]
mov r8, r14
movabs rdx, 0x6161616161616161
movabs rcx, 0x6161616161616161
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rdx
xor edx, edx
mov qword [rax + 0x38], rcx
movsxd rax, r15d
xor ecx, ecx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + r12 + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov byte [rsp + r12 + 0x20], 0x2d
mov edx, 0xffffffff
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x41ee1e
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_FindAtomA]
test ax, ax
je 0x41ee70
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call fcn.0041ecb0
mov r14, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, r14
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r12, rax
mov eax, 0x40
bt r12, rax
jae 0x41ee93
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x41ee80
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_AddAtomA]
test ax, ax
jne 0x41eea7
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call fcn.0041ecb0
mov r14, rax
cmp r12, rax
je 0x41eecd
mov rcx, r12
call fcn.00418190
jmp 0x41ee40
xor edx, edx
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memset
test rsi, rsi
je 0x41ee40
mov rcx, r14
call rsi
jmp 0x41ee40

Function at 0x420860
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004b3760]
mov edx, 8
lea rcx, str.__terminate_handler_sh
jmp fcn.0040dd30

Function at 0x420880
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004b3770]
mov edx, 8
lea rcx, str.__unexpected_handler_sh
jmp fcn.0040dd30
Function at 0x47c490
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x47c4b7
call rbp
cmp dword [rax], 4
jne 0x47c4d4
mov rcx, rdi
call fcn.0047c290
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x47c4b0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001c30
Capabilities:
Read file via mapping

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov r9d, edx
mov rdi, rcx
xor edx, edx
mov eax, r9d
div dword [rcx + 0x10]
mov ebx, edx
sub r9d, edx
add r8d, edx
mov qword [r11 - 0x48], r8
xor r8d, r8d
lea edx, [r8 + 6]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
add rbx, rax
add rdi, 0x20
mov rsi, qword [rdi]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x40], rcx
and dword [rsp + 0x48], 0
mov rax, rsi
jmp 0x140001cb3
mov qword [rsp + 0x40], rcx
cmp qword [rcx + 0x20], rbx
jae 0x140001ca5
and dword [rsp + 0x48], 0
mov rcx, qword [rcx + 0x10]
jmp 0x140001cb3
mov dword [rsp + 0x48], 1
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140001c8f
cmp byte [rax + 0x19], 0
jne 0x140001cc5
cmp rbx, qword [rax + 0x20]
jae 0x140001d1f
movabs rax, 0x555555555555555
cmp qword [rdi + 8], rax
je 0x140001d3c
mov qword [rsp + 0x30], rdi
and qword [rsp + 0x38], 0
mov ecx, 0x30
call fcn.140016c58
nop
mov qword [rax + 0x20], rbx
and qword [rax + 0x28], 0
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
and word [rax + 0x18], 0
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rsp + 0x30], xmm0
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140002274
mov qword [rax + 0x28], rbp
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140001ad0
int3

Function at 0x140002a08
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, r9
mov rax, r8
mov rbx, rdx
test r9, r9
je 0x140002ac5
mov rcx, qword [rcx]
xor r8d, r8d
mov qword [r11 - 0x10], r9
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], rdx
mov rdx, rax
mov dword [rsp + 0x58], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test eax, eax
jne 0x140002ab3
test rbx, rbx
je 0x140002ab3
cmp dword [rdi], esi
jbe 0x140002ab0
mov ecx, dword [rsp + 0x58]
sub ecx, 1
je 0x140002a95
sub ecx, 1
je 0x140002a95
cmp ecx, 5
jne 0x140002aa6
test byte [rdi], 1
jne 0x140002aa6
mov eax, dword [rdi]
shr eax, 1
cmp eax, 1
jb 0x140002aa6
mov ecx, dword [rdi]
shr rcx, 1
cmp word [rbx + rcx*2 - 2], si
jne 0x140002aa6
cmp eax, 1
jbe 0x140002ab3
cmp word [rbx + rcx*2 - 4], si
jne 0x140002aa6
jmp 0x140002ab3
test byte [rdi], 1
jne 0x140002aa6
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x140002ab3
mov word [rbx], si
mov eax, 0xd
jmp 0x140002ab5
mov word [rbx], si
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001558
int3
Function at 0x1400033a8
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x858
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x30], 0
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x40]
call fcn.140018cb0
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x40]
lea r8, [0x14003e6d8]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.1400041e8
mov dword [rsp + 0x30], 1
lea r8, [0x14003e848]
lea rdx, [0x14003e84c]
mov rcx, rbp
call fcn.140003dc8
mov rax, rbp
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400169c0
add rsp, 0x858
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000361c
Capabilities:
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400016e0
mov rcx, rax
test rax, rax
je 0x1400037e4
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14001405b.0]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rcx, qword [rsi]
or ebp, 0xffffffff
cmp dword [rcx - 0x10], 0
jle 0x140003670
lea edx, [rbp + 0x3b]
call fcn.140018638
test rax, rax
jne 0x140003674
mov eax, ebp
jmp 0x14000367a
sub rax, qword [rsi]
sar rax, 1
lea edi, [rax + 2]
test eax, eax
cmovs edi, eax
mov rcx, qword [rsi]
test edi, edi
js 0x1400036fa
cmp edi, dword [rcx - 0x10]
jge 0x1400036fa
movsxd rax, edi
lea rcx, [rcx + rax*2]
mov edx, 0x5c
call fcn.140018638
mov rbx, rax
test rax, rax
je 0x1400036fa
sub rbx, qword [rsi]
sar rbx, 1
mov edi, ebx
test ebx, ebx
js 0x1400036fc
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140003c4c
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140004164
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x140003709
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001405b.0]
jmp 0x140003709
mov edi, ebp
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140004164
xor edx, edx
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000372a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000378f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14000378f
cmp edi, ebp
je 0x140003742
inc edi
jmp 0x140003682
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x140003764
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001405b.0]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov ecx, ebp
lock xadd dword [rdx + 0x10], ecx
add ecx, ebp
test ecx, ecx
jg 0x140003788
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14001405b.0]
mov eax, 1
jmp 0x1400037d7
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x1400037b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001405b.0]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x1400037d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001405b.0]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001558
int3
Function at 0x1400038f4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm7
call fcn.140002d10
mov rbx, rax
test rax, rax
je 0x140003aa7
lea rdx, str.PdhOpenQueryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PdhAddCounterW
mov rcx, rbx
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PdhCollectQueryData
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PdhGetFormattedCounterValue
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PdhRemoveCounter
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PdhCloseQuery
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test r13, r13
je 0x140003aa7
test rsi, rsi
je 0x140003aa7
test rdi, rdi
je 0x140003aa7
test r12, r12
je 0x140003aa7
test r15, r15
je 0x140003aa7
test rax, rax
je 0x140003aa7
movsd xmm6, qword [0x1400408b8]
lea r8, [rbp + 0x40]
and qword [rbp + 0x40], 0
xor edx, edx
and qword [rbp + 0x48], 0
xor ecx, ecx
mov rax, r13
call qword [case.0x14001405b.0]
test eax, eax
jne 0x140003a7e
mov rcx, qword [rbp + 0x40]
lea r9, [rbp + 0x48]
xor r8d, r8d
lea rdx, str.Processor__Total___Processor_Time
mov rax, rsi
call qword [case.0x14001405b.0]
test eax, eax
jne 0x140003a7e
mov rcx, qword [rbp + 0x40]
mov rax, rdi
call qword [case.0x14001405b.0]
test eax, eax
jne 0x140003a7e
xorps xmm7, xmm7
xor ebx, ebx
mov rcx, qword [rbp + 0x40]
mov rax, rdi
call qword [case.0x14001405b.0]
test eax, eax
jne 0x140003a7e
mov rcx, qword [rbp + 0x48]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov edx, 0x8200
mov rax, r12
call qword [case.0x14001405b.0]
test eax, eax
jne 0x140003a7e
addsd xmm7, qword [rbp - 0x28]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x140003a2e
movaps xmm6, xmm7
divsd xmm6, qword [0x1400408b0]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140003a90
mov rax, r15
call qword [case.0x14001405b.0]
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140003aa2
mov rax, r14
call qword [case.0x14001405b.0]
movaps xmm0, xmm6
jmp 0x140003aaa
xorps xmm0, xmm0
mov rbx, qword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x40]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006d08
Capabilities:
Get process image filename

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x20], 0
mov rcx, qword [r8]
sub rcx, 0x18
call fcn.140001ea0
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x20], 1
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140006e4a
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x140006e41
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.1400041e8
nop
mov edx, 0x5c
mov rcx, qword [rsp + 0x28]
call fcn.1400188cc
mov rcx, rax
test rax, rax
je 0x140006e1b
mov rax, qword [rsp + 0x28]
sub rcx, rax
sar rcx, 1
cmp ecx, 0xffffffff
je 0x140006e20
lea r8d, [rcx + 1]
mov r9d, dword [rax - 0x10]
sub r9d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140003cdc
mov dword [rsp + 0x20], 3
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140004164
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006e1b
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001405b.0]
mov rax, qword [rsp + 0x28]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006e41
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14001405b.0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400169c0
add rsp, 0x260
pop rdi
pop rbx
pop rbp
ret
Function at 0x14000931c
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rdx
xor esi, esi
call fcn.1400016e0
mov rcx, rax
test rax, rax
je 0x14000949a
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14001405b.0]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov rcx, qword [rbp + 0xc0]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140009469
lea rdi, [rbx + 0x30]
mov rdx, qword [rdi]
mov ecx, 1
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
or eax, ecx
jge 0x14000938f
xor edx, edx
mov rcx, rdi
call fcn.140001f48
mov rdx, qword [rdi]
lea rcx, [rsp + 0x60]
call fcn.1400041e8
nop
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400093ee
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rdi
test eax, eax
je 0x1400093e7
add rsi, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140009414
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001405b.0]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14000943c
mov rax, qword [rbx + 8]
jmp 0x140009431
cmp rbx, qword [rax + 0x10]
jne 0x140009437
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140009424
mov rbx, rax
jmp 0x140009457
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140009457
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140009448
cmp rbx, qword [rbp + 0xc0]
jne 0x14000936c
mov rax, qword [rsp + 0x78]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000948a
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14001405b.0]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001558
int3
Function at 0x14000ae30
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14000aec6
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000aea0
lea rcx, [0x14003e6a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000aebf
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000aebf
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [case.0x14001405b.0]
jmp 0x14000aeaf
cmp dword [rdi + 8], 0
je 0x14000aebf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 1
jmp 0x14000aeaf
cmp byte [0x140048190], 0
jne 0x14000af11
lea rcx, [0x14003e6a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000aefd
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140048188], rax
jmp 0x14000af04
mov r10, qword [0x140048188]
mov eax, 1
mov byte [0x140048190], al
jmp 0x14000af18
mov r10, qword [0x140048188]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x14000aea9
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rax, r10
call qword [case.0x14001405b.0]
jmp 0x14000aeaf
Function at 0x14000b57c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000b600
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000b600
call fcn.14000ab58
mov ebx, eax
jmp 0x14000b70b
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000b621
call fcn.14000ab58
jmp 0x14000b6fa
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000b617
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000b65c
mov ebx, 0x8007000e
jmp 0x14000b6fc
mov ecx, eax
test eax, eax
je 0x14000b68e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000b743
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000b68e
lea rcx, [rsp + 0x60]
call fcn.14000dad4
jmp 0x14000b698
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000b6aa
cmp qword [rsp + 0x60], rdi
je 0x14000b652
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000b617
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14000c3d4
mov ebx, eax
test rsi, rsi
je 0x14000b70b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14000b722
lea rcx, [rsp + 0x60]
call fcn.14000dacc
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400169c0
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140001558
int3
Function at 0x14000e5d8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rcx + 0x260], edx
lea r8, [0x14000e630]
xor edi, edi
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 0x1d0], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret