joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004bc40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x101aa6e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x1004bdc8
mov rax, qword [0x101aa6e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x1004bc8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x1004bd15
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1004bc70
mov rcx, rbx
call fcn.1004c8e0
test rax, rax
mov r12, rax
je 0x1004bdfd
mov rax, qword [0x101aa6e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1004ca10
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x101aa6e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1004bde0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1004bd0e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x1004bd70
add dword [0x101aa6e4], 1
cmp edi, 8
jae 0x1004bd43
test dil, 4
jne 0x1004bdb4
test edi, edi
je 0x1004bd38
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x1004bdcf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x1004bd38
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x1004bd5c
jmp 0x1004bd38
add rsi, qword [0x101aa6e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1004bd0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1004cc40
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x1004bd38
xor esi, esi
jmp 0x1004bc97
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x1004bd38
mov rax, qword [0x101aa6e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.1004cc40
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1004cc40
nop
nop dword [rax]

Function at 0x1004c550
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x101aa9c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x101aa9a0]
test rbx, rbx
je 0x1004c5a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1004c59b
test rsi, rsi
je 0x1004c59b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1004c580
lea rcx, [0x101aa9c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1004c8e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x101a35b0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x1004c94d
mov rcx, r8
call fcn.1004c7c0
test eax, eax
je 0x1004c94d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x1004c94d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1004c944
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1004c94f
add rax, 0x28
cmp rax, r9
jne 0x1004c930
xor eax, eax
add rsp, 0x28
ret

Function at 0x1004cc40
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x100013a0]
jmp 0x10001380
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1004cbe0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1004cbe0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x10001390
Function at 0x1409660b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140966237
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 0x1409660e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409660c7
add dl, dl
jne 0x1409660ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14096614e
xor eax, eax
add dl, dl
jne 0x1409660fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140966205
add dl, dl
jne 0x14096610e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14096611b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140966128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140966135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140966142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409660d6
mov eax, 1
add dl, dl
jne 0x14096615e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14096616b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140966153
sub eax, ebx
mov ebx, 1
jne 0x1409661a4
mov ecx, 1
add dl, dl
jne 0x140966186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140966193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14096617b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409660d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409661c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409661cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409661b5
cmp eax, 0x7d00
jae 0x1409661f3
cmp eax, 0x500
jb 0x1409661ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409660d6
cmp eax, 0x7f
ja 0x1409661f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409660d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14096622a
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 0x1409660d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r12
sub rsp, 0x40
mov rbp, rdx
xor r12d, r12d
lea r8, [0x140012428]
mov dword [rdx], r12d
movzx edx, cx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x1400011ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140018ea0]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x3ff
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov ecx, 0x1200
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
mov rdx, rax
xor ecx, ecx
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x1400011fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140018ea0]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x3ff
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov ecx, 0x1200
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
xor eax, eax
jmp 0x14000127b
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
jne 0x14000124b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140018ea0]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x3ff
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov ecx, 0x1200
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
xor eax, eax
jmp 0x140001276
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [rsi + 1]
mov rbx, rax
call fcn.1400032c4
mov r8, rsi
mov rcx, rax
mov rdx, rbx
mov rdi, rax
call fcn.1400032e0
mov dword [rbp], esi
mov rax, rdi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x1400012a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push r13
sub rsp, 0x48
mov r13d, 1
lea r8, [0x140012440]
xor ecx, ecx
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x140001307
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140018ea0]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x3ff
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov ecx, 0x1200
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
xor eax, eax
add rsp, 0x48
pop r13
pop rbx
ret
mov rdx, rax
xor ecx, ecx
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x140001365
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140018ea0]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x3ff
mov qword [rsp + 0x20], rcx
mov ecx, 0x1200
mov r9d, 0x400
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdi, qword [rsp + 0x78]
xor eax, eax
add rsp, 0x48
pop r13
pop rbx
ret
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x68], rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
jne 0x14000138f
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
xor eax, eax
add rsp, 0x48
pop r13
pop rbx
ret
mov rcx, rdi
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14000147f
xor ebx, ebx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], r12
lea ecx, [rbx + 2]
mov dword [rsp + 0x60], ebx
call fcn.140001130
mov r12d, dword [rsp + 0x60]
mov rdi, rax
test r12d, r12d
je 0x140001478
test rax, rax
je 0x140001478
lea r9, [0x14001240c]
mov r8d, r12d
mov rdx, rax
xor ecx, ecx
mov word [rsp + 0x20], r13w
call fcn.140002150
mov r9, rdi
mov r8d, ebp
mov rdx, rsi
xor ecx, ecx
mov word [rsp + 0x20], r12w
call fcn.140002150
lea r9, [0x140012424]
mov r8d, r12d
mov rdx, rdi
xor ecx, ecx
mov word [rsp + 0x20], r13w
call fcn.140002150
mov rcx, rdi
call fcn.1400031d8
lea ecx, [rbx + 0x11]
mov r8d, ebp
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov rdi, rax
test rax, rax
je 0x140001478
lea rdx, [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x60], rbx
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
js 0x140001478
mov rcx, qword [rsp + 0x60]
mov r8, rbp
mov rdx, rsi
call fcn.1400032e0
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov rax, rdi
jmp 0x14000147a
xor eax, eax
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x48
pop r13
pop rbx
ret
Function at 0x140002090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
mov rbp, rdx
mov dword [rdx], 0
movzx edx, cx
lea r8, str.WINDOWS_SYSTEM_CLASS
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x1400020c8
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
mov rdx, rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x1400020f0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
jne 0x14000210a
xor eax, eax
jmp 0x140002135
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [rsi + 1]
mov rbx, rax
call fcn.1400032c4
mov r8, rsi
mov rcx, rax
mov rdx, rbx
mov rdi, rax
call fcn.1400032e0
mov dword [rbp], esi
mov rax, rdi
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret

Function at 0x140002150
Capabilities:
Encode data using xor

Disassembly:
push rdi
xor r10d, r10d
mov rdi, r9
mov r11, rdx
mov r9d, ecx
test r8d, r8d
jle 0x1400021af
mov qword [rsp + 0x10], rbx
movsx ebx, word [rsp + 0x30]
nop dword [rax]
lea eax, [r10 + r9]
inc r11
cdq
idiv ebx
movsxd rax, edx
movzx edx, byte [rax + rdi]
xor dl, byte [r11 - 1]
movzx ecx, dl
and dl, 0xf0
and cl, 0xf
movzx eax, cl
shl al, 4
xor dl, al
lea eax, [r10 + r9]
inc r10d
or dl, cl
xor dl, al
mov byte [r11 - 1], dl
cmp r10d, r8d
jl 0x140002170
mov rbx, qword [rsp + 0x10]
pop rdi
ret

Function at 0x140002b60
Capabilities:
Accept command line arguments

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rsi, rax
mov qword [rdi], rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.14000402c
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140002bbb
mov qword [rax + 8], 0
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140002eb0
mov qword [rbx], rax
jmp 0x140002bbd
xor ebx, ebx
test rbx, rbx
jne 0x140002bcd
mov ecx, 0x8007000e
call fcn.140002e00
int3
lea rdx, [rdi + 0x10]
mov rcx, qword [rbx]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rdi + 8], rax
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x140002c0e
mov rcx, qword [rbx]
test rcx, rcx
je 0x140002bf8
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140002c06
call fcn.1400040d0
mov rcx, rbx
call fcn.1400031d8
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400059ff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400170a0]
jne 0x14000378a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003786
repz ret
ror rcx, 0x10
jmp 0x140005958
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140019790]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140019888]
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 0x1400059dd
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, [0x140019790]
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 0x1400059ff
mov rax, qword [rsp + 0x88]
mov qword [0x140019888], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140019828], rax
mov rax, qword [0x140019888]
mov qword [0x140019700], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140019810], rax
mov dword [0x1400196f0], 0xc0000409
mov dword [0x1400196f4], 1
mov rax, qword [0x1400170a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400170a8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140019788], eax
mov ecx, 1
call fcn.140009848
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140012ab0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140019788], 0
jne 0x140005a86
mov ecx, 1
call fcn.140009848
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 0x140007bfc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140007a6c
Function at 0x14000c838
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 [0x1400170a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140005bd4
xor ebx, ebx
cmp qword [0x14001a720], rbx
mov rdi, rax
jne 0x14000c94b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000ca22
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000ca22
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001a720], 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 [0x14001a728], 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 [0x14001a730], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14001a740], rax
test rax, rax
je 0x14000c942
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14001a738], rax
jmp 0x14000c952
mov rax, qword [0x14001a738]
jmp 0x14000c959
mov rax, qword [0x14001a738]
mov r11, qword [0x14001a740]
cmp rax, rdi
je 0x14000c9c0
cmp r11, rdi
je 0x14000c9c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14001a740]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14000c9c0
test rax, rax
je 0x14000c9c0
call rsi
test rax, rax
je 0x14000c9ba
lea rcx, [rsp + 0x30]
mov r9d, SafeArrayDestroy
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000c9ba
test byte [rsp + 0x40], 1
jne 0x14000c9c0
bts ebp, 0x15
jmp 0x14000ca00
mov rcx, qword [0x14001a728]
cmp rcx, rdi
je 0x14000ca00
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000ca00
call rax
mov rbx, rax
test rax, rax
je 0x14000ca00
mov rcx, qword [0x14001a730]
cmp rcx, rdi
je 0x14000ca00
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000ca00
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001a720]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000ca22
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000ca24
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003770
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x247621380
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 qword [rbp + 0x28], r9
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 0x2476213d3
mov eax, 0xffffffff
jmp 0x2476214fe
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 0x247621410
mov eax, 0xffffffff
jmp 0x2476214fe
mov rax, qword [rbp + 0x28]
mov ecx, eax
mov rax, qword [rbp - 0x10]
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 0x247621446
mov eax, 0xffffffff
jmp 0x2476214fe
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 0x247621481
mov eax, 0xffffffff
jmp 0x2476214fe
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 0x2476214c4
mov eax, 0xffffffff
jmp 0x2476214fe
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
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x247621a00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x247621a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x247627084]
mov rbx, rcx
test esi, esi
jle 0x247621ba0
mov rax, qword [0x247627088]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x247621abb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x247621b45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x247621aa0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x247621bc2
mov rax, qword [0x247627088]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x247627088]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x247621ba7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x247621b3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x247621b50
add dword [0x247627084], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x247627088]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x247621b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x247621ac8
mov rax, qword [0x247627088]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x247621f40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2476270c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2476270a0]
test rbx, rbx
je 0x247621f9c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x247621f93
test eax, eax
jne 0x247621f93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x247621f78
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x2476221b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x2476221c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x2476221d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret