joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e3b
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov ecx, 0x800
call sym.malloc
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov r8d, 0x800
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x20], rax
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.vsprintf
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strlen
mov rdx, qword [rbp - 0x10]
add rax, rdx
mov byte [rax], 0xa
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strlen
mov ecx, eax
mov eax, dword [rbp + 0x10]
cdqe
mov rdx, qword [rbp - 0x10]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
mov eax, dword [rbp - 0x14]
add rsp, 0x40
pop rbp
ret

Function at 0x401f48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.C:Python27python.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x401f71
lea rax, [0x0040bbb6]
jmp 0x401fdb
lea rax, str.C:Python38python.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x401f92
lea rax, [0x0040bbb6]
jmp 0x401fdb
lea rax, str.C:Perl_binperl.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x401fb3
lea rax, [0x0040bbb6]
jmp 0x401fdb
lea rax, str.C:WindowsSystem32_telnetd.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x401fd4
lea rax, [0x0040bbb6]
jmp 0x401fdb
lea rax, str.Unknown_Port
add rsp, 0x20
pop rbp
ret
Function at 0x402365
Capabilities:
Connect socket
Convert ip address from string
Get socket status

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x200], ecx
mov qword [rbp + 0x208], rdx
mov dword [rbp + 0x210], r8d
mov dword [rbp + 0x218], r9d
mov word [rbp + 0x1d0], 2
mov eax, dword [rbp + 0x210]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x1d2], ax
lea rax, [rbp + 0x1d0]
lea rdx, [rax + 4]
mov rax, qword [rbp + 0x208]
mov r8, rdx
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_inet_pton]
call rax
lea rax, [rbp + 0x1d0]
add rax, 8
mov r8d, 8
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [rbp + 0x200]
cdqe
lea rdx, [rbp + 0x1d0]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov dword [rbp + 0x1e8], eax
cmp dword [rbp + 0x1e8], 0
jns 0x402542
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
cmp eax, 0x70
jne 0x40253b
mov eax, dword [rbp + 0x218]
mov dword [rbp - 0x48], eax
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x40], 0
mov dword [rbp + 0x1ec], 0
jmp 0x402482
mov eax, dword [rbp + 0x1ec]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x40248d
add dword [rbp + 0x1ec], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jb 0x402463
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jne 0x4024bd
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x4024bd
mov eax, dword [rbp + 0x200]
movsxd rdx, eax
mov eax, dword [rbp + 0x1ec]
mov qword [rbp + rax*8 - 0x38], rdx
mov eax, dword [rbp - 0x40]
add eax, 1
mov dword [rbp - 0x40], eax
mov eax, dword [rbp + 0x200]
add eax, 1
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_select]
call rax
test eax, eax
jle 0x402534
mov dword [rbp - 0x4c], 4
mov eax, dword [rbp + 0x200]
cdqe
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x4c]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0x1007
mov edx, pe_overlay
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_getsockopt]
call rax
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x402542
mov eax, 0
jmp 0x402547
mov eax, 0
jmp 0x402547
mov eax, 0
jmp 0x402547
mov eax, 1
add rsp, 0x270
pop rbp
ret
Function at 0x402550
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
sub rsp, 0x230
lea rbp, [rsp + 0x80]
call sym.getIPAddress
lea rax, [rbp - 0x60]
mov r8d, 0x200
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [0x00410040]
test eax, eax
je 0x40259d
mov eax, dword [0x00410040]
mov ecx, eax
call sym.close
mov dword [0x00410040], 0
mov eax, dword [0x0040a8f8]
test eax, eax
jne 0x4025b3
mov dword [0x0040a8f8], 0
jmp 0x4025c2
mov eax, dword [0x0040a8f8]
add eax, 1
mov dword [0x0040a8f8], eax
mov eax, dword [0x0040a8f8]
cdqe
lea rdx, [rax*8]
lea rax, [0x0040a8f0]
mov rdx, qword [rdx + rax]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strcpy
mov dword [rbp + 0x1ac], 0x1b46
lea rax, [rbp - 0x60]
mov edx, 0x3a
mov rcx, rax
call sym.strchr
test rax, rax
je 0x40266d
lea rax, [rbp - 0x60]
mov edx, 0x3a
mov rcx, rax
call sym.strchr
add rax, 1
mov rcx, rax
call sym.atoi
mov dword [rbp + 0x1ac], eax
lea rax, [rbp - 0x60]
mov edx, 0x3a
mov rcx, rax
call sym.strchr
mov byte [rax], 0
mov eax, dword [0x0040a8f8]
cdqe
lea rdx, [rax*8]
lea rax, [0x0040a8f0]
mov rax, qword [rdx + rax]
mov rdx, rax
lea rax, str.IP_address:__s_n
mov rcx, rax
call sym.printf
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [0x00410040], eax
mov eax, dword [0x00410040]
mov ecx, dword [rbp + 0x1ac]
lea rdx, [rbp - 0x60]
mov r9d, 0x1e
mov r8d, ecx
mov ecx, eax
call sym.connectTimeout
test eax, eax
jne 0x4026b7
mov eax, 1
jmp 0x4026bc
mov eax, 0
add rsp, 0x230
pop rbp
ret

Function at 0x4026c5
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
lea rax, [rbp - 0x60]
mov edx, 0x50
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostname]
call rax
cmp eax, 0xffffffff
jne 0x4026f1
mov eax, 0
jmp 0x402731
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x402713
mov eax, 0
jmp 0x402731
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x64]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
add rsp, 0x90
pop rbp
ret
Function at 0x402f40
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 dword [rax]

Function at 0x402fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004140f4]
test esi, esi
mov rbx, rcx
jle 0x4030e0
mov rax, qword [0x004140f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x402ffb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x403085
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x402fe0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x403102
mov rax, qword [0x004140f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004140f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4030e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40307e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x403090
add dword [0x004140f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x004140f8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40307e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x403008
mov rax, qword [0x004140f8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4036a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x00414160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00414140]
test rbx, rbx
je 0x4036fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x4036f3
test eax, eax
jne 0x4036f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4036d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403910
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x403928
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x403930
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x403940
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x40398d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x403984
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40398f
add rax, 0x28
cmp rax, r9
jne 0x403970
xor eax, eax
ret

Function at 0x403990
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x403a20
mov rdx, qword [0x0040c440]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x403a0e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x403a0e
cmp word [rax + 0x18], 0x20b
jne 0x403a0e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x403a20
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x4039f9
add rbx, 0x28
cmp rbx, rdi
je 0x403a20
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x4039f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x0040c440]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x403a50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x403a58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x403a50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x403aad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403aa4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403a50
add rax, 0x28
cmp rax, r9
jne 0x403a90
xor eax, eax
ret

Function at 0x403ab0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040c440]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x403acf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x403ad8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x403acf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x403af0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x0040c440]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x403b10
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x403b18
ret
cmp word [rdx + 0x18], 0x20b
jne 0x403b10
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x403b60
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x403b57
test rcx, rcx
je 0x403b10
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x403b48
xor eax, eax
ret
Function at 0x403b70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040c440]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x403b8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x403b98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x0040c440]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x403bd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x403bd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x403bd0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x403bd0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x403c24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x403c30
add rdx, 0x28
cmp rdx, r9
jne 0x403c10
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x0040c440]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x403c62
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x403c70
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x403c62
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x403c62
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x403c62
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x403cc5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x403cd8
add rdx, 0x28
cmp r10, rdx
jne 0x403cb0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x403ce7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x403cf7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x403cce
test ecx, ecx
jg 0x403ce0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140444870
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14044487d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14044488d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140444875
lea eax, [rcx + 1]
jmp 0x14044489b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1404448ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140444894
sub eax, 3
jb 0x1404448ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14044491d
sar eax, 1
movsxd rbp, eax
jb 0x140444904
jmp 0x1404448dc
add ebx, ebx
jne 0x1404448da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140444904
inc ecx
add ebx, ebx
jne 0x1404448ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140444904
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1404448fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1404448ec
add ecx, 2
jmp 0x140444909
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140444832
jmp 0x14044487d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x222600
mov dl, 0x53
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14044496d
cmp rsi, rcx
jae 0x140444975
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140444954
cmp al, 0x8f
ja 0x140444954
cmp byte [rsi - 2], 0xf
je 0x14044495a
sub al, 0xe8
cmp al, 1
ja 0x14044493e
cmp rsi, rcx
jae 0x140444975
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140444944
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140444975
lodsb al, byte [rsi]
jmp 0x140444954
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x441000]
mov eax, dword [rdi]
or eax, eax
je 0x1404449d2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x45e930]
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 0x140444982
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 0x1404449cc
mov qword [rbx], rax
add rbx, 8
jmp 0x1404449a2
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 0x140444a16
cmp al, 0xef
ja 0x1404449fe
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1404449de
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1404449ed
mov eax, dword [rdi]
add rdi, 4
jmp 0x1404449ed
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 + 0x22f]
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 0x140444a6a
sub rsp, 0xffffffffffffff80
jmp 0x140061bc0
Function at 0x2fc4d9d70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4dae50
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4da772
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4da80a
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4da7ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4da7e2
cmp qword [rbp - 0x10], 0
je 0x2fc4da7e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4da7a8
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da80b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da910
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4da938
mov eax, 0
jmp 0x2fc4da986
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4da961
mov eax, 0
jmp 0x2fc4da986
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4da981
mov eax, 0
jmp 0x2fc4da986
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da98c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4daa0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4daa01
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4daa01
mov rax, qword [rbp - 8]
jmp 0x2fc4daa1f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4da9d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003074
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400030be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400030be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400030be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400030be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400030be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400030c0
xor al, al
add rsp, 0x28
ret
Function at 0x140011d60
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
movzx eax, byte [0x14018175a]
test eax, eax
jne 0x140011dc6
xorps xmm2, xmm2
xorps xmm1, xmm1
lea rcx, [rsp + 0x58]
call fcn.14000a300
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
movsxd rax, dword [rax]
lea rcx, [0x1401341f0]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.14008ceb0
movzx eax, al
test eax, eax
je 0x140011dc1
mov byte [0x14018175a], 1
jmp 0x140011e8c
movzx eax, byte [0x14018175a]
cmp eax, 1
jne 0x140011e8c
xorps xmm2, xmm2
xorps xmm1, xmm1
lea rcx, [rsp + 0x60]
call fcn.14000a300
mov rdx, rax
lea rcx, [0x1400df5ec]
call fcn.14008ceb0
mov dword [rsp + 0x28], 0x46
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.14001a9a0
mov rcx, rax
call fcn.14001a9c0
lea rax, [0x1400dfc40]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x30]
add rax, 0x298
mov qword [rsp + 0x50], rax
jmp 0x140011e4a
mov rax, qword [rsp + 0x20]
add rax, 4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x20], rax
je 0x140011e8c
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140011e8a
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x14018175a], 0
jmp 0x140011e3c
add rsp, 0x78
ret

Function at 0x140026830
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
movss dword [rsp + 0x20], xmm3
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140026866
mov rax, qword [rsp + 0x38]
mov byte [rax], 1
jmp 0x1400268cb
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
test eax, eax
je 0x1400268cb
xor edx, edx
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov r8d, 8
movzx edx, al
movzx ecx, byte [rsp + 0x40]
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov r8d, 2
movzx edx, al
movzx ecx, byte [rsp + 0x40]
call qword [sym.imp.USER32.dll_keybd_event]
mov rax, qword [rsp + 0x38]
mov byte [rax], 0
add rsp, 0x28
ret