joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034568
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400345c6
call fcn.14002d14c
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400345c6
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400345d1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.1400cdd90
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140035318
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
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400353d1
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x1400353d1
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400353d1
test rdi, rdi
je 0x1400353d1
xor r14d, r14d
xor esi, esi
call fcn.14002d14c
lea r8, [0x1401ebe80]
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400353b1
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbp
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400353d1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.1400f6528
mov edi, eax
test eax, eax
je 0x1400353cd
mov rcx, rbx
call fcn.140034fe0
mov eax, edi
jmp 0x1400353d3
xor eax, eax
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

Function at 0x140036344
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.14003cf04
mov rdi, rax
test rax, rax
je 0x1400363c0
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1400363bb
cmp dword [rbx], 0x40
jb 0x1400363bb
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x1400363bb
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x1400363c4
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003e08c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x14003e0be
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003e0be
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1400fa514
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14003e0d0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14003e0f6
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14002bc18
jmp 0x14003e162
cmp byte [0x140286ee0], 0
jne 0x14003e13a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003e12a
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140286ed8], rax
jmp 0x14003e131
mov rax, qword [0x140286ed8]
mov byte [0x140286ee0], 1
jmp 0x14003e141
mov rax, qword [0x140286ed8]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x14003e15b
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x14014f7e9.0]
jmp 0x14003e162
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400538f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
test r8, r8
jne 0x140053923
call fcn.14002d14c
mov rbx, qword [rax + 0x18]
lea r8, [0x140245180]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14005397c
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005397c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14005397c
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, rbp
mov r8d, eax
call fcn.140053994
jmp 0x14005397e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f8930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x1400f89a7
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400f8977
call fcn.14002f51c
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x1400f8991
call fcn.14002f51c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x1400f89a7
call fcn.14002f51c
call fcn.14002d14c
cmp qword [rax + 0x68], 0
je 0x1400f89c1
mov rdx, rbx
mov rcx, rbp
call fcn.1400f7df0
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.1400f8c1c
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x1400f89e8
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x1400f89f7
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140114e9c
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140114fd4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x140115016
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x14011540c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1401154d6
test rbx, rbx
je 0x1401154d6
test r9, r9
je 0x1401154d6
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401154d2
cmp dword [rsp + 0x48], 3
jne 0x1401154d2
cmp dword [rdi], eax
je 0x1401154d2
mov ecx, dword [rdi]
call fcn.1400042d0
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401154c6
cmp dword [rsp + 0x48], 3
jne 0x1401154c6
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.140011dac
and qword [rbx], 0
xor eax, eax
jmp 0x1401154b1
call fcn.14002deec
int3

Function at 0x1401158f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140115901
xor eax, eax
jmp 0x14011592f
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140115938
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140115949
xor eax, eax
jmp 0x14011596d
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140161c94
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401c4f54
test eax, eax
jne 0x140161cf8
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.140026e1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140161d0a
jmp 0x140161cb8
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1401b9974
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401b9748
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401b9748
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401b9748
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401b9748
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401b9748
cmp dword [rcx + 0x84], 0xe
jbe 0x1401b9748
cmp dword [rcx + 0xf8], esi
je 0x1401b9748
mov ecx, r14d
call fcn.1401b9890
mov ecx, 2
call fcn.1401c8768
nop
cmp byte [0x14028a520], 0
jne 0x1401b9812
mov r15d, 1
mov eax, r15d
xchg dword [0x14028a510], eax
test ebx, ebx
jne 0x1401b97bb
mov rdi, qword [0x14027c920]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14028a518]
cmp rcx, rax
je 0x1401b97b2
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140003b40]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14028a7d0]
jmp 0x1401b97c7
cmp ebx, r15d
jne 0x1401b97cd
lea rcx, [0x14028a7e8]
call fcn.1401c84a8
nop
test ebx, ebx
jne 0x1401b97e4
lea rdx, [0x1401e7b48]
lea rcx, [0x1401e7b28]
call fcn.1401c6b88
lea rdx, [0x1401e7b58]
lea rcx, [0x1401e7b50]
call fcn.1401c6b88
movzx eax, byte [0x14028a520]
test esi, esi
cmove eax, r15d
mov byte [0x14028a520], al
jmp 0x1401b9812
mov ecx, 2
call fcn.1401c87bc
test esi, esi
jne 0x1401b9829
mov ecx, r14d
call fcn.1401b9844
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401b96d8
Function at 0x1401ceb08
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401ce9a8
call fcn.1401b49bc
mov dword [rax], 0x16
call fcn.1401b486c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401ce990
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401ce990
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401ce9da
lock or dword [rax + 0x14], 0x10
jmp 0x1401ce990
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401ce9f7
mov rcx, qword [rbp + 0x10]
call fcn.1401ceb10
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401c5ba8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401cf828
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401cea4e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401ce990
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401ceaba
mov rcx, qword [rbp + 0x10]
call fcn.1401c5ba8
cmp eax, 0xffffffff
je 0x1401ceaa1
mov rcx, qword [rbp + 0x10]
call fcn.1401c5ba8
cmp eax, 0xfffffffe
je 0x1401ceaa1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401c5ba8
movsxd rdi, eax
lea rsi, [0x14028abf0]
mov rcx, rbx
sar rdi, 6
call fcn.1401c5ba8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401ceaa8
lea rax, [0x14027cce0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401ceaba
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401ceaf0
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401ceaec
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401ceaec
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401ce993
jmp 0x1401ce960
Function at 0x140001dd0
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
lea rax, [rsp + 0x30]
mov rcx, qword [rbx]
mov rdi, rdx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov dword [rsp + 0x68], 0x380
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140001e36
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_in_CryptCreateHash___u__n
mov edx, eax
call fcn.1400030f8
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140001e73
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_in_CryptHashData___u__n
mov edx, eax
call fcn.1400030f8
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov r8, qword [rsp + 0x30]
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x140001ebb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_in_CryptDeriveKey___u__n
mov edx, eax
call fcn.1400030f8
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140001f05
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_in_CryptDecrypt___u__n
mov edx, eax
call fcn.1400030f8
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400042d8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140004140
Function at 0x140001000
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
mov eax, 0x5a4d
mov edi, edx
mov r11, rcx
cmp word [rcx], ax
jne 0x140001144
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001144
movups xmm0, xmmword [rax + 0x18]
lea r8, [rsp]
movups xmm1, xmmword [rax + 0x28]
movups xmmword [r8], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [r8 + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [r8 + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [r8 + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [r8 + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [r8 + 0x50], xmm1
movups xmmword [r8 + 0x60], xmm0
lea r8, [r8 + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [r8 - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [r8], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [r8 + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [r8 + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [r8 + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [r8 + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [r8 + 0x50], xmm0
movups xmmword [r8 + 0x60], xmm1
mov eax, dword [rsp + 0x70]
xor r8d, r8d
add rax, rcx
mov r9d, dword [rax + 0x20]
mov ebp, dword [rax + 0x1c]
add r9, rcx
mov r10d, dword [rax + 0x24]
add rbp, rcx
mov esi, dword [rax + 0x14]
add r10, rcx
test esi, esi
je 0x140001144
nop word [rax + rax]
movzx eax, word [r10]
mov ecx, dword [r9]
add rcx, r11
mov ebx, dword [rbp + rax*4]
mov eax, 0x15
add rbx, r11
movsx edx, byte [rcx]
test edx, edx
je 0x140001130
nop dword [rax]
imul eax, eax, 0x21
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x140001120
cmp edi, eax
je 0x14000115f
inc r8d
add r10, 2
add r9, 4
cmp r8d, esi
jb 0x140001100
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x140001146
Function at 0x140003ac0
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r12, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, qword [0x140295ed0]
test rdi, rdi
je 0x140003bc9
lea r14, [0x140261383]
mov rcx, rdi
mov rdx, r14
call fcn.1400a8f60
test al, al
jne 0x140003b1c
lea rdx, str.vmodule
mov rcx, rdi
call fcn.1400a8f60
test al, al
je 0x140003bc9
cmp qword [0x140295ee0], 0
jne 0x140003c89
mov rax, qword [0x140295ee8]
mov qword [0x140295ee0], rax
mov ecx, 0x20
call fcn.1400c9cbc
mov rbx, rax
lea rax, str.vmodule
lea r8, [rsp + 0x48]
mov qword [r8], rax
mov qword [r8 + 8], 7
lea r15, [rsp + 0x58]
mov rcx, rdi
mov rdx, r15
call fcn.14008db40
lea r8, [rsp + 0x20]
mov qword [r8], r14
mov qword [r8 + 8], 1
lea rsi, [rsp + 0x30]
mov rcx, rdi
mov rdx, rsi
call fcn.14008db40
lea r9, [0x140295ef0]
mov rcx, rbx
mov rdx, rsi
mov r8, r15
call fcn.14018ded0
mov qword [0x140295ee8], rbx
cmp byte [rsi + 0x17], 0
jns 0x140003bb8
mov rcx, qword [rsp + 0x30]
call fcn.1400c9cac
cmp byte [rsp + 0x6f], 0
jns 0x140003bc9
mov rcx, qword [rsp + 0x58]
call fcn.1400c9cac
mov eax, dword [r12]
mov dword [0x140291088], eax
mov bl, 1
test al, 1
je 0x140003c6c
mov rcx, qword [0x140295f00]
test rcx, rcx
je 0x140003c0f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140295f00], 0
mov rcx, qword [0x140295ef8]
test rcx, rcx
jne 0x140003c3d
and byte [0x140291088], 0xfe
jmp 0x140003c1b
mov rcx, qword [0x140295ef8]
test rcx, rcx
jne 0x140003c3d
mov ecx, 0x18
call fcn.1400c9cbc
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140295ef8], rax
mov rdx, qword [r12 + 8]
call fcn.1400c04fc
cmp dword [r12 + 0x14], 0
jne 0x140003c65
mov rcx, qword [0x140295ef8]
cmp byte [rcx + 0x17], 0
jns 0x140003c5f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140059f20
mov ebx, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
int3
Function at 0x140007bf0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebp, edx
mov rsi, rcx
mov ebx, dword [0x14029b018]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test edi, edi
jne 0x140007cd5
cmp rbx, 1
je 0x140007c33
mov eax, dword [rsi + 0x1518]
test eax, eax
je 0x140007c3a
xor eax, eax
jmp 0x140007cca
mov eax, 1
lock xadd dword [rsi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x140007d21
mov rcx, rsi
call fcn.14005cc80
mov rdi, rax
lock dec dword [rsi + 0x1518]
inc qword [rax + 0x5a0]
cmp bp, 0x29
jae 0x140007ce2
movzx edx, bp
mov rsi, rdx
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov rax, qword [rdi + rsi]
test rax, rax
je 0x140007cf5
inc qword [rdi + 0x5a8]
mov rcx, qword [rax]
test rcx, rcx
je 0x140007cad
mov rdx, rcx
not rdx
cmp qword [rax + 8], rdx
jne 0x140007d1c
bswap rcx
prefetcht0 byte [rcx]
jmp 0x140007caf
xor ecx, ecx
dec byte [rdi + rsi + 8]
mov qword [rbx], rcx
movzx ecx, word [rdi + rsi + 0xa]
mov qword [r14], rcx
movzx ecx, word [rdi + rsi + 0xa]
sub qword [rdi + 0x590], rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140007c23
inc qword [rdi + 0x5c0]
inc qword [rdi + 0x5b0]
jmp 0x140007c33
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
call fcn.140075530
mov rax, qword [rbx]
test rax, rax
jne 0x140007c91
jmp 0x140007c33
call fcn.14011f1c0
int3

Function at 0x140007ff0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140008039
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140008055
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140008031
mov qword [rsi], rdi
call fcn.140071760
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140008088
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140071760
mov r14, qword [rsi]
mov rcx, qword [0x1402980e0]
test rcx, rcx
je 0x14000807a
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x14000801f
call fcn.140122340
mov rcx, qword [0x1402980e0]
jmp 0x140008069
int3