joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180062ce0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x180
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x1800f07a0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, r9
mov rbx, r8
mov r14, rcx
mov dword [rsp + 0x40], 0
xor r9d, r9d
lea r8, [rsp + 0x44]
mov rcx, qword [0x1800f1f48]
call fcn.18005f090
mov rsi, rax
test rax, rax
je 0x180062eff
cmp dword [rax], 0x4c
jne 0x180062eff
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x258], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x268], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r14 + 0x278], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r14 + 0x288], xmm1
movsd xmm0, qword [rax + 0x40]
movsd qword [r14 + 0x298], xmm0
mov eax, dword [rax + 0x48]
mov dword [r14 + 0x2a0], eax
mov ecx, dword [rsi + 8]
add rcx, 0x4c
mov eax, dword [rsp + 0x44]
cmp rax, rcx
jb 0x180062eff
lea rcx, [rsp + 0x60]
sub rcx, rbx
nop dword [rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x180062db0
lea rcx, [rsp + 0x60]
call fcn.18005ebe0
test rdi, rdi
je 0x180062e01
cmp byte [rdi], 0
je 0x180062e01
lea rcx, [rsp + 0x60]
dec rcx
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x180062de0
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [rdi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180062df0
jmp 0x180062e30
lea rcx, [rsp + 0x60]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x180062e10
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [rsi + rdx + 0xc]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180062e20
mov rcx, qword [r14 + 0x1f0]
test rcx, rcx
je 0x180062e46
mov edx, 1
call fcn.18006aeb8
mov ecx, dword [r14 + 0x260]
call fcn.18006af50
mov qword [r14 + 0x1f0], rax
mov r8d, dword [r14 + 0x260]
lea rdx, [rsi + 0x4c]
mov rcx, rax
call fcn.18006e9b0
mov r9d, dword [r14 + 0x25c]
mov r8d, dword [r14 + 0x260]
mov rdx, qword [r14 + 0x1f0]
lea rcx, [r14 + 0x1f8]
call fcn.180063340
test eax, eax
je 0x180062eff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180062eff
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [r14 + 0x25c]
mov rdx, qword [r14 + 0x1f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x40], 1
mov eax, 1
jmp 0x180062f12
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18006ab60
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop r14
pop rdi
pop rsi
ret
Function at 0x180062f40
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
xor edi, edi
mov r14d, edi
mov dword [rax - 0x38], edi
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax + 0xe0], 0
jne 0x180062f70
test rax, rax
je 0x1800630e6
cmp qword [rcx + 0x1f8], 0
je 0x1800630e6
cmp qword [rcx + 0x208], 0
je 0x1800630e6
mov rcx, qword [rcx + 0x1f0]
mov r12d, 1
test rcx, rcx
je 0x180062fc3
mov edx, r12d
call fcn.18006aeb8
mov qword [rsi + 0x1f0], rdi
mov rdx, qword [rsi + 0x208]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdx
lea r9, [rsi + 0x200]
mov r8, qword [rsi + 0x1f8]
lea rcx, [rsi + 0x1f0]
call fcn.180063240
test eax, eax
je 0x1800630e0
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r12d
mov edx, 0x40000000
lea rcx, [rsi + 0xe0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi + 0x1e8], rax
cmp rax, 0xffffffffffffffff
je 0x1800630e0
mov rdi, qword [rsi + 0x200]
add rdi, 0x4c
mov qword [rsp + 0x90], rdi
mov rcx, rdi
call fcn.18006af50
mov rbx, rax
mov dword [rax], 0x4c
mov ecx, dword [rsi + 0x200]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0x208]
mov dword [rax + 4], ecx
lea rdx, [rsi + 0x210]
lea rcx, [rax + 0xc]
mov r8d, 0x40
call fcn.180062030
lea rcx, [rbx + 0x4c]
mov r8, qword [rsi + 0x200]
mov rdx, qword [rsi + 0x1f0]
call fcn.18006e9b0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rsi + 0x1e8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x88]
cmp rax, rdi
cmove r14d, r12d
mov dword [rsp + 0x40], r14d
mov edx, 0x50
mov rcx, rbx
call fcn.18006aeb8
mov rcx, rsi
call fcn.180062be0
xor edi, edi
mov dword [rsi + 0x254], edi
mov eax, r14d
jmp 0x1800630ef
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180063bc0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rdx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x180063c41
mov edx, 8
lea r8d, [rdx + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x180063c22
lea rcx, str.____DataEvent::_Failed_to_allocate_memory_n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [rsp + 0x40], 1
lea rdx, [0x1800ee260]
lea rcx, [rsp + 0x40]
call fcn.18006ede8
int3
mov qword [rax + 8], rbx
mov qword [rsp + 0x50], rax
lea rdx, [0x1800b4ba8]
mov qword [rax], rdx
xor ecx, ecx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
jmp 0x180063c87
mov ecx, 0x20
call fcn.18006af50
test rax, rax
jne 0x180063c6a
mov dword [rsp + 0x40], 1
lea rdx, [0x1800ee260]
lea rcx, [rsp + 0x40]
call fcn.18006ede8
int3
xor ecx, ecx
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rdx, [0x1800b4ba8]
mov qword [rax], rdx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180069c50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
movzx esi, word [r8 + 0xe]
lea rdi, [r8 + 0x10]
movzx eax, word [r8 + 0xc]
mov rbx, r9
mov r11, rcx
add esi, eax
je 0x180069d27
mov qword [rsp + 0x60], rbp
mov ebp, dword [rsp + 0x70]
mov eax, dword [rdi + 4]
cmp eax, 0x80000000
jb 0x180069cbb
test ebp, ebp
jne 0x180069c9a
cmp word [rdi], 0x18
je 0x180069d15
btr eax, 0x1f
lea ecx, [rbp + 1]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov rcx, r11
lea r8, [rdx + rax]
call fcn.180069c50
mov r11, qword [rsp + 0x50]
jmp 0x180069d10
btr eax, 0x1f
mov r8d, dword [rax + rdx]
mov r9d, dword [rax + rdx + 4]
add r8, r11
shr r9d, 2
test r9d, r9d
je 0x180069d15
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rbx]
xor dword [r8], eax
lea r8, [r8 + 4]
mov ecx, dword [rbx]
mov eax, 0x8fd66c05
mul ecx
shr edx, 0x11
imul eax, edx, 0x38f40
sub ecx, eax
imul eax, ecx, 0x2455
add eax, 0xc091
mov dword [rbx], eax
sub r9d, 1
jne 0x180069ce0
mov rdx, qword [rsp + 0x58]
add rdi, 8
sub esi, 1
jne 0x180069c86
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x180069d30
Capabilities:
Check mutex on windows
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov rax, qword [0x1800f07a0]
xor rax, rsp
mov qword [rsp + 0x150], rax
movsxd rdi, dword [rcx + 0x3c]
xor ebp, ebp
add rdi, rcx
mov r14, rcx
mov ebx, ebp
movzx eax, word [rdi + 0x14]
lea rsi, [rdi + 0x18]
add rsi, rax
cmp bp, word [rdi + 6]
jae 0x180069da1
nop word [rax + rax]
lea rdx, str..rsrc
mov rcx, rsi
call fcn.180072884
test eax, eax
je 0x180069da1
movzx eax, word [rdi + 6]
add rsi, 0x28
inc ebx
cmp ebx, eax
jl 0x180069d80
movzx eax, word [rdi + 6]
cmp ebx, eax
jge 0x180069f41
xor edx, edx
mov qword [rsp + 0x188], r15
mov r8d, 0x104
lea rcx, [rsp + 0x40]
call fcn.18006eed0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, str.QA1Q0ZWQIE__d
lea rcx, [rsp + 0x40]
call fcn.180050d60
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov r15, rax
test rax, rax
je 0x180069f39
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x180069f30
mov edi, dword [rsi + 0xc]
add rdi, r14
mov ecx, dword [rdi]
mov dword [rsp + 0x30], ecx
test ecx, ecx
je 0x180069f27
mov eax, ecx
shr eax, 0x10
xor al, 0x76
cmp cl, al
jne 0x180069f27
mov eax, ecx
shr ecx, 8
shr eax, 0x18
xor al, 0x5a
cmp cl, al
jne 0x180069f27
mov edx, dword [rsi + 0x10]
lea r9, [rsp + 0x34]
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [rdi + 0xc]
lea rbx, [rdi + 0x10]
mov dword [rdi], ebp
movzx ebp, word [rdi + 0xe]
add ebp, eax
je 0x180069f11
mov eax, dword [rsp + 0x30]
nop dword [rax + rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0x80000000
jb 0x180069eb7
cmp word [rbx], 0x18
je 0x180069f04
btr ecx, 0x1f
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x30]
mov rdx, rdi
lea r8, [rdi + rcx]
mov rcx, r14
call fcn.180069c50
mov eax, dword [rsp + 0x30]
jmp 0x180069f04
btr ecx, 0x1f
mov r9d, dword [rcx + rdi]
mov r10d, dword [rcx + rdi + 4]
add r9, r14
shr r10d, 2
test r10d, r10d
je 0x180069f04
xor dword [r9], eax
lea r9, [r9 + 4]
mov eax, 0x8fd66c05
mul dword [rsp + 0x30]
imul eax, dword [rsp + 0x30], 0x2455
shr edx, 0x11
imul r8d, edx, 0x7eac6fc0
add eax, 0xc091
add eax, r8d
mov dword [rsp + 0x30], eax
sub r10d, 1
jne 0x180069ed0
add rbx, 8
sub ebp, 1
jne 0x180069e80
mov edx, dword [rsi + 0x10]
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18006ab60
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18008af58
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18006aed0
sub rsp, rax
mov rax, qword [0x1800f07a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.18008915c
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x18008afac
mov rax, r14
jmp 0x18008b0c6
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x180000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0xf35b0]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.18008b4fc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rdi*8 + 0xf35b0]
cmp r13, qword [rbx + rcx + 0x30]
je 0x18008b013
or rax, 0xffffffffffffffff
jmp 0x18008b0c6
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0xf35b0]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008b00a
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.18008b4fc
test rax, rax
js 0x18008b00a
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x18008b00a
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x18008b0ba
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18008b0ba
cmp byte [rcx], 0xd
jne 0x18008b0a0
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18008b0af
cmp byte [rcx + 1], 0xa
jne 0x18008b0af
inc rcx
jmp 0x18008b0af
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xf1230]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x18008b082
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18006ab60
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180092cb4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x1800f35b0]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x180092d19
cmp byte [r14], 0xa
jne 0x180092d19
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x180092d3a
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x180092e94
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x180092e54
cmp al, 0xd
je 0x180092d6e
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x180092e49
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x180092d94
cmp byte [rax], 0xa
jne 0x180092d86
mov byte [rbx], 0xa
mov eax, 2
jmp 0x180092d8c
mov byte [rbx], 0xd
mov rax, r13
add rsi, rax
jmp 0x180092e46
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180092e3c
cmp dword [rsp + 0x78], 0
je 0x180092e3c
mov rcx, rdi
lea r10, [0x1800f35b0]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x180092e0c
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x180092e18
mov rcx, rdi
mov byte [rbx], 0xd
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x180092e46
cmp byte [rsp + 0x70], 0xa
jne 0x180092e1d
cmp rbx, r14
jne 0x180092e1d
mov byte [rbx], 0xa
jmp 0x180092e46
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.18008b504
cmp byte [rsp + 0x70], 0xa
lea r10, [0x1800f35b0]
je 0x180092e49
jmp 0x180092e43
lea r10, [0x1800f35b0]
mov byte [rbx], 0xd
add rbx, r13
cmp rsi, rbp
jb 0x180092d53
jmp 0x180092e94
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x180092e8d
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x180092e94
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180092eb4
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 r11, [0x1800f35b0]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x180092f20
cmp word [r14], r10w
jne 0x180092f20
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x180092f41
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x18009311a
mov ecx, recv
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x1800930d8
cmp ax, cx
je 0x180092f7d
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x180093071
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x180092fa5
cmp word [rax], r10w
jne 0x180092f97
mov word [rbx], r10w
mov eax, 4
jmp 0x180092f9d
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x1800930bb
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800930c0
cmp dword [rsp + 0x80], 0
je 0x1800930c0
mov rcx, rdi
lea r11, [0x1800f35b0]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x18009307f
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x180093017
mov word [rbx], r10w
jmp 0x180093069
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, recv
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x180093038
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, recv
cmp rsi, rbp
jb 0x180092f5d
jmp 0x18009311a
cmp word [rsp + 0x70], r10w
jne 0x18009308c
cmp rbx, r14
je 0x180093011
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008b504
mov r10d, 0xa
lea r11, [0x1800f35b0]
cmp word [rsp + 0x70], r10w
je 0x18009306c
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x180093071
mov ecx, recv
lea r11, [0x1800f35b0]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x180093071
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x180093111
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x18009311a
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [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
Function at 0x180097b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
sub esi, dword [rdi + 0x9c]
mov ecx, dword [rdi + 0x44]
sub esi, edx
add ecx, 0xfffffefa
add ecx, ebx
cmp edx, ecx
jb 0x180097bcc
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.18006e9b0
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
lea rdx, [rdx - 2]
cmp eax, ebx
jb 0x180097b90
sub eax, ebx
jmp 0x180097b92
xor eax, eax
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x180097b80
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop word [rax + rax]
movzx eax, word [rcx - 2]
lea rcx, [rcx - 2]
cmp eax, ebx
jb 0x180097bc0
sub eax, ebx
jmp 0x180097bc2
xor eax, eax
mov word [rcx], ax
add edx, 0xffffffff
jne 0x180097bb0
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x180097c46
mov edx, dword [rdi + 0x9c]
mov r8d, esi
mov eax, dword [rdi + 0x94]
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.180097fa0
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x180097c30
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x180097c46
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x180097b30
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001733
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x140001777
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001772
cmp rbx, r11
jae 0x140001777
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001760
cmp rbx, r11
jb 0x14000177b
xor eax, eax
jmp 0x140001787
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400027c0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x240
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov esi, edx
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov r12, r9
mov rbp, r8
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x1401232ec], 0
jne 0x14000281f
cmp dword [0x1401232f0], 0
jne 0x14000281f
cmp dword [0x1401232f4], 0
jne 0x14000281f
cmp dword [0x1401232f8], 0
je 0x140002831
lea rdx, str.System32
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.DIFxAPI.dll
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rdi, rax
je 0x140002874
lea rdx, str.DriverPackageUninstallW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140002879
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x140002893
mov r9, r12
mov r8, rbp
mov edx, esi
mov rcx, rbx
call rax
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140090480
add rsp, 0x240
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400029c0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r8, rdx
movzx edx, cx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ecx, ecx
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test rbx, rbx
mov ebp, eax
je 0x140002ac4
test rdi, rdi
je 0x140002ac4
test rsi, rsi
je 0x140002ac4
test eax, eax
je 0x140002ac4
lea rcx, [rsp + 0x50]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, str.DIFxAPI.dll
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor ebx, ebx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140002abc
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140002ac6
mov ebx, dword [rsp + 0x40]
mov eax, ebx
jmp 0x140002ac6
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140090480
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret