joyce8/EMBER2024-capa huggingface dataset:
Function at 0x575064
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.005731d7
test rax, rax
je 0x5750f2
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x005750f6]
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x5750e5
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.00573524
mov rcx, rsi
call fcn.005663e8
mov edi, 1
call fcn.00569a3f
mov rdx, rax
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2

Function at 0x5751d1
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x575248
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x57528f
cmp dword [rsp + 0x2c], 0
je 0x575270
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x57527f
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x007e0178]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x007e0178], rsi
jne 0x575223
mov byte [0x007e0170], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x575275
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x57528f
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x575275
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x575275
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2

Function at 0x575761
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x00774238]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r9, rcx
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x5757d0
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x575806
test eax, eax
js 0x5757e1
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x5757f9
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.00575a30
mov rcx, rax
call fcn.005753ff
mov ecx, 7
int 0x29
ud2
Function at 0x5773e1
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov edi, edx
mov rsi, rcx
movups xmm0, xmmword [0x00774238]
invalid
add byte [rax - 0x73], cl
and al, 0x60
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
dec dword [rcx + 0x39]
leave
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
sub byte [rax - 0x77], cl
and al, 0x20
mov rcx, rdx
xor edx, edx
rol byte [rbp + 0x31], cl
rol byte [rbp + 0x31], 0xc9
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
add dword [rax], eax
add byte [rbp + 0x11], dh
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
and al, 0x60
cmp eax, 0xc0000011
jne 0x577458
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x57748c
invalid
cmp eax, 0x103

Function at 0x578063
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov edi, edx
mov rsi, rcx
xorps xmm0, xmm0
lea r8, [rsp + 0x30]
movaps xmmword [r8], xmm0
movaps xmmword [r8 + 0x20], xmm0
movaps xmmword [r8 + 0x10], xmm0
mov dword [r8 + 8], 1
lea r9, [rsp + 0x28]
and qword [r9], 0
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x5780b6
call fcn.0056c6ea
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x5780c9
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x5782df
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
and al, 0x20
Function at 0x578c54
Capabilities:
Copy file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, r9
mov rbx, rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.00574c18
mov rsi, qword [rsi]
test rsi, rsi
je 0x578cdb
mov r8, qword [rsp + 0xa0]
lea r15, [rsp + 0x38]
mov rdi, qword [r15 + 8]
mov rcx, r15
mov rdx, r14
call fcn.00574c18
mov r14, qword [r15]
test r14, r14
je 0x578ced
lea r9, [rsp + 0x38]
mov r15, qword [r9 + 8]
and qword [r9], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [0x00578d32]
mov rcx, rsi
mov rdx, r14
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x578cff
mov rax, qword [rsp + 0x38]
mov qword [rbx + 8], rax
and qword [rbx], 0
jmp 0x578d0f
mov rax, qword [rsp + 0x40]
mov qword [rbx + 8], rax
mov qword [rbx], 1
jmp 0x578d25
mov rax, qword [rsp + 0x40]
mov qword [rbx + 8], rax
mov qword [rbx], 1
jmp 0x578d1a
call fcn.00569a3f
mov qword [rbx + 8], rax
mov qword [rbx], 1
mov rcx, r14
mov rdx, r15
call fcn.0057667d
mov rcx, rsi
mov rdx, rdi
call fcn.0057667d
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x579436
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
cmp qword [rdx], 0
jne 0x579577
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx + 0x18]
mov r8, qword [rbx + 8]
test r8, r8
jne 0x57946b
mov edx, 0x10
mov rcx, rbx
call fcn.00433ead
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
jne 0x579489
mov edx, 1
mov rcx, rbx
call fcn.00433ead
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
sub r8, rdx
add rdx, qword [rbx]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
lea r9, [rsp + 0x2c]
and dword [r9], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x5794d5
mov ebx, dword [rsp + 0x2c]
mov eax, 2
test rbx, rbx
je 0x579503
mov qword [rdi], rax
mov qword [rdi + 8], rbx
mov byte [rsi + 1], 1
jmp 0x579507
call fcn.00569a3f
mov rbx, rax
mov rcx, rax
call fcn.00577642
mov ecx, eax
mov r8d, 1
mov r9d, 0x3e5
call fcn.0050b0bb
test al, al
je 0x57950b
lea rax, [rsp + 0x30]
jmp 0x579538
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x57955a
mov rcx, rbx
call fcn.00577642
mov ecx, eax
mov r8d, 1
mov r9d, 0x6d
call fcn.0050b0bb
test al, al
je 0x579554
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
and qword [rax], 0
mov rcx, rbx
call fcn.00575409
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
cmp rax, 2
jne 0x579564
mov qword [rsi + 8], rbx
mov al, 1
mov byte [rsi], al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
test rax, rax
jne 0x5794be
mov eax, 1
jmp 0x5794c8
ud2
Function at 0x5796ec
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x579717
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.0056cef2
cmp word [rbx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x57977e
cmp word [rbx], 0
je 0x5797ee
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov r9d, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x579803
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x579798
mov r14d, eax
cmp eax, 0x2726
jne 0x579856
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x579860
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x579755
call fcn.00569a3f
mov r14, rax
mov rcx, rdi
call fcn.0059c708
jmp 0x579868
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r10w, 2
xorps xmm0, xmm0
rol cx, 8
lea rdx, [rsp + 0x34]
mov word [rdx], r10w
mov word [rdx + 2], cx
mov dword [rdx + 4], eax
movups xmmword [rdx + 8], xmm0
mov dword [rdx + 0x18], r9d
mov rcx, rdi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x579839
mov qword [rsi + 8], rdi
and qword [rsi], 0
jmp 0x57970c
call fcn.0056c6ea
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call fcn.0059c708
jmp 0x57970c
shl r14, 0x20
or r14, 2
jmp 0x579868
call fcn.0056c6ea
mov r14, rax
mov qword [rsi + 8], r14
jmp 0x579705

Function at 0x57c1bc
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.0057c20c
mov ecx, eax
add rsp, 0x28
jmp fcn.0059cc48

Function at 0x57c1f0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.0057c20c
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.0059cc50

Function at 0x57c20c
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je fcn.005751d1
dec eax
ret

Function at 0x57f54b
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x57f58c
movzx eax, dl
lea r9, [rsp + 0x34]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x57f581
xor eax, eax
jmp 0x57f586
call fcn.0056c6ea
nop
add rsp, 0x38
ret
ud2
Function at 0x57f590
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r15, rdx
mov rbx, rcx
lea r13, [rsp + 0x3a]
lea rbp, [rsp + 0x4a]
mov r14, qword [rcx + 0x10]
mov r12, qword [rcx + 0x18]
mov rax, qword [r8 + 8]
mov rdi, qword [r8 + 0x10]
mov qword [rsp + 0x50], r8
mov rcx, qword [r8]
add rcx, rdi
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
mov rcx, rax
sub rcx, rdi
mov eax, 0x7fffffff
cmp rcx, rax
cmovae rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], r14
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8, r15
xor r9d, r9d
call fcn.0057f1dd
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x57f722
mov rsi, qword [rsp + 0x30]
cmp al, 2
je 0x57f75a
mov cl, byte [rsp + 0x38]
movzx edx, word [r13 + 4]
mov word [rbp + 4], dx
mov edx, dword [r13]
mov dword [rbp], edx
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x48], cl
mov byte [rsp + 0x49], al
cmp qword [rsp + 0x70], rdi
jb 0x57f770
cmp r12, 0xffffffffffffffff
je 0x57f770
mov rcx, r12
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x57f729
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x57f72e
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.0057b7cb
cmp al, 0xd
jne 0x57f6fc
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x57f6fc
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x57f770
mov r14, r12
mov r12, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.004b80f6
mov rbx, rax
xor ecx, ecx
call fcn.004b72f1
test rbx, rbx
je 0x57f6f1
mov ecx, 1
mov rdx, rsi
call fcn.004b8773
mov rsi, rbx
mov rbx, r12
mov r12, r14
mov r14, qword [rsp + 0x28]
mov rcx, rsi
call fcn.0057b7cb
cmp al, 0xd
jne 0x57f75a
mov rcx, rbx
lea rdx, [rsp + 0x40]
call fcn.0057f177
mov rcx, rsi
call fcn.004b93cc
jmp 0x57f5fa
mov eax, 1
jmp 0x57f75c
movsxd r8, eax
jmp 0x57f731
xor r8d, r8d
lea rax, [rdi + r8]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdx + 0x18]
cmp rax, rcx
jbe 0x57f74a
mov qword [rdx + 0x18], rax
mov rcx, rax
add rdi, r8
jb 0x57f770
cmp rcx, rax
jb 0x57f770
mov qword [rdx + 0x10], rax
xor esi, esi
xor eax, eax
mov rdx, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x57f774
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xd0]
lea r15, [rsp + 0x4a]
lea r12, [rsp + 0x5a]
mov r13, qword [rdx + 0x10]
mov edi, 0x7fffffff
cmp rax, rdi
cmovb rdi, rax
mov rsi, qword [rdx + 0x18]
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x40]
mov rdx, r13
mov r8, rbx
call fcn.0057f3d6
mov al, byte [rsp + 0x49]
cmp al, 3
je 0x57f8eb
mov rcx, qword [rsp + 0x40]
cmp al, 2
je 0x57f8f9
mov dl, byte [rsp + 0x48]
movzx r8d, word [r15 + 4]
mov word [r12 + 4], r8w
mov r8d, dword [r15]
mov dword [r12], r8d
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x58], dl
mov byte [rsp + 0x59], al
cmp rsi, 0xffffffffffffffff
je 0x57f93d
mov rcx, rsi
mov rdx, rbp
mov r8d, edi
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x57f90b
call fcn.0056c6ea
mov rsi, rax
mov rcx, rax
call fcn.0057b7cb
cmp al, 0xd
jne 0x57f8c0
cmp qword [rsp + 0x38], 0
je 0x57f8c0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x57f93d
mov rdi, r13
mov r13, r14
mov r14, r15
mov r15, rbx
mov rbx, rbp
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.004b80f6
mov rbp, rax
xor ecx, ecx
call fcn.004b72f1
test rbp, rbp
je 0x57f8ac
mov ecx, 1
mov rdx, rsi
call fcn.004b8773
mov rsi, rbp
mov rbp, rbx
mov rbx, r15
mov r15, r14
mov r14, r13
mov r13, rdi
mov rdi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.0057b7cb
cmp al, 0xd
jne 0x57f91c
mov rcx, r14
lea rdx, [rsp + 0x50]
call fcn.0057f177
mov rcx, rsi
call fcn.004b93cc
mov rsi, qword [rsp + 0x60]
jmp 0x57f7cb
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x57f92c
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x57f92c
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x57f92c
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x5803a6
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x5803a9
test al, 1
je 0x5803c4
test al, 2
jne 0x5803c4
xor rax, 3
ret
ud2

Function at 0x582a0c
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x582a2d
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.0059cc50
mov rcx, rax
call fcn.005751d1
mov ecx, eax
jmp 0x582a20
Function at 0x592e73
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rbx, r8
mov r14, rdx
mov rsi, rcx
lea rax, [rsp + 0x60]
and qword [rax], 0
mov qword [rsp + 0x20], rax
lea rcx, [0x00798d18]
lea r9, [0x00798d28]
xor edx, edx
mov r8d, 1
call sub.ole32.dll_CoCreateInstance
test eax, eax
js 0x592f81
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x59302d
and qword [rsp + 0x58], 0
lea r15, [rsp + 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.00592cc4
mov al, byte [r15]
cmp al, 0x14
jne 0x592f8c
mov r14, qword [rsp + 0x68]
mov rax, qword [rdi]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], pe_nt_image_headers64
and qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x592fc6
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x59302d
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
mov eax, 3
mov dword [rsp + 0x28], eax
and dword [rsp + 0x38], 0
mov dword [rsp + 0x20], eax
and qword [rsp + 0x30], 0
mov rcx, rbx
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoSetProxyBlanket
test eax, eax
js 0x59301c
mov qword [rsi + 8], rbx
mov byte [rsi], 0x14
jmp 0x593003
mov byte [rsi], 0
mov dword [rsi + 4], eax
jmp 0x59300c
mov cl, byte [rsp + 0x63]
mov byte [rsp + 0x56], cl
movzx ecx, word [rsp + 0x61]
mov word [rsp + 0x54], cx
mov ebx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x90], xmm0
add byte [rax], al
add byte [rdi], cl
adc byte [rsp + 0x80], al
movaps xmmword [rsp + 0xa0], xmm0
jmp 0x592fd2
mov ebx, eax
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
jo 0x592f66
add byte [rax], al
xor eax, eax
mov dl, byte [rsp + 0x56]
mov byte [rsi + 3], dl
movzx edx, word [rsp + 0x54]
mov word [rsi + 1], dx
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
mov word [rax + riz*4], fs
add byte [rax], al
add byte [rdi], cl
adc dword [rsi + 0x10], eax
movups xmmword [rsi + 0x20], xmm1
mov byte [rsi], al
mov dword [rsi + 4], ebx
mov qword [rsi + 8], rcx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
add rsp, 0xb0
mov al, 0
add byte [rax], al
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov byte [rsi], 0
mov dword [rsi + 4], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x593003
ud2
Function at 0x59e070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x007e0804]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x59e190
mov rax, qword [0x007e0808]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x59e0bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x59e176
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x59e0a0
mov rcx, rsi
call fcn.0059ecb0
test rax, rax
mov r12, rax
je 0x59e1c8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x007e0808]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.0059ee00
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x007e0808]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x59e1ab
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x59e16f
sub eax, 0x40
and eax, 0xffffffbf
je 0x59e16f
add rbx, qword [0x007e0808]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x59e197
add dword [0x007e0804], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.ntdll.dll_memcpy
xor ebx, ebx
jmp 0x59e0c7
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0059e000
mov rax, qword [0x007e0808]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.0059e000
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.0059e000
nop
nop dword [rax + rax]

Function at 0x59e920
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x007e0ae0]
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x007e0ac0]
test rbx, rbx
je 0x59e974
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 0x59e96b
test rsi, rsi
je 0x59e96b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x59e950
lea rcx, [0x007e0ae0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]
Function at 0x59ecb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x007a9590]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x59ecd0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.0059eb90
test eax, eax
je 0x59ecc8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x59ed2d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x59ed24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x59ecc8
add rdx, 0x28
cmp rdx, r9
jne 0x59ed10
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x5a4e70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov ebx, 1
mov r11d, r8d
mov r10, rcx
mov cl, r9b
inc r11
shl rbx, cl
mov eax, r11d
add rax, rax
lea rax, [rax + rbx + 8]
cmp rax, qword [rsp + 0x88]
mov rax, 0xffffffffffffffd2
seta sil
cmp r8d, 0xff
seta cl
or sil, cl
jne 0x5a50a4
add rax, 2
cmp r9d, 0xc
ja 0x5a50a4
mov r15d, 1
mov cl, r9b
lea eax, [r8 + 1]
mov r14d, r15d
movzx r12d, r9w
lea rbx, [r10 + 4]
shl r14d, cl
lea ecx, [r9 - 1]
or r12d, 0x10000
lea edi, [r14 - 1]
mov dword [rsp + 8], eax
mov dword [rsp + 0xc], r12d
shl r15d, cl
xor eax, eax
mov r8d, 1
mov ecx, edi
cmp dword [rsp + 8], eax
jbe 0x5a4f64
mov bp, word [rdx + rax*2]
cmp bp, 0xffff
jne 0x5a4f3c
mov ebp, ecx
dec ecx
mov byte [rbx + rbp*4 + 2], al
mov rbp, qword [rsp + 0x80]
mov word [rbp + rax*2], 1
jmp 0x5a4f5f
cmp bp, r15w
mov r13b, 1
cmovge esi, r13d
mov r13d, 0
cmovge r8d, r13d
mov r13, qword [rsp + 0x80]
mov word [r13 + rax*2], bp
inc rax
jmp 0x5a4f13
test sil, sil
je 0x5a4f76
movzx r12d, word [rsp + 0xc]
shl r8d, 0x10
or r12d, r8d
mov r8d, r14d
mov eax, r14d
mov dword [r10], r12d
shr r8d, 1
shr eax, 3
cmp ecx, edi
lea r8d, [r8 + rax + 3]
jne 0x5a5027
mov rax, qword [rsp + 0x80]
add r11, r11
xor ebp, ebp
add rax, r11
xor r11d, r11d
movabs r12, 0x101010101010101
imul r12, r11
cmp dword [rsp + 8], r11d
jbe 0x5a4fe7
movsx r15, word [rdx + r11*2]
lea r13, [rax + rbp]
mov edi, 8
mov qword [r13], r12
mov rsi, r15
cmp r15d, edi
jle 0x5a4fdf
mov qword [r13 + rdi], r12
add rdi, 8
jmp 0x5a4fcf
add rbp, rsi
inc r11
jmp 0x5a4fa5
xor r11d, r11d
xor edx, edx
movsxd rbp, r14d
cmp rbp, r11
ja 0x5a4ff9
xor r8d, r8d
jmp 0x5a5063
mov dil, byte [rax + r11]
mov rsi, rdx
add rdx, r8
and rsi, rcx
mov byte [rbx + rsi*4 + 2], dil
mov dil, byte [rax + r11 + 1]
mov rsi, rcx
and rsi, rdx
add rdx, r8
add r11, 2
and rdx, rcx
mov byte [rbx + rsi*4 + 2], dil
jmp 0x5a4fef
xor esi, esi
xor r11d, r11d
cmp dword [rsp + 8], esi
jbe 0x5a5058
xor ebp, ebp
movsx eax, word [rdx + rsi*2]
cmp eax, ebp
jle 0x5a5053
mov eax, r11d
mov byte [rbx + rax*4 + 2], sil
add r11d, r8d
and r11d, edi
cmp ecx, r11d
jb 0x5a5044
inc ebp
jmp 0x5a5034
inc rsi
jmp 0x5a502c
or rax, 0xffffffffffffffff
test r11d, r11d
je 0x5a4ff4
jmp 0x5a50a4
cmp r14d, r8d
jbe 0x5a50a2
movzx edx, byte [r10 + r8*4 + 6]
add rdx, rdx
add rdx, qword [rsp + 0x80]
movzx eax, word [rdx]
lea ecx, [rax + 1]
mov word [rdx], cx
bsr ecx, eax
xor ecx, 0x1f
lea ecx, [r9 + rcx - 0x1f]
shl eax, cl
mov byte [r10 + r8*4 + 7], cl
sub eax, r14d
mov word [r10 + r8*4 + 4], ax
inc r8
jmp 0x5a5063
xor eax, eax
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret