joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003dae0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003db67
mov rsi, rbx
cmp word [rax], bp
je 0x14003db26
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003db10
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003db0c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140038bdc
mov rdi, rax
test rax, rax
je 0x14003db54
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400444c0
mov rbp, rdi
xor ecx, ecx
call fcn.14003997c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140040590
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400405a6
mov al, 1
jmp 0x140040606
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400405b7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140040604
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003e3a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140040604
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140040604
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140040604
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140040606
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400442a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400442c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400442c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003d48
Capabilities:
Get geographical location

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

Function at 0x140003f70
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.140003de4
mov ebx, eax
test eax, eax
jne 0x140003fa0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140004003
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003ffa
test al, 0x10
je 0x140003ffa
bt eax, 0xa
jae 0x140003ff3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140004014
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140003fef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140003fef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x140003ffa
and dword [rsp + 0x3c], 0
jmp 0x140003fff
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

Function at 0x140004a70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004aba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004aba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004aba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004aba
cmp dword [rcx + 0x84], 0xe
jbe 0x140004aba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004abc
xor al, al
add rsp, 0x28
ret
Function at 0x1400011d1
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1400787f0
mov qword [rsp + 8], rcx

Function at 0x140001235
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140079330
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov qword [rsp], 0x270
jmp 0x14007934f
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0x4e0
jae 0x1400793d1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x14007939d
mov dword [rsp + 0xc], 0x9908b0df
jmp 0x1400793a5
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 8]
shr eax, 1
xor eax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140079344
add rsp, 0x10
pop rdi
ret

Function at 0x1400013ed
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14007d390
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0

Function at 0x14000158c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1400783b0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.14000134d
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400015a5
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
jmp 0x14007d010
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x40]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x78], 0
and al, 0x78
add byte [rax], al
add byte [rax], al
Function at 0x140001640
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1400790b0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp], 0x26f
mov qword [rsp + 8], 0xe3
mov qword [rsp + 0x10], 0
jmp 0x1400790e3
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0xe3
jae 0x14007916a
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x10]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x140079134
mov dword [rsp + 0x3c], 0x9908b0df
jmp 0x14007913c
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400790d6
mov qword [rsp + 0x20], 0xe3
jmp 0x140079182
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x26f
jae 0x140079209
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 1
test eax, eax
je 0x1400791d3
mov dword [rsp + 0x40], 0x9908b0df
jmp 0x1400791db
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x28]
shr eax, 1
xor eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140079175
mov qword [rsp + 0x30], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
and eax, 1
test eax, eax
je 0x14007925d
mov dword [rsp + 0x44], 0x9908b0df
jmp 0x140079265
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x38]
shr eax, 1
xor eax, dword [rsp + 0x44]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x60]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x60]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
add rsp, 0x50
pop rdi
ret

Function at 0x1400016ea
Capabilities:
Terminate process

Disassembly:
jmp 0x14007f560
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140001708
Capabilities:
Terminate process

Disassembly:
jmp 0x140071ed0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x20]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov dword [rsp + 0x84], 0
lea rax, [0x140001217]
mov qword [rsp + 0x20], rax
lea rax, [0x140001c5d]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov r9, rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
lea rcx, str._info__Encoded_data_at_0x_llx:0x_llx___llu_bytes__n
call fcn.1400015fa
mov rcx, qword [rsp + 0xb0]
call fcn.140001884
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x84]
or eax, 1
mov dword [rsp + 0x84], eax
lea rax, [0x140001217]
mov qword [rsp + 0x68], rax

Function at 0x14000170d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140079ed0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x80], 0
jne 0x140079efa
xor eax, eax
jmp 0x14007a027
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0
jmp 0x140079f7b
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x50], eax
jae 0x14007a022
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call fcn.1400014fb
movzx eax, al
test eax, eax
je 0x14007a01d
pop rdx
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x50]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x60], ax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx ecx, word [rsp + 0x60]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x64], eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x64]
jmp 0x140079f71
Function at 0x14000186b
Capabilities:
Delete file
Get common file path

Disassembly:
jmp 0x1400694a0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x850
lea rdi, [rsp + 0x30]
mov ecx, 0x208
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x860]
mov rax, qword [0x140095240]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov ecx, 0xeadc
call fcn.140001b09
call fcn.14000137f
lea rax, [rsp + 0x748]
mov qword [rsp + 0x770], rax
lea rdx, str.c:windows_system32_ntdll.dll
mov rcx, qword [rsp + 0x770]
call fcn.1400015b9
mov qword [rsp + 0x7d8], rax
mov rax, qword [rsp + 0x7d8]
mov qword [rsp + 0x7e0], rax
mov rax, qword [rsp + 0x7e0]
mov qword [rsp + 0x7e8], rax
lea rax, [rsp + 0x778]
mov qword [rsp + 0x7a0], rax
lea rdx, [0x140088d00]
mov rcx, qword [rsp + 0x7a0]
call fcn.140001424
mov qword [rsp + 0x7f0], rax
mov rax, qword [rsp + 0x7f0]
mov qword [rsp + 0x7f8], rax
mov rdx, qword [rsp + 0x7e8]
mov rcx, qword [rsp + 0x7f8]
call fcn.140001055
call fcn.14000100f
call fcn.14000120d
lea rcx, [rsp + 0x38]
call fcn.140001708
nop
lea rax, [rsp + 0x7a8]
mov qword [rsp + 0x7c8], rax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x7c8]
call fcn.1400018a2
mov qword [rsp + 0x800], rax
mov rdx, qword [rsp + 0x800]
lea rcx, [rsp + 0x78]
call fcn.1400012c1
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140001429
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xa8]
call fcn.1400011b3
mov qword [rsp + 0xb8], rax
jmp 0x140069626
mov rax, qword [rsp + 0xb8]
cmp qword [rsp + 0xb0], rax
je 0x140069b1f
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax]
mov byte [rsp + 0x808], al
cmp byte [rsp + 0x808], 1
je 0x140069689
cmp byte [rsp + 0x808], 2
je 0x140069722
cmp byte [rsp + 0x808], 3
je 0x140069774
jmp 0x140069b0c
lea rcx, str._info__Load_PE_n
call fcn.1400015fa
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.140001019
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.1400018bb
lea rcx, [rsp + 0xd8]
call fcn.1400011f4
movzx eax, al
test eax, eax
je 0x14006971d
lea rcx, str._info__Running_PE_n
call fcn.1400015fa
mov r8, qword [rsp + 0x868]
mov edx, dword [rsp + 0x860]
lea rcx, [rsp + 0xd8]
call fcn.140001a50
mov dword [rsp + 0x7d0], eax
lea rcx, [rsp + 0x78]
call fcn.14000135c
nop
lea rcx, [rsp + 0x38]
call fcn.1400013c5
mov eax, dword [rsp + 0x7d0]
jmp 0x140069b3a
jmp 0x140069b18
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.140001550
mov qword [rsp + 0x810], rax
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.140001019
mov qword [rsp + 0x818], rax
mov rdx, qword [rsp + 0x810]
mov rcx, qword [rsp + 0x818]
call fcn.140001ae6
jmp 0x140069b18
call fcn.140001299
call fcn.1400016bd
lea rcx, [rsp + 0xf8]
call fcn.140001b31
nop
xor edx, edx
lea rcx, [rsp + 0x118]
call fcn.140001861
nop
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x128], rax
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x128]
call fcn.140001889
lea rdx, [rsp + 0x168]
mov rcx, qword [rsp + 0x128]
call fcn.140001b59
jmp 0x1400697e5
lea rcx, str._error__Invalid_payload_type_in_archive_n
call fcn.1400015fa
Function at 0x140001898
Capabilities:
Parse pe header

Disassembly:
jmp 0x140080240
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140080260
xor al, al
jmp 0x1400802e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140080273
xor al, al
jmp 0x1400802e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14008029d
xor al, al
jmp 0x1400802e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400802b1
xor al, al
jmp 0x1400802e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400802c3
xor al, al
jmp 0x1400802e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400802df
xor al, al
jmp 0x1400802e1
mov al, 1
add rsp, 0x38
ret
Function at 0x14000191f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140081340
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x17]
sub rsp, 0xb0
xor r14d, r14d
lea rsi, [rcx - 1]
mov dword [r9], r14d
mov r13, rdx
mov word [rdx], r14w
mov rcx, rsi
lea rdx, [rbp - 0x19]
mov r12, r9
lea r8d, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400816f2
mov r8d, dword [rbp + 0x7f]
mov rdx, qword [rbp + 0x77]
mov rcx, qword [rbp - 0x11]
call sub.VCRUNTIME140D.dll___vcrt_GetModuleFileNameW
test eax, eax
je 0x1400816f2
mov rcx, qword [rbp - 0x11]
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400816f2
movsxd rax, dword [rcx + 0x3c]
test eax, eax
jle 0x1400816f2
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1400816f2
movzx edx, word [rax + 0x14]
sub esi, ecx
movzx r8d, word [rax + 6]
add rdx, rax
mov edi, r14d
mov ebx, r14d
test r8d, r8d
je 0x14008140f
nop dword [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*4]
mov eax, dword [rdx + rcx*8 + 0x24]
cmp esi, eax
jb 0x140081408
mov edi, esi
sub edi, eax
cmp esi, dword [rdx + rcx*8 + 0x20]
jb 0x14008140f
inc ebx
cmp ebx, r8d
jb 0x1400813f0
cmp ebx, r8d
je 0x1400816f2
inc ebx
cmp byte [0x140096072], r14b
jne 0x14008144e
cmp qword [0x140096068], r14
jne 0x1400816f2
call fcn.140080ce0
mov qword [0x140096068], rax
test rax, rax
je 0x1400816f2
mov byte [0x140096072], 1
jmp 0x140081455
mov rax, qword [0x140096068]
lea rdx, str.PDBOpenValidate5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400816f2
lea rcx, [rbp - 0x31]
xor r9d, r9d
mov qword [rsp + 0x38], rcx
xor r8d, r8d
mov qword [rsp + 0x30], r14
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x77]
call qword [0x14009d020]
test eax, eax
je 0x1400816f2
mov rcx, qword [rbp - 0x31]
mov rsi, r14
mov qword [rbp - 0x49], r14
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [0x14009d020]
cmp eax, 0x1329141
jne 0x1400816dc
mov rcx, qword [rbp - 0x31]
lea r9, [rbp - 0x29]
lea r8, [0x14008ff74]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [0x14009d020]
test eax, eax
je 0x1400816dc
mov rcx, qword [rbp - 0x29]
lea r9, [rbp - 0x39]
mov qword [rsp + 0x30], r14
mov r8d, edi
mov qword [rsp + 0x28], r14
movzx edx, bx
mov qword [rsp + 0x20], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x14009d020]
test eax, eax
je 0x1400816cb
mov rcx, qword [rbp - 0x39]
lea rdx, [rbp - 0x49]
mov rax, qword [rcx]
mov rax, qword [rax + 0xd0]
call qword [0x14009d020]
test al, al
je 0x1400816b7
xor eax, eax
Function at 0x140069340
Capabilities:
Encode data using base64 via winapi

Disassembly:
jmp 0x140069340
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x30]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0xf8]
call fcn.140001550
mov dword [rsp + 0xa8], eax
mov rcx, qword [rsp + 0xf8]
call fcn.140001019
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40000001
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [rsp + 0x34]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call fcn.1400014bf
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0xa4]
or eax, 1
mov dword [rsp + 0xa4], eax
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.140001127
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xf8]
call fcn.140001550
mov dword [rsp + 0xc8], eax
mov rcx, qword [rsp + 0xf8]
call fcn.140001019
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc0]
mov r8d, 0x40000001
mov edx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov rax, qword [rsp + 0xf0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400890c0]
call fcn.140001a41
mov rax, rdi
add rsp, 0xe0
pop rdi
ret
Function at 0x1400694a0
Capabilities:
Delete file
Get common file path

Disassembly:
jmp 0x1400694a0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x850
lea rdi, [rsp + 0x30]
mov ecx, 0x208
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x860]
mov rax, qword [0x140095240]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov ecx, 0xeadc
call fcn.140001b09
call fcn.14000137f
lea rax, [rsp + 0x748]
mov qword [rsp + 0x770], rax
lea rdx, str.c:windows_system32_ntdll.dll
mov rcx, qword [rsp + 0x770]
call fcn.1400015b9
mov qword [rsp + 0x7d8], rax
mov rax, qword [rsp + 0x7d8]
mov qword [rsp + 0x7e0], rax
mov rax, qword [rsp + 0x7e0]
mov qword [rsp + 0x7e8], rax
lea rax, [rsp + 0x778]
mov qword [rsp + 0x7a0], rax
lea rdx, [0x140088d00]
mov rcx, qword [rsp + 0x7a0]
call fcn.140001424
mov qword [rsp + 0x7f0], rax
mov rax, qword [rsp + 0x7f0]
mov qword [rsp + 0x7f8], rax
mov rdx, qword [rsp + 0x7e8]
mov rcx, qword [rsp + 0x7f8]
call fcn.140001055
call fcn.14000100f
call fcn.14000120d
lea rcx, [rsp + 0x38]
call fcn.140001708
nop
lea rax, [rsp + 0x7a8]
mov qword [rsp + 0x7c8], rax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x7c8]
call fcn.1400018a2
mov qword [rsp + 0x800], rax
mov rdx, qword [rsp + 0x800]
lea rcx, [rsp + 0x78]
call fcn.1400012c1
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140001429
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xa8]
call fcn.1400011b3
mov qword [rsp + 0xb8], rax
jmp 0x140069626
mov rax, qword [rsp + 0xb8]
cmp qword [rsp + 0xb0], rax
je 0x140069b1f
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax]
mov byte [rsp + 0x808], al
cmp byte [rsp + 0x808], 1
je 0x140069689
cmp byte [rsp + 0x808], 2
je 0x140069722
cmp byte [rsp + 0x808], 3
je 0x140069774
jmp 0x140069b0c
lea rcx, str._info__Load_PE_n
call fcn.1400015fa
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.140001019
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.1400018bb
lea rcx, [rsp + 0xd8]
call fcn.1400011f4
movzx eax, al
test eax, eax
je 0x14006971d
lea rcx, str._info__Running_PE_n
call fcn.1400015fa
mov r8, qword [rsp + 0x868]
mov edx, dword [rsp + 0x860]
lea rcx, [rsp + 0xd8]
call fcn.140001a50
mov dword [rsp + 0x7d0], eax
lea rcx, [rsp + 0x78]
call fcn.14000135c
nop
lea rcx, [rsp + 0x38]
call fcn.1400013c5
mov eax, dword [rsp + 0x7d0]
jmp 0x140069b3a
jmp 0x140069b18
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.140001550
mov qword [rsp + 0x810], rax
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.140001019
mov qword [rsp + 0x818], rax
mov rdx, qword [rsp + 0x810]
mov rcx, qword [rsp + 0x818]
call fcn.140001ae6
jmp 0x140069b18
call fcn.140001299
call fcn.1400016bd
lea rcx, [rsp + 0xf8]
call fcn.140001b31
nop
xor edx, edx
lea rcx, [rsp + 0x118]
call fcn.140001861
nop
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x128], rax
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x128]
call fcn.140001889
lea rdx, [rsp + 0x168]
mov rcx, qword [rsp + 0x128]
call fcn.140001b59
jmp 0x1400697e5
lea rcx, str._error__Invalid_payload_type_in_archive_n
call fcn.1400015fa