joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a0d00
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400a0d90
jmp 0x1400a0d7f
jae 0x1400a0e50
cmp r8, 0x201
jae 0x1400a0d90
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400a0de8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400a0dbf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400d4650
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400a0e11
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400a0eb8
mov r8d, r14d
cmp r15, r8
jne 0x1400a0d70
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400a0edb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400a0d7f
jmp 0x1400a0d90
cmp rsi, r8
jb 0x1400a0ef5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400a55e0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1400a0ea1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.14001f4d0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x1400a0e89
jmp 0x1400a0ea1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400d57a0
jmp 0x1400a0f0a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400d5cf0
ud2
Function at 0x1400a5fe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400a6010
test ecx, ecx
jne 0x1400a6060
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400a601c
test ecx, ecx
jne 0x1400a6060
mov rcx, rdi
call fcn.1400a5ec0
movzx eax, al
test bpl, bpl
jne 0x1400a6067
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400a6053.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1400a61d8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400a6053.2
xor eax, eax
test bpl, bpl
je 0x1400a602c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400a61b9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1400a609a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400a6119
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x1400a60e0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400a60fb
inc rax
dec rdi
cmp rax, 1
jne 0x1400a60c0
jmp 0x1400a6119
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400a60fb
cmp ebx, 0x5c
je 0x1400a60fb
inc rax
dec rdi
cmp rax, 1
jne 0x1400a60e0
jmp 0x1400a6119
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1400a61c7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400a6143
mov al, 9
cmp rdx, 2
je 0x1400a6147
cmp rdx, 1
jne 0x1400a6157
cmp byte [r8], 0x2e
jne 0x1400a6157
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400a6157
mov al, 0xa
jmp 0x1400a6157
cmp byte [r8], 0x2e
jne 0x1400a6157
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400a6053.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400a6053.2
mov ecx, 2
jmp case.0x1400a6053.2
lea r8, str.library_std_srcpath.rs
call fcn.1400d5c70
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400d5c70
ud2
Function at 0x1400ad800
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14012ab78]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400ad844
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400ad8a3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400ad8b2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400ad8ea
cmp eax, 0x103
je 0x1400ad8f4
test eax, eax
js 0x1400ad8cf
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400ad8ea
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x14012abd8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400a50e0
mov rcx, rax
call fcn.14009e100
mov ecx, 7
int 0x29
ud2

Function at 0x1400ad960
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14012ab78]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400ad9a4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400ada0a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400ada41
test eax, eax
js 0x1400ada1b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400ada34
mov ecx, eax
call qword [sym.imp.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
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x14012abd8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400a50e0
mov rcx, rax
call fcn.14009e100
mov ecx, 7
int 0x29
ud2
Function at 0x1400af580
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140144db9]
mov ecx, 0x10
mov edx, 8
call fcn.14001f4c0
test rax, rax
je 0x1400af65f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400af6f0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400af651
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400af628
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.14001f4d0
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.14001f4d0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400d5600
ud2

Function at 0x1400bd670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400bd6ea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400bd6e0
cmp r10, r11
jb 0x1400bd783
cmp r10, rdx
ja 0x1400bd797
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400bd6e2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400bd6c0
jmp 0x1400bd757
ja 0x1400bd6ea
mov r11, r10
cmp rax, r8
jne 0x1400bd692
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400bd75b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400bd730
mov r8, r10
sub ecx, r9d
jns 0x1400bd74e
jmp 0x1400bd75d
cmp r10, rdx
je 0x1400bd769
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400bd75d
xor al, 1
cmp r8, rdx
jne 0x1400bd710
jmp 0x1400bd75d
xor eax, eax
jmp 0x1400bd75d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400d57a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400d5d70
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400d5cf0
ud2
Function at 0x1400d3f18
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d3f62
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d3f62
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d3f62
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d3f62
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d3f62
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d3f64
xor al, al
add rsp, 0x28
ret
Function at 0x180004c40
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x18001c010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx edi, dl
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edx, edx
mov ecx, edi
xor ebp, ebp
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r9d, eax
cmp dil, 1
jne 0x180004c9f
xorps xmm0, xmm0
lea r8d, [rbp + 6]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
lea rdx, str.MOUSE0
mov qword [rbx + 0x18], rbp
jmp 0x180004da0
cmp dil, 2
jne 0x180004cc5
xorps xmm0, xmm0
lea rdx, str.MOUSE1
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8d, 6
mov qword [rbx + 0x18], rbp
jmp 0x180004da0
cmp dil, 4
jne 0x180004ceb
xorps xmm0, xmm0
lea rdx, str.MBUTTON
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8d, 7
mov qword [rbx + 0x18], rbp
jmp 0x180004da0
cmp dil, 5
jne 0x180004d11
xorps xmm0, xmm0
lea rdx, str.XBUTTON1
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8d, 8
mov qword [rbx + 0x18], rbp
jmp 0x180004da0
cmp dil, 6
jne 0x180004d34
xorps xmm0, xmm0
lea rdx, str.XBUTTON2
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8d, 8
mov qword [rbx + 0x18], rbp
jmp 0x180004da0
lea eax, [rdi - 0x21]
cmp eax, 0x84
ja case.0x180004d59.41
lea rdx, [0x180000000]
cdqe
movzx eax, byte [rdx + rax + 0x4dd8]
mov ecx, dword [rdx + rax*4 + 0x4dd0]
add rcx, rdx
jmp rcx
bts r9d, 8
shl r9d, 0x10
lea rdx, [rsp + 0x30]
mov ecx, r9d
mov r8d, 0x80
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rbp
inc r8
cmp byte [rax + r8], bpl
jne 0x180004d92
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180012f60
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800130d0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400011d0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub rsp, 0x1f8
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000122d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_initialize_Winsock.
call fcn.1400013b0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140001600
add rsp, 0x1f8
ret
xor r8d, r8d
mov qword [rsp + 0x1f0], rbx
mov ebx, 2
mov ecx, ebx
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
xor r8d, r8d
lea edx, [rbx - 1]
mov ecx, ebx
mov qword [0x140005620], rax
call qword [sym.imp.WS2_32.dll_socket]
cmp qword [0x140005620], 0xffffffffffffffff
mov qword [0x140005830], rax
jne 0x140001290
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_create_socket.
call fcn.1400013b0
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [rbx - 3]
jmp 0x14000138b
mov ecx, 0x1b8
mov word [rsp + 0x30], bx
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [0x140005620]
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov word [rsp + 0x32], ax
mov dword [rsp + 0x34], ebx
lea r8d, [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400012d6
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_bind_socket.
jmp 0x140001336
mov rcx, qword [0x140005620]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmp eax, 0xffffffff
jne 0x1400012fd
lea rdx, str.Failed_to_listen_on_socket.
jmp 0x140001336
lea rdx, str.Listening_on_port_440...
call fcn.1400013b0
mov rcx, qword [0x140005620]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [0x140005830], rax
cmp rax, 0xffffffffffffffff
jne 0x140001355
lea rdx, str.Failed_to_accept_client_connection.
call fcn.1400013b0
mov rcx, qword [0x140005620]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
jmp 0x14000138b
lea rdx, str.Client_connected_
call fcn.1400013b0
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140001070]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov rbx, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140001600
add rsp, 0x1f8
ret
Function at 0x140001ed4
Capabilities:
Parse pe header

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

Function at 0x1400012b4
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
mov r8d, 0x3000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
add rsp, 0x28
ret
Function at 0x18003c000
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x18003c02d
xor al, al
jmp 0x18003c18f
mov rax, qword [0x18005d600]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x18005d608]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x18005d610]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x18005d618]
mov qword [rcx + 0x18], rax
mov rax, qword [0x18005d620]
mov qword [rcx + 0x20], rax
mov rax, qword [0x18005d628]
mov qword [rcx + 0x28], rax
mov rax, qword [0x18005d630]
mov qword [rcx + 0x30], rax
mov rax, qword [0x18005d638]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x18005d640]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x18003c181
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x18003c0d9
mov r11d, 2
jmp 0x18003c0fd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x18003c0f3
mov r11d, 1
jmp 0x18003c0fd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x18003c1a5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x18003c142
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x18003c15a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x18003c16a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x18003c178
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x18003c0c0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x18003c18a
Function at 0x1400089f4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400dc3e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 1
mov rdi, qword [0x1400e8430]
mov rax, qword [0x1400e8438]
jmp 0x140008ab4
test ebx, ebx
js 0x140008bd2
mov rsi, qword [rdi]
test rsi, rsi
je 0x140008ab0
and qword [rsp + 0x30], 0
cmp qword [rsi + 0x10], 0
jne 0x140008a4b
xor ebx, ebx
jmp 0x140008ab0
lea r8, [rsp + 0x30]
lea rdx, [0x1400ae538]
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x10]
call qword [case.0x14006f593.0]
mov ebx, eax
test eax, eax
js 0x140008a92
mov rax, qword [rsi + 0x20]
add rax, 8
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8d, [r9 - 1]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsi]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140008aa9
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
mov rax, qword [0x1400e8438]
add rdi, 8
cmp rdi, rax
jb 0x140008a2a
test ebx, ebx
js 0x140008bd2
jne 0x140008bcb
cmp byte [0x1400e7600], 0
je 0x140008b78
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400e75f0], rax
test rax, rax
je 0x140008b71
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [0x1400e75a0]
lea r8, [0x140009510]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140008b37
mov rcx, qword [0x1400e75f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400e75f0], rdi
test rdi, rdi
je 0x140008b71
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x140008b66
mov rcx, qword [0x1400e75f0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x1400e75f8]
add edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008b80
mov ebx, 0x80004005
jmp 0x140008b84
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x140008bd2
xor eax, eax
mov rdi, qword [0x1400e8430]
mov rcx, qword [0x1400e8438]
jmp 0x140008bc4
test eax, eax
jne 0x140008bd2
mov rdx, qword [rdi]
test rdx, rdx
je 0x140008bc0
mov rax, qword [rdx + 0x20]
mov edx, dword [rax + 8]
test edx, edx
jne 0x140008bb1
xor eax, eax
jmp 0x140008bc0
mov ecx, edx
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [0x1400e8438]
add rdi, 8
cmp rdi, rcx
jb 0x140008b96
jmp 0x140008bd2
mov byte [0x1400e7600], 0
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140092030
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400129d0
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1400dc3e8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
xor r14d, r14d
mov qword [rbp - 0x19], r14
movdqa xmm0, xmmword [0x1400b8430]
movdqu xmmword [rbp - 9], xmm0
mov word [rbp - 0x19], r14w
call fcn.14006be98
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0xc0]
mov qword [rbp + 7], r14
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
lea r8d, [r14 + 8]
lea rdx, [0x1400b0490]
lea rcx, [rbp + 7]
call fcn.140016628
nop
mov qword [rbp - 0x39], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
lea r8d, [r14 + 0x2d]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea rcx, [rbp - 0x39]
call fcn.140016628
nop
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], r14b
lea r9, [rbp + 7]
lea r8, [rbp - 0x39]
mov rdx, 0xffffffff80000001
mov rcx, rdi
mov rax, rbx
call qword [case.0x14006f593.0]
mov ebx, eax
lea rcx, [rbp - 0x39]
call fcn.140007f4c
nop
lea rcx, [rbp + 7]
call fcn.140007f4c
test ebx, ebx
js 0x140012acb
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
mov r8b, 1
lea rdx, [0x1400b0490]
call fcn.14005f3b4
test al, al
jne 0x140012b28
mov eax, 2
mov dword [rsi], eax
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x165ef449
lea rax, [0x1400ae7c0]
mov qword [rsp + 0x20], rax
lea r9, str.OOBERequestHandler::CheckOneDriveRunsOnStartup
mov r8d, 0x5b9
lea rdx, str.D:dbs_shodct1010_170902_4cmd12clientonedriveProductFileCoAuthDesktopLibOOBERequestHandler.cpp
lea rcx, [rbp + 7]
call qword [sym.imp.LoggingPlatform.DLL_public:_void___cdecl_StructuredEvent::constructor_char_const____ptr64__int__char_const____ptr64__struct__GUID_const____ptr64__unsigned_int__unsigned_int__unsigned_int__unsigned_int____ptr64]
xor edx, edx
lea rcx, [rbp + 7]
call qword [sym.imp.LoggingPlatform.DLL_void___cdecl_LoggingWriteStructuredEvent_struct_StructuredEvent_const____ptr64__struct_StructuredEventParameter__const___ptr64_]
call qword [sym.imp.LoggingPlatform.DLL_void___cdecl_LoggingRotateIfNeeded_void_]
nop
lea rcx, [rbp - 0x19]
call fcn.140007f4c
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140092030
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret