joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a3a90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400a3bb4
cmp r8d, 0xff
jne 0x1400a3af1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400a3adb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xc8500]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400800f0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400800f0
cmp r8d, 0xfb
jne 0x1400a3b03
lea r9, str.WILL
jmp 0x1400a3b41
cmp r8d, 0xfc
jne 0x1400a3b15
lea r9, str.WONT
jmp 0x1400a3b41
cmp r8d, 0xfd
jne 0x1400a3b27
lea r9, [0x1400c8f24]
jmp 0x1400a3b41
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400a3b9d
cmp r10d, 0x27
jg 0x1400a3b74
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xc8b20]
test r8, r8
jne 0x1400a3b84
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400800f0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400a3b5b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400800f0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400800f0
add rsp, 0x38
ret

Function at 0x1400a3f00
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400a3f5f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14007ff70
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400a3a90
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a4110
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400a42b8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400a4175
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400a4175
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a4175
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400a41ac
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400a4202
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a4202
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a4202
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a4202
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a4202
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400a3bc0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400a4264
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14007ff70
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400a3f90
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400a42b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14007ff70
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400a5a20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400e2080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400a5ab5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400a5b16
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14007ff70
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b8b30
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400a5bd1
sub ecx, 1
je 0x1400a5c44
sub ecx, 1
je 0x1400a5b80
cmp ecx, 1
je 0x1400a5b63
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400cc7e4]
call fcn.14007ff70
jmp 0x1400a5c44
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400a5750
test eax, eax
je 0x1400a5c44
jmp 0x1400a5aea
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400a5c44
sub rax, rsi
cmp rax, rbp
jae 0x1400a5c44
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400800f0
jmp 0x1400a5c44
cmp r8d, 4
jle 0x1400a5c44
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400a5c44
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14007fe90
mov esi, eax
test eax, eax
je 0x1400a5c23
mov edx, 5
mov rcx, rbx
call fcn.1400a6710
mov eax, esi
jmp 0x1400a5aea
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14008e970
mov rcx, r14
call fcn.14008ec50
test eax, eax
je 0x1400a5ae8
mov edx, 5
mov rcx, rbx
call fcn.1400a6710
mov eax, Ordinal_46
jmp 0x1400a5aea
Function at 0x1400b89e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400b8a22
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400b8a69
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400b8ac2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400b8a80
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b8b03
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400cc0d2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400cc0d3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b8ad0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400b9a50
Capabilities:
Parse pe header

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

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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x80
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov esi, 7
mov qword [r11 - 0x20], rsi
xor edi, edi
mov qword [r11 - 0x28], rdi
mov word [rsp + 0x50], di
lea r8, [r11 - 0x38]
lea rdx, str.RedirectedRegistryRoot
call fcn.140002e94
test eax, eax
jns 0x140003353
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionDiagnosticsDiagTrack
lea rcx, [rsp + 0x50]
call fcn.140003a60
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rcx, str.DiagtrackRegistryRoot
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x1400033a3
mov rcx, qword [rsp + 0x88]
mov edx, 0x1643
call fcn.1400023bc
mov ebx, eax
cmp qword [rsp + 0x68], 8
jb 0x14000339c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
jmp 0x14000348e
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
lea r8, [rsp + 0x30]
lea rdx, str.RedirectedStorageRoot
call fcn.140002e94
test eax, eax
jns 0x1400033d8
lea rdx, str._ProgramData_MicrosoftDiagnosis
lea rcx, [rsp + 0x30]
call fcn.140003a60
lea rcx, [rsp + 0x30]
call fcn.140002718
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rcx, str.DiagtrackStorageRoot
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x140003451
mov rcx, qword [rsp + 0x88]
mov edx, 0x1650
call fcn.1400023bc
mov ebx, eax
cmp qword [rsp + 0x48], 8
jb 0x14000342b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
cmp qword [rsp + 0x68], 8
jb 0x14000344d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
jmp 0x14000348e
cmp qword [rsp + 0x48], 8
jb 0x140003464
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
cmp qword [rsp + 0x68], 8
jb 0x140003486
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
xor eax, eax
jmp 0x14000348e
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140004bb0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000362c
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, rdx
xor r12d, r12d
mov esi, r12d
lea ebx, [r12 + 1]
movsxd r14, ecx
cmp rbx, r14
jge 0x1400037a7
lea r13, [0x140007be8]
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r12
mov word [rbp - 0x28], r12w
mov rdx, qword [r15 + rbx*8]
lea rcx, [rbp - 0x28]
call fcn.140003a60
nop
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea rdx, str._newdatabase
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14000371c
call fcn.1400032f0
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r12
lea rdx, [rbp - 0x40]
call fcn.140002c20
test eax, eax
js 0x1400036ec
lea rdx, str.DiagTrackDbVersion
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov qword [rbp - 0x40], r13
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14000376f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
test eax, eax
je 0x14000370d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete al
test al, al
je 0x14000378d
mov qword [rbp - 0x38], r12
jmp 0x14000376f
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea rdx, str._UploadEtlFilesOnly
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140003744
lea rsi, str.UploadEtlFilesOnly
jmp 0x14000376f
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea rdx, str._SysprepGeneralize
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rcx, str.SysprepGeneralize
test eax, eax
cmovne rcx, rsi
mov rsi, rcx
cmp qword [rbp - 0x10], 8
jb 0x140003780
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
inc rbx
cmp rbx, r14
jge 0x1400037a7
jmp 0x140003682
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140002474
nop
xor r9d, r9d
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.diagtrack.dll_RunDll32Main]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140004bb0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400049a0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor r14d, r14d
xor eax, eax
lock cmpxchg qword [0x14000a938], rbx
je 0x1400049f2
cmp rax, rbx
jne 0x1400049e5
mov ebx, 1
mov r14d, ebx
jmp 0x1400049f7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400049c9
mov ebx, 1
mov eax, dword [0x14000a940]
cmp eax, ebx
jne 0x140004a0d
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140004a76
mov eax, dword [0x14000a940]
test eax, eax
jne 0x140004a70
mov dword [0x14000a940], ebx
lea r12, [0x1400062e0]
lea rdi, [0x1400062c8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r12
jae 0x140004a62
test eax, eax
jne 0x140004a66
mov rsi, qword [rdi]
test rsi, rsi
je 0x140004a57
mov rcx, rsi
mov rax, qword [0x140006260]
call rax
call rsi
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140004a34
test eax, eax
je 0x140004a76
mov eax, 0xff
jmp 0x140004b57
mov dword [0x14000a1e0], ebx
mov eax, dword [0x14000a940]
cmp eax, ebx
jne 0x140004a9d
lea rdx, [0x1400062c0]
lea rcx, [0x140006270]
call sub.msvcrt.dll__initterm
mov dword [0x14000a940], 2
test r14d, r14d
jne 0x140004aab
xor eax, eax
xchg qword [0x14000a938], rax
cmp qword [0x14000a958], 0
je 0x140004ae3
lea rcx, [0x14000a958]
call fcn.1400050a0
test eax, eax
je 0x140004ae3
mov rbx, qword [0x14000a958]
mov rcx, rbx
mov rax, qword [0x140006260]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov r8, qword [0x14000a1f8]
mov rdx, qword [0x14000a1f0]
mov ecx, dword [0x14000a1e8]
call fcn.14000362c
mov dword [0x14000a1dc], eax
cmp dword [0x14000a200], 0
jne 0x140004b13
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000a1e0], 0
jne 0x140004b28
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000a1dc]
jmp 0x140004b57
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
sub rsp, 0x28
call fcn.1400a2000
add rsp, 0x28
jmp 0x1400049a0

Function at 0x140004f9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004fe8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140004fe0
cmp dword [rcx + 0x3c], edx
jl 0x140004fe0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140004fe0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140004fe8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400110dc
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001b9c0
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, [0x1400330f4]
call fcn.140011848
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001ba17
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 0x14001bb23
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 0x14001babc
cmp qword [rbp + 0x28], 0
jle 0x14001babc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001ba5c
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.1400117cb
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]
cmp qword [rbp + 0x130], 0
jle 0x14001bb12
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001bb12
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 0x140011492
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e5c0
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 0x1400115a0
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x14001bba0
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002c018]
xor rax, rbp
mov qword [rbp + 0x238], rax
lea rcx, [0x1400330f6]
call fcn.140011848
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rbp + 4], 0x78
xor eax, eax
cmp eax, 1
je 0x14001bcbc
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp + 0x24], 8
jmp 0x14001bc19
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xbe
jg 0x14001bcb7
mov ecx, dword [rbp + 0x24]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
cmp eax, 0xffff8001
jne 0x14001bcb2
mov ecx, dword [rbp + 0x24]
call fcn.14001104b
movzx eax, al
test eax, eax
jne 0x14001bcb2
mov edx, 0x118
lea rcx, [rbp + 0x50]
call fcn.140011767
mov edx, 1
lea rcx, [rbp + 0x50]
call fcn.140011825
nop
mov r9d, 0x40
mov r8d, 8
lea rdx, str.dat.txt
lea rcx, [rbp + 0x50]
call fcn.14001190b
lea rcx, [rbp + 0x50]
call fcn.1400114d3
movzx eax, al
test eax, eax
je 0x14001bca9
lea rax, [rbp + 0x60]
movzx edx, byte [rbp + 0x24]
mov rcx, rax
call fcn.140011640
lea rcx, [rbp + 0x50]
call fcn.14001114f
nop
lea rcx, [rbp + 0x50]
call fcn.140011703
jmp 0x14001bc11
jmp 0x14001bbf2
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140026770]
call fcn.1400116db
mov eax, edi
mov rcx, qword [rbp + 0x238]
xor rcx, rbp
call fcn.1400113ed
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret

Function at 0x1400115be
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001f0f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001f110
xor al, al
jmp 0x14001f191
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001f123
xor al, al
jmp 0x14001f191
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 0x14001f14d
xor al, al
jmp 0x14001f191
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001f161
xor al, al
jmp 0x14001f191
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001f173
xor al, al
jmp 0x14001f191
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001f18f
xor al, al
jmp 0x14001f191
mov al, 1
add rsp, 0x38
ret