joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402877e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.MSVCR90.dll__errno]
xor esi, esi
mov r8d, ebp
mov dword [rax], esi
mov ecx, dword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll__read]
mov rbx, qword [rsp + 0x30]
cmp ebp, eax
mov rbp, qword [rsp + 0x38]
sete sil
mov eax, esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140287880
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx + 8]
call qword [sym.imp.MSVCR90.dll__get_osfhandle]
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_SetEndOfFile]

Function at 0x1402878f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov eax, dword [rsp + 0x70]
mov edi, r9d
mov rbx, r8
lea r9, [rsp + 0x38]
mov r8d, 1
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x20], eax
call fcn.1402878c0
test eax, eax
jne 0x140287968
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140287968
cmp dword [rsp + 0x30], 4
mov eax, dword [rsp + 0x34]
je 0x14028796a
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140287a10
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0x65b
cmp qword [rsp + 0x40], 0
jne 0x140287a2f
mov eax, dword [rsp + 0x20]
jmp 0x140287a3c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
add rsp, 0x38
ret
Function at 0x140288500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x140288527
cmp qword [rsp + 0x50], 0
jne 0x14028852e
xor eax, eax
jmp 0x1402885c4
cmp dword [rsp + 0x48], 0
jle 0x14028853c
cmp dword [rsp + 0x58], 0
jg 0x140288543
xor eax, eax
jmp 0x1402885c4
movsxd r8, dword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.MSVCR90.dll_memset
mov dword [rsp + 0x20], 0
jmp 0x140288569
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x20], eax
jge 0x1402885bf
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x50]
movzx edx, byte [rax + rcx]
movzx eax, word [rsp + 0x60]
sar eax, 8
xor edx, eax
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov byte [rax + rcx], dl
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + rcx]
movzx ecx, word [rsp + 0x60]
add eax, ecx
imul eax, eax, 0xce6d
add eax, 0x58bf
mov word [rsp + 0x60], ax
jmp 0x14028855e
mov eax, 1
add rsp, 0x38
ret
Function at 0x14028a2a0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov eax, edx
mov r11d, edx
mov r10, rcx
cdq
and edx, 7
add eax, edx
and eax, 7
cmp eax, edx
je 0x14028a2c0
xor eax, eax
add rsp, 8
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
test r8, r8
lea rbp, [0x1403335d0]
mov qword [rsp], rdi
cmovne rbp, r8
test r9d, r9d
je 0x14028a369
test r11d, r11d
je 0x14028a40c
nop
mov edx, dword [r10]
mov r8d, dword [r10 + 4]
xor r9d, r9d
xor edi, edi
lea ebx, [rdi + 0x1f]
nop
mov eax, r8d
and edi, 3
mov ecx, r8d
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, dword [rbp + rdi*4]
add eax, r9d
add ecx, r8d
add r9d, 0x9e3679b9
xor ecx, eax
mov edi, r9d
add edx, ecx
mov eax, edx
mov ecx, edx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, r9d
shr rax, 0xd
add ecx, edx
and eax, 3
mov eax, dword [rbp + rax*4]
add eax, r9d
xor ecx, eax
add r8d, ecx
sub rbx, 1
jne 0x14028a300
mov dword [r10], edx
mov dword [r10 + 4], r8d
add r10, 8
sub r11d, 8
jne 0x14028a2f0
jmp 0x14028a40c
test r11d, r11d
je 0x14028a40c
mov qword [rsp + 0x20], rsi
nop word [rax + rax]
mov r8d, dword [r10]
mov r9d, dword [r10 + 4]
mov ebx, 0x2898bd67
mov rdi, rbx
mov esi, 0x1f
nop word [rax + rax]
shr rdi, 0xd
mov eax, r8d
mov ecx, r8d
shl eax, 4
shr ecx, 5
and edi, 3
xor ecx, eax
mov eax, dword [rbp + rdi*4]
add eax, ebx
add ecx, r8d
add ebx, 0x61c98647
xor ecx, eax
mov edi, ebx
sub r9d, ecx
mov eax, r9d
mov edx, r9d
shr edx, 5
shl eax, 4
xor edx, eax
mov eax, ebx
and eax, 3
add edx, r9d
mov ecx, dword [rbp + rax*4]
add ecx, ebx
xor edx, ecx
sub r8d, edx
sub rsi, 1
jne 0x14028a3a0
mov dword [r10], r8d
mov dword [r10 + 4], r9d
add r10, 8
sub r11d, 8
jne 0x14028a380
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov eax, 1
add rsp, 8
ret
Function at 0x14028a430
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
xor ebx, ebx
mov ebp, 1
lea rcx, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
mov r9d, ebp
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x70], reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14028a500
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x14028a49a
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x78]
mov r9d, ebp
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14028a500
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
jne 0x14028a48b
lea rcx, [rsp + 0x78]
mov r9d, ebp
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea rcx, [rsp + 0x78]
mov r9d, ebp
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14028a48b
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14028a56a
mov edx, 0x7fffffff
mov rcx, rdi
call fcn.140282340
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8, rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14028a56a
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x70]
mov r8, rsi
mov edx, 2
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
cmovne ebx, ebp
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14028a57a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14028a58c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14028b117
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1403710d8]
jne 0x14028a91a
rol rcx, 0x10
test cx, 0xffff
jne 0x14028a916
repz ret
ror rcx, 0x10
jmp 0x14028b070
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140378060]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140378158]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14028b0f5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140378060]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14028b117
mov rax, qword [rsp + 0x88]
mov qword [0x140378158], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1403780f8], rax
mov rax, qword [0x140378158]
mov qword [0x140377fd0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1403780e0], rax
mov dword [0x140377fc0], 0xc0000409
mov dword [0x140377fc4], 1
mov rax, qword [0x1403710d8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1403710e0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140378058], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1403335f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140378058], 0
jne 0x14028b19e
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001cf0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x350
mov rax, qword [0x14003e020]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x20]
call fcn.1400095e0
lea rcx, [rsp + 0x20]
call fcn.140004900
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x130]
call fcn.1400095e0
lea rdx, [rsp + 0x130]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140001dcc
lea r8, str.AdobePDFPrinterInstall.log
mov edx, 0x104
lea rcx, [rsp + 0x130]
call fcn.14000dad0
lea rdx, str.a_ccsUTF_16LE
lea rcx, [rsp + 0x130]
call fcn.14000dc1c
mov rdi, rax
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140001d91
mov r9, rdi
mov edx, 2
mov rcx, rbx
call fcn.14000de78
mov r9, rdi
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [0x140037a60]
call fcn.14000de78
mov rcx, rdi
call fcn.14000df80
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x1c], edx
lea rcx, [rsp + 0x28]
call fcn.1400045b0
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x1c], edx
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0xc8]
call fcn.140006b64
nop
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140006fd0
mov rbx, qword [rsp + 0x368]
add rsp, 0x350
pop rdi
ret
Function at 0x140003cc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x140003d61
test r8, r8
jle 0x140003d59
mov rcx, rdi
call fcn.1400050b0
test rax, rax
jle 0x140003d30
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.140008eb0
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140003d51
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
mov rax, qword [rax + 0x18]
call qword [0x140029398]
cmp eax, 0xffffffff
je 0x140003d59
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x140003cf2
sub r14, rbx
mov rax, r14
jmp 0x140003dd5
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x140003d75
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003d77
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x140003dcf
test ecx, ecx
jle 0x140003db0
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140008eb0
mov rax, qword [rdi + 0x58]
sub r14, rsi
add rbp, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x140003dcf
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003dcf
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.14000de78
sub r14, rax
sub rbx, r14
mov rax, rbx
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 0x140003df0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140003e12
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140003e93
mov rdi, r14
mov rcx, rbx
call fcn.1400050d0
test rax, rax
jle 0x140003e64
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140008eb0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140003e83
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [0x140029398]
cmp eax, 0xffffffff
je 0x140003e8b
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140003e26
sub r14, rdi
jmp 0x140003f88
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140003eaa
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003eac
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003ee1
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140008eb0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140003f85
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140003f1c
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140003f60
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140010434
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140003f9e
cmp rbp, rax
ja 0x140003f30
mov r8, rdi
test rdi, rdi
je 0x140003f85
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140010434
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140003f88
Function at 0x1400043c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14003e020]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400043f0
xor eax, eax
jmp 0x140004540
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000442a
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000442a
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004540
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x140004533
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000446d
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000447c
movsx ecx, dil
jmp 0x1400044da
lea r8, [rsp + 0x50]
mov byte [rsp + 0x60], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x61]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x68]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x60]
call qword [0x140029398]
test eax, eax
je 0x1400044f4
sub eax, 1
je 0x1400044f4
cmp eax, 2
jne 0x140004533
movsx ecx, byte [rsp + 0x60]
mov rdx, qword [rbx + 0x80]
call fcn.14000d82c
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004538
mov rsi, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
sub rsi, rax
je 0x140004521
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x68]
mov r8, rsi
mov edx, 1
call fcn.14000de78
cmp rsi, rax
jne 0x140004533
lea rax, [rsp + 0x60]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x58], rax
mov eax, edi
jne 0x140004538
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140006fd0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x140004eb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14003e020]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004f90
cmp byte [rcx + 0x71], 0
je 0x140004f90
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [0x140029398]
cmp eax, 0xffffffff
je 0x140004f8c
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140029398]
test eax, eax
je 0x140004f52
sub eax, 1
je 0x140004f56
cmp eax, 2
jne 0x140004f8c
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006fd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004f83
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.14000de78
cmp rdi, rax
jne 0x140004f8c
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004f3a
xor al, al
jmp 0x140004f3a
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006fd0
add rsp, 0x60
pop rbx
ret
Function at 0x14000111a
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
nop
cpuid
nop
mov eax, 1
nop
cpuid
nop
movabs r9, 0xb2d05e00
nop
cpuid
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
mov rcx, rax
nop
fldpi
nop
frndint
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
sub rax, rcx
nop
cmp rax, r9
nop
jb 0x140001147
nop
nop
push rbp
nop
mov rbp, rsp
nop
sub rsp, 8
nop
mov r10, 0xa
nop
mov rcx, 0xffffffff9f345678
nop
dec rcx
nop
xor r9, r9
nop
mov rax, rcx
nop
jne 0x140001180
nop
xor rax, rax
nop
mov rax, rbx
nop
add rax, rdx
nop
dec r10
nop
xor r11, r11
nop
jne 0x140001177
nop
xor rax, rax
mov rax, 0xa
nop
dec rax
nop
add rsp, 8
pop rbp
ret

Function at 0x140002971
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xaa8e
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400029ac
mov eax, 1
jmp 0x140002a07
lea rax, [0x14001331e]
mov rdi, qword [rsp + 0x20]
mov rsi, rax
mov rcx, 0xaa8e
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
call qword [rsp + 0x28]
xor eax, eax
add rsp, 0xa0
ret
sub cl, ch
packuswb mm1, qword [rdi]
add ah, cl
int3

Function at 0x140003020
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
mov rbx, r8
mov rdi, rcx
xor r8d, r8d
lea rcx, [0x14000eb08]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
jns 0x14000305e
mov ebx, 3
jmp 0x140003086
mov r9, qword [rsp + 0x58]
lea r8, str._s_s
mov edx, 0x208
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call fcn.14000323c
xor ebx, ebx
test eax, eax
lea ecx, [rbx + 0xd]
cmovs ebx, ecx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000309c
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400030b0
Capabilities:
Create process on windows
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x4d0]
sub rsp, 0x5d0
mov rax, qword [0x140010958]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
xor edx, edx
lea rcx, [rbp - 0x6c]
mov r8d, 0x118
call fcn.14000c010
lea rcx, [rbp - 0x70]
mov dword [rbp - 0x70], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
xor ebx, ebx
cmp byte [rbp + 0xaa], 1
mov word [rbp + 0xb0], bx
je 0x14000315e
lea r8, str.Server_Manager.lnk
lea rcx, [rbp + 0xb0]
call fcn.140003020
lea rcx, [rbp + 0xb0]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
test edi, edi
jne 0x14000314a
cmp eax, 0xffffffff
je 0x14000314a
test al, 0x10
je 0x14000317b
xor edx, edx
lea rcx, [rbp + 0xb0]
mov r8d, 0x410
call fcn.14000c010
lea r8, str.Computer_Management.lnk
lea rcx, [rbp + 0xb0]
call fcn.140003020
mov edi, eax
test eax, eax
jne 0x140003209
lea rdx, [rbp + 0xb0]
lea rcx, str.Snapin_path___ws_n
call fcn.140003008
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.14000c010
lea rax, [rbp + 0xb0]
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
lea rax, str.open
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400031eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140003200
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140003200
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test edi, edi
setne bl
mov eax, ebx
jmp 0x14000320e
mov eax, 1
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.140003500
lea r11, [rsp + 0x5d0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400042bc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
lea r14, [0x14000d010]
mov edi, ecx
mov rdx, r14
xor eax, eax
cmp edi, dword [rdx]
je 0x1400042ee
inc eax
add rdx, 0x10
cmp eax, 0x17
jb 0x1400042df
movsxd rbx, eax
cmp rbx, 0x17
jae 0x140004468
mov ebp, 3
mov ecx, ebp
call fcn.140007784
cmp eax, 1
je 0x140004429
mov ecx, ebp
call fcn.140007784
test eax, eax
jne 0x140004328
cmp dword [0x140010900], 1
je 0x140004429
cmp edi, 0xfc
je 0x140004468
mov ebp, 0x314
lea rdi, [0x1400115f0]
mov edx, ebp
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rdi
call fcn.140007684
test eax, eax
je 0x14000436a
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140005f40
mov r8d, 0x104
mov byte [0x14001170d], 0
lea rdx, [0x140011609]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400043bb
lea r8, str._program_name_unknown_
mov edx, 0x2fb
lea rcx, [0x140011609]
call fcn.140007684
test eax, eax
je 0x1400043bb
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140005f40
lea r8, [0x14000dcd0]
mov rdx, rbp
mov rcx, rdi
call fcn.1400076fc
test eax, eax
je 0x1400043e6
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140005f40
add rbx, rbx
mov rdx, rbp
mov rcx, rdi
mov r8, qword [r14 + rbx*8 + 8]
call fcn.1400076fc
test eax, eax
je 0x140004412
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140005f40
mov r8d, 0x12010
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov rcx, rdi
call fcn.1400077e4
jmp 0x140004468
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140004468
add rbx, rbx
or r8, 0xffffffffffffffff
mov rdx, qword [r14 + rbx*8 + 8]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000444a
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret