joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002600
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
mov rcx, qword [rcx]
movabs rax, 0xffffffff00000000
movzx edi, word [rcx + 0x14]
mov r12, qword [rcx + 0x30]
mov r9d, dword [rsi + 0x68]
add rdi, rcx
and r12, rax
dec r9
mov r10d, dword [rdi + 0x20]
mov eax, dword [rdi + 0x28]
not r9
or r10, r12
and r9, r10
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], r9
test eax, eax
jne 0x180002673
mov edx, dword [rdi + 0x3c]
test dl, 0x40
je 0x18000266c
mov eax, dword [rcx + 0x20]
jmp 0x180002673
test dl, dl
jns 0x180002673
mov eax, dword [rcx + 0x24]
mov r8d, dword [rdi + 0x3c]
mov r13d, 1
mov qword [rsp + 0x88], rbx
mov edx, eax
mov qword [rsp + 0x90], rbp
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x98], r14
mov r15d, r13d
mov qword [rsp + 0x30], rdx
cmp r13w, word [rcx + 6]
jae 0x18000277b
add rdi, 0x64
nop dword [rax + rax]
mov ebx, dword [rsi + 0x68]
mov r14d, dword [rdi - 0x1c]
mov eax, dword [rdi - 0x14]
dec rbx
or r14, r12
not rbx
and rbx, r14
test eax, eax
jne 0x1800026f3
mov ecx, dword [rdi]
test cl, 0x40
je 0x1800026e9
mov rax, qword [rsi]
mov eax, dword [rax + 0x20]
jmp 0x1800026f3
test cl, cl
jns 0x1800026f3
mov rax, qword [rsi]
mov eax, dword [rax + 0x24]
mov ebp, eax
cmp r9, rbx
je 0x180002735
lea rax, [rdx + r10]
cmp rax, rbx
ja 0x180002735
test rdx, rdx
je 0x18000271d
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180002520
test eax, eax
je 0x18000279e
mov r8d, dword [rdi]
mov r10, r14
mov qword [rsp + 0x20], r14
mov r9, rbx
mov qword [rsp + 0x28], rbx
mov rdx, rbp
jmp 0x18000275a
mov eax, dword [rdi]
bt eax, 0x19
jae 0x180002749
bt r8d, 0x19
jae 0x180002749
or r8d, eax
jmp 0x180002751
or r8d, eax
btr r8d, 0x19
mov rdx, rbp
sub rdx, r10
add rdx, r14
mov rax, qword [rsi]
inc r15d
add rdi, 0x28
movzx ecx, word [rax + 6]
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x30], rdx
cmp r15d, ecx
jl 0x1800026c0
test rdx, rdx
je 0x1800027f1
bt r8d, 0x19
jae 0x1800027a2
cmp r10, r9
jne 0x1800027f1
mov r9, qword [rsi + 0x58]
mov r8d, 0x4000
mov rcx, r10
call qword [rsi + 0x30]
jmp 0x1800027f1
xor eax, eax
jmp 0x1800027f4
mov eax, r8d
shr eax, 0x1d
and eax, r13d
movsxd rcx, eax
mov eax, r8d
shr eax, 0x1e
and eax, r13d
cdqe
lea rcx, [rax + rcx*2]
mov eax, r8d
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x180019460]
mov eax, dword [rax + rcx*4]
bt r8d, 0x1a
jae 0x1800027dc
bts eax, 9
lea r9, [rsp + 0x40]
mov r8d, eax
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000279e
mov eax, r13d
mov r14, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180003330
add rsp, 0x50
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14031bb80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140320490
sub rsp, rax
mov rax, qword [0x1403682b8]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14031bc42
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14031bbed
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14031bbe0
cmp rcx, 1
jb 0x14031bc9a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14031bc10
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14032f6e4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14031bbd0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14031bc73
lea rcx, [rsp + 0x80]
call fcn.1403323ec
jmp 0x14031bc75
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1403201c0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1403243b0
int3
Function at 0x14031fd40
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1403682b8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14031fde5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14031fd9d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14031fd90
cmp rcx, 1
jb 0x14031fe16
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14031fdb3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14032f6e4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14031fd80
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1403201c0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1403243b0
int3

Function at 0x140320050
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1403682b8]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1403200f5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1403200ad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1403200a0
cmp rcx, 1
jb 0x140320127
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1403200c3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14032f6e4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140320090
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1403201c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1403243b0
int3

Function at 0x140320c3c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140325a53
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140325a53
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140325a53
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140325a53
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140325a53
cmp dword [rcx + 0x84], 0xe
jbe 0x140325a53
cmp dword [rcx + 0xf8], 0
je 0x140325a53
mov ecx, ebx
call fcn.140325b10
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1403258e0
nop
cmp dword [rbp + 0x20], 0
je 0x140325aa1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140325aac
int3
xor r8d, r8d
xor edx, edx
jmp 0x1403259e4
Function at 0x1403374e4
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 0x14033756b
mov rsi, rbx
cmp word [rax], bp
je 0x14033752a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140337514
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140337510
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140332be0
mov rdi, rax
test rax, rax
je 0x140337558
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140320fe0
mov rbp, rdi
xor ecx, ecx
call fcn.140333700
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 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140027530]
mov dword [rax], 1
mov rax, qword [0x140027540]
mov dword [rax], 1
mov rax, qword [0x140027550]
mov dword [rax], 1
mov rax, qword [0x140027520]
mov dword [rax], 1
mov rax, qword [0x1400273d0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140004516
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140004546
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x14000454b
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000e68f
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400101b1
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x58], rax
lea rax, str.C:UsersClimax.choosenim_toolchains_nim_2.0.2lib_system.nim
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.nimFrame_5
call sym.nimErrorFlag_4
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], 0xac5
lea rax, [0x14002e180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], 0xd
lea rax, str.C:UsersClimax.choosenim_toolchains_nim_2.0.2lib_systemiterators.nim
mov qword [rbp - 0x48], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0xe
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x14001033e
mov qword [rbp - 0x50], 0xac6
lea rax, str.C:UsersClimax.choosenim_toolchains_nim_2.0.2lib_system.nim
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x140010275
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x14001028e
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x1400103cf
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdx
lea rax, [rbp - 0x80]
mov r8d, 0
mov rdx, rax
call sym.writeWindows__system_u9040
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x1400103ce
mov qword [rbp - 0x50], 0x10
lea rax, str.C:UsersClimax.choosenim_toolchains_nim_2.0.2lib_systemiterators.nim
mov qword [rbp - 0x48], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x140010313
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x140010331
call sym.raiseOverflow
jmp 0x1400103cf
mov rax, qword [rbp - 0x68]
mov qword [rbp - 8], rax
jmp 0x140010243
nop
mov qword [rbp - 0x50], 0xae1
lea rax, str.C:UsersClimax.choosenim_toolchains_nim_2.0.2lib_system.nim
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x140026209]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xae2
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x50], 0xae6
lea rax, [0x14002e180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400103cf
nop
call sym.popFrame_5
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x2f2b013a0
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:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x2f2b01405
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_in_CryptAcquireContextW___u__n
call sym.printf_char_const__::_
jmp 0x2f2b01574
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x2f2b01454
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_in_CryptCreateHash___u__n
call sym.printf_char_const__::_
jmp 0x2f2b01574
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
sete al
test al, al
je 0x2f2b01499
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_in_CryptHashData___u__n
call sym.printf_char_const__::_
jmp 0x2f2b01574
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
sete al
test al, al
je 0x2f2b014e9
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_in_CryptDeriveKey___u__n
call sym.printf_char_const__::_
jmp 0x2f2b01574
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
sete al
test al, al
je 0x2f2b0153e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_in_CryptDecrypt___u__n
call sym.printf_char_const__::_
jmp 0x2f2b01574
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x2f2b01594
Capabilities:
Create thread

Disassembly:
push rbp
mov eax, 0x318d0
call fcn.2f2b02510
sub rsp, rax
lea rbp, [rsp + 0x80]
mov r9d, 0
lea r8, str.Gemini_Security
lea rdx, str.Welcome_
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
movabs rax, 0x985ee566d8971ce6
movabs rdx, 0x5a4e1b65df9eddb3
mov qword [rbp + 0x31820], rax
mov qword [rbp + 0x31828], rdx
lea rax, [rbp - 0x40]
lea rdx, [0x2f2b09148]
mov ecx, 0x31860
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x3184c], 0x31860
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x31860
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x31840], rax
cmp qword [rbp + 0x31840], 0
jne 0x2f2b01664
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_to_Allocate_memory___u__n
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x2f2b0178d
lea rcx, [rbp + 0x31820]
mov edx, dword [rbp + 0x3184c]
lea rax, [rbp - 0x40]
mov r9d, 0x10
mov r8, rcx
mov rcx, rax
call sym.DecryptAES_char__unsigned_long__char__unsigned_long_
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x31840]
mov r8d, 0x31860
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0x31840]
mov r9, rdx
mov r8d, 0x20
mov edx, 0x31860
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x2f2b016ee
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_to_change_memory_protection___u__n
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x2f2b0178d
mov rax, qword [rbp + 0x31840]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x31838], rax
cmp qword [rbp + 0x31838], 0
jne 0x2f2b01751
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_to_Create_the_thread___u__n
call sym.printf_char_const__::_
mov eax, 0xfffffffd
jmp 0x2f2b0178d
mov rax, qword [rbp + 0x31840]
mov rdx, rax
lea rcx, str._n_nalloc_mem_:__p_n
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x31838]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x31840]
call rax
mov eax, 0
add rsp, 0x318d0
pop rbp
ret

Function at 0x2f2b01940
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x2f2b019b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x2f2b3e054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x2f2b01b60
mov rax, qword [0x2f2b3e058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x2f2b019fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2f2b01a87
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x2f2b019e0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x2f2b01bbd
mov rax, qword [0x2f2b3e058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2f2b3e058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2f2b01ba2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2f2b01a80
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2f2b01b10
add dword [0x2f2b3e054], 1
cmp ebx, 8
jae 0x2f2b01ab8
test bl, 4
jne 0x2f2b01b70
test ebx, ebx
je 0x2f2b01aa9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x2f2b01b90
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x2f2b01aa9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x2f2b01aea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x2f2b3e058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2f2b01a80
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x2f2b01a07
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x2f2b01aa9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x2f2b01aa9
mov rax, qword [0x2f2b3e058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]