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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400b9024
cmp r8d, 0xff
jne 0x1400b8f61
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400b8f4b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xdeb10]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400958e0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400958e0
cmp r8d, 0xfb
jne 0x1400b8f73
lea r9, str.WILL
jmp 0x1400b8fb1
cmp r8d, 0xfc
jne 0x1400b8f85
lea r9, str.WONT
jmp 0x1400b8fb1
cmp r8d, 0xfd
jne 0x1400b8f97
lea r9, [0x1400df534]
jmp 0x1400b8fb1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400b900d
cmp r10d, 0x27
jg 0x1400b8fe4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xdf130]
test r8, r8
jne 0x1400b8ff4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400958e0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400b8fcb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400958e0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400958e0
add rsp, 0x38
ret

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

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

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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140107080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400baf25
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400baf86
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140095760
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400cec60
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400bb041
sub ecx, 1
je 0x1400bb0b4
sub ecx, 1
je 0x1400baff0
cmp ecx, 1
je 0x1400bafd3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400f0d18]
call fcn.140095760
jmp 0x1400bb0b4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400babc0
test eax, eax
je 0x1400bb0b4
jmp 0x1400baf5a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400bb0b4
sub rax, rsi
cmp rax, rbp
jae 0x1400bb0b4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400958e0
jmp 0x1400bb0b4
cmp r8d, 4
jle 0x1400bb0b4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400bb0b4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140095680
mov esi, eax
test eax, eax
je 0x1400bb093
mov edx, 5
mov rcx, rbx
call fcn.1400bbb80
mov eax, esi
jmp 0x1400baf5a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400a3fb0
mov rcx, r14
call fcn.1400a4290
test eax, eax
je 0x1400baf58
mov edx, 5
mov rcx, rbx
call fcn.1400bbb80
mov eax, Ordinal_45
jmp 0x1400baf5a
Function at 0x1400cde50
Capabilities:
Authenticate hmac
Encode data using xor

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

Function at 0x1400cdf9c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400cdfd6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400cdfdb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400ce024
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400ce024
dec r8
sub rdx, 1
jne 0x1400ce00a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400ce770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400ce0b4
mov ebx, eax
test eax, eax
jne 0x1400ce7a0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400ce803
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ce7fa
test al, 0x10
je 0x1400ce7fa
bt eax, 0xa
jae 0x1400ce7f3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400ce814
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400ce7ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400ce7ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400ce7fa
and dword [rsp + 0x3c], 0
jmp 0x1400ce7ff
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400cfbd8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cfc22
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cfc22
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cfc22
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cfc22
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cfc22
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400cfc24
xor al, al
add rsp, 0x28
ret
Function at 0x140002e80
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push rbp
sub rsp, 0x50
mov rax, qword [0x14002a028]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x14000304c
mov r8d, 0xf01ff
mov qword [rsp + 0x70], rdi
lea rdx, str.BalloonService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140003061
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rdx, rdi
call fcn.140002940
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140003076
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsp + 0x24]
mov esi, eax
mov ebx, dword [rsp + 0x34]
cmp ecx, 2
jne 0x140002fa2
mov qword [rsp + 0x78], r14
mov r14d, 0x2710
nop
mov eax, 0xcccccccd
mul dword [rsp + 0x38]
shr edx, 3
cmp edx, 0x3e8
jae 0x140002f4b
mov edx, 0x3e8
jmp 0x140002f52
cmp edx, r14d
cmova edx, r14d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140002f99
cmp dword [rsp + 0x34], ebx
jbe 0x140002f80
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [rsp + 0x34]
mov esi, eax
jmp 0x140002f8e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [rsp + 0x38]
ja 0x140002f99
mov ecx, dword [rsp + 0x24]
cmp ecx, 2
je 0x140002f30
jmp 0x140002f9d
mov ecx, dword [rsp + 0x24]
mov r14, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
cmp ecx, 4
jne 0x140002fbb
mov rdx, rdi
call fcn.140002940
jmp 0x14000301d
lea rcx, str._nService_not_started._n
call fcn.140001c70
mov edx, dword [rsp + 0x24]
lea rcx, str.__Current_State:__d_n
call fcn.140001c70
mov edx, dword [rsp + 0x2c]
lea rcx, str.__Exit_Code:__d_n
call fcn.140001c70
mov edx, dword [rsp + 0x30]
lea rcx, str.__Service_Specific_Exit_Code:__d_n
call fcn.140001c70
mov edx, dword [rsp + 0x34]
lea rcx, str.__Check_Point:__d_n
call fcn.140001c70
mov edx, dword [rsp + 0x38]
lea rcx, str.__Wait_Hint:__d_n
call fcn.140001c70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x70]
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400033b0
add rsp, 0x50
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager
call fcn.140002b30
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService
call fcn.140002b30
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140026e90]
call fcn.140002b30
int3

Function at 0x14000ead4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e8c4
Function at 0x140001b80
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140007100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001bcc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001bc6
test eax, eax
jne 0x140001bc6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001b9e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001d80
Capabilities:
Parse pe header

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

Function at 0x140001da4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001dde
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001dd5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001de0
inc r8d
add rax, 0x28
jmp 0x140001dbc
xor eax, eax
ret

Function at 0x140001e51
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004340]
mov r8, rcx
mov rcx, r9
call fcn.140001d80
test eax, eax
je 0x140001e7d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140001da4
xor eax, eax
add rsp, 0x28
ret
Function at 0x4606e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x4606ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x4606fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x4606e5
lea eax, [rcx + 1]
jmp 0x46070b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x46071e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x460704
sub eax, 3
jb 0x46073e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x46078d
sar eax, 1
movsxd rbp, eax
jb 0x460774
jmp 0x46074c
add ebx, ebx
jne 0x46074a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x460774
inc ecx
add ebx, ebx
jne 0x46075a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x460774
call r11
adc ecx, ecx
add ebx, ebx
jne 0x46076d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x46075c
add ecx, 2
jmp 0x460779
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.004606a2
jmp 0x4606ed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x39200
mov dl, 6
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x4607dd
cmp rsi, rcx
jae 0x4607e5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x4607c4
cmp al, 0x8f
ja 0x4607c4
cmp byte [rsi - 2], 0xf
je 0x4607ca
sub al, 0xe8
cmp al, 1
ja 0x4607ae
cmp rsi, rcx
jae 0x4607e5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x4607b4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x4607e5
lodsb al, byte [rsi]
jmp 0x4607c4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5e000]
mov eax, dword [rdi]
or eax, eax
je 0x460842
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x60d88]
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 0x4607f2
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 0x46083c
mov qword [rbx], rax
add rbx, 8
jmp 0x460812
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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
mov byte [fcn.004608c5], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.004608c5
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x4608b5
sub rsp, 0xffffffffffffff80
jmp 0x4014c0
Function at 0x140001840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r14, rcx
mov eax, dword [rsp + 0xb0]
mov r11, qword [rdx + 8]
mov rbx, qword [rdx + 0x10]
lea rcx, [rbx + 1]
mov qword [rdx + 0x10], rcx
cmp rcx, r11
jae 0x14000193e
mov rsi, qword [rdx]
movzx ecx, byte [rsi + rbx + 1]
lea ebp, [rcx - 0x30]
cmp bpl, 9
ja 0x140001917
lea r10d, [rax + rbx]
sub r10d, r11d
inc r10d
movabs r15, 0x1999999999999998
lea r12, [rbx + rsi]
add r12, 2
mov rsi, rbx
sub rsi, r11
add rsi, 2
xor edi, edi
lea r13, [r15 + 1]
nop word cs:[rax + rax]
movzx ecx, bpl
cmp r9, r15
jbe 0x1400018db
cmp r9, r13
jne 0x140001a78
cmp cl, 5
ja 0x140001a78
lea rbp, [rbx + rdi]
add rbp, 2
mov qword [rdx + 0x10], rbp
lea rbp, [r9 + r9*4]
lea r9, [rcx + rbp*2]
mov rcx, rsi
add rcx, rdi
je 0x14000193b
movzx ecx, byte [r12 + rdi]
lea ebp, [rcx - 0x30]
inc rdi
cmp bpl, 0xa
jb 0x1400018c0
cmp eax, edi
je 0x140001a3b
mov eax, eax
sub rax, rdi
jmp 0x14000191f
test eax, eax
je 0x140001a47
movzx ecx, cl
or ecx, 0x20
cmp ecx, 0x65
jne 0x140001946
mov dword [rsp + 0x20], eax
mov rcx, r14
call fcn.140001f60
jmp 0x1400019fb
mov eax, r10d
test eax, eax
je 0x140001a52
movq xmm1, r9
punpckldq xmm1, xmmword [0x1403b8020]
subpd xmm1, xmmword [0x1403b8030]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov ecx, eax
neg ecx
cmovs ecx, eax
cmp ecx, 0x135
jb 0x1400019b4
xorpd xmm1, xmm1
movsd xmm2, qword [0x1403b8040]
nop word cs:[rax + rax]
ucomisd xmm0, xmm1
jne 0x140001998
jnp 0x1400019e3
test eax, eax
jns 0x140001a17
divsd xmm0, xmm2
add eax, 0x134
mov ecx, eax
neg ecx
cmovs ecx, eax
cmp ecx, 0x135
jae 0x140001990
mov ecx, ecx
mov rbp, qword [0x140567240]
movsd xmm1, qword [rbp + rcx*8]
test eax, eax
js 0x140001a0c
mulsd xmm0, xmm1
ucomisd xmm0, qword [0x1403b8010]
jae 0x140001a17
movsd xmm1, qword [0x1403b8048]
ucomisd xmm1, xmm0
jae 0x140001a17
test r8b, r8b
jne 0x1400019f0
xorpd xmm0, xmmword [0x1403b8050]
movsd qword [r14 + 8], xmm0
xor eax, eax
mov qword [r14], rax
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
divsd xmm0, xmm1
test r8b, r8b
je 0x1400019e8
jmp 0x1400019f0
mov qword [rsp + 0x30], 0xd
lea rax, [rsp + 0x30]
mov rcx, rdx
mov rdx, rax
call fcn.1403abdc0
mov qword [r14 + 8], rax
mov eax, 1
jmp 0x1400019f8
lea rax, [rbx + rdi]
inc rax
cmp rax, r11
jae 0x140001a52
mov qword [rsp + 0x30], 0xc
jmp 0x140001a5b
mov qword [rsp + 0x30], 5
lea rax, [rsp + 0x30]
mov rcx, rdx
mov rdx, rax
call fcn.1403ab650
mov qword [r14 + 8], rax
mov qword [r14], 1
jmp 0x1400019fb
sub eax, edi
mov dword [rsp + 0x20], eax
mov rcx, r14
call fcn.1403abbc0
jmp 0x1400019fb
Function at 0x140001f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov r14, rcx
mov r11, qword [rdx + 8]
mov rax, qword [rdx + 0x10]
lea rcx, [rax + 1]
mov qword [rdx + 0x10], rcx
mov r10b, 1
cmp rcx, r11
jae 0x140001fa6
mov rbx, qword [rdx]
movzx esi, byte [rbx + rcx]
mov r10b, 1
cmp esi, 0x2b
je 0x140001f9b
cmp esi, 0x2d
jne 0x140001fa6
xor r10d, r10d
add rax, 2
mov qword [rdx + 0x10], rax
mov rcx, rax
cmp rcx, r11
jae 0x140002123
mov rdi, qword [rdx]
movzx ebx, byte [rdi + rcx]
lea rax, [rcx + 1]
mov qword [rdx + 0x10], rax
add bl, 0xd0
cmp bl, 0xa
jae 0x14000212e
movzx esi, bl
cmp rax, r11
jae 0x140002032
mov eax, 1
sub rax, r11
add rcx, 2
jmp 0x140001ff9
movzx ebx, bl
lea esi, [rsi + rsi*4]
lea esi, [rbx + rsi*2]
lea rbx, [rax + rcx]
inc rbx
inc rcx
cmp rbx, 2
je 0x140002032
movzx ebx, byte [rdi + rcx - 1]
add bl, 0xd0
cmp bl, 0xa
jae 0x140002032
mov qword [rdx + 0x10], rcx
cmp esi, 0xccccccc
jl 0x140001fe0
jne 0x140002019
cmp bl, 7
jbe 0x140001fe0
test r9, r9
sete r9b
mov byte [rsp + 0x20], r10b
mov rcx, r14
call fcn.1403abd20
jmp 0x14000210e
mov ecx, dword [rsp + 0x90]
test r10b, r10b
je 0x14000204d
lea eax, [rcx + rsi]
sar eax, 0x1f
add eax, 0x80000000
add ecx, esi
jmp 0x14000205b
xor eax, eax
cmp ecx, esi
setns al
add eax, 0x7fffffff
sub ecx, esi
cmovo ecx, eax
movq xmm1, r9
punpckldq xmm1, xmmword [0x1403b8020]
subpd xmm1, xmmword [0x1403b8030]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x135
jb 0x1400020c8
xorpd xmm1, xmm1
movsd xmm2, qword [0x1403b8040]
nop dword [rax]
ucomisd xmm0, xmm1
jne 0x1400020a8
jnp 0x1400020f6
test ecx, ecx
jns 0x140002154
divsd xmm0, xmm2
add ecx, 0x134
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x135
jae 0x1400020a0
mov eax, eax
mov rbx, qword [0x140567240]
movsd xmm1, qword [rbx + rax*8]
test ecx, ecx
js 0x140002118
mulsd xmm0, xmm1
ucomisd xmm0, qword [0x1403b8010]
jae 0x140002154
movsd xmm1, qword [0x1403b8048]
ucomisd xmm1, xmm0
jae 0x140002154
test r8b, r8b
jne 0x140002103
xorpd xmm0, xmmword [0x1403b8050]
movsd qword [r14 + 8], xmm0
xor eax, eax
mov qword [r14], rax
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
divsd xmm0, xmm1
test r8b, r8b
je 0x1400020fb
jmp 0x140002103
mov qword [rsp + 0x30], 5
jmp 0x140002137
mov qword [rsp + 0x30], 0xc
lea rax, [rsp + 0x30]
mov rcx, rdx
mov rdx, rax
call fcn.1403abdc0
mov qword [r14 + 8], rax
mov qword [r14], 1
jmp 0x14000210e
mov qword [rsp + 0x30], 0xd
lea rax, [rsp + 0x30]
mov rcx, rdx
mov rdx, rax
call fcn.1403abdc0
mov qword [r14 + 8], rax
mov eax, 1
jmp 0x14000210b