joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ebfb0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400ebfe0
xor eax, eax
jmp 0x1400ec0a3
mov rbp, rbx
cmp word [rax], si
je 0x1400ec005
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400ebfec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400ebfe8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400ebed0
movsxd r14, eax
test eax, eax
jne 0x1400ec043
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400ebfd9
mov rcx, r14
call fcn.14004dde0
mov rdi, rax
test rax, rax
jne 0x1400ec05c
xor ecx, ecx
call fcn.140098200
jmp 0x1400ec038
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400ebed0
test eax, eax
jne 0x1400ec08d
mov rcx, rdi
call fcn.140098200
jmp 0x1400ec097
xor ecx, ecx
call fcn.140098200
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400ec0c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400ec147
mov rsi, rbx
cmp word [rax], bp
je 0x1400ec106
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ec0f0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ec0ec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004dde0
mov rdi, rax
test rax, rax
je 0x1400ec134
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c2780
mov rbp, rdi
xor ecx, ecx
call fcn.140098200
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ee6f4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400c9638
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ee77e
cmp byte [rbp - 0x21], r15b
je 0x1400ee779
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ee7b4
call fcn.1400e5694
test eax, eax
jne 0x1400ee7a0
cmp byte [rbp - 0x21], r15b
je 0x1400ee798
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ee7b4
cmp byte [rbp - 0x21], r15b
je 0x1400ee7b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400cec4c
test eax, eax
jne 0x1400ee854
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c9638
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ee7f3
cmp byte [rbp - 0x21], r15b
je 0x1400ee828
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ee828
call fcn.1400e5694
test eax, eax
jne 0x1400ee814
cmp byte [rbp - 0x21], r15b
je 0x1400ee80d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ee828
cmp byte [rbp - 0x21], r15b
je 0x1400ee825
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400cec4c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ee854
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ee857
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ee865
mov rcx, rdi
call fcn.140098200
cmp byte [rbp + 0x3f], r15b
je 0x1400ee874
mov rcx, qword [rbp + 0x27]
call fcn.140098200
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400f0560
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400f0576
mov al, 1
jmp 0x1400f05d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400f0587
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400f05d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400d214c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400f05d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400f05d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400f05d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400f05d6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400f6f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1400f7060
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x1400f70bc
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x1400f709c
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c0d00
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r14d, 1
cmovge r14d, eax
xor r15d, r15d
mov rcx, qword [rsi + 0x40]
call fcn.1400db2c8
cmp eax, 0xffffffff
je 0x1400f713e
mov byte [rsp + r15 + 0x58], al
inc r15
cmp r14, r15
jne 0x1400f70de
mov byte [rsp + 0x57], 0xaa
cmp byte [rsi + 0x61], 0
je 0x1400f7148
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test bl, bl
je 0x1400f711a
movzx edi, byte [rsp + 0x57]
mov dword [rsi + 0x5c], edi
jmp 0x1400f709c
mov edi, r14d
test rdi, rdi
jle 0x1400f71ee
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movzx ecx, byte [rsp + rax + 0x58]
call fcn.1400e1f24
cmp eax, 0xffffffff
jne 0x1400f711d
mov edi, 0xffffffff
jmp 0x1400f709c
lea r15, [rsp + 0x48]
mov qword [r15], rdi
lea r12, [rsp + 0x40]
mov qword [r12], rdi
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx edi, word [rdx + 6]
lea r9, [rsp + r14 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x57]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x58]
call qword [case.0x1400bfc46.0]
cmp eax, 1
jne 0x1400f71d7
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], di
cmp r14d, 8
je 0x1400f713e
mov rcx, qword [rsi + 0x40]
call fcn.1400db2c8
cmp eax, 0xffffffff
je 0x1400f713e
mov byte [rsp + r14 + 0x58], al
inc r14
jmp 0x1400f7159
cmp eax, 2
je 0x1400f713e
cmp eax, 3
je 0x1400f7104
jmp 0x1400f710c
movzx edi, byte [rsp + 0x57]
jmp 0x1400f709c
Function at 0x1400f7510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1400f7640
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x5e], 0
je 0x1400f769c
movzx edi, word [rsi + 0x5c]
test bl, bl
je 0x1400f767c
mov word [rsi + 0x5c], 0xffff
mov byte [rsi + 0x5e], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c0d00
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r14d, 1
cmovge r14d, eax
xor r15d, r15d
mov rcx, qword [rsi + 0x40]
call fcn.1400db2c8
cmp eax, 0xffffffff
je 0x1400f7729
mov byte [rsp + r15 + 0x58], al
inc r15
cmp r14, r15
jne 0x1400f76be
mov word [rsp + 0x56], 0xaaaa
cmp byte [rsi + 0x5f], 0
je 0x1400f7732
movsx eax, byte [rsp + 0x58]
mov word [rsp + 0x56], ax
test bl, bl
je 0x1400f7702
movzx edi, word [rsp + 0x56]
mov word [rsi + 0x5c], di
jmp 0x1400f767c
mov edi, r14d
test rdi, rdi
jle 0x1400f77d8
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movsx eax, byte [rsp + rax + 0x58]
movzx ecx, ax
call fcn.1400e1f24
cmp eax, 0xffffffff
jne 0x1400f7705
mov di, 0xffff
jmp 0x1400f767c
lea r15, [rsp + 0x48]
mov qword [r15], rdi
lea r12, [rsp + 0x40]
mov qword [r12], rdi
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx edi, word [rdx + 6]
lea r9, [rsp + r14 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x56]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x58]
call qword [case.0x1400bfc46.0]
cmp eax, 1
jne 0x1400f77c1
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], di
cmp r14d, 8
je 0x1400f7729
mov rcx, qword [rsi + 0x40]
call fcn.1400db2c8
cmp eax, 0xffffffff
je 0x1400f7729
mov byte [rsp + r14 + 0x58], al
inc r14
jmp 0x1400f7743
cmp eax, 2
je 0x1400f7729
cmp eax, 3
je 0x1400f76e6
jmp 0x1400f76f0
movzx edi, word [rsp + 0x56]
jmp 0x1400f767c

Function at 0x1400f7a70
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400f7aa7
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x1400f7a81
ret

Function at 0x1400f7b10
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400f7b48
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x1400f7b21
ret
Function at 0x14010e3e0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14010e455
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14010e45a
mov dil, 1
test bl, bl
je 0x14010e43e
cmp byte [rsi + 8], 0
je 0x14010e4ae
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c0d00
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x14010e40d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x14010e482
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14010e487
xor edi, edi
jmp 0x14010e43e
mov rcx, qword [rsi]
jmp 0x14010e46f
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x14010e4b3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x14010e43e
mov rcx, qword [rsi]
jmp 0x14010e433
mov rcx, qword [rsi]
jmp 0x14010e49e

Function at 0x14011be40
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rax, [0x14015f500]
mov qword [rcx], rax
mov byte [rcx + 8], 0
lea rcx, str.qwave.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14011beee
mov rdi, rax
lea rdx, str.QOSCreateHandle
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rbx
mov qword [rsi + 0x10], rax
lea rdx, str.QOSCloseHandle
mov rcx, rdi
call rbx
mov qword [rsi + 0x18], rax
lea rdx, str.QOSAddSocketToFlow
mov rcx, rdi
call rbx
mov qword [rsi + 0x20], rax
lea rdx, str.QOSRemoveSocketFromFlow
mov rcx, rdi
call rbx
mov qword [rsi + 0x28], rax
lea rdx, str.QOSSetFlow
mov rcx, rdi
call rbx
mov qword [rsi + 0x30], rax
cmp qword [rsi + 0x10], 0
je 0x14011beee
cmp qword [rsi + 0x18], 0
je 0x14011beee
cmp qword [rsi + 0x20], 0
je 0x14011beee
cmp qword [rsi + 0x28], 0
je 0x14011beee
test rax, rax
je 0x14011beee
mov al, 1
xchg byte [rsi + 8], al
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14011c060
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov r14, r9
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0xe0], rax
lea rbx, [rsp + 0x50]
mov r8d, 0x90
mov rcx, rbx
mov dl, 0xaa
call fcn.1400c2be0
mov rcx, rbx
call fcn.140076510
mov dword [rbx + 0x80], 0x80
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14011c209
lea rax, [rsp + 0xd0]
mov r8, qword [rax + 8]
mov rdx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
mov r8d, ebp
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x14011c147
mov ebx, eax
movaps xmm0, xmmword [0x140160830]
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm0
mov dword [rcx + 0x10], 0xaaaaaaaa
call fcn.1400a5880
test ebx, ebx
js 0x14011c174
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
lea r15, [rsp + 0x30]
mov rcx, r15
call fcn.140056c80
test al, al
je 0x14011c16f
test r14, r14
je 0x14011c177
mov eax, dword [rsp + 0x40]
mov dword [r14 + 0x10], eax
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [r14], xmm0
jmp 0x14011c177
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14011c1b4
mov ecx, eax
call fcn.140076630
mov ebx, eax
mov rcx, rsi
mov edx, eax
xor r8d, r8d
xor r9d, r9d
call fcn.14011c390
jmp 0x14011c192
mov ebx, 0xffffff94
xor r15d, r15d
mov r8, qword [rdi + 0x10]
mov rcx, rsi
mov edx, ebx
mov r9, r15
call fcn.14011c390
lea rcx, [rsp + 0x30]
call fcn.1400a5870
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400c0d00
mov eax, ebx
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
test rdi, rdi
je 0x14011c1ca
mov eax, 1
lock xadd dword [rdi + 8], eax
cmp eax, 0x7fffffff
je 0x14011c20c
mov rcx, qword [rsi + 0xa8]
mov qword [rsi + 0xa8], rdi
test rcx, rcx
je 0x14011c1f4
lock dec dword [rcx + 8]
jne 0x14011c1f4
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1400bfc46.0]
mov dword [rsi + 0xb8], ebp
mov rcx, rsi
call fcn.14011c8f0
mov ebx, 0xffffffff
jmp 0x14011c192
int3
int3
Function at 0x14011c210
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r14, r9
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea r15, [rsp + 0x30]
mov r8d, 0x90
mov rcx, r15
mov dl, 0xaa
call fcn.1400c2be0
mov rcx, r15
call fcn.140076510
test r14, r14
je 0x14011c283
lea r8, [rsp + 0xb0]
mov r15, qword [r8 + 8]
mov rcx, r14
mov rdx, r15
call fcn.140056c10
test al, al
je 0x14011c2ea
mov eax, dword [rsp + 0xb0]
jmp 0x14011c293
mov dword [rsp + 0xb0], 0
xor eax, eax
xor r15d, r15d
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rsi + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x14011c30b
mov ebp, eax
mov r8, qword [rbx + 0x10]
mov rcx, rsi
mov edx, eax
mov r9, r14
call fcn.14011c3f0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400c0d00
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
add rsi, 0xe0
mov ebp, 0xffffff94
mov rcx, rsi
mov edx, 0x56
mov r8d, 0xffffff94
call fcn.140056880
jmp 0x14011c2c8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14011c32e
mov ecx, eax
call fcn.140076630
mov ebp, eax
mov rcx, rsi
mov edx, eax
xor r8d, r8d
xor r9d, r9d
jmp 0x14011c2c3
test rbx, rbx
je 0x14011c344
mov eax, 1
lock xadd dword [rbx + 8], eax
cmp eax, 0x7fffffff
je 0x14011c386
mov rcx, qword [rsi + 0xb0]
mov qword [rsi + 0xb0], rbx
test rcx, rcx
je 0x14011c36e
lock dec dword [rcx + 8]
jne 0x14011c36e
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1400bfc46.0]
mov dword [rsi + 0xbc], edi
mov rcx, rsi
call fcn.14011c8f0
mov ebp, 0xffffffff
jmp 0x14011c2c8
int3
Function at 0x14011faf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp edx, 0x33ff
jg 0x14011fb12
add edx, edx
movzx r8d, dx
movzx edx, word [rcx]
cmp r8d, edx
jbe 0x14011fb70
and edx, 1
or edx, 2
lea rcx, [rcx + rdx*2]
jmp 0x14011fafe
mov r8d, edx
shr r8d, 9
add r8d, 0x3400
shl edx, 6
and r8d, 0xfffe
mov eax, 0xffffffff
movzx r9d, word [rcx]
cmp r8d, r9d
jbe 0x14011fb49
and r9d, 1
or r9, 2
mov r10, r9
lea rcx, [rcx + r10*2]
jmp 0x14011fb2f
mov r10d, r9d
and r10d, 0x7ffe
cmp r8d, r10d
jne 0x14011fb6f
movzx r10d, word [rcx + 2]
cmp r10w, dx
jae 0x14011fb9c
mov r10d, 3
test r9w, r9w
jns 0x14011fb43
ret
mov r9d, edx
and r9d, 0x7ffe
mov eax, 0xffffffff
cmp r8d, r9d
jne 0x14011fb6f
movzx eax, word [rcx + 2]
test dl, 1
je 0x14011fb6f
shl eax, 0x10
mov r10d, eax
movzx eax, word [rcx + 4]
or eax, r10d
jmp 0x14011fb6f
xor edx, r10d
test edx, 0xffc0
jne 0x14011fb6f
and r10d, 0x3f
shl r10d, 0x10
jmp 0x14011fb93

Function at 0x1401253e0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x14012541e
test rax, rax
je 0x1401254e7
mov rcx, qword [rbx]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov r15, rax
sar r15, 3
lea rcx, [r15 + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x140125513
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r14, rax
shr r14, 2
cmp r14, rcx
cmovbe r14, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r14, rdx
test r14, r14
jne 0x1401254da
xor eax, eax
shl r15, 3
add r15, rax
je 0x1401254e7
lea rax, [rax + r14*8]
mov rcx, qword [rbx]
mov qword [r15], rcx
lea rcx, [r15 + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rdx
je 0x1401254a8
mov r9, qword [r8 - 8]
add r8, 0xfffffffffffffff8
mov qword [r15 - 8], r9
add r15, 0xfffffffffffffff8
cmp r8, rdx
jne 0x140125490
mov rdx, qword [rsi]
mov qword [rsi], r15
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rdx, rdx
je 0x140125412
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140125a50
mov rcx, rdi
mov rdx, r14
call fcn.140125fd0
jmp 0x14012546d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str........._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400f56f0
mov rcx, rsi
call fcn.1400f5660
int3

Function at 0x140129130
Capabilities:
Enumerate processes

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
lea rsi, [rcx + 0x18]
mov r8d, 0x238
mov rcx, rsi
xor edx, edx
call fcn.1400c2be0
mov dword [rdi + 0x18], 0x238
cmp byte [rdi + 0x10], 0
je 0x140129172
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
mov byte [rdi + 0x10], 1
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x140129166
Function at 0x14012ef40
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x14012ef5b
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.14006ab80
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x14012f009
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14012f009
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x14012f034
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x14012ef51
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x14012ef4f
mov dword [rsi], 7
jmp 0x14012ef4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14012ef4f

Function at 0x140003a20
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a54
cmp word [rcx], 0x5a4d
jne 0x140003a54
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a54
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a54
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003960
test eax, eax
jne 0x140003a70
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039d0
test rax, rax
je 0x140003a65
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004216
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004120
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400040c0
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 0x140004cd0
Capabilities:
Parse pe header

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

Function at 0x140004da1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140527090]
mov r8, rcx
mov rcx, r9
call fcn.140004cd0
test eax, eax
je 0x140004dcd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004cf4
xor eax, eax
add rsp, 0x28
ret