joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000fd60
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18006c040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rcx]
lea rdx, str.Recv_called.
call qword [rax + 0xb0]
test rdi, rdi
je 0x18000ff17
mov esi, dword [rdi + 0x30]
test esi, esi
jne 0x18000ff19
cmp dword [rbx + 0x2a0], 2
je 0x18000fdd3
lea eax, [rsi + 1]
jmp 0x18000ff49
cmp dword [rbx + 0x12c], 0
je 0x18000fe08
mov rax, qword [rbx]
mov qword [rsp + 0x20], rbx
mov r9, qword [rbx + 0x298]
mov r8d, 2
lea rdx, str.IOCPSocketBase::Recv:_Recv_called_on_deleted_object__skipping._State__d___Socket__x__p_
mov rcx, rbx
call qword [rax + 0x58]
mov eax, 1
jmp 0x18000ff49
xor ecx, ecx
call fcn.18001eea0
mov qword [rbx + 0x130], rax
mov qword [rdi + 0x28], r15
lea rdx, [rdi + 0x20]
mov dword [rdx], r14d
mov dword [rdi + 0x30], 1
mov qword [rdi + 0x40], rbx
mov rax, qword [rbx + 0x248]
mov qword [rdi + 0x38], rax
xor esi, esi
mov dword [rsp + 0x40], esi
test rdx, rdx
je 0x18000fe6e
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
lea r8d, [rsi + 1]
mov rcx, qword [rbx + 0x298]
call qword [sym.imp.WS2_32.dll_WSARecv]
jmp 0x18000fe72
mov eax, dword [rsp + 0x44]
cmp eax, 0xffffffff
jne 0x18000ff13
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
cmp eax, 0x3e5
je 0x18000ff13
mov dword [rdi + 0x30], esi
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x50]
call fcn.18001c6c0
lea rcx, [rbx + 0x138]
call fcn.180020f48
mov r9, rax
lea r8, str._m__d__Y__H:_M:_S
mov edx, 0x80
lea rcx, [rsp + 0x50]
call fcn.18002113c
mov rax, qword [rbx]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9, qword [rbx + 0x298]
mov r8d, r14d
lea rdx, str.IOCPSocketBase::Recv:_WSARecv_error._WLE__d__Socket__x__p__Overlapped__p___Connection_started__s
mov rcx, rbx
call qword [rax + 0x58]
mov rax, qword [rbx]
mov r8d, 1
mov edx, r14d
mov rcx, rbx
call qword [rax + 0xe8]
mov eax, 1
jmp 0x18000ff49
xor eax, eax
jmp 0x18000ff49
xor esi, esi
mov rax, qword [rbx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9, qword [rbx + 0x298]
mov r8d, esi
lea rdx, str.IOCPSocketBase::Recv:_Invalid_IOCP_state__State__d__Socket__x__p___Overlapped__p_
mov rcx, rbx
call qword [rax + 0x58]
mov eax, 1
jmp 0x18000ff49
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.18001a230
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x18000ffa0
Capabilities:
Send data
Send data on socket

Disassembly:
push r14
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rcx]
lea rdx, str.Send_called.
call qword [rax + 0xb0]
mov r8d, dword [rdi + 0x30]
test r8d, r8d
je 0x18000fffd
mov rax, qword [rbx]
lea rdx, str.IOCPSocketBase::Send:_Invalid_state__State__d_
mov rcx, rbx
call qword [rax + 0x58]
mov eax, 1
jmp 0x1800100e6
cmp dword [rbx + 0x12c], 0
je 0x180010010
mov eax, 1
jmp 0x1800100e6
cmp dword [rbx + 0x2a0], 2
jne 0x1800100da
xor ecx, ecx
call fcn.18001eea0
mov qword [rbx + 0x130], rax
mov qword [rdi + 0x28], r14
lea rdx, [rdi + 0x20]
mov dword [rdx], esi
mov dword [rdi + 0x30], 2
mov qword [rdi + 0x40], rbx
mov rax, qword [rbx + 0x248]
mov qword [rdi + 0x38], rax
xor esi, esi
test rdx, rdx
je 0x180010078
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x40]
lea r8d, [rsi + 1]
mov rcx, qword [rbx + 0x298]
call qword [sym.imp.WS2_32.dll_WSASend]
jmp 0x18001007c
mov eax, dword [rsp + 0x40]
cmp eax, 0xffffffff
jne 0x1800100d6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
cmp eax, 0x3e5
je 0x1800100d6
mov dword [rdi + 0x30], esi
mov r10, qword [rbx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9, qword [rbx + 0x298]
mov r8d, eax
lea rdx, str.IOCPSocketBase::Send:_WSASend_error._WLE__d__Socket__x__p__Overlapped__p_
mov rcx, rbx
call qword [r10 + 0x58]
mov r9, qword [rbx]
mov r8d, 1
mov edx, r14d
mov rcx, rbx
call qword [r9 + 0xe8]
mov eax, 1
jmp 0x1800100e6
xor eax, eax
jmp 0x1800100e6
mov eax, 1
jmp 0x1800100e6
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret

Function at 0x1800115b0
Capabilities:
Initialize winsock library

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x1e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18006c040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rdi, r9
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rcx
call fcn.180010630
nop
lea rax, [0x180044d40]
mov qword [rsi], rax
lea r9, [0x180044e00]
mov r8d, 0x8000001
mov rdx, rdi
lea rcx, [rsi + 0x530]
call fcn.180017b40
nop
lea rax, [0x180044d90]
mov qword [rsi], rax
lea rax, [0x180044de0]
mov qword [rsi + 0x530], rax
mov qword [rsi + 0x578], r15
mov qword [rsi + 0x580], r14
xor eax, eax
mov qword [rsi + 0x558], rax
mov qword [rsi + 0x568], 0xffffffffffffffff
mov qword [rsi + 0x570], rax
mov ecx, 0x101
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop
mov rax, rsi
jmp 0x18001167c
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.18001a230
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x180012d90
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov edi, edx
mov rbx, rcx
add rcx, 0x9d0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rbx + 0x7b8]
cmp rcx, 0xffffffffffffffff
je 0x180012dd9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x7b8], 0xffffffffffffffff
test edi, edi
je 0x180012def
lea rcx, [rbx + 0x7c0]
cmp byte [rcx], 0
je 0x180012def
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rbx + 0x9c8], 0xffffffff
mov qword [rbx + 0xa00], 0
lea rcx, [rbx + 0x7c0]
xor edx, edx
mov r8d, 0x208
call fcn.18001c6c0
nop
jmp 0x180012e20
lea rcx, [rbx + 0x9d0]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x180013440
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov r15, r8
mov r14, rdx
mov rdi, rcx
mov esi, 1
mov dword [rsp + 0x40], esi
test rdx, rdx
je 0x1800136ab
test r8, r8
je 0x1800136ab
add rcx, 0x9d0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rdi + 0x530]
mov rax, qword [rcx]
lea r8, [r14 + 8]
lea rdx, str.PROTOCOL:_Received_new_file_packet._Filename__s.
call qword [rax + 0xb0]
mov dword [r15], esi
cmp qword [rdi + 0x7b8], 0xffffffffffffffff
je 0x1800134c2
mov edx, esi
mov rcx, rdi
call fcn.180012d90
cmp byte [r14 + 8], 0
je 0x18001368c
mov eax, dword [r14 + 0x114]
cmp dword [r14 + 0x10c], eax
jb 0x18001368c
mov rcx, rdi
call fcn.180012f60
test rax, rax
je 0x18001368c
mov rcx, rdi
call fcn.180012f60
cmp byte [rax + 0x68], 0
je 0x18001368c
xor ecx, ecx
call fcn.18001eea0
mov qword [rdi + 0xa00], rax
mov edx, 0x5c
lea rcx, [r14 + 8]
call fcn.18001c89c
mov r15, rax
test rax, rax
jne 0x180013542
lea edx, [rax + 0x2f]
lea rcx, [r14 + 8]
call fcn.18001c89c
mov r15, rax
test rax, rax
jne 0x180013542
lea r15, [r14 + 8]
jmp 0x180013545
inc r15
mov rcx, rdi
call fcn.180012f60
lea r9, [rax + 0x68]
mov qword [rsp + 0x20], r15
lea r8, str._s_s
mov edx, 0x208
lea rcx, [rdi + 0x7c0]
call fcn.18000d0c0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rdi + 0x7c0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rdi + 0x7b8], rax
cmp rax, 0xffffffffffffffff
je 0x180013675
cmp dword [r14 + 0x114], 0
jbe 0x18001362c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, dword [r14 + 0x114]
lea rdx, [r14 + 0x118]
mov rcx, qword [rdi + 0x7b8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x18001360d
mov ecx, dword [r14 + 0x114]
add dword [0x18006d064], ecx
sub eax, ebx
add dword [0x18006d068], eax
mov r8d, dword [r14 + 0x114]
lea rdx, [r14 + 0x118]
mov ecx, dword [rdi + 0x9c8]
call fcn.180015f50
mov dword [rdi + 0x9c8], eax
mov eax, dword [r14 + 0x110]
mov rcx, rdi
cmp dword [rdi + 0x9c8], eax
jne 0x18001366e
mov eax, dword [r14 + 0x114]
cmp dword [r14 + 0x10c], eax
jne 0x180013655
call fcn.180013cc0
jmp 0x180013686
xor r8d, r8d
mov edx, 0x103
call fcn.180013b70
mov dword [rsp + 0x40], eax
mov dword [rdi + 0x9f8], eax
jmp 0x18001368a
mov edx, esi
call fcn.180012d90
or r8d, 0xffffffff
mov edx, 0x103
mov rcx, rdi
call fcn.180013b70
mov dword [rsp + 0x40], eax
mov esi, eax
jmp 0x18001369a
lea rcx, [rdi + 0x9d0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x1800136b0
mov eax, 8
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800136c0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r14, r8
mov rsi, rdx
mov rbx, rcx
xor r15d, r15d
mov edi, r15d
test rdx, rdx
je 0x18001387d
test r8, r8
je 0x18001387d
add rcx, 0x9d0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rbx + 0x530]
mov rax, qword [rcx]
mov r8d, dword [rsi + 8]
lea rdx, str.PROTOCOL:_Received_more_file_data._Complete__d.
call qword [rax + 0xb0]
mov dword [r14], 1
cmp qword [rbx + 0x7b8], 0xffffffffffffffff
je 0x180013848
cmp dword [rsi + 8], r15d
jne 0x18001376a
mov r8d, dword [rbx + 0x9f8]
mov edx, 0x105
mov rcx, rbx
call fcn.180013b70
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x180013861
cmp dword [rbx + 0x9f8], 0
jne 0x180013861
cmp dword [rsi + 0x10], 0
jbe 0x18001382c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x88]
mov r8d, dword [rsi + 0x10]
lea rdx, [rsi + 0x14]
mov rcx, qword [rbx + 0x7b8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, r14d
jb 0x1800137c9
mov ecx, dword [rsi + 0x10]
add dword [0x18006d064], ecx
sub eax, r14d
add dword [0x18006d068], eax
mov r8d, dword [rsi + 0x10]
lea rdx, [rsi + 0x14]
mov ecx, dword [rbx + 0x9c8]
call fcn.180015f50
mov dword [rbx + 0x9c8], eax
cmp eax, dword [rsi + 0xc]
sete r15b
test r15d, r15d
jne 0x18001382c
lea edx, [r15 + 1]
mov rcx, rbx
call fcn.180012d90
mov dword [rbx + 0x9f8], 0xffffffff
mov edi, 2
mov dword [rsp + 0x30], edi
cmp dword [rsi + 8], r15d
je 0x180013861
or r8d, 0xffffffff
mov edx, 0x103
mov rcx, rbx
call fcn.180013b70
mov edi, eax
mov dword [rsp + 0x30], eax
jmp 0x180013861
cmp dword [rsi + 8], 0
je 0x180013861
mov rcx, rbx
call fcn.180013cc0
mov edi, eax
mov dword [rsp + 0x30], eax
mov dword [rbx + 0x9f8], eax
jmp 0x180013861
mov rax, qword [rbx]
lea rdx, str.RecvSendFileData:_Received_unexpected_packet.
mov rcx, rbx
call qword [rax + 0x28]
mov edi, 3
mov dword [rsp + 0x30], edi
jmp 0x18001386c
lea rcx, [rbx + 0x9d0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x180013882
mov eax, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180016820
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rdx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1800168a1
mov edx, 8
lea r8d, [rdx + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x180016882
lea rcx, str.____DataEvent::_Failed_to_allocate_memory_n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [rsp + 0x40], 1
lea rdx, [0x18006a648]
lea rcx, [rsp + 0x40]
call fcn.18001c5d8
int3
mov qword [rax + 8], rbx
mov qword [rsp + 0x50], rax
lea rdx, [0x180048d90]
mov qword [rax], rdx
xor ecx, ecx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
jmp 0x1800168e7
mov ecx, 0x20
call fcn.18001a164
test rax, rax
jne 0x1800168ca
mov dword [rsp + 0x40], 1
lea rdx, [0x18006a648]
lea rcx, [rsp + 0x40]
call fcn.18001c5d8
int3
xor ecx, ecx
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rdx, [0x180048d90]
mov qword [rax], rdx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800171c0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [rcx + 0x4c], 0x67452301
mov dword [rcx + 0x50], 0xefcdab89
xor edx, edx
mov qword [rcx], rdx
mov dword [rcx + 0x54], 0x98badcfe
mov dword [rcx + 0x58], 0x10325476
mov dword [rcx + 0x5c], 0xc3d2e1f0
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov word [rcx + 0x48], dx
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rax
mov dword [rcx + 0x70], eax
ret
Function at 0x180017950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r10, r8
mov r11, rdx
test r10, r10
je 0x1800179b5
inc byte [rcx]
movzx r8d, byte [rcx]
movzx r9d, byte [r8 + rcx + 2]
add byte [rcx + 1], r9b
movzx eax, byte [rcx + 1]
movzx edx, byte [rax + rcx + 2]
mov byte [r8 + rcx + 2], dl
movzx eax, byte [rcx + 1]
mov byte [rax + rcx + 2], r9b
add dl, r9b
movzx eax, dl
movzx edx, byte [rax + rcx + 2]
movzx eax, byte [r11]
xor edx, eax
mov byte [r11], dl
inc r11
mov qword [rsp + 0x48], r11
dec r10
mov qword [rsp + 0x50], r10
jmp 0x180017963
add rsp, 0x38
ret

Function at 0x180019a20
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x3a0
mov rax, qword [0x18006c040]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rsi, r8
mov rbx, rdx
xor edi, edi
mov dword [rsp + 0x50], edi
test rdx, rdx
je 0x180019b50
cmp byte [rdx], dil
je 0x180019b50
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x180]
call fcn.18001c6c0
mov r8d, 0x207
mov rdx, rbx
lea rcx, [rsp + 0x180]
call fcn.180019730
lea rcx, [rsp + 0x180]
call fcn.1800196c0
test rsi, rsi
je 0x180019ab4
cmp byte [rsi], dil
je 0x180019ab4
mov r8, rsi
jmp 0x180019b31
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x70]
call fcn.18001c6c0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rsp + 0x6c]
movzx edx, word [rsp + 0x6a]
movzx r10d, word [rsp + 0x68]
movzx r11d, word [rsp + 0x66]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
lea rdx, str.MiniDump__04d_02d_02d__02d_02d_02d__ld__ld.dmp
lea rcx, [rsp + 0x70]
call fcn.180010240
lea r8, [rsp + 0x70]
mov edx, 0x208
lea rcx, [rsp + 0x180]
call fcn.180022fb4
nop
mov dword [rdi], edi
jmp 0x180019b4c
mov eax, edi
jmp 0x180019b52
xor eax, eax
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.18001a230
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180035150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
sub esi, dword [rdi + 0x9c]
mov ecx, dword [rdi + 0x44]
sub esi, edx
add ecx, 0xfffffefa
add ecx, ebx
cmp edx, ecx
jb 0x18003520c
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.18001c1a0
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
lea rdx, [rdx - 2]
cmp eax, ebx
jb 0x1800351d0
sub eax, ebx
jmp 0x1800351d2
xor eax, eax
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x1800351c0
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop word [rax + rax]
movzx eax, word [rcx - 2]
lea rcx, [rcx - 2]
cmp eax, ebx
jb 0x180035200
sub eax, ebx
jmp 0x180035202
xor eax, eax
mov word [rcx], ax
add edx, 0xffffffff
jne 0x1800351f0
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x180035286
mov edx, dword [rdi + 0x9c]
mov r8d, esi
mov eax, dword [rdi + 0x94]
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.1800355e0
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x180035270
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x180035286
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x180035170
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180004ec0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rdx
mov rdx, rcx
mov rcx, rax
jmp 0x1800108c0
mov rax, qword gs:[0x30]
mov r10, rcx
mov r8, qword [rax + 0x60]
mov r9, qword [r8 + 0x18]
add r9, 0x20
mov rax, qword [r9]
nop dword [rax + rax]
cmp qword [rax + 0x20], rdx
je 0x1800108fd
test rdx, rdx
je 0x1800108fd
mov rax, qword [rax]
cmp rax, r9
jne 0x1800108e0
mov qword [rcx], 0
xor eax, eax
ret
mov rcx, qword [rax + 0x40]
mov qword [r10], rcx
movzx eax, word [rax + 0x38]
shr eax, 1
ret
Function at 0x1800054d0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
xor r8, r8
push r8
push rax
pushfq
push r8
push rdx
sub rsp, 0xa8
push r8
push r15
push r14
push r13
push r12
push rbx
push r8
push rsi
push rdi
push rbp
push rax
push rdx
sub rsp, 0x280
movdqa xmmword [rsp + 0x2e0], xmm6
movdqa xmmword [rsp + 0x2f0], xmm7
movdqa xmmword [rsp + 0x300], xmm8
movdqa xmmword [rsp + 0x310], xmm9
movdqa xmmword [rsp + 0x320], xmm10
movdqa xmmword [rsp + 0x330], xmm11
movdqa xmmword [rsp + 0x340], xmm12
movdqa xmmword [rsp + 0x350], xmm13
movdqa xmmword [rsp + 0x360], xmm14
movdqa xmmword [rsp + 0x370], xmm15
mov eax, dword [0x1803997dc]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x10
add rax, rbx
lea rdx, [rsp + 0x20]
xor r8, r8
mov qword [rdx + 0x10], r8
mov byte [rdx + 0x19], 1
mov dword [rdx + 0x1c], 0xffffffff
mov byte [rdx + 0x18], 2
mov r8, qword [rax + 0x80]
mov qword [rdx], r8
mov qword [rax + 0x80], rdx
lea r8, [rsp + 0x280]
mov qword [rdx + 8], r8
call fcn.180134a90
int3
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xd8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov eax, dword [0x1803997dc]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x10
add rax, rbx
mov qword [rsp + 0xc0], rax
cmp rcx, qword [rax + 0x88]
sete byte [rsp + 0xd0]
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [r8 + 0x18]
mov rbx, qword [rax]
mov rax, qword [r8 + 0x20]
mov rbp, qword [rax]
mov rax, qword [r8 + 0x28]
mov rsi, qword [rax]
mov rax, qword [r8 + 0x30]
mov rdi, qword [rax]
mov rax, qword [r8 + 0x58]
mov r12, qword [rax]
mov rax, qword [r8 + 0x60]
mov r13, qword [rax]
mov rax, qword [r8 + 0x68]
mov r14, qword [rax]
mov rax, qword [r8 + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [r8 + 0x90]
movdqa xmm7, xmmword [r8 + 0xa0]
movdqa xmm8, xmmword [r8 + 0xb0]
movdqa xmm9, xmmword [r8 + 0xc0]
movdqa xmm10, xmmword [r8 + 0xd0]
movdqa xmm11, xmmword [r8 + 0xe0]
movdqa xmm12, xmmword [r8 + 0xf0]
movdqa xmm13, xmmword [r8 + 0x100]
movdqa xmm14, xmmword [r8 + 0x110]
movdqa xmm15, xmmword [r8 + 0x120]
mov rcx, qword [r8 + 0x78]
mov rdx, qword [rsp + 0x120]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx + 0x70]
cmp rcx, 0
je 0x180005660
mov r9, qword [rdx + 0x68]
mov qword [r9], rcx
mov qword [rdx + 0x68], 0
mov qword [rdx + 0x70], 0
mov rcx, qword [rsp + 0x138]
mov r8, qword [r8 + 0x78]
xor r9d, r9d
mov rcx, qword [rcx]
cmp rcx, r9
je 0x18000567c
cmp rcx, r8
jl 0x18000566f
mov qword [rdx + 0x80], rcx
test dword [0x180392a58], 1
je 0x1800056ab
cmp byte [rsp + 0xd0], 0
je 0x1800056ab
mov rcx, 0x43
mov rdx, rax
mov rsp, r8
jmp 0x1800051d0
mov rsp, r8
jmp rax
Function at 0x1800056b0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xc8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], rdx
mov eax, dword [0x1803997dc]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x10
add rax, rbx
mov qword [rsp + 0xc0], rax
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [rdx + 0x18]
mov rbx, qword [rax]
mov rax, qword [rdx + 0x20]
mov rbp, qword [rax]
mov rax, qword [rdx + 0x28]
mov rsi, qword [rax]
mov rax, qword [rdx + 0x30]
mov rdi, qword [rax]
mov rax, qword [rdx + 0x58]
mov r12, qword [rax]
mov rax, qword [rdx + 0x60]
mov r13, qword [rax]
mov rax, qword [rdx + 0x68]
mov r14, qword [rax]
mov rax, qword [rdx + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [rdx + 0x90]
movdqa xmm7, xmmword [rdx + 0xa0]
movdqa xmm8, xmmword [rdx + 0xb0]
movdqa xmm9, xmmword [rdx + 0xc0]
movdqa xmm10, xmmword [rdx + 0xd0]
movdqa xmm11, xmmword [rdx + 0xe0]
movdqa xmm12, xmmword [rdx + 0xf0]
movdqa xmm13, xmmword [rdx + 0x100]
movdqa xmm14, xmmword [rdx + 0x110]
movdqa xmm15, xmmword [rdx + 0x120]
mov rcx, qword [rdx + 0x78]
call qword [rsp + pe_nt_image_headers64]
mov rdx, qword [rsp + 0x118]
mov rax, qword [rdx + 0x18]
mov qword [rax], rbx
mov rax, qword [rdx + 0x20]
mov qword [rax], rbp
mov rax, qword [rdx + 0x28]
mov qword [rax], rsi
mov rax, qword [rdx + 0x30]
mov qword [rax], rdi
mov rax, qword [rdx + 0x58]
mov qword [rax], r12
mov rax, qword [rdx + 0x60]
mov qword [rax], r13
mov rax, qword [rdx + 0x68]
mov qword [rax], r14
mov rax, qword [rdx + 0x70]
mov qword [rax], r15
movdqa xmmword [rdx + 0x90], xmm6
movdqa xmmword [rdx + 0xa0], xmm7
movdqa xmmword [rdx + 0xb0], xmm8
movdqa xmmword [rdx + 0xc0], xmm9
movdqa xmmword [rdx + 0xd0], xmm10
movdqa xmmword [rdx + 0xe0], xmm11
movdqa xmmword [rdx + 0xf0], xmm12
movdqa xmmword [rdx + 0x100], xmm13
movdqa xmmword [rdx + 0x110], xmm14
movdqa xmmword [rdx + 0x120], xmm15
mov rax, qword [rsp + 0xc0]
lock or dword [rax + 0x38], 0x10
movdqa xmm6, xmmword [rsp + 0x20]
movdqa xmm7, xmmword [rsp + 0x30]
movdqa xmm8, xmmword [rsp + 0x40]
movdqa xmm9, xmmword [rsp + 0x50]
movdqa xmm10, xmmword [rsp + 0x60]
movdqa xmm11, xmmword [rsp + 0x70]
movdqa xmm12, xmmword [rsp + 0x80]
movdqa xmm13, xmmword [rsp + 0x90]
movdqa xmm14, xmmword [rsp + 0xa0]
movdqa xmm15, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbp
pop rdi
pop rsi
pop rbx
pop r12
pop r13
pop r14
pop r15
ret