joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42daf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov eax, dword [rcx + 0x20]
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rdi
test eax, eax
mov rbx, rdx
mov rdi, rcx
je 0x42dc97
cmp eax, 1
je 0x42dc97
mov rcx, qword [rcx + 0x18]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
mov qword [r11 + 0x18], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rdi + 0x18]
mov dword [rsp + 0x30], 0x65
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x3c], 1
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_CopyRect]
mov rcx, qword [rdi + 0x18]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x1328
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11d, dword [rsp + 0x24]
lea rdx, [rsp + 0x30]
add r11d, 0xfffffffe
mov rcx, rdi
mov dword [rsp + 0x5c], r11d
call fcn.0042d430
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1304
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x130b
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
mov rsi, rax
je 0x42dc8f
mov qword [rsp + 0x88], rbp
xor ebp, ebp
dec ebx
cmp ebx, esi
je 0x42dc3c
mov rcx, qword [rdi + 0x18]
lea r9, [rsp + 0x58]
movsxd r8, ebx
mov edx, 0x130a
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x40], ebp
call qword [sym.imp.USER32.dll_SendMessageW]
sub dword [rsp + 0x64], 2
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.0042d590
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.0042d0b0
test ebx, ebx
jne 0x42dbf8
mov rcx, qword [rdi + 0x18]
lea r9, [rsp + 0x58]
movsxd r8, esi
mov edx, 0x130a
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x40], 1
call qword [sym.imp.USER32.dll_SendMessageW]
add dword [rsp + 0x64], 2
sub dword [rsp + 0x5c], 2
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.0042d590
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.0042d0b0
mov rbp, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x80]
add rsp, 0x78
ret
Function at 0x42e4c0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x00400000], 0x5a4d
je 0x42e4fc
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x42e58a
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x42e520
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x42e58a
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x42e567
cmp ecx, 0x20b
je 0x42e53f
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x42e58a
cmp dword [rax + 0x84], 0xe
ja 0x42e553
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x42e58a
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x42e58a
cmp dword [rax + 0x74], 0xe
ja 0x42e578
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x42e58a
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00482478], 0xffffffffffffffff
mov qword [0x00482480], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00482470]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x0048246c]
mov dword [rcx], eax
call fcn.0042eaa0
cmp dword [0x00458540], 0
jne 0x42e5e4
lea rcx, [fcn.0042eaa0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004321f0]
lea rcx, [0x004321e8]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x00482468]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00482464]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___wgetmainargs]
lea rdx, [0x004321e0]
lea rcx, [0x00431f98]
call sub.msvcrt.dll__initterm
mov r8, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [r8], 0
jne 0x42e659
mov eax, 0xff
jmp 0x42e729
mov r8, qword [r8]
mov qword [rsp + 0x30], r8
cmp word [r8], 0x22
jne 0x42e6a0
nop
nop
add r8, 2
mov qword [rsp + 0x30], r8
movzx eax, word [r8]
test ax, ax
je 0x42e68a
cmp ax, 0x22
je 0x42e68a
jmp 0x42e670
cmp word [r8], 0x22
jne 0x42e6b2
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x42e6b2
cmp word [r8], 0x20
jbe 0x42e6b2
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x42e6a0
movzx eax, word [r8]
test ax, ax
je 0x42e6cc
cmp ax, 0x20
ja 0x42e6cc
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x42e6b2
test byte [rsp + 0x8c], 1
je 0x42e6e1
movzx r9d, word [rsp + 0x90]
jmp 0x42e6e7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.0042ebfc
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x42e703
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x42e727
mov eax, edi
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x14001e0f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140076100]
xor rax, rsp
mov qword [rbp + 0x20], rax
movabs rax, 0x1d5841104742a756
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
movabs rcx, 0x66e7456eec4a1dc
mov qword [rbp - 0x68], rcx
movabs rax, 0x16f280c2ca0e599f
mov qword [rsp + 0x48], rax
movabs rdi, 0x5e040c551311fe05
movdqa xmm0, xmmword [rsp + 0x40]
movabs rax, 0x5415e8cb2475bd29
mov qword [rsp + 0x50], rax
movabs rbx, 0x79b1f4acaf7c2bea
movabs rax, 0xf2e4767abde86e28
mov qword [rbp + 0x18], rcx
mov qword [rsp + 0x58], rax
mov r9d, 2
movdqa xmm1, xmmword [rsp + 0x50]
movabs rax, 0x2e3a6468f3688c25
mov qword [rsp + 0x60], rax
xor r8d, r8d
movabs rax, 0x988ee7e484d2e4ab
mov qword [rbp - 0x40], rdi
mov qword [rsp + 0x68], rax
mov rcx, 0xffffffff80000002
movabs rax, 0x66766accb618ae15
mov qword [rbp - 0x38], rbx
xorps xmm0, xmmword [rbp - 0x40]
mov qword [rsp + 0x70], rax
movabs rax, 0xe4b2ed3c6b31f041
mov qword [rsp + 0x78], rax
movabs rax, 0xc85164d2f9d1937f
mov qword [rbp - 0x80], rax
movabs rax, 0x616257d1be87a636
mov qword [rbp - 0x78], rax
movabs rax, 0xacdf1a7b6dc2f9aa
mov qword [rbp - 0x70], rax
movabs rax, 0x2070bba74b07c947
mov qword [rbp - 0x30], rax
movabs rax, 0x9e8b040ed3872d74
mov qword [rbp - 0x28], rax
movabs rax, 0x695f0701850dc879
xorps xmm1, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movabs rax, 0xfdedb4b8e0a085de
mov qword [rbp - 0x18], rax
movabs rax, 0x2e2a19a3df6acf7b
mov qword [rbp - 0x10], rax
movabs rax, 0x8bc1844a19548038
mov qword [rbp - 8], rax
movabs rax, 0xad3216bd9fbfd60d
mov qword [rbp], rax
movabs rax, 0x150c1eb4dae8e552
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm1, xmmword [rsp + 0x70]
xorps xmm1, xmmword [rbp - 0x10]
mov qword [rbp + 8], rax
movabs rax, 0xacdf630f04b09ecf
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [rbp - 0x80]
xorps xmm0, xmmword [rbp]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm1, xmmword [rbp - 0x70]
mov qword [rbp + 0x10], rax
lea rax, [rbp - 0x60]
xorps xmm1, xmmword [rbp + 0x10]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001e349
mov rcx, qword [rbp - 0x60]
lea rdx, [rsp + 0x30]
mov dword [rbp - 0x58], eax
mov r9d, 4
mov qword [rsp + 0x38], rbx
movabs rax, 0x5e60693971709040
mov qword [rsp + 0x30], rax
xor r8d, r8d
movdqa xmm0, xmmword [rsp + 0x30]
lea rax, [rbp - 0x58]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rbx
xorps xmm0, xmmword [rbp - 0x50]
mov dword [rsp + 0x28], 4
movdqa xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140035550
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14001e680
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140076100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
lea r9, [rsp + 0x20]
xor r14d, r14d
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov edi, r14d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14001e70d
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14001e6c2
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
test eax, eax
js 0x14001e7dc
mov ebx, r14d
cmp dword [rdi], ebx
jbe 0x14001e7dc
nop dword [rax]
mov eax, ebx
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rdi + 0x2e]
lea rsi, [rcx + rdi]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x14001e765
lea rcx, [rsp + 0x28]
call fcn.14001c2b0
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
mov rdx, rbp
cmova rcx, qword [rsp + 0x28]
call fcn.14003fc90
test eax, eax
je 0x14001e812
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001e7d2
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e7cd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e865
call fcn.1400355ac
inc ebx
cmp ebx, dword [rdi]
jb 0x14001e730
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140035550
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
mov rbx, qword [rsi + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001e860
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e85b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e865
call fcn.1400355ac
mov rax, rbx
jmp 0x14001e7ef
call fcn.14003b4b4
int3
Function at 0x140025650
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140076100]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor eax, eax
mov dword [rbp - 0x49], 4
mov dword [rbp - 0x51], eax
lea rdx, [rbp - 0x39]
mov dword [rbp - 0x4d], eax
movabs rcx, 0x8bc1844a19548038
mov qword [rbp - 1], rcx
movabs rax, 0x1d5841104742a756
mov qword [rbp - 0x39], rax
movabs r14, 0x5e040c551311fe05
mov qword [rbp + 0x3f], rcx
movabs rax, 0x16f280c2ca0e599f
mov qword [rbp - 0x31], rax
movabs rsi, 0x79b1f4acaf7c2bea
movdqa xmm0, xmmword [rbp - 0x39]
movabs rax, 0x5415e8cb2475bd29
mov qword [rbp - 0x29], rax
movabs rdi, 0x2070bba74b07c947
movabs rax, 0xf2e4767abde86e28
mov qword [rbp + 7], r14
mov qword [rbp - 0x21], rax
movabs rbx, 0x9e8b040ed3872d74
movdqa xmm1, xmmword [rbp - 0x29]
movabs rax, 0x2b3a7574e6689b25
mov qword [rbp - 0x19], rax
mov r9d, 0x20019
movabs rax, 0x898cc0ebbcd4eab1
mov qword [rbp + 0xf], rsi
xorps xmm0, xmmword [rbp + 7]
xor r8d, r8d
mov qword [rbp - 0x11], rax
mov rcx, 0xffffffff80000002
movdqa xmmword [rbp - 0x39], xmm0
movabs rax, 0x2e2a19a3df6acf1e
movdqa xmm0, xmmword [rbp - 0x19]
mov qword [rbp - 9], rax
movabs rax, 0x695f0701850dc879
mov qword [rbp + 0x27], rax
movabs rax, 0xfdedb4b8e0a085de
mov qword [rbp + 0x2f], rax
movabs rax, 0x2e2a19a3df6acf7b
xorps xmm0, xmmword [rbp + 0x27]
mov qword [rbp + 0x37], rax
lea rax, [rbp - 0x59]
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], rbx
xorps xmm1, xmmword [rbp + 0x17]
movdqa xmmword [rbp - 0x29], xmm1
movdqa xmm1, xmmword [rbp - 9]
xorps xmm1, xmmword [rbp + 0x37]
movdqa xmmword [rbp - 9], xmm1
mov qword [rsp + 0x20], rax
movdqa xmmword [rbp - 0x19], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rbp - 0x59]
lea r9, [rbp - 0x49]
mov qword [rbp + 0x1f], rbx
lea rdx, [rbp + 7]
movabs rax, 0x2b6769065a57bb50
mov qword [rbp - 0x39], r14
mov qword [rbp + 7], rax
xor r8d, r8d
movabs rax, 0x17f480c3c03e4e98
mov qword [rbp - 0x31], rsi
mov qword [rbp + 0xf], rax
movabs rax, 0x2070bbc32e6bab26
movdqa xmm0, xmmword [rbp + 7]
xorps xmm0, xmmword [rbp - 0x39]
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x4d]
movdqa xmm1, xmmword [rbp + 0x17]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x51]
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], rbx
xorps xmm1, xmmword [rbp - 0x29]
mov qword [rsp + 0x20], rax
movdqa xmmword [rbp + 7], xmm0
movdqa xmmword [rbp + 0x17], xmm1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp - 0x51], 0
setne al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140035550
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140025880
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x140076100]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0x1b564d024757b156
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
movabs rdi, 0x5e040c551311fe05
movabs rax, 0x16c29bdecc1566b6
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x48], rax
movabs rbx, 0x79b1f4acaf7c2bea
movdqa xmm0, xmmword [rsp + 0x40]
movabs rax, 0x4315c9ce0f5bbd21
mov qword [rsp + 0x50], rax
mov r9d, 0x20019
movabs rax, 0x9e8b040ed3877500
mov qword [rsp + 0x68], rbx
xorps xmm0, xmmword [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x58], rax
mov rcx, 0xffffffff80000002
movdqa xmm1, xmmword [rsp + 0x50]
movabs rax, 0x2070bba74b07c947
mov qword [rsp + 0x70], rax
movabs rax, 0x9e8b040ed3872d74
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x30]
xorps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x20], rax
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400259da
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x68], rbx
movabs rax, 0x5e6a633c60639b53
mov qword [rsp + 0x60], rax
xor r9d, r9d
movdqa xmm0, xmmword [rsp + 0x60]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
xorps xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 0x100
movdqa xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
jmp 0x1400259dc
xor al, al
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140035550
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x190
pop rdi
ret
Function at 0x140026210
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140076100]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x1c
xor edi, edi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x14002628f
lea rdx, str.Error_getting_AppData_Local_folder_path.
lea rcx, [0x140077a80]
call fcn.14001c000
mov rcx, rax
call fcn.14002f910
xorps xmm0, xmm0
lea rdx, [0x14006780d]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov qword [rbx + 0x18], rdi
jmp 0x1400262be
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x1400262b0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001c2b0
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140035550
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x14002af90
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x14002afb4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x14002b042
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14002b010
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x14002b010
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1400592e0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14002b02d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14002b035
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x14002afd1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x14002b120
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x14002b059
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002b05b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002b08d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1400592e0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14002b11d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002b0c8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14002b0fe
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14004027c
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14002b11d
cmp rsi, rax
ja 0x14002b0d1
test rsi, rsi
je 0x14002b11d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14004027c
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140032fa0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword [rdx]
mov rax, r8
xor r8d, r8d
mov rdx, qword [rax]
jmp fcn.14001e870

Function at 0x1400336f4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14003372e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140033733
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14003377c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14005d890]
cmp byte [rcx + rax], 0
je 0x14003377c
dec r8
sub rdx, 1
jne 0x140033762
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140033e1c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14003380c
mov ebx, eax
test eax, eax
jne 0x140033e4c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140033ea8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140033e9f
test al, 0x10
je 0x140033e9f
bt eax, 0xa
jae 0x140033e98
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140033ec0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140033e94
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140033eb8
test edi, edi
jne 0x140033e9f
and dword [rsp + 0x3c], 0
jmp 0x140033ea4
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140041a28
int3

Function at 0x1400363f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140036442
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140036442
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140036442
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140036442
cmp dword [rcx + 0x84], 0xe
jbe 0x140036442
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140036444
xor al, al
add rsp, 0x28
ret
Function at 0x14003b630
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 0x14003b69f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003b69f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003b69f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003b69f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003b69f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003b69f
cmp dword [rcx + 0xf8], 0
je 0x14003b69f
mov ecx, ebx
call fcn.14003b750
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.14003b52c
nop
cmp dword [rbp + 0x20], 0
je 0x14003b6ed
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003b6f8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003b630

Function at 0x14003b834
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 0x14003b69f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003b69f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003b69f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003b69f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003b69f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003b69f
cmp dword [rcx + 0xf8], 0
je 0x14003b69f
mov ecx, ebx
call fcn.14003b750
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.14003b52c
nop
cmp dword [rbp + 0x20], 0
je 0x14003b6ed
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003b6f8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003b630