joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441e20
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x441f8a
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x441e38
cmp edx, ecx
jne 0x441f78
nop dword [rax]
test rsi, rsi
jne 0x441f78
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x441e94
nop
call fcn.0045ff60
xorps xmm15, xmm15
mov r14, qword [0x00597440]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00441d20
mov rcx, qword [0x00544568]
mov rdx, qword [0x00544560]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x441f73
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x441f68
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x00544f70]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x00544f70], rbx
nop
mov edx, 1
lea rsi, [0x00544f78]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x441f57
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004afb11]
mov ebx, 0x28
call fcn.00433740
mov rcx, rax
mov rax, rsi
call fcn.0045e5c0
call fcn.00431d60
lea rax, [0x004aef1b]
mov ebx, 0x23
call fcn.00433740
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045bf60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00441e20
Function at 0x4543e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x454499
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x004544e0]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045be20
xorps xmm15, xmm15
mov r14, qword [0x00597440]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045bf60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.004543e0
Function at 0x45e000
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40280f
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00408ea0
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045bf60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4027e0
cmp byte [0x0059726f], 0
je 0x45e015
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45b060
jmp 0x4027e0

Function at 0x45e020
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00597520]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x0059726f], 0
je 0x45e055
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00597860]
aesenc xmm0, xmmword [0x00597870]
aesenc xmm0, xmmword [0x00597880]
movq rax, xmm0
ret
jmp 0x4090a0

Function at 0x45e060
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00597520]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x0059726f], 0
je 0x45e096
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00597860]
aesenc xmm0, xmmword [0x00597870]
aesenc xmm0, xmmword [0x00597880]
movq rax, xmm0
ret
jmp 0x409100

Function at 0x45fa80
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005977e0]
mov qword [rsp + 8], rdx
lea r8d, [0x00597284]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045df40
add rsp, 0x30
ret

Function at 0x45ffc0
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x45ffec
call fcn.0045df40
shl rcx, 3
add rcx, 0x1480
mov qword [0x00597440], rcx
ret
Function at 0x140001000
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor edx, edx
mov word [rsp + 0x20], 0x4f4c
mov eax, edx
mov byte [rsp + 0x22], 0x4c
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rsp + rax + 0x20]
lea rax, [rax + 3]
xor cl, 0x78
add edx, 3
mov byte [rsp + rax + 0x21], cl
movzx ecx, byte [rsp + rax + 0x1e]
xor cl, 0x78
mov byte [rsp + rax + 0x22], cl
movzx ecx, byte [rsp + rax + 0x1f]
xor cl, 0x78
mov byte [rsp + rax + 0x23], cl
cmp edx, 3
jb 0x140001030
mov edx, 3
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx + 0x3d]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movzx ecx, word [rsp + 0x24]
mov word [rax], cx
movzx ecx, byte [rsp + 0x26]
mov byte [rax + 2], cl
call rax
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400010b0
add rsp, 0x38
ret

Function at 0x14000198c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019d6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019d8
xor al, al
add rsp, 0x28
ret
Function at 0x140001c28
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
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 [rsp + 0x20], r8
xor r8d, r8d
lea edx, [r8 + 6]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
add rbx, rax
mov qword [rbp + 0x20], rbx
add rdi, 0x20
mov rsi, qword [rdi]
mov rcx, qword [rsi + 8]
mov qword [rbp - 0x20], rcx
and dword [rbp - 0x18], 0
mov rax, rsi
jmp 0x140001cac
mov qword [rbp - 0x20], rcx
cmp qword [rcx + 0x20], rbx
jae 0x140001c9f
and dword [rbp - 0x18], 0
mov rcx, qword [rcx + 0x10]
jmp 0x140001cac
mov dword [rbp - 0x18], 1
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140001c8b
cmp byte [rax + 0x19], 0
jne 0x140001cbe
cmp rbx, qword [rax + 0x20]
jae 0x140001d17
movabs rax, 0x555555555555555
cmp qword [rdi + 8], rax
je 0x140001d33
mov qword [rbp - 0x30], rdi
and qword [rbp - 0x28], 0
mov ecx, 0x30
call fcn.140016668
nop
mov rdx, qword [rbp + 0x20]
mov qword [rax + 0x20], rdx
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 [rbp - 0x20]
movdqu xmmword [rbp - 0x30], xmm0
mov r8, rax
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.1400022a0
mov qword [rax + 0x28], r14
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140001ac0
int3

Function at 0x140002a8c
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 0x140002b48
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 0x140002b36
test rbx, rbx
je 0x140002b36
cmp dword [rdi], esi
jbe 0x140002b33
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x140002b29
cmp ecx, 2
jbe 0x140002b18
cmp ecx, 7
jne 0x140002b29
test byte [rdi], 1
jne 0x140002b29
mov eax, dword [rdi]
shr eax, 1
cmp eax, 1
jb 0x140002b29
mov ecx, dword [rdi]
shr rcx, 1
cmp word [rbx + rcx*2 - 2], si
jne 0x140002b29
cmp eax, 1
jbe 0x140002b36
cmp word [rbx + rcx*2 - 4], si
jne 0x140002b29
jmp 0x140002b36
test byte [rdi], 1
jne 0x140002b29
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x140002b36
mov word [rbx], si
mov eax, 0xd
jmp 0x140002b38
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.140001548
int3
Function at 0x140003408
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x858
mov rax, qword [0x140045010]
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.1400186b0
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x40]
lea r8, [0x14003d668]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.14000419c
mov dword [rsp + 0x30], 1
lea r8, [0x14003d7d8]
lea rdx, [0x14003d7dc]
mov rcx, rbp
call fcn.140003d7c
mov rax, rbp
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400163d0
add rsp, 0x858
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000367c
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.1400016d0
mov rcx, rax
test rax, rax
je 0x140003844
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140013a6e.0]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rcx, qword [rsi]
or ebp, 0xffffffff
cmp dword [rcx - 0x10], 0
jle 0x1400036d0
lea edx, [rbp + 0x3b]
call fcn.140018038
test rax, rax
jne 0x1400036d4
mov eax, ebp
jmp 0x1400036da
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 0x14000375a
cmp edi, dword [rcx - 0x10]
jge 0x14000375a
movsxd rax, edi
lea rcx, [rcx + rax*2]
mov edx, 0x5c
call fcn.140018038
mov rbx, rax
test rax, rax
je 0x14000375a
sub rbx, qword [rsi]
sar rbx, 1
mov edi, ebx
test ebx, ebx
js 0x14000375c
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140003c00
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140004118
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 0x140003769
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140013a6e.0]
jmp 0x140003769
mov edi, ebp
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140004118
xor edx, edx
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000378a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400037ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1400037ef
cmp edi, ebp
je 0x1400037a2
inc edi
jmp 0x1400036e2
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x1400037c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140013a6e.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 0x1400037e8
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140013a6e.0]
mov eax, 1
jmp 0x140003837
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x140003811
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140013a6e.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 0x140003835
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140013a6e.0]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001548
int3
Function at 0x140003954
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.140002d70
mov rbx, rax
test rax, rax
je 0x140003b07
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 0x140003b07
test rsi, rsi
je 0x140003b07
test rdi, rdi
je 0x140003b07
test r12, r12
je 0x140003b07
test r15, r15
je 0x140003b07
test rax, rax
je 0x140003b07
movsd xmm6, qword [0x14003f838]
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.0x140013a6e.0]
test eax, eax
jne 0x140003ade
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.0x140013a6e.0]
test eax, eax
jne 0x140003ade
mov rcx, qword [rbp + 0x40]
mov rax, rdi
call qword [case.0x140013a6e.0]
test eax, eax
jne 0x140003ade
xorps xmm7, xmm7
xor ebx, ebx
mov rcx, qword [rbp + 0x40]
mov rax, rdi
call qword [case.0x140013a6e.0]
test eax, eax
jne 0x140003ade
mov rcx, qword [rbp + 0x48]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov edx, 0x8200
mov rax, r12
call qword [case.0x140013a6e.0]
test eax, eax
jne 0x140003ade
addsd xmm7, qword [rbp - 0x28]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x140003a8e
movaps xmm6, xmm7
divsd xmm6, qword [0x14003f830]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140003af0
mov rax, r15
call qword [case.0x140013a6e.0]
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140003b02
mov rax, r14
call qword [case.0x140013a6e.0]
movaps xmm0, xmm6
jmp 0x140003b0a
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 0x140006940
Capabilities:
Get process image filename

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140045010]
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.140001e98
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 0x140006a82
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x140006a79
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.14000419c
nop
mov edx, 0x5c
mov rcx, qword [rsp + 0x28]
call fcn.1400182cc
mov rcx, rax
test rax, rax
je 0x140006a53
mov rax, qword [rsp + 0x28]
sub rcx, rax
sar rcx, 1
cmp ecx, 0xffffffff
je 0x140006a58
lea r8d, [rcx + 1]
mov r9d, dword [rax - 0x10]
sub r9d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140003c90
mov dword [rsp + 0x20], 3
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140004118
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006a53
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140013a6e.0]
mov rax, qword [rsp + 0x28]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006a79
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140013a6e.0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400163d0
add rsp, 0x260
pop rdi
pop rbx
pop rbp
ret
Function at 0x140008f54
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbp, rdx
xor esi, esi
call fcn.1400016d0
mov rcx, rax
test rax, rax
je 0x1400090e6
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140013a6e.0]
add rax, 0x18
mov qword [rsp + 0x88], rax
mov rcx, qword [rbp + 0xc0]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x1400090b5
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 0x140008fca
xor edx, edx
mov rcx, rdi
call fcn.140001f40
mov rdx, qword [rdi]
lea rcx, [rsp + 0x70]
call fcn.14000419c
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 + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000902f
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rdi
test eax, eax
je 0x140009028
add rsi, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140009055
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140013a6e.0]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14000907d
mov rax, qword [rbx + 8]
jmp 0x140009072
cmp rbx, qword [rax + 0x10]
jne 0x140009078
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140009065
mov rbx, rax
jmp 0x140009098
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140009098
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140009089
mov rax, qword [rbp + 0xc0]
mov qword [rsp + 0x40], rax
cmp rbx, rax
jne 0x140008fa7
mov rax, qword [rsp + 0x88]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400090d6
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140013a6e.0]
mov rax, rsi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001548
int3
Function at 0x14000a950
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 0x14000a9e6
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000a9c0
lea rcx, [0x14003d630]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a9df
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000a9df
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.0x140013a6e.0]
jmp 0x14000a9cf
cmp dword [rdi + 8], 0
je 0x14000a9df
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 0x14000a9cf
cmp byte [0x140047180], 0
jne 0x14000aa31
lea rcx, [0x14003d630]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000aa1d
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140047178], rax
jmp 0x14000aa24
mov r10, qword [0x140047178]
mov eax, 1
mov byte [0x140047180], al
jmp 0x14000aa38
mov r10, qword [0x140047178]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x14000a9c9
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rax, r10
call qword [case.0x140013a6e.0]
jmp 0x14000a9cf
Function at 0x14000b09c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140045010]
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 0x14000b120
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 0x14000b120
call fcn.14000a670
mov ebx, eax
jmp 0x14000b22b
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000b141
call fcn.14000a670
jmp 0x14000b21a
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 0x14000b137
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 0x14000b17c
mov ebx, 0x8007000e
jmp 0x14000b21c
mov ecx, eax
test eax, eax
je 0x14000b1ae
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000b263
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000b1ae
lea rcx, [rsp + 0x60]
call fcn.14000d574
jmp 0x14000b1b8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000b1ca
cmp qword [rsp + 0x60], rdi
je 0x14000b172
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 0x14000b137
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.14000be70
mov ebx, eax
test rsi, rsi
je 0x14000b22b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14000b242
lea rcx, [rsp + 0x60]
call fcn.14000d56c
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400163d0
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140001548
int3
Function at 0x14000e078
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rcx + 0x260], edx
lea r8, [0x14000e0d0]
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