joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c47b0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140182fc0
mov rax, rcx
neg rcx
test rax, 7
je 0x140182fdd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140183038
test al, 7
jne 0x140182fd0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140182ff1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140183062
test dh, dh
je 0x14018305c
shr rdx, 0x10
test dl, dl
je 0x140183056
test dh, dh
je 0x140183050
shr rdx, 0x10
test dl, dl
je 0x14018304a
test dh, dh
je 0x140183044
shr edx, 0x10
test dl, dl
je 0x14018303e
test dh, dh
jne 0x140182ff1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400c47f6
Capabilities:
Query environment variable

Disassembly:
jmp 0x14022ba90
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14022b610
lea rcx, [rsp + 0x20]
call fcn.14022b660
movzx eax, al
test eax, eax
jne 0x14022bad5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14022b640
mov rax, qword [rsp + 0x40]
jmp 0x14022bbcf
lea rcx, [rsp + 0x20]
call fcn.14022b760
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14022b700
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400c4bb1
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400c40df
lea rcx, [rsp + 0x28]
call fcn.1400c50c5
movzx eax, al
test eax, eax
jne 0x14022bb6f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400c66aa
lea rcx, [rsp + 0x20]
call fcn.14022b640
mov rax, qword [rsp + 0x50]
jmp 0x14022bbcf
lea rcx, [rsp + 0x20]
call fcn.14022b760
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400c7744
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400c4aee
lea rcx, [rsp + 0x28]
call fcn.1400c8194
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400c66aa
lea rcx, [rsp + 0x20]
call fcn.14022b640
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400c4d73
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14016f7c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14016f140
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016f7ff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402cb020]
jmp 0x14016f809
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400c4fdf
Capabilities:
Query environment variable

Disassembly:
jmp 0x14022b7e0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14022b610
lea rcx, [rsp + 0x40]
call fcn.14022b790
movzx eax, al
test eax, eax
jne 0x14022b828
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14022b640
mov rax, qword [rsp + 0x70]
jmp 0x14022b9f9
lea rcx, [rsp + 0x40]
call fcn.14022b760
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14022b700
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14022b760
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400c62a9
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14022b8ce
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14022b640
mov rax, qword [rsp + 0x80]
jmp 0x14022b9f9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400c4bb1
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400c497c
lea rcx, [rsp + 0x48]
call fcn.1400c4323
movzx eax, al
test eax, eax
jne 0x14022b935
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400c2e10
lea rcx, [rsp + 0x40]
call fcn.14022b640
mov rax, qword [rsp + 0x88]
jmp 0x14022b9f9
lea rcx, [rsp + 0x48]
call fcn.1400c5525
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14022b760
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400c62a9
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14022b9cb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400c2e10
lea rcx, [rsp + 0x40]
call fcn.14022b640
mov rax, qword [rsp + 0xa0]
jmp 0x14022b9f9
lea rcx, [rsp + 0x48]
call fcn.1400c4927
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400c2e10
lea rcx, [rsp + 0x40]
call fcn.14022b640
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400c4ff8
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14016f6f0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14016f0c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016f731
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402cb020]
jmp 0x14016f737
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400c50ca
Capabilities:
Get geographical location

Disassembly:
jmp 0x14020b4b0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14020a3e0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14020b517
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402cb030]
jmp 0x14020b539
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400c4283
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400c50de
Capabilities:
Terminate process

Disassembly:
jmp 0x14014c750
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 0x1400c54b2
Capabilities:
Print debug messages

Disassembly:
jmp 0x140238b40
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402ad080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140238b66
jmp 0x140238be3
mov rcx, qword [rbp + 0x30]
call fcn.1400c47b0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140238b7f
jmp 0x140238be3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140238b9c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400c3063
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400c36b7
test eax, eax
jne 0x140238be3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400c4acb
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400c5868
Capabilities:
Create process on windows

Disassembly:
jmp 0x14023cae0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400c408a
lea rcx, [rsp + 0xb8]
call fcn.1400c408a
lea rcx, [rsp + 0x88]
call fcn.1400c408a
call fcn.1400c4f58
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400c3d42
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14023cb82
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400c4648
lea rcx, [rsp + 0xb8]
call fcn.1400c4648
lea rcx, [rsp + 0xe8]
call fcn.1400c4648
mov eax, dword [rsp + 0x54]
jmp 0x14023cd28
call fcn.1400c4f58
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400c3d42
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14023cbe2
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400c4648
lea rcx, [rsp + 0xb8]
call fcn.1400c4648
lea rcx, [rsp + 0xe8]
call fcn.1400c4648
mov eax, dword [rsp + 0x5c]
jmp 0x14023cd28
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x14023cc68
call fcn.1400c4f58
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400c3d42
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14023cc56
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400c4648
lea rcx, [rsp + 0xb8]
call fcn.1400c4648
lea rcx, [rsp + 0xe8]
call fcn.1400c4648
mov eax, dword [rsp + 0x64]
jmp 0x14023cd28
lea rcx, [rsp + 0x88]
call fcn.1400c3fae
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400c3fae
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400c3fae
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400c4648
lea rcx, [rsp + 0xb8]
call fcn.1400c4648
lea rcx, [rsp + 0xe8]
call fcn.1400c4648
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret

Function at 0x1400c592b
Capabilities:
Set environment variable

Disassembly:
jmp 0x14022d900
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400c5ca5
Capabilities:
Parse pe header

Disassembly:
jmp 0x14014dca0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14014dcc0
xor al, al
jmp 0x14014dd41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14014dcd3
xor al, al
jmp 0x14014dd41
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 0x14014dcfd
xor al, al
jmp 0x14014dd41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14014dd11
xor al, al
jmp 0x14014dd41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14014dd23
xor al, al
jmp 0x14014dd41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14014dd3f
xor al, al
jmp 0x14014dd41
mov al, 1
add rsp, 0x38
ret
Function at 0x1400c6592
Capabilities:
Terminate process

Disassembly:
jmp 0x140170ab0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140170ade
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400c71e5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400c726c
Capabilities:
Print debug messages

Disassembly:
jmp 0x140200a70
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400c73e3
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14016f830
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14016f180
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016f879
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402cb020]
jmp 0x14016f888
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400c750a
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402459e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400c408a
lea rcx, [rsp + 0x48]
call fcn.1400c408a
call fcn.1400c4f58
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400c3d42
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140245a4f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400c4648
lea rcx, [rsp + 0x78]
call fcn.1400c4648
mov eax, dword [rsp + 0x24]
jmp 0x140245ae0
call fcn.1400c4f58
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400c3d42
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140245a96
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400c4648
lea rcx, [rsp + 0x78]
call fcn.1400c4648
mov eax, dword [rsp + 0x2c]
jmp 0x140245ae0
lea rcx, [rsp + 0x48]
call fcn.1400c3fae
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400c3fae
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400c4648
lea rcx, [rsp + 0x78]
call fcn.1400c4648
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400c77a8
Capabilities:
Create thread

Disassembly:
jmp 0x140183ba0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x90], 0
je 0x140183bcc
mov dword [rsp + 0x30], 1
jmp 0x140183bd4
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140183c1d
lea rax, str.procedure___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x140264498]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0xc8
lea rdx, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
mov ecx, 2
call fcn.1400c2a64
cmp eax, 1
jne 0x140183c1d
int3
cmp dword [rsp + 0x34], 0
jne 0x140183c5f
call fcn.1400c3fe5
mov dword [rax], 0x16
mov qword [rsp + 0x20], 0
mov r9d, 0xc8
lea r8, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
lea rdx, str._beginthreadex
lea rcx, str.procedure___nullptr
call fcn.1400c6bcd
xor eax, eax
jmp 0x140183d5f
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.140183690
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140183490
lea rcx, [rsp + 0x40]
call fcn.140183500
movzx eax, al
test eax, eax
jne 0x140183caf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.1401834e0
mov rax, qword [rsp + 0x50]
jmp 0x140183d5f
lea rcx, [rsp + 0x40]
call fcn.140183840
mov ecx, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], edx
mov r9, rax
lea r8, [0x140183240]
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140183d23
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c39f5
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.1401834e0
mov rax, qword [rsp + 0x58]
jmp 0x140183d5f
cmp qword [rsp + 0xa8], 0
je 0x140183d3c
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.140183800
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.1401834e0
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x1400e4ba0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1402ca0fa]
call fcn.1400c7852
mov dword [rbp + 4], 0
jmp 0x1400e4bcc
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x3e8
jg 0x1400e4bfa
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400e4bf8
xor r9d, r9d
mov r8d, 2
xor edx, edx
movzx ecx, byte [rbp + 4]
call qword [sym.imp.USER32.dll_keybd_event]
jmp 0x1400e4bc4
xor eax, eax
cmp eax, 1
je 0x1400e4c52
mov dword [rbp + 0x24], 0
jmp 0x1400e4c12
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0x3e8
jg 0x1400e4c45
mov ecx, dword [rbp + 0x24]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400e4c43
xor r9d, r9d
mov r8d, 2
xor edx, edx
movzx ecx, byte [rbp + 0x24]
call qword [sym.imp.USER32.dll_keybd_event]
mov eax, dword [rbp + 0x24]
jmp 0x1400e4c52
jmp 0x1400e4c0a
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400e4bfa
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140213160
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c3063
sub rsp, rax
mov rax, qword [0x1402ad080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402b2340]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140213352
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1402132a6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402132a6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14021328b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140213228
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140213312
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140213371
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14021334d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140213371
jmp 0x1402131fe
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c4acb
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140213420
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c3063
sub rsp, rax
mov rax, qword [0x1402ad080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402b2340]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14021362d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140213579
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140213579
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140213559
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1402134e8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402135ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14021364c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140213628
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14021364c
jmp 0x1402134be
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c4acb
add rsp, 0x1498
pop rdi
pop rsi
ret