joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800353b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180048010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x1800353ff
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180048cf0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18003543d
cmp rsi, r14
jb 0x180035435
cmp rsi, r15
jae 0x180035435
cmp qword [rsi + 8], 0
jne 0x180035607
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180035420
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800354d2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800354c9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800354c9
cmp dword [rsp + 0x40], 0x10000
je 0x18003554b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800354c9
sub rbx, rbp
cmp rbx, r14
jae 0x180035490
test rsi, rsi
jne 0x1800355b0
cmp rdi, r15
ja 0x1800355ef
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800355ef
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800355ef
cmp dword [rsp + 0x40], 0x10000
je 0x180035581
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180035502
jmp 0x1800355ef
test rbx, rbx
je 0x1800354c9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800355b0
cmp rbx, r14
jae 0x180035470
jmp 0x1800354d2
test rdi, rdi
je 0x1800355ef
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800355b0
cmp rdi, r15
jbe 0x1800354e0
jmp 0x1800355ef
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800355c0
mov rax, qword [0x180048cf0]
mov qword [rsi], rax
mov qword [0x180048cf0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180036c40
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180036000
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180048010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18003612b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180036122
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180036104
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180036104
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180036104
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800360c2
mov rcx, qword [0x180048c10]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180036122
jmp 0x1800360f7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800360f7
mov rcx, qword [0x180048c10]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180036122
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180036070
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180036183
cmp dword [rbx + 0xc], esi
jbe 0x180036183
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003617c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180035e50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180036140
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180036c40
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800361b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180048010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x180048ce0]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180036219
mov eax, 0xa
jmp 0x180036266
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180036235
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180036c40
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180036290
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x180048cec]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x1800363a0
mov rcx, qword [0x180048ce0]
add rcx, 0x20
test byte [rcx], 2
je 0x1800362d3
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x1800362b7
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800363a0
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.180036000
mov edx, dword [0x180048cec]
cmp ebx, edx
jae 0x18003632d
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180048ce0]
test byte [rcx + rax + 0x20], 2
jne 0x180036327
mov ecx, ebx
call fcn.1800361b0
mov edi, eax
test eax, eax
jne 0x18003632d
mov edx, dword [0x180048cec]
inc ebx
cmp ebx, edx
jb 0x180036300
cmp qword [rsp + 0x20], 0
je 0x1800363a0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003638c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180036378
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180036350
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180048c10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1800366a0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x180048c08], esi
je 0x1800366f5
cmp rbx, 0x20
jae 0x1800366de
xor ecx, ecx
jmp 0x1800366e0
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180048c08], esi
jne 0x1800366d4
cmp qword [0x180048c10], r15
je 0x1800367df
test rdi, rdi
jne 0x180036713
call fcn.180036290
mov ebp, eax
jmp 0x1800367e4
mov ecx, dword [0x180048cec]
mov ebx, r15d
test ecx, ecx
je 0x18003673f
mov r8, qword [0x180048ce0]
mov rax, r8
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x180036749
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180036730
mov ebp, 4
jmp 0x1800367e4
cmp ebx, 0xffffffff
je 0x18003673f
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x1800367d8
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180036000
mov ecx, ebx
call fcn.1800361b0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x1800367e4
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800367c2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800367b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180036790
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180048c10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800367e4
mov ebp, 5
jmp 0x1800367e4
mov ebp, 2
xchg dword [0x180048c08], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x140001000
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000104b
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000104b
mov edx, 0x8664
cmp word [rax + 4], dx
jne 0x14000104b
mov edx, 0x20b
cmp word [rax + 0x18], dx
jne 0x14000104b
cmp dword [rax + 0x84], 0
jbe 0x14000104b
cmp dword [rax + 0x8c], 0
je 0x14000104b
mov eax, dword [rax + 0x88]
add rax, rcx
ret
xor eax, eax
ret

Function at 0x140001138
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

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 r12
push r14
push r15
mov r10d, dword [rdx + 0x20]
mov r12d, r8d
mov edi, dword [rdx + 0x24]
add r10, rcx
mov esi, dword [rdx + 0x1c]
add rdi, rcx
mov ebp, dword [rdx + 0x18]
add rsi, rcx
xor r8d, r8d
mov r15d, r9d
mov r11, rcx
test ebp, ebp
je 0x1400011e4
mov r9d, dword [r10]
add r9, r11
xor ecx, ecx
mov eax, ecx
inc ecx
cmp byte [rax + r9], 0
jne 0x14000117f
or eax, 0xffffffff
mov ebx, r12d
cmp ecx, eax
cmovb eax, ecx
test eax, eax
je 0x1400011d3
mov r14d, eax
mov al, byte [r9]
movzx edx, byte [r9]
sub al, 0x20
movzx ecx, al
sub edx, 0x61
movzx eax, byte [r9]
cmp edx, 0x19
cmova ecx, eax
inc r9
movzx edx, cl
sub ebx, edx
mov eax, edx
or eax, 1
rol ebx, 5
imul eax, edx
lea eax, [rax + rax*2]
xor ebx, eax
sub r14, 1
jne 0x14000119c
cmp ebx, r15d
je 0x140001201
inc r8d
add r10, 4
cmp r8d, ebp
jb 0x140001177
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
movzx ecx, word [rdi + r8*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x1400011e6
Function at 0x140001fb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r8d, ecx
mov r9, rdx
xor ecx, ecx
mov eax, ecx
inc ecx
cmp byte [rax + rdx], 0
jne 0x140001fb8
or eax, 0xffffffff
cmp ecx, eax
cmovb eax, ecx
test eax, eax
je 0x14000200b
mov r10d, eax
mov al, byte [r9]
movzx edx, byte [r9]
sub al, 0x20
sub edx, 0x61
movzx ecx, al
movzx eax, byte [r9]
cmp edx, 0x19
cmova ecx, eax
inc r9
movzx edx, cl
sub r8d, edx
mov ecx, edx
or ecx, 1
rol r8d, 5
imul ecx, edx
lea ecx, [rcx + rcx*2]
xor r8d, ecx
sub r10, 1
jne 0x140001fd1
mov eax, r8d
ret

Function at 0x140002010
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x28]
mov rbx, rdx
add rax, rdx
mov edx, 0x2000
test word [rcx + 0x16], dx
je 0x14000209d
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call rax
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x140002044
xor edx, edx
jmp 0x140002084
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
cmp dword [rax], 0x4550
jne 0x140002040
mov ecx, 0x8664
cmp word [rax + 4], cx
jne 0x140002040
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x140002040
cmp dword [rax + 0x84], 0
jbe 0x140002040
cmp dword [rax + 0x8c], 0
je 0x140002040
mov edx, dword [rax + 0x88]
add rdx, rbx
mov r9d, 0xaf880f6c
mov r8d, 0xc5675e62
mov rcx, rbx
call fcn.140001138
test rax, rax
je 0x14000209f
call rax
add rsp, 0x20
pop rbx
ret

Function at 0x1400020a8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, rdx
and qword [rax - 0x10], rdi
mov rbx, r8
and qword [rax - 0x18], rdi
mov rbp, rcx
and qword [rax - 0x20], rdi
and qword [rax - 0x28], rdi
xor edx, edx
jmp 0x140002169
xor ecx, ecx
mov eax, ecx
inc ecx
cmp byte [rax + rbx], 0
jne 0x1400020e4
or eax, 0xffffffff
mov r8d, 0xb3cefa7a
cmp ecx, eax
cmovb eax, ecx
test eax, eax
je 0x140002140
mov r9, rbx
mov r10d, eax
mov al, byte [r9]
movzx edx, byte [r9]
sub al, 0x20
movzx ecx, al
sub edx, 0x61
movzx eax, byte [r9]
cmp edx, 0x19
cmova ecx, eax
inc r9
movzx edx, cl
sub r8d, edx
mov eax, edx
or eax, 1
rol r8d, 5
imul eax, edx
lea eax, [rax + rax*2]
xor r8d, eax
sub r10, 1
jne 0x140002106
cmp r8d, dword [rsp + 0x70]
je 0x140002180
and qword [rsp + 0x38], 0
inc edi
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov edx, edi
and qword [rsp + 0x20], 0
mov rcx, rbp
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 0x104
call rsi
test eax, eax
je 0x1400020e2
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400021d4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r9, qword [rcx]
mov edi, r8d
mov esi, edx
mov r10, rcx
cmp r9, rcx
je 0x140002264
xor ebp, ebp
mov rbx, qword [r9 + 0x50]
mov r8d, ebp
mov eax, r8d
inc r8d
cmp word [rbx + rax*2], bp
jne 0x140002200
or eax, 0xffffffff
mov r11d, esi
cmp r8d, eax
cmovb eax, r8d
add eax, eax
je 0x140002257
mov r8d, eax
mov al, byte [rbx]
movzx edx, byte [rbx]
sub al, 0x20
movzx ecx, al
sub edx, 0x61
movzx eax, byte [rbx]
cmp edx, 0x19
cmova ecx, eax
inc rbx
movzx edx, cl
sub r11d, edx
mov eax, edx
or eax, 1
rol r11d, 5
imul eax, edx
lea eax, [rax + rax*2]
xor r11d, eax
sub r8, 1
jne 0x140002220
cmp edi, r11d
je 0x14000227b
mov r9, qword [r9]
cmp r9, r10
jne 0x1400021f9
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov rax, qword [r9 + 0x20]
jmp 0x140002266

Function at 0x1400081fc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r10, rdx
mov r9d, ecx
xor edx, edx
mov ecx, edx
mov eax, ecx
inc ecx
cmp word [r10 + rax*2], dx
jne 0x140008206
cmp ecx, r8d
cmovb r8d, ecx
add r8d, r8d
je 0x14000825a
mov r11d, r8d
mov al, byte [r10]
movzx edx, byte [r10]
sub al, 0x20
sub edx, 0x61
movzx ecx, al
movzx eax, byte [r10]
cmp edx, 0x19
cmova ecx, eax
inc r10
movzx edx, cl
sub r9d, edx
mov ecx, edx
or ecx, 1
rol r9d, 5
imul ecx, edx
lea ecx, [rcx + rcx*2]
xor r9d, ecx
sub r11, 1
jne 0x140008220
mov eax, r9d
ret

Function at 0x14000a348
Capabilities:
Parse pe header

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

Function at 0x140013d9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013b98

Function at 0x14001674c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140016762
mov al, 1
jmp 0x1400167c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140016773
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400167c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001d934
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400167c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400167c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400167c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400167c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140029a98
Capabilities:
Identify system language via api

Disassembly:
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.1400d1320
mov rcx, qword [rsp + 0x60]
call fcn.140050fe8
push rcx
sub rsp, 0x28
call fcn.1400d1020
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.1400d1020
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
sub rsp, 0x20
call sub.KERNEL32.dll_GetUserDefaultLangID
add rsp, 0x28
mov rax, rax
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400cf340
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.1400d10e0
push qword [rsp + 0x28]
pop rcx
call fcn.1400ced10
mov r15, rax
cmp r15, 3
jne 0x140029b5b
push rcx
sub rsp, 0x28
call fcn.1400d1020
add rsp, 0x28
pop rcx
push rax
movabs rcx, 0x140180a9a
sub rsp, 0x28
call fcn.1400d1070
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400d1070
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.1400d10e0
mov rcx, qword [rsp + 0x28]
push rcx
sub rsp, 0x28
call fcn.1400d1020
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400d1070
add rsp, 0x28
pop rax
push rax
call fcn.1400d1220
pop rdx
add rax, rdx
jmp 0x140029b94
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400d13c0
add rsp, 0x28
pop rax
add rsp, 0x30
pop r15
ret
Function at 0x140039226
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push r15
mov rax, 7
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140039239
sub rsp, 0x28
call fcn.1400d1320
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400d0ec0
add rsp, 0x10
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.1400d0ec0
add rsp, 0x10
push qword [rsp + 0x28]
pop rcx
call fcn.140039472
push qword [rsp + 0x30]
movabs rcx, 0x140180a62
pop rdx
call fcn.1400d11c0
or rax, rax
je 0x14003936a
cmp dword [0x1405d1ab8], 0
je 0x140039348
movabs rax, str.Advapi32.dll
push rax
push 0xffffffffffffffff
pop rcx
pop rdx
call fcn.140096eec
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140039346
movabs rax, str.RegDeleteKeyExA
push rax
push qword [rsp + 0x40]
pop rcx
pop rdx
call fcn.140096f74
mov qword [rsp + 0x40], rax
sub rsp, 8
push 0
movsxd r15, dword [0x1405d1abc]
or r15, 0xf003f
mov rax, r15
push rax
mov rax, qword [0x1405d1a48]
mov rax, rax
push rax
push qword [0x1405d1a58]
push qword [rsp + 0x68]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140098584
add rsp, 0x30
mov qword [rsp + 0x48], rax
push qword [rsp + 0x38]
pop rcx
call fcn.140096dd8
jmp 0x140039365
mov rax, qword [0x1405d1a48]
mov rax, rax
push rax
push qword [0x1405d1a58]
pop rcx
pop rdx
call sub.ADVAPI32.dll_RegDeleteKeyW
mov qword [rsp + 0x48], rax
jmp 0x14003942f
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push qword [0x1405d1a58]
push qword [rsp + 0x40]
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.dll_RegConnectRegistryW
movsxd rax, eax
mov qword [rsp + 0x50], rax
cmp dword [0x1405d1ab8], 0
je 0x140039414
movabs rax, str.Advapi32.dll
push rax
push 0xffffffffffffffff
pop rcx
pop rdx
call fcn.140096eec
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140039412
push 0
movsxd r15, dword [0x1405d1abc]
or r15, 0xf003f
mov rax, r15
push rax
mov rax, qword [0x1405d1a48]
mov rax, rax
push rax
push qword [rsp + 0x70]
movabs rax, str.RegDeleteKeyExA
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140097aa4
add rsp, 0x30
mov qword [rsp + 0x48], rax
push qword [rsp + 0x38]
pop rcx
call fcn.140096dd8
jmp 0x14003942f
mov rax, qword [0x1405d1a48]
mov rax, rax
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
call sub.ADVAPI32.dll_RegDeleteKeyW
mov qword [rsp + 0x48], rax
mov r15, qword [rsp + 0x48]
and r15, r15
jne 0x140039442
mov rax, 1
jmp 0x140039445
xor rax, rax
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400d13c0
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400d13c0
add rsp, 0x28
pop rax
add rsp, 0x60
pop r15
ret

Function at 0x140050fe8
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1405ccbf8]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret