joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b3d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003b40f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14002a660]
mov qword [rbp - 0x28], rax
lea rax, [0x1413bb858]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x1413bb890]
lea rcx, [rbp - 0x60]
call fcn.140050880
ud2

Function at 0x14003d270
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003d37f
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003d2a8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003d342
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003d361
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003d2fe
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14003d31b
jmp 0x14003d310
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003d316
cmp eax, 0x6d
jne 0x14003d332
mov byte [rsi + 1], 0
jmp 0x14003d326
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14003d328
mov r8d, 0x10
mov rcx, rbx
call fcn.1400506f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003d2b5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400506f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003d2b5
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140051b70
ud2

Function at 0x140046b0c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140046908
Function at 0x140049790
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
cmp dword [0x14009b400], ebx
mov dword [rsp + 0x50], ebx
jne 0x14004980e
lea rax, [r11 + 0x10]
mov r9d, 0x20000010
mov qword [r11 - 0x18], rax
lea r8, str.CacheDisable
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, 0xfffffffc
jne 0x14004980e
cmp eax, 1
je 0x14004980e
mov eax, dword [0x14009a71c]
cmp dword [rsp + 0x50], ebx
mov dword [0x14009b400], 1
cmovne eax, ebx
mov dword [0x14009a71c], eax
jmp 0x140049814
mov eax, dword [0x14009a71c]
add rsp, 0x40
pop rbx
ret

Function at 0x14004a6e0
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]

Function at 0x14004ab40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004ab8c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004ab84
cmp dword [rcx + 0x3c], edx
jl 0x14004ab84
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14004ab84
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14004ab8c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x141302370
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1413024f7
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 0x1413023a1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141302387
add dl, dl
jne 0x1413023ae
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14130240e
xor eax, eax
add dl, dl
jne 0x1413023bd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413024c5
add dl, dl
jne 0x1413023ce
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413023db
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413023e8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413023f5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141302402
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141302396
mov eax, 1
add dl, dl
jne 0x14130241e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14130242b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141302413
sub eax, ebx
mov ebx, 1
jne 0x141302464
mov ecx, 1
add dl, dl
jne 0x141302446
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141302453
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14130243b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141302396
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141302480
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14130248d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141302475
cmp eax, 0x7d00
jae 0x1413024b3
cmp eax, 0x500
jb 0x1413024ae
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141302396
cmp eax, 0x7f
ja 0x1413024b6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141302396
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1413024ea
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 0x141302396
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004ea0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140004ec8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140004eee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004ef0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004f49
test ecx, ecx
jle 0x140004f29
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004f49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004f49
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140004f70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004fa1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x140004fbf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004fdb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004fdd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005019
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400050ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140005054
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000508e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400050ae
cmp rbx, rax
ja 0x140005060
test rbx, rbx
je 0x1400050ae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400054f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005514
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140005557
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140005557
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, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140005688
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000559a
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 0x1400055c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14000568d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000563a
sub eax, 1
je 0x14000563a
cmp eax, 2
jne 0x140005688
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14000568d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14000566b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140005688
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000568d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140005a40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005b09
cmp byte [rcx + 0x71], 0
je 0x140005b09
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005afc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005ab8
sub eax, 1
je 0x140005abc
cmp eax, 2
jne 0x140005afc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x140005aea
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140005afc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x140006eec
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400070a1
mov eax, 0xff
call fcn.140002680
xor byte [rsi], al
jne 0x140007091
pop rsi
pop rbx
ret

Function at 0x140017a40
Capabilities:
Hash data with md5

Disassembly:
lea rax, [rcx + 0x18]
mov qword [rcx + 0x10], 0
mov dword [rcx + 0x60], 0x40
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov qword [rcx + 0x58], rax
mov dword [rcx + 0xc], 0x10325476
mov byte [rcx + 0x74], 0
ret

Function at 0x140022750
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x1400227c6
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x70], rbp
mov ebx, r8d
mov rdi, rdx
xor ebp, ebp
mov rsi, rcx
nop word [rax + rax]
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x80]
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400227c8
mov eax, dword [rsp + 0x80]
add rdi, rax
sub ebx, eax
jne 0x140022780
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
repz ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x14003fa68]
lea rdx, [0x14003e348]
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x20], eax
call fcn.140009250
lea rdx, [0x14004b658]
lea rcx, [rsp + 0x30]
call fcn.14002cb80
int3

Function at 0x14002c748
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14002c5b8
Function at 0x1400346ef
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14004ce80]
jne 0x14002d98a
rol rcx, 0x10
test cx, 0xffff
jne 0x14002d986
repz ret
ror rcx, 0x10
jmp 0x140034648
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140050180]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140050278]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400346cd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140050180]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400346ef
mov rax, qword [rsp + 0x88]
mov qword [0x140050278], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140050218], rax
mov rax, qword [0x140050278]
mov qword [0x1400500f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140050200], rax
mov dword [0x1400500e0], 0xc0000409
mov dword [0x1400500e4], 1
mov rax, qword [0x14004ce80]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14004ce88]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140050178], eax
mov ecx, 1
call fcn.140036d20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400436c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140050178], 0
jne 0x140034776
mov ecx, 1
call fcn.140036d20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140036ea8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14004ce80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14002f3e0
xor ebx, ebx
cmp qword [0x140050798], rbx
mov rdi, rax
jne 0x140036fbb
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140037092
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140037092
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140050798], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400507a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400507a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400507b8], rax
test rax, rax
je 0x140036fb2
lea rdx, [0x140043bf0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400507b0], rax
jmp 0x140036fc2
mov rax, qword [0x1400507b0]
jmp 0x140036fc9
mov rax, qword [0x1400507b0]
mov r11, qword [0x1400507b8]
cmp rax, rdi
je 0x140037030
cmp r11, rdi
je 0x140037030
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400507b8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140037030
test rax, rax
je 0x140037030
call rsi
test rax, rax
je 0x14003702a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14003702a
test byte [rsp + 0x40], 1
jne 0x140037030
bts ebp, 0x15
jmp 0x140037070
mov rcx, qword [0x1400507a0]
cmp rcx, rdi
je 0x140037070
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140037070
call rax
mov rbx, rax
test rax, rax
je 0x140037070
mov rcx, qword [0x1400507a8]
cmp rcx, rdi
je 0x140037070
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140037070
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140050798]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140037092
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140037094
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002d970
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180005ab0
Capabilities:
Allocate or change rwx memory
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x40
cmp dword [rsp + 0x70], 0
mov rsi, r8
mov ebx, r9d
mov rdi, rcx
mov r14d, edx
je 0x180005af2
mov edx, ebx
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180005b5b
cmp rdi, 0xffffffffffffffff
je 0x180005b5b
mov rdx, r14
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180005b5b
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180005b5b
cmp ebx, dword [rsp + 0x34]
jne 0x180005b5b
cmp dword [rsp + 0x70], 0
jne 0x180005b43
mov eax, 1
jmp 0x180005b5d
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x180005b5d
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x1800064f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x38
movabs rax, 0xb5026f5aa96619e9
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
mov r9, rcx
mov eax, dword [rcx]
cmp eax, 0x138
jl 0x1800065fd
cmp eax, 0x139
jne 0x180006528
call fcn.180006680
lea r8, [rcx + 8]
mov r10d, 0x9c
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 + 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 8]
mov rax, rdx
shr rdx, 1
and eax, 1
mov rcx, qword [rsp + rax*8 + 0x20]
xor rcx, rdx
xor rcx, qword [r8 + 0x4d8]
mov qword [r8 - 8], rcx
sub r10, 1
jne 0x180006540
lea r8, [r9 + 0x4e8]
mov r10d, 0x9b
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 + 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 8]
mov rax, rdx
shr rdx, 1
and eax, 1
mov rcx, qword [rsp + rax*8 + 0x20]
xor rcx, rdx
xor rcx, qword [r8 - 0x4e8]
mov qword [r8 - 8], rcx
sub r10, 1
jne 0x180006590
mov edx, dword [r9 + 0x9c0]
xor edx, dword [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 + 0x9c0]
mov rax, rdx
shr rdx, 1
and eax, 1
mov rcx, qword [rsp + rax*8 + 0x20]
xor rcx, rdx
xor rcx, qword [r9 + 0x4e0]
mov qword [r9 + 0x9c0], rcx
mov dword [r9], r10d
movsxd rcx, dword [r9]
mov rdx, qword [r9 + rcx*8 + 8]
lea eax, [rcx + 1]
mov dword [r9], eax
movabs rcx, 0x555555555
mov rax, rdx
shr rax, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 0x38
ret

Function at 0x180006680
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
movabs r10, 0x5851f42d4c957f2d
mov qword [rsp + 0x10], 0x1571
mov qword [rcx + 8], 0x1571
mov dword [rcx], 1
nop word [rax + rax]
movsxd r8, dword [rcx]
lea eax, [r8 - 1]
movsxd rdx, eax
mov rax, qword [rcx + rdx*8 + 8]
mov rdx, rax
shr rdx, 0x3e
xor rdx, rax
imul rdx, r10
add rdx, r8
mov qword [rcx + r8*8 + 8], rdx
inc dword [rcx]
cmp dword [rcx], 0x138
jl 0x1800066b0
ret
Function at 0x1800066e0
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x20]
mov rbx, rcx
mov byte [rax + rcx + 0x24], 0x80
inc dword [rcx + 0x20]
mov ecx, dword [rcx + 0x20]
cmp ecx, 0x38
jbe 0x18000671d
mov eax, ecx
mov r8d, 0x40
sub r8d, ecx
xor edx, edx
lea rcx, [rbx + 0x24]
add rcx, rax
call fcn.180049160
mov rcx, rbx
call fcn.1800067a0
mov ecx, dword [rbx + 0x20]
cmp ecx, 0x38
jae 0x18000673e
mov eax, ecx
mov r8d, 0x38
sub r8d, ecx
xor edx, edx
lea rcx, [rbx + 0x24]
add rcx, rax
call fcn.180049160
movzx eax, byte [rbx + 0x1f]
mov rcx, rbx
mov byte [rbx + 0x5c], al
movzx eax, byte [rbx + 0x1e]
mov byte [rbx + 0x5d], al
mov rax, qword [rbx + 0x18]
shr rax, 0x28
mov byte [rbx + 0x5e], al
mov rax, qword [rbx + 0x18]
shr rax, 0x20
mov byte [rbx + 0x5f], al
mov eax, dword [rbx + 0x18]
shr rax, 0x18
mov byte [rbx + 0x60], al
mov eax, dword [rbx + 0x18]
shr rax, 0x10
mov byte [rbx + 0x61], al
mov eax, dword [rbx + 0x18]
shr rax, 8
mov byte [rbx + 0x62], al
movzx eax, byte [rbx + 0x18]
mov byte [rbx + 0x63], al
add rsp, 0x20
pop rbx
jmp fcn.1800067a0