joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400735d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x490
mov rax, qword [0x1400dbbf0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, r9
mov rax, r8
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x60], 0x400
mov dword [rsp + 0x70], 0xf003f
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], send
mov byte [rdi], cl
mov dword [rsp + 0x30], 1
cmp qword [r8 + 0x18], 0x10
jb 0x14007363e
mov rax, qword [r8]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14007372b
cmp qword [rbx + 0x18], 0x10
jb 0x140073673
mov rbx, qword [rbx]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14007372b
mov r8d, dword [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x38]
call fcn.14002fa10
nop
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14003ebf0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140073718
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140073713
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007375f
call fcn.14009d0f0
movdqa xmm0, xmmword [0x1400c6c10]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007373b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14009d0d0
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x490
pop rdi
ret
call fcn.14007f2b8
int3
Function at 0x140076480
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400dbbf0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov qword [rbp - 0x31], rcx
xor ebx, ebx
mov dword [rbp - 0x21], ebx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400df5e0], eax
jle 0x140076505
lea rcx, [0x1400df5e0]
call fcn.14009d1a0
cmp dword [0x1400df5e0], 0xffffffff
jne 0x140076505
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x1400df5e8], eax
lea rcx, [0x1400df5e0]
call fcn.14009d134
lea rdi, [rbp - 9]
xor eax, eax
mov ecx, 0x42
rep stosb byte [rdi], al
lea r8, [rbp - 9]
xor edx, edx
lea rcx, [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x140076622
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp - 0x31]
lea edx, [rax + 1]
mov ecx, dword [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x140076619
mov dword [rbp - 0x19], ebx
mov dword [rbp - 0x39], ebx
mov dword [rbp - 0x1d], ebx
lea rdi, [rbp - 0x29]
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x1d]
lea rdx, [rbp - 0x39]
mov ecx, dword [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp eax, 0xea
jne 0x140076666
mov eax, dword [rbp - 0x39]
test eax, eax
je 0x140076666
mov ecx, eax
mov eax, 0x29c
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140088ab0
mov rsi, rax
mov ecx, dword [rbp - 0x21]
test rax, rax
je 0x140076669
mov eax, dword [rbp - 0x39]
mov dword [rbp - 0x1d], eax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, [rbp - 0x1d]
lea rdx, [rbp - 0x39]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
jne 0x14007665e
cmp dword [rbp - 0x39], eax
je 0x14007665e
mov edx, ebx
mov r8d, dword [rbp - 0x1d]
test r8d, r8d
je 0x140076619
mov r9d, dword [0x1400df5e8]
mov eax, edx
imul rcx, rax, 0x29c
mov edi, dword [rcx + rsi]
cmp edi, r9d
jne 0x140076649
inc edx
cmp edx, r8d
jb 0x140076601
mov ecx, dword [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14009d0d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rcx, rsi
call fcn.14007ee98
mov ecx, dword [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ebx, edi
jmp 0x140076622
mov rcx, rsi
call fcn.14007ee98
mov ecx, dword [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x140076624
Function at 0x14008d8f0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14008d906
mov al, 1
jmp 0x14008d966
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14008d917
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14008d964
mov ecx, dword [rcx + 0x18]
nop
call fcn.140099df4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14008d964
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14008d964
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14008d964
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14008d966
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14008f2f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14009dda0
sub rsp, rax
mov rax, qword [0x1400dbbf0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14008c788
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14008f347
mov rax, rbp
jmp 0x14008f44f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xdd060]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140090244
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xdd060]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14008f44b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008f44b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140090244
test rax, rax
js 0x14008f44b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14008f44b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14008f43d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14008f43d
cmp byte [rcx], 0xd
jne 0x14008f423
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008f432
cmp byte [rcx + 1], 0xa
jne 0x14008f432
inc rcx
jmp 0x14008f432
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xdb3b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14008f405
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14008f44f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14009d0d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008f5e4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400dd060]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14008f63b
cmp word [rdx], r13w
jne 0x14008f63b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14008f640
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14008f765
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14008f786
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14008f679
mov rdx, r9
mov word [rbx], cx
jmp 0x14008f6a0
cmp r9, r8
jae 0x14008f6b0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14008f65a
jmp 0x14008f765
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008f75a
cmp dword [rsp + 0x80], esi
je 0x14008f75a
lea r8, [0x1400dd060]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14008f732
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14008f702
mov word [rbx], r13w
jmp 0x14008f762
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14008f70f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14008f762
cmp word [rsp + 0x70], r13w
jne 0x14008f73f
cmp rbx, r14
je 0x14008f6fc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009024c
cmp word [rsp + 0x70], r13w
je 0x14008f765
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400dd060]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14008f75f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14008f765
Function at 0x14009739c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400891fc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14009743d
cmp ebx, dword [rsp + 0x30]
je 0x140097436
test esi, esi
je 0x140097436
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140097411
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009741e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400973fb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140097422
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009743f
mov eax, 1
jmp 0x14009743f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400979b8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140097a27
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140097a27
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140097a27
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140097a27
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140097a27
cmp dword [rcx + 0x84], 0xe
jbe 0x140097a27
cmp dword [rcx + 0xf8], 0
je 0x140097a27
mov ecx, ebx
call fcn.140097ad8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400978b4
nop
cmp dword [rbp + 0x20], 0
je 0x140097a75
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140097a80
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400979b8

Function at 0x140097bbc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400979b8

Function at 0x14009c7c8
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 0x14009c84f
mov rsi, rbx
cmp word [rax], bp
je 0x14009c80e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009c7f8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009c7f4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14008b2dc
mov rdi, rax
test rax, rax
je 0x14009c83c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14009f7f0
mov rbp, rdi
xor ecx, ecx
call fcn.14008b0c0
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 0x14009dc48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009dc92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009dc92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009dc92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009dc92
cmp dword [rcx + 0x84], 0xe
jbe 0x14009dc92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14009dc94
xor al, al
add rsp, 0x28
ret

Function at 0x1400a3bd4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400a3c58
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400c2520]
cmp byte [rcx + rax], 0
je 0x1400a3c58
dec r8
sub rdx, 1
jne 0x1400a3c3e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400a4340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400a3c70
mov ebx, eax
test eax, eax
jne 0x1400a4370
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400a43cc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a43c3
test al, 0x10
je 0x1400a43c3
bt eax, 0xa
jae 0x1400a43bc
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400a43e4
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400a43b8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400a43dc
test edi, edi
jne 0x1400a43c3
and dword [rsp + 0x3c], 0
jmp 0x1400a43c8
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.14009af1c
int3
Function at 0x1400a8c24
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009024c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009024c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a8d74
cmp rax, 0xffffffffffffffff
je 0x1400a8d74
xor edi, edi
test rbp, rbp
jle 0x1400a8d1f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14008eeb4
mov rbx, rax
test rax, rax
jne 0x1400a8cac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a8d15
mov edx, 0x8000
mov ecx, r14d
call fcn.1400a6598
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14008e5fc
cmp eax, 0xffffffff
je 0x1400a8cf5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a8cbc
mov edx, r15d
mov ecx, r14d
call fcn.1400a6598
jmp 0x1400a8d15
cmp byte [rsi + 0x38], dil
je 0x1400a8d0c
cmp dword [rsi + 0x34], 5
jne 0x1400a8d0c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x1400a8d15
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008b0c0
jmp 0x1400a8d88
jns 0x1400a8d88
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009024c
cmp rax, 0xffffffffffffffff
jne 0x1400a8d40
cmp byte [rsi + 0x30], dil
je 0x1400a8d88
mov edi, dword [rsi + 0x2c]
jmp 0x1400a8d88
mov ecx, r14d
call fcn.140099df4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a8d88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x1400a8d88
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a8d81
mov eax, dword [rsi + 0x2c]
jmp 0x1400a8d86
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009024c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400a8e60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a8e88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a8e88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140011249
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14001bba0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [0x140032340]
xor rax, rbp
mov qword [rbp + 0x228], rax
lea rcx, [0x14003a5ab]
call fcn.1400118e3
xor edx, edx
mov ecx, 2
call fcn.140011410
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001bc0e
xor al, al
jmp 0x14001bc71
mov dword [rbp + 0x30], 0x130
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001173f
test eax, eax
je 0x14001bc65
lea rdx, [rbp + 0x5c]
mov rcx, qword [rbp + 0x258]
call fcn.1400119fb
test eax, eax
jne 0x14001bc54
mov rax, qword [rbp + 0x260]
mov ecx, dword [rbp + 0x38]
mov dword [rax], ecx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14001bc71
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400118f7
test eax, eax
jne 0x14001bc26
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002c0f0]
call fcn.14001174e
mov rax, rdi
mov rcx, qword [rbp + 0x228]
xor rcx, rbp
call fcn.14001142e
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret

Function at 0x1400114ce
Capabilities:
Terminate process

Disassembly:
jmp 0x1400233d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400115fa
Capabilities:
Parse pe header

Disassembly:
jmp 0x140022290
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400222b0
xor al, al
jmp 0x140022331
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400222c3
xor al, al
jmp 0x140022331
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400222ed
xor al, al
jmp 0x140022331
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140022301
xor al, al
jmp 0x140022331
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140022313
xor al, al
jmp 0x140022331
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002232f
xor al, al
jmp 0x140022331
mov al, 1
add rsp, 0x38
ret
Function at 0x140002b00
Capabilities:
Delete file
Execute command

Disassembly:
sub rsp, 0x48
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov ecx, 0x20
call fcn.1400557c0
mov qword [rsp + 0x20], rax
movdqa xmm0, xmmword [reloc.WS2_32.dll_select]
movdqu xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [str.C:Usersoasis.sys]
movups xmmword [rax], xmm0
movzx ecx, word [0x140063258]
mov word [rax + 0x10], cx
mov byte [rax + 0x12], 0
mov r8d, 0x2d00
lea rdx, [0x140077210]
lea rcx, [rsp + 0x20]
call fcn.1400028b0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140002ba3
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b9e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055b0c
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov ecx, 0x20
call fcn.1400557c0
mov qword [rsp + 0x20], rax
movdqa xmm0, xmmword [reloc.WS2_32.dll_setsockopt]
movdqu xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [str.C:Userskdmapper.exe]
movups xmmword [rax], xmm0
mov ecx, dword [0x140063270]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x140063274]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
mov r8d, 0x21600
lea rdx, [0x140419920]
lea rcx, [rsp + 0x20]
call fcn.1400028b0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140002c4a
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055b0c
lea rcx, str.C:Userskdmapper.exe_C:Usersoasis.sys
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.C:Usersoasis.sys
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, str.C:Userskdmapper.exe
add rsp, 0x48
jmp qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
std
invalid
iretd
mov bh, 0x59
not dword [rdx]
out dx, eax
stosd dword [rdi], eax
invalid
Function at 0x140004310
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140004331
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000435e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004360
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400043b9
test ecx, ecx
jle 0x140004399
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400043b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400043b9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
iretd