joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d7d6840
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d6850
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d6860
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d68a1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d6898
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d68a3
add rax, 0x28
cmp rax, r9
jne 0x6d7d6884
xor eax, eax
ret

Function at 0x6d7d6940
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f31f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d69ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d69ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d69ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d69a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d69af
add rax, 0x28
cmp rax, r9
jne 0x6d7d6990
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d6ab0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f31f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d6ad0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d6ac8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d6b2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d6b24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d6b34
add rax, 0x28
cmp rax, r9
jne 0x6d7d6b10
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d6b50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f31f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d6bbe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d6bbe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d6bbe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d6bbe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d6bb5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d6bc5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d6ba0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d6bd8
jmp 0x6d7d6bbe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d6be6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d6bbe
test r9d, r9d
jg 0x6d7d6bd0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d6f20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140080290
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14008029d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400802ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140080295
lea eax, [rcx + 1]
jmp 0x1400802bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400802ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400802b4
sub eax, 3
jb 0x1400802ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14008033d
sar eax, 1
movsxd rbp, eax
jb 0x140080324
jmp 0x1400802fc
add ebx, ebx
jne 0x1400802fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140080324
inc ecx
add ebx, ebx
jne 0x14008030a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140080324
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14008031d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14008030c
add ecx, 2
jmp 0x140080329
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140080252
jmp 0x14008029d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x51000
mov dl, 0x14
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14008038d
cmp rsi, rcx
jae 0x140080395
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140080374
cmp al, 0x8f
ja 0x140080374
cmp byte [rsi - 2], 0xf
je 0x14008037a
sub al, 0xe8
cmp al, 1
ja 0x14008035e
cmp rsi, rcx
jae 0x140080395
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140080364
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140080395
lodsb al, byte [rsi]
jmp 0x140080374
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x7d000]
mov eax, dword [rdi]
or eax, eax
je 0x1400803f2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x80000]
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 0x1400803a2
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 0x1400803ec
mov qword [rbx], rax
add rbx, 8
jmp 0x1400803c2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14008042c
cmp al, 0xef
ja 0x14008041e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400803fe
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14008040d
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 + 0x227]
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140080480
sub rsp, 0xffffffffffffff80
jmp 0x1400289bc
Function at 0x140001260
Capabilities:
Acquire debug privileges

Disassembly:
push rdi
sub rsp, 0xb0
lea rdi, [rsp + 0x30]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400e9028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea rcx, [0x1400f70ac]
call fcn.140008850
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14000baf0
mov dword [rsp + 0x38], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400012d6
xor al, al
jmp 0x140001387
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x3c]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x140001309
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140001387
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x44], 2
lea rax, [rsp + 0x84]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140001358
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140001387
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140001374
mov dword [rsp + 0xa0], 1
jmp 0x14000137f
mov dword [rsp + 0xa0], 0
movzx eax, byte [rsp + 0xa0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400ba6d0]
call fcn.140008620
mov rax, rdi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400089e0
add rsp, 0xb0
pop rdi
ret

Function at 0x140001810
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
lea rcx, [0x1400f70aa]
call fcn.140008850
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140001a20
nop
lea rax, [0x140001780]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
add rax, 8
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
call fcn.140001500
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call fcn.140026d50
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x1400018b7
lea rcx, [rsp + 0x38]
call fcn.140001530
jmp 0x1400018ce
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.140004c40
nop
lea rcx, [rsp + 0x38]
call fcn.1400014a0
mov rcx, rsp
lea rdx, [0x1400ba790]
call fcn.140008620
add rsp, 0x60
pop rdi
ret
Function at 0x140001cb0
Capabilities:
Accept command line arguments

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rcx, [0x1400f7159]
call fcn.140008850
lea rax, str._proc
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, qword [rsp + 0x20]
mov rcx, rax
call fcn.140001d70
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001d60
mov rcx, qword [rsp + 0x20]
call fcn.140026f60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ac0
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140001d60
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001d65
mov eax, 1
add rsp, 0x40
pop rdi
ret

Function at 0x1400261d0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140025cb0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14002620f
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 [0x1400ba4a8]
jmp 0x140026219
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400824e0
Capabilities:
Get geographical location

Disassembly:
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.140081790
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140082547
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 [0x1400ba4b0]
jmp 0x140082569
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140082a70
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 0x140088420
Capabilities:
Print debug messages

Disassembly:
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 0x1400916b0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140091540
lea rcx, [rsp + 0x40]
call fcn.140091670
movzx eax, al
test eax, eax
jne 0x1400916f8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140091560
mov rax, qword [rsp + 0x70]
jmp 0x1400918c9
lea rcx, [rsp + 0x40]
call fcn.140091650
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140091600
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.140091650
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.140091410
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14009179e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140091560
mov rax, qword [rsp + 0x80]
jmp 0x1400918c9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140031bf0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000ee60
lea rcx, [rsp + 0x48]
call fcn.14000eee0
movzx eax, al
test eax, eax
jne 0x140091805
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14000eea0
lea rcx, [rsp + 0x40]
call fcn.140091560
mov rax, qword [rsp + 0x88]
jmp 0x1400918c9
lea rcx, [rsp + 0x48]
call fcn.14000efd0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140091650
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.140091410
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14009189b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14000eea0
lea rcx, [rsp + 0x40]
call fcn.140091560
mov rax, qword [rsp + 0xa0]
jmp 0x1400918c9
lea rcx, [rsp + 0x48]
call fcn.140035760
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14000eea0
lea rcx, [rsp + 0x40]
call fcn.140091560
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400a3f60
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.1400b8150
sub rsp, rax
mov rax, qword [0x1400e9028]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1400ebb10]
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 0x1400a4152
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 0x1400a40a6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400a40a6
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 0x1400a408b
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 0x1400a4028
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 0x1400a4112
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 0x1400a4171
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 0x1400a414d
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 0x1400a4171
jmp 0x1400a3ffe
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.1400089e0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400a4190
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.1400b8150
sub rsp, rax
mov rax, qword [0x1400e9028]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1400ebb10]
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 0x1400a439d
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 0x1400a42e9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400a42e9
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 0x1400a42c9
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 0x1400a4258
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 0x1400a435d
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 0x1400a43bc
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 0x1400a4398
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 0x1400a43bc
jmp 0x1400a422e
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.1400089e0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140003100
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140101020]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140103ca0]
mov r9d, 4
movsxd rax, edx
mov r8d, r9d
imul rbx, rax, 0x171f0
lea rax, [rsp + 0x30]
mov rcx, rdi
add rbx, qword [0x140103c10]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r9d, 4
mov qword [rsp + 0x20], 0
lea r8, [0x140103cf4]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004cfa0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400034d0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140101020]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [0x140103d70], 0
je 0x140003737
cmp byte [0x140103d98], 0
je 0x140003514
mov edx, dword [0x140103d54]
lea r8, [0x140101c4b]
call fcn.140002520
cmp byte [0x140103d98], 0
jne 0x140003526
mov edx, dword [0x140103d54]
lea r8, [0x140103d83]
call fcn.140002520
cmp byte [0x140103d66], 0
je 0x14000353a
mov edx, dword [0x140103d54]
call fcn.140002b00
cmp byte [0x140103d72], 0
je 0x14000354e
mov edx, dword [0x140103d54]
call fcn.140002bd0
cmp byte [0x140103d91], 0
je 0x140003569
mov edx, dword [0x140103d54]
call fcn.140002ca0
mov byte [0x140103d91], 0
cmp byte [0x140103d71], 0
je 0x14000357d
mov edx, dword [0x140103d54]
call fcn.140002ca0
cmp byte [0x140103d9b], 0
je 0x14000367b
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], r14
xor r14d, r14d
mov qword [rsp + 0x50], rbx
mov esi, r14d
mov qword [rsp + 0x68], rdi
lea ebp, [r14 + 0x50]
nop dword [rax]
mov rdx, qword [0x140103c30]
lea r8, [0x140103d14]
mov rcx, qword [0x140103ca0]
add rdx, rsi
mov r9d, 4
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [0x140103d14], 1
jl 0x140003651
mov rbx, qword [0x140103c30]
lea rax, [rsp + 0x30]
mov rdi, qword [0x140103ca0]
mov r9d, 4
add rbx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov r8d, r9d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r9d, 4
mov qword [rsp + 0x20], r14
lea r8, [0x140101c68]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
add rsi, 0x4f8
sub rbp, 1
jne 0x1400035b0
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
cmp byte [0x140103d67], 0
je 0x140003696
mov edx, dword [0x140103d54]
call fcn.140002f30
mov byte [0x140103d67], 0
cmp byte [0x140103c5d], 0
je 0x1400036ab
lea rdx, [0x140101c4b]
call fcn.140002e50
cmp byte [0x140103d9d], 0
je 0x1400036c9
lea rdx, [0x140101c4b]
call fcn.1400031b0
cmp byte [0x140103d9d], 0
jne 0x1400036d5
lea rdx, [0x140103d83]
call fcn.1400031b0
cmp byte [0x140103d63], 0
je 0x1400036e9
mov edx, dword [0x140103d54]
call fcn.140003100
cmp byte [0x140103d85], 0
je 0x140003704
mov edx, dword [0x140103d54]
call fcn.140003310
mov byte [0x140103d85], 0
cmp byte [0x140103d92], 0
je 0x14000372e
mov ecx, dword [0x140103d58]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14000372e
inc dword [0x140103d8c]
mov edx, dword [0x140103d54]
call fcn.140003310
cmp byte [0x140103d70], 0
jne 0x140003767
cmp byte [0x140103d98], 0
je 0x140003752
mov edx, dword [0x140103d54]
lea r8, [0x140103d83]
call fcn.140002520
cmp byte [0x140103d9d], 0
je 0x140003767
lea rdx, [0x140103d83]
call fcn.1400031b0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004cfa0
add rsp, 0x48
ret