joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cab90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
xor r10d, r10d
mov edi, r8d
mov rbx, rdx
mov r11d, 0x7fffffff
test ecx, ecx
jle 0x1400cabf6
mov qword [rsp + 0x10], rsi
imul edi, r9d
mov r9, rdx
mov esi, ecx
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, r11d
imul eax, dword [rbx]
lea rbx, [rbx + 0x10]
mov r8, r10
mov r10, r9
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, r11d
cmovl r11d, eax
cmp eax, ecx
cmovge r10, r8
add r9, 0x10
sub rsi, 1
jne 0x1400cabc0
mov rsi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r10
pop rdi
ret

Function at 0x1400cb330
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x14017a448], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400cb38c
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x14017a438], xmm0
movsd qword [0x14017a440], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x1400cb3d0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400cb3b1
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x1400cb3d8
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x1400cb3d8
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.1400c76b0
mov rcx, rbx
call fcn.1400cb780
cmp dword [rbx + 0x1f8], 0
je 0x1400cb42b
mov rax, qword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400cb42b
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1400cd3a0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400cb440
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x1400cb490
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400cb490
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1400cd3a0
xor ecx, ecx
mov qword [0x14017a448], 0
call fcn.1400cb780
cvttsd2si ecx, qword [0x14017a438]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x14017a440]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x388], ecx
mov rcx, qword [rbx + 0x350]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [rbx + 0x7c], 0x34001
jne 0x1400cb524
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400cb508
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]

Function at 0x1400cb5e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, 0x12
test si, ax
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x1400cd100
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x1400cd130
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.1400cd3a0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400cdbc0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x140179d62]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x140179ae8]
xor r13d, r13d
lea r12, [0x140179e02]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x1400cdd65
cmp ebx, 0x140
jb 0x1400cdce0
cmp ebx, 0x14e
ja 0x1400cdce0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], WSACleanup
mov dword [rsp + 0x6c], WSACleanup
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], WSACleanup
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x1400cdcef
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x1400cdd32
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x1400cdd65
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x1400cdc42
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400eecb0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400d2ba0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x14017a678], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x1400d2bf5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400eecb0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14017a678], rax
test rax, rax
jne 0x1400d2c38
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1400d2c00
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400c6e80
jmp 0x1400d2d5d
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017a678]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x14017a680], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017a678]
lea rdx, str.OSMesaDestroyContext
mov qword [0x14017a688], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017a678]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x14017a690], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017a678]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x14017a698], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017a678]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x14017a6a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017a678]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x14017a6a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14017a680], 0
mov qword [0x14017a6b0], rax
je 0x1400d2d2f
cmp qword [0x14017a690], 0
je 0x1400d2d2f
cmp qword [0x14017a698], 0
je 0x1400d2d2f
cmp qword [0x14017a6a0], 0
je 0x1400d2d2f
cmp qword [0x14017a6a8], 0
je 0x1400d2d2f
test rax, rax
je 0x1400d2d2f
mov eax, 1
jmp 0x1400d2d5f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400c6e80
mov rcx, qword [0x14017a678]
test rcx, rcx
je 0x1400d2d5d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14017a678], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400eecb0
add rsp, 0x48
ret
Function at 0x1400d8df0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400d8e88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400d8e88
mov dword [rsp + 0x20], 0x28
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400d8eac
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400eecb0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.140002bd0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400d8f60
lea rdx, [0x14016a248]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400d9350
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x1401b1c00]
mov rax, qword gs:[0x58]
mov edx, 8
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14017aae0], ecx
jg 0x1400d942f
mov eax, ebx
cmp rbx, rax
jne 0x1400d93f1
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x1400d93f1
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x14017aad8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400d9472
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400eecb0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.140002bd0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400d8f60
lea rdx, [0x14016a248]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x14017aae0]
call fcn.1400ef110
cmp dword [0x14017aae0], 0xffffffff
jne 0x1400d939c
lea rcx, [0x14017aad8]
call fcn.1400d8df0
lea rcx, [0x1400fe4d0]
call fcn.1400eef34
nop
lea rcx, [0x14017aae0]
call fcn.1400ef0a4
jmp 0x1400d939c
lea rdx, [0x14011cc10]
lea rcx, [rsp + 0x20]
call fcn.140002bd0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400d8f60
lea rdx, [0x14016a248]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400e73d0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x1400e7407
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x1400e73f0
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x1400e74f8
sub rcx, r10
cmp r9, 8
jb 0x1400e74d9
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x1400e7460
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x1400e74f8
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x1400e74e0
test r8d, r8d
sete al
ret
Function at 0x1400e7500
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x1400e7696
cmp r9, 4
jb 0x1400e753a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x1400e7521
xor r11d, r11d
test r9, r9
je 0x1400e7696
cmp r9, 8
jb 0x1400e766d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x1400e756c
cmp r10, r8
jae 0x1400e766d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x1400e7581
cmp r10, rdx
jae 0x1400e766d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x1400e7627
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x1400e75c0
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x1400e765f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x1400e7640
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x1400e7696
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x1400e7680
add rsp, 8
ret
Function at 0x1400ee4c0
Capabilities:
Get geographical location

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

Function at 0x1400efb60
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x120
mov rax, qword [0x1800e1080]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r11, r8
mov esi, r9d
mov r8d, 0x100
mov qword [rsp], 0
mov ebp, edx
lea r10, [rsp + 8]
mov r14, rcx
xor eax, eax
nop word [rax + rax]
mov byte [r10], al
lea r10, [r10 + 1]
inc eax
cmp eax, r8d
jl 0x18000b0d0
xor ebx, ebx
lea r10, [rsp + 8]
xor edi, edi
xor r9d, r9d
nop word [rax + rax]
movzx edx, byte [r10]
lea rcx, [rsp + 8]
movzx eax, dl
lea r10, [r10 + 1]
add al, byte [r9 + r14]
add al, dil
movzx edi, al
movzx eax, byte [rcx + rdi]
mov byte [r10 - 1], al
lea rax, [r9 + 1]
mov byte [rcx + rdi], dl
lea ecx, [rbx + 1]
xor ebx, ebx
cmp ecx, ebp
cmovl ebx, ecx
xor r9d, r9d
cmp ecx, ebp
cmovl r9, rax
sub r8, 1
jne 0x18000b0f0
mov r9d, dword [rsp]
mov r10d, dword [rsp + 4]
test esi, esi
jle 0x18000b191
mov rbx, rsi
nop dword [rax]
nop word [rax + rax]
inc r9b
lea rdx, [rsp + 8]
movzx r9d, r9b
lea r11, [r11 + 1]
movzx r8d, byte [rdx + r9]
lea eax, [r10 + r8]
movzx r10d, al
movzx ecx, byte [rsp + r10 + 8]
mov byte [rdx + r9], cl
add cl, r8b
movzx eax, cl
mov byte [rsp + r10 + 8], r8b
movzx ecx, byte [rsp + rax + 8]
xor byte [r11 - 1], cl
sub rbx, 1
jne 0x18000b150
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.180088650
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18000bea0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], sil
mov dword [rsp + 0x20], 1
mov ebx, esi
test r8d, r8d
je 0x18000c12a
mov ecx, esi
nop
dec ebp
movzx eax, byte [r14]
lea r14, [r14 + 1]
mov byte [rsp + rcx + 0x80], al
inc ebx
inc rcx
movzx r13d, byte [rsp + 0x82]
movzx r15d, byte [rsp + 0x81]
movzx r12d, byte [rsp + 0x80]
cmp rcx, 3
jne 0x18000bfe6
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x88], al
movzx ecx, r12b
and cl, 3
shl cl, 4
movzx eax, r15b
shr al, 4
add cl, al
mov byte [rsp + 0x89], cl
movzx ecx, r15b
and cl, 0xf
shl cl, 2
movzx eax, r13b
shr al, 6
add cl, al
mov byte [rsp + 0x8a], cl
movzx eax, r13b
and al, 0x3f
mov byte [rsp + 0x8b], al
mov rbx, rsi
nop dword [rax]
lea rcx, [0x1800e1cb8]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x1800e1cb8]
movzx eax, byte [rsp + rbx + 0x88]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x18000bfd0
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x18000bfc5
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000bfd8
mov rcx, rdi
call fcn.18000c150
inc rbx
cmp rbx, 4
jl 0x18000bf80
mov ebx, esi
mov rcx, rsi
test ebp, ebp
jne 0x18000bef0
test ebx, ebx
je 0x18000c12a
movsxd rax, ebx
cmp rax, 3
jge 0x18000c031
jae 0x18000c142
mov byte [rsp + rax + 0x80], 0
inc rax
cmp rax, 3
jl 0x18000bfff
movzx r13d, byte [rsp + 0x82]
movzx r15d, byte [rsp + 0x81]
movzx r12d, byte [rsp + 0x80]
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x88], al
and r12b, 3
shl r12b, 4
movzx eax, r15b
shr al, 4
add r12b, al
mov byte [rsp + 0x89], r12b
and r15b, 0xf
shl r15b, 2
shr r13b, 6
add r15b, r13b
mov byte [rsp + 0x8a], r15b
lea eax, [rbx + 1]
movsxd rbp, eax
test eax, eax
jle 0x18000c0e0
nop word [rax + rax]
lea rcx, [0x1800e1cb8]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x1800e1cb8]
movzx eax, byte [rsp + rsi + 0x88]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x18000c0d0
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x18000c0c5
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000c0d8
mov rcx, rdi
call fcn.18000c150
inc rsi
cmp rsi, rbp
jl 0x18000c080
cmp ebx, 3
jge 0x18000c12a
mov eax, 3
sub eax, ebx
mov ebx, eax
nop
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x18000c119
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x18000c111
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x18000c124
mov r9b, 0x3d
mov rcx, rdi
call fcn.18000c150
sub rbx, 1
jne 0x18000c0f0
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180088b68
int3
Function at 0x18000c340
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1800e1080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edi, 1
mov rbx, rcx
mov dword [rcx], edi
mov qword [rcx + 4], rdi
mov qword [rcx + 0xc], 0
mov qword [rcx + 0x14], 0
mov dword [rcx + 0x1c], 0xa
test r9, r9
jne 0x18000c38b
lea eax, [rdi - 5]
jmp 0x18000c501
xor r8d, r8d
lea r10d, [r8 + 0x10]
nop dword [rax]
nop word [rax + rax]
mov rax, r8
lea rcx, [rsp + 0x20]
and eax, 3
lea r9, [r9 + 1]
add rcx, rax
mov rdx, r8
movzx eax, byte [r9 - 1]
inc r8
shr rdx, 2
mov byte [rcx + rdx*4], al
sub r10, rdi
jne 0x18000c3a0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18000c920
cmp dword [rbx + 8], edi
jne 0x18000c4f9
cmp dword [rbx + 0x1c], edi
jbe 0x18000c4f9
lea r10, sym.ACE_DFS64.dll_Ordinal_10007
nop
mov r9d, edi
inc edi
lea r8, [r9 + 2]
add r9, r9
shl r8, 4
add r8, rbx
movzx ecx, byte [r8 + 3]
movzx eax, byte [r8 + 2]
mov edx, dword [r10 + rcx*4 + 0xe20e0]
xor edx, dword [r10 + rax*4 + 0xe30e0]
movzx eax, byte [r8 + 1]
xor edx, dword [r10 + rax*4 + 0xe28e0]
movzx eax, byte [r8]
xor edx, dword [r10 + rax*4 + 0xe1ce0]
mov dword [r8], edx
movzx ecx, byte [rbx + r9*8 + 0x27]
movzx eax, byte [rbx + r9*8 + 0x26]
mov edx, dword [r10 + rcx*4 + 0xe20e0]
xor edx, dword [r10 + rax*4 + 0xe30e0]
movzx eax, byte [rbx + r9*8 + 0x25]
xor edx, dword [r10 + rax*4 + 0xe28e0]
movzx eax, byte [rbx + r9*8 + 0x24]
xor edx, dword [r10 + rax*4 + 0xe1ce0]
mov dword [rbx + r9*8 + 0x24], edx
movzx ecx, byte [rbx + r9*8 + 0x2b]
movzx eax, byte [rbx + r9*8 + 0x2a]
mov edx, dword [r10 + rcx*4 + 0xe20e0]
xor edx, dword [r10 + rax*4 + 0xe30e0]
movzx eax, byte [rbx + r9*8 + 0x29]
xor edx, dword [r10 + rax*4 + 0xe28e0]
movzx eax, byte [rbx + r9*8 + 0x28]
xor edx, dword [r10 + rax*4 + 0xe1ce0]
mov dword [rbx + r9*8 + 0x28], edx
movzx eax, byte [rbx + r9*8 + 0x2e]
movzx ecx, byte [rbx + r9*8 + 0x2f]
mov edx, dword [r10 + rcx*4 + 0xe20e0]
xor edx, dword [r10 + rax*4 + 0xe30e0]
movzx eax, byte [rbx + r9*8 + 0x2d]
xor edx, dword [r10 + rax*4 + 0xe28e0]
movzx eax, byte [rbx + r9*8 + 0x2c]
xor edx, dword [r10 + rax*4 + 0xe1ce0]
mov dword [rbx + r9*8 + 0x2c], edx
cmp edi, dword [rbx + 0x1c]
jb 0x18000c3f0
mov dword [rbx], 0
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180088650
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret