joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000eda0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x14000edd4
cmp ecx, r10d
jge 0x14000edc2
mov rcx, rbx
call fcn.14000e5a0
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x14000ee0e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x14000edf0
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x14000ee36
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14000ee65
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14000ee4f
xor dl, dl
jmp 0x14000ee58
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14000ee46
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x14000ee12
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14000eecf
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14000eee9
mov rcx, rbx
call fcn.14000e6f0
test eax, eax
je 0x14000eec2
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.1400f60d0
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400302b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x140237828]
cmp byte [rbx + 0x52f9], 0
jne 0x1400303f2
cmp dword [rbx + 0x5320], 0
je 0x1400302fa
mov r8d, 0x2cfe
lea rdx, [0x14020e110]
lea rcx, [0x140211bb0]
call fcn.140100f7c
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400303eb
lea rdx, [0x14014405c]
call fcn.14001b0d0
mov rdi, rax
test rax, rax
je 0x1400303eb
mov rcx, rax
call fcn.1400fe9d0
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400303e3
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.1400feeb4
test eax, eax
jne 0x1400303e3
mov rcx, rdi
call fcn.1400fe9d0
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1400303e3
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.1400feeb4
test eax, eax
jne 0x1400303e3
cmp rsi, 0xffffffffffffffff
je 0x1400303e3
mov rax, qword [0x140237828]
test rax, rax
je 0x140030385
inc dword [rax + 0xec]
mov rcx, rsi
call fcn.140101088
mov rbp, rax
test rax, rax
je 0x1400303e3
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.140100730
mov rcx, rdi
cmp rax, rsi
je 0x1400303b7
call fcn.1400febb4
jmp 0x1400303c7
call fcn.1400febb4
mov rdx, rsi
mov rcx, rbp
call fcn.140030590
mov rax, qword [0x140237828]
test rax, rax
je 0x1400303d9
dec dword [rax + 0xec]
mov rcx, rbp
call fcn.1401004bc
jmp 0x1400303eb
mov rcx, rdi
call fcn.1400febb4
mov byte [rbx + 0x52f9], 1
movss xmm0, dword [rbx + 0x52fc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14003047f
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x52fc], xmm0
jb 0x14003047f
mov rdi, qword [rbx + 0x20]
xor ebp, ebp
test rdi, rdi
je 0x140030472
mov rax, qword [0x140237828]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x52fc], ebp
call fcn.140030a80
lea rdx, [0x140211be8]
mov rcx, rdi
mov rsi, rax
call fcn.14001b0d0
mov rdi, rax
test rax, rax
je 0x140030479
mov r8, qword [rsp + 0x30]
lea edx, [rbp + 1]
mov r9, rax
mov rcx, rsi
call fcn.140102070
mov rcx, rdi
call fcn.1400febb4
jmp 0x140030479
mov byte [rbx + 0xd4], 1
mov dword [rbx + 0x52fc], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140092030
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0x1350], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b0]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x1358], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1181]
test eax, eax
je 0x1400920a5
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1181]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x1b0]
cmp eax, ecx
jle 0x1400920bc
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x1b0]
mov byte [rax + 0x1181], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1190], 0
je 0x1400920f3
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x1220], 0
jne 0x1400920f3
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0x1a0
jne 0x1400920f3
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xdb], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b0]
cmp eax, 0xa
jne 0x140092126
lea rdx, [0x14022aa88]
mov rcx, qword [rsp + 0x50]
call fcn.14007d890
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.140080ae0
jmp 0x140092191
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b0]
cmp eax, 0x14
je 0x140092150
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x8c], 1
jne 0x14009216a
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0x65
jne 0x14009216a
xor eax, eax
test eax, eax
jne 0x140092150
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x800]
mov dword [rax], 2
jmp 0x140092191
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b0]
cmp eax, 0xb
jl 0x140092191
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3d1]
test eax, eax
jne 0x140092191
xor eax, eax
test eax, eax
jne 0x14009218b
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0x64
jl 0x1400921b4
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0xc8
jge 0x1400921b4
mov dword [rsp + 0x28], 1
jmp 0x1400921bc
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x1400921cd
mov dword [rsp + 0x2c], 0
jmp 0x1400921d5
mov dword [rsp + 0x2c], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0xdc], cl
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x70]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xcc
je 0x140092221
cmp dword [rsp + 0x30], 0x130
je 0x140092207
jmp 0x140092246
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x580], 0
je 0x140092221
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x142c], 1
mov rax, qword [rsp + 0x20]
mov qword [rax], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xdc], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1400a5c10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call fcn.14010ce24
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400a5c6b
mov ecx, 0xffffffff
call fcn.1400a5d20
cmp qword [rsp + 0x30], rax
jne 0x1400a5c6f
xor eax, eax
jmp 0x1400a5c74
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret

Function at 0x1400f2cc8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140126458]
test rax, rax
je 0x1400f2d12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400f2d12
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400f2d12
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400f2d12
cmp dword [rcx + 0x84], 0xe
jbe 0x1400f2d12
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400f2d14
xor al, al
add rsp, 0x28
ret

Function at 0x1400fef94
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1400fef71
call fcn.1400fdde8
mov dword [rax], 0x16
call fcn.1400fe418
or eax, 0xffffffff
jmp 0x1400fef8e
sub dword [rcx + 0x10], 1
jns 0x1400fef80
add rsp, 0x28
jmp fcn.140111fc0
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400fef50

Function at 0x140109a20
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14010987f
xor ecx, ecx
call qword [0x140126458]
test rax, rax
je 0x14010987f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14010987f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14010987f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14010987f
cmp dword [rcx + 0x84], 0xe
jbe 0x14010987f
cmp dword [rcx + 0xf8], 0
je 0x14010987f
mov ecx, ebx
call fcn.14010993c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14010970c
nop
cmp dword [rbp + 0x20], 0
je 0x1401098cd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401098d8
int3
xor r8d, r8d
xor edx, edx
jmp 0x140109810
Function at 0x140111fc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140111ff2
call fcn.1400fdde8
mov dword [rax], 0x16
call fcn.1400fe418
jmp 0x140112111
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140112111
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140112111
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140112021
lock or dword [rcx + 0x14], 0x10
jmp 0x140112111
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140112035
call fcn.1401133bc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140111acc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14010f75c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1401120ff
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1401120ca
mov rcx, rsi
call fcn.140111acc
cmp eax, edi
je 0x1401120b5
mov rcx, rsi
call fcn.140111acc
cmp eax, 0xfffffffe
je 0x1401120b5
mov rcx, rsi
call fcn.140111acc
movsxd rbx, eax
lea r14, [0x140237080]
mov rcx, rsi
sar rbx, 6
call fcn.140111acc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1401120bc
lea rdx, [0x1402350d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401120ca
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401120ee
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401120ee
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401120ee
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140112114
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400038c0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1402987c8]
xor rax, rsp
mov qword [rbp + 0x47], rax
movups xmm0, xmmword [str.0123456789abcdef]
xor eax, eax
mov dword [rsp + 0x20], 0xf0000000
xor esi, esi
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov rbx, rcx
movzx eax, byte [0x140256af0]
lea rcx, [rbp - 0x39]
mov byte [rbp - 0x11], al
xor r8d, r8d
xor eax, eax
mov qword [rbp - 0x39], rsi
lea r9d, [rsi + 1]
mov qword [rbp - 9], rax
xor edx, edx
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
mov byte [rbp + 0x37], al
mov qword [rbp - 0x41], rsi
mov dword [rbp - 0x49], esi
movups xmmword [rbp - 0x21], xmm0
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140003963
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140003a88
mov rcx, qword [rbp - 0x39]
lea rax, [rbp - 0x41]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140003990
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140003a7c
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], sil
jne 0x140003997
mov rcx, qword [rbp - 0x41]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400039d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x39]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x140003a88
mov rcx, qword [rbp - 0x41]
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x31]
mov dword [rbp - 0x49], 0x10
mov edx, 2
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140003a6c
cmp dword [rbp - 0x49], esi
jbe 0x140003a72
mov qword [rsp + 0xe8], rdi
nop dword [rax + rax]
mov eax, esi
lea rbx, [rbp - 0x31]
add rbx, rax
lea edi, [rsi + rsi]
lea rcx, [rbp - 9]
add rcx, rdi
lea rdx, [0x140256af4]
movzx eax, byte [rbx]
shr rax, 4
movsx r8d, byte [rbp + rax - 0x21]
call fcn.14000b470
movzx eax, byte [rbx]
lea rcx, [rbp - 8]
and eax, 0xf
lea rdx, [0x140256af4]
add rcx, rdi
movsx r8d, byte [rbp + rax - 0x21]
call fcn.14000b470
inc esi
cmp esi, dword [rbp - 0x49]
jb 0x140003a10
mov rdi, qword [rsp + 0xe8]
jmp 0x140003a72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x39]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rax, [rbp - 9]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14018e750
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400104e4
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 0x14001054b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001055f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001055f
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.0x140033e8a.0]
jmp 0x140010564
cmp dword [rcx + 8], 0
je 0x14001055f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140010564
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400110ec
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov r15, r8
movsxd rsi, edx
mov rdi, rcx
lea r14, [rcx + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jle 0x140011224
cmp esi, dword [rdi + 0xc]
jge 0x140011224
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011157
cmp esi, dword [rax + 0x10]
jl 0x140011212
test r15, r15
je 0x140011212
jmp 0x14001118c
mov ecx, 0x20
call fcn.140010c28
mov rbx, rax
test rbx, rbx
je 0x140011173
lea rax, vtable.CThreadData.0
mov qword [rbx], rax
and dword [rbx + 0x10], 0
and qword [rbx + 0x18], 0
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x18]
mov qword [rbx + rcx], rax
mov qword [rdi + 0x18], rbx
mov eax, dword [rdi + 0xc]
shl rax, 3
mov edx, dword [rsp + 0x58]
mov ecx, 0xffffffff
cmp qword [rbx + 0x18], 0
jne 0x1400111b9
cmp rax, rcx
cmovbe edx, eax
ja 0x140011241
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1400111d5
cmp rax, rcx
cmovbe edx, eax
ja 0x140011252
mov r8d, 2
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rcx, rax
test rax, rax
je 0x140011263
mov qword [rbx + 0x18], rcx
mov eax, dword [rdi + 0xc]
sub eax, dword [rbx + 0x10]
movsxd r8, eax
shl r8, 3
movsxd rax, dword [rbx + 0x10]
lea rcx, [rcx + rax*8]
xor edx, edx
call fcn.1401b62f0
mov eax, dword [rdi + 0xc]
mov dword [rbx + 0x10], eax
mov rdx, rbx
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140011224
cmp esi, dword [rbx + 0x10]
jge 0x140011224
mov qword [rcx + rsi*8], r15
mov rcx, r14
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp rcx, rax
sbb ecx, ecx
and ecx, 0x80070216
call fcn.14000bfa0
int3
cmp rcx, rax
sbb ecx, ecx
and ecx, 0x80070216
call fcn.14000bfa0
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.14000d8d4
int3
Function at 0x140012530
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
call fcn.140012670
xor r14d, r14d
mov esi, 1
mov rbp, rax
mov dword [rbx + 0x14], esi
mov rcx, rax
cmp dword [rbx], r14d
je 0x1400125e6
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
test eax, eax
js 0x140012609
mov rdx, qword [rdi]
mov ecx, dword [rdx - 0xc]
sub esi, dword [rdx - 8]
sub ecx, ebx
or esi, ecx
jge 0x140012597
mov edx, ebx
mov rcx, rdi
call fcn.14000bd30
mov rdx, qword [rdi]
cmp ebx, dword [rdx - 0xc]
jg 0x140012609
mov dword [rdx - 0x10], ebx
lea r8d, [rbx + 1]
mov rax, qword [rdi]
mov rcx, rbp
mov word [rax + rbx*2], r14w
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1400125c1
mov eax, r14d
jmp 0x1400125ce
movsxd rdx, dword [rcx - 0xc]
call fcn.1401bc428
test eax, eax
js 0x140012609
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x140012609
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r14w
jmp 0x1400125ee
mov rdx, qword [rdi]
call fcn.140013070
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0x80070057
call fcn.14000bfa0
int3

Function at 0x140012aa4
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
movsxd rsi, r8d
mov rbx, rdx
mov rdi, rcx
xor ebp, ebp
cmp qword [rcx + 0xd0], rbp
jne 0x140012ae6
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140012b8a
call fcn.14000c644
mov rcx, rax
test rax, rax
je 0x140012ba5
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140033e8a.0]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rdi + 0xd0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov rax, qword [rax + 0x118]
call qword [case.0x140033e8a.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1401bc738
test eax, eax
je 0x140012b4e
cmp eax, 0xc
je 0x140012b9f
cmp eax, 0x50
jne 0x140012bb0
test rbx, rbx
jne 0x140012b57
mov ebx, ebp
jmp 0x140012b62
mov rcx, rbx
call fcn.1401bc2fc
mov rbx, rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140012b88
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140033e8a.0]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.14000d8d4
nop
mov ecx, 0x80004005
call fcn.14000bfa0
nop
call fcn.14000d8b0
int3
Function at 0x1400139c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400139e6
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1400104e4
jmp 0x140013a51
cmp byte [0x14029ed08], 0
jne 0x140013a2a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013a1a
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14029ed00], rax
jmp 0x140013a21
mov rax, qword [0x14029ed00]
mov byte [0x14029ed08], 1
jmp 0x140013a31
mov rax, qword [0x14029ed00]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140013a4b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x140033e8a.0]
jmp 0x140013a51
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14001b4d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x14001b53c
call fcn.14000fef0
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001b53c
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14001b55e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.1400253b4
mov esi, eax
test rdi, rdi
je 0x14001b55c
test rbx, rbx
je 0x14001b55c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret