joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400363f4
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 0x140036424
xor eax, eax
jmp 0x1400364e7
mov rbp, rbx
cmp word [rax], si
je 0x140036449
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140036430
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003642c
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.140036344
movsxd r14, eax
test eax, eax
jne 0x140036487
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003641d
mov rcx, r14
call fcn.140032ca0
mov rdi, rax
test rax, rax
jne 0x1400364a0
xor ecx, ecx
call fcn.140032af4
jmp 0x14003647c
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.140036344
test eax, eax
jne 0x1400364d1
mov rcx, rdi
call fcn.140032af4
jmp 0x1400364db
xor ecx, ecx
call fcn.140032af4
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 0x140003100
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Enumerate gui resources

Disassembly:
push rbp
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r14, rcx
lea rdx, [0x140001e90]
mov rcx, qword [0x140026e28]
xor r15d, r15d
xor r8d, r8d
mov dword [rsp + 0x30], r15d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov rbp, qword [0x140026e18]
test rbp, rbp
je 0x140003360
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd8], r12
mov r12d, 0x8664
mov qword [rsp + 0x90], r13
mov r13d, 0x2000
mov qword [rsp + 0xd0], rsi
mov rbx, qword [0x140026cf8]
lea r8, [0x140021950]
movzx edx, word [rbp]
mov rcx, rbx
call fcn.140007b20
test rax, rax
je 0x140003333
mov esi, dword [rax]
add rsi, qword [rbx + 8]
je 0x140003333
mov eax, dword [rax + 4]
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.14000a200
mov rbx, rax
test rax, rax
je 0x140003333
mov r8d, dword [rsp + 0x30]
mov rdx, rsi
mov rcx, rax
call fcn.1400097c0
movups xmm1, xmmword [r14 + 0x10]
mov rcx, qword [0x140026ee0]
lea rax, [rsp + 0x38]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x40], 1
movups xmmword [rsp + 0x78], xmm0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], 0x208
movups xmm0, xmmword [r14]
lea r8d, [r9 + 0x2c]
mov dword [rsp + 0x4c], 0x6610
mov dword [rsp + 0x50], 0x20
movups xmmword [rsp + 0x54], xmm0
mov dword [rsp + 0x20], r15d
movups xmmword [rsp + 0x64], xmm1
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14000332b
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor r9d, r9d
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140003320
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x78]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140003320
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
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]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [rsp + 0x30]
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140003309
cmp edx, 0x130
jb 0x140003309
movsxd r8, dword [rbx + 0x3c]
cmp edx, dword [r8 + rbx + 0x54]
jb 0x140003309
lea rcx, [r8 + 0x108]
cmp rdx, rcx
jb 0x140003309
cmp word [r8 + rbx + 4], r12w
jne 0x140003309
test word [r8 + rbx + 0x16], r13w
je 0x140003309
mov rcx, rbx
call fcn.140007550
test rax, rax
je 0x140003333
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400012f0
jmp 0x140003318
lea r8, [rbx + 0x10]
add edx, 0xfffffff0
mov rcx, rbx
call fcn.140003fa0
test eax, eax
jne 0x14000332b
inc edi
jmp 0x14000332b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, rbx
call fcn.14000a1ec
mov rbp, qword [rbp + 8]
test rbp, rbp
jne 0x140003181
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140007c70
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rbp
ret
Function at 0x140004f30
Capabilities:
Create new key via cryptacquirecontext
Create thread
Enumerate gui resources
Get system information on windows
Parse pe header

Disassembly:
mov rdx, rcx
xor ecx, ecx
jmp sym.client.exe_AbsoluteClientMain
Function at 0x14000c5b4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c3e0
Function at 0x1800b9450
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x1800b9466
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x180133a60]
not ecx
cmp r10d, 8
jb 0x1800b9558
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x1800b9490
test r10d, r10d
je 0x1800b9580
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x1800b9560
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x1800baf60
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1800bb17a
cmp dword [rcx + 0x1c], 0
je 0x1800bb17a
cmp qword [rcx + 0x80], 0
je 0x1800baf8f
call fcn.1800bb520
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.1800baca0
test eax, eax
je 0x1800bafb6
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call qword [0x18011a9a8]
mov rbx, rax
test rax, rax
jne 0x1800bafdd
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call qword [0x18011a9a8]
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x1800bb025
mov rcx, rbx
call qword [0x18011a9b8]
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x1800bb077
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.1800b9810
test eax, eax
jne 0x1800bb077
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x1800bb0a2
movzx eax, byte [rdi + 0x3d]
jmp 0x1800bb0a6
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
neg al
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
mov dword [rbx + 0x9c], 0x12345678
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
test rsi, rsi
je 0x1800bb14e
lea r8, [0x180133a60]
nop word [rax + rax]
movzx eax, byte [rsi]
test al, al
je 0x1800bb14e
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
mov eax, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
xor eax, edx
mov dword [rbx + 0x9c], eax
movzx eax, al
add eax, dword [rbx + 0xa0]
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
mov eax, dword [r8 + rax*4]
xor eax, ecx
mov dword [rbx + 0xa4], eax
add rsi, 1
jne 0x1800bb0f0
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
add eax, 0x1e
mov rbp, qword [rsp + 0x20]
add ecx, eax
mov dword [rbx + 0x60], ecx
xor eax, eax
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14000208c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call fcn.1015c000
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10007c10
add rsp, 0x28
jmp 0x10007510
Function at 0x140001aa4
Capabilities:
Parse pe header

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

Function at 0x1400080d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007ecc
Function at 0x14000c924
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14000c93a
mov al, 1
jmp 0x14000c99a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14000c94b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14000c998
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000edd0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000c998
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000c998
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000c998
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14000c99a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000e4b0
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 0x14000e4e0
xor eax, eax
jmp 0x14000e5a3
mov rbp, rbx
cmp word [rax], si
je 0x14000e505
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e4ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e4e8
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.14000e3d0
movsxd r14, eax
test eax, eax
jne 0x14000e543
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e4d9
mov rcx, r14
call fcn.14000a4f4
mov rdi, rax
test rax, rax
jne 0x14000e55c
xor ecx, ecx
call fcn.140008f54
jmp 0x14000e538
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.14000e3d0
test eax, eax
jne 0x14000e58d
mov rcx, rdi
call fcn.140008f54
jmp 0x14000e597
xor ecx, ecx
call fcn.140008f54
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 0x140012e00
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000d4a0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012e8a
cmp byte [rbp - 0x21], r15b
je 0x140012e85
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012ec0
call fcn.1400091a4
test eax, eax
jne 0x140012eac
cmp byte [rbp - 0x21], r15b
je 0x140012ea4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012ec0
cmp byte [rbp - 0x21], r15b
je 0x140012ebd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000ca80
test eax, eax
jne 0x140012f60
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000d4a0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012eff
cmp byte [rbp - 0x21], r15b
je 0x140012f34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012f34
call fcn.1400091a4
test eax, eax
jne 0x140012f20
cmp byte [rbp - 0x21], r15b
je 0x140012f19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012f34
cmp byte [rbp - 0x21], r15b
je 0x140012f31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000ca80
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012f60
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012f63
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012f71
mov rcx, rdi
call fcn.140008f54
cmp byte [rbp + 0x3f], r15b
je 0x140012f80
mov rcx, qword [rbp + 0x27]
call fcn.140008f54
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140014e20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014e48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014e48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbp, rcx
mov rdx, r8
xor ecx, ecx
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
je 0x140001b44
cmp dword [rdi], ebx
je 0x140001b48
mov dword [rdi], ebx
xor eax, eax
jmp 0x140001b87
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140001b44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140001b44
mov r8, rbx
mov rdx, rax
mov rcx, rbp
mov dword [rdi], ebx
call fcn.140003c60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001ba0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x180
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400110b8]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r12, rcx
xor r9d, r9d
lea r8d, [r9 + 0x25]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, 0xa000
mov edx, 1
mov ecx, esi
call fcn.140004484
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140001d4d
lea r8, [0x14000e64c]
mov edx, 0x83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x140001cdc
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x140001cdc
cmp eax, esi
je 0x140001c9f
mov esi, eax
mov dword [rsp + 0x40], eax
movsxd rdi, eax
mov rdx, rdi
mov rcx, rbx
call fcn.1400040f8
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140001cdc
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.140006a50
lea r8, [0x14000e64c]
mov edx, 0x83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140001cdc
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140001b10
mov esi, dword [rsp + 0x40]
jmp 0x140001cdc
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140001cdc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140001cdc
mov esi, 0xa000
mov r8d, esi
mov rdx, rax
mov rcx, rbx
call fcn.140003c60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r13 + 3]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
test rax, rax
je 0x140001d3b
cmp rax, 0xffffffffffffffff
je 0x140001d3b
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140001d4d
mov rcx, rbx
call fcn.140003fb8
mov qword [rsp + 0x48], r13
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140003a90
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140003100
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400110b8]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x28]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000314c
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140003a90
add rsp, 0x60
pop rbx
ret
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140003137
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140003137
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140003a90
add rsp, 0x60
pop rbx
ret