joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021c50
Capabilities:
Get keyboard layout

Disassembly:
push rbx
push rdi
push r13
push r14
push r15
sub rsp, 0x150
xor r14d, r14d
movsxd r15, r8d
movzx ebx, cl
lea rax, [0x1401102e8]
mov r10d, r14d
lea rcx, [0x1401109b8]
movzx r13d, r9b
mov rdi, rdx
cmp byte [rax], bl
je 0x140021e46
inc r10d
add rax, 0x10
cmp rax, rcx
jl 0x140021c81
mov qword [rsp + 0x180], rbp
xor ecx, ecx
mov qword [rsp + 0x188], rsi
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [rbx - 0x41]
mov rsi, rax
cmp cl, 0x19
ja 0x140021dde
xor edx, edx
mov qword [rsp + 0x190], r12
mov r8d, 0x100
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r14d
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 2
lea ecx, [rdx + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x44]
cmp eax, 2
movzx ebp, bl
mov dword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
cmove r14w, word [rsp + 0x44]
mov ecx, ebp
xor edx, edx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r12d, eax
test eax, eax
jns 0x140021d64
xor edx, edx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 2
lea ecx, [rdx + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test r14w, r14w
je 0x140021dc2
mov r9b, 1
lea rdx, [rsp + 0x40]
mov r8, rsi
movzx ecx, r14w
call fcn.1400220d0
movzx r14d, al
test al, al
je 0x140021dc2
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400214b0
movzx ecx, r14b
lea r9, [rsp + 0x4c]
xor r14d, r14d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r14d
lea r8, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
jmp 0x140021dc5
xor r14d, r14d
test r12d, r12d
mov r12, qword [rsp + 0x190]
je 0x140021dd9
movzx eax, word [rsp + 0x44]
jmp 0x140021df1
mov eax, r14d
jmp 0x140021df1
movzx ebp, bl
mov r8, rsi
mov ecx, ebp
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov rsi, qword [rsp + 0x188]
mov word [rdi], ax
test ax, ax
je 0x140021e10
mov rbp, qword [rsp + 0x180]
mov word [rdi + 2], r14w
jmp 0x140021e6a
test r13b, r13b
je 0x140021e38
test bl, bl
je 0x140021e38
mov r9d, ebp
lea r8, str.vk_02X
mov edx, r15d
mov rcx, rdi
call fcn.1400ba350
mov rbp, qword [rsp + 0x180]
jmp 0x140021e6a
mov rbp, qword [rsp + 0x180]
mov word [rdi], r14w
jmp 0x140021e6a
movsxd rdx, r10d
lea rax, str.Numpad0
add rdx, rdx
lea r8, [r15 - 1]
mov rcx, rdi
mov rdx, qword [rax + rdx*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rdi + r15*2 - 2], r14w
mov rax, rdi
add rsp, 0x150
pop r15
pop r14
pop r13
pop rdi
pop rbx
ret
Function at 0x1400220d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx edi, r9b
mov rbx, rdx
movzx esi, cx
cmp cx, 0xa
jne 0x140022101
mov al, 0xd
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdx, r8
mov qword [rsp + 0x30], rbp
movzx ecx, si
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rbp, ax
mov rcx, rbp
shr rcx, 8
cmp cl, 0xff
jne 0x140022166
cmp bpl, 0xff
jne 0x140022166
test dil, dil
je 0x14002216b
movzx edi, si
test edi, 0xffffff80
jne 0x14002216b
mov edx, 0x103
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x14002216b
movzx ecx, si
call fcn.140016470
mov edx, 1
mov ecx, edi
movzx ebp, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
setne cl
test cl, 0x38
je 0x14002216f
xor al, al
jmp 0x1400221b6
test rbx, rbx
je 0x1400221b2
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140022182
or byte [rbx], 8
jmp 0x1400221a2
test cl, 2
je 0x140022192
movzx eax, byte [rbx]
test al, 3
jne 0x140022192
or al, 1
mov byte [rbx], al
test cl, 4
je 0x1400221a2
movzx eax, byte [rbx]
test al, 0xc
jne 0x1400221a2
or al, 4
mov byte [rbx], al
test cl, 1
je 0x1400221b2
movzx eax, byte [rbx]
test al, 0x30
jne 0x1400221b2
or al, 0x10
mov byte [rbx], al
movzx eax, bpl
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140022cc0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
movzx edi, cl
movzx esi, dl
lea rbp, [0x140000000]
movzx r8d, bx
lea eax, [rdi - 0x13]
cmp eax, 0x92
ja case.0x140022d09.45
cdqe
movzx eax, byte [rax + rbp + 0x22f9c]
mov ecx, dword [rbp + rax*4 + 0x22f30]
add rcx, rbp
jmp rcx
test sil, sil
mov eax, 0x2a
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x136
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x1d
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x11d
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, reloc.WSOCK32.dll_getservbyport
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x138
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x15b
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x15c
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x45
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x52
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x4f
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x50
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x51
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x4b
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x4c
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x4d
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x47
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x48
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x49
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x53
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x145
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x135
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, reloc.WSOCK32.dll_getservbyname
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x4a
cmove bx, ax
jmp 0x140022f04
test sil, sil
mov eax, 0x4e
cmove bx, ax
jmp 0x140022f04
mov r8d, 0x137
movzx eax, r8w
test r8w, r8w
je 0x140022ec4
test sil, sil
cmove bx, ax
jmp 0x140022f04
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, eax
test ax, ax
je 0x140022f04
lea eax, [rdi - 3]
cmp eax, 0xb4
ja case.0x140022ef3.5
cdqe
movzx eax, byte [rax + rbp + 0x2303c]
mov ecx, dword [rbp + rax*4 + 0x23030]
add rcx, rbp
jmp rcx
mov ecx, 0x100
or dx, cx
test sil, sil
cmove bx, dx
movzx eax, bx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx eax, dx
test sil, sil
je 0x140022f07
mov ecx, 0x100
or eax, ecx
jmp 0x140022f07
Function at 0x140023100
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cx
mov r8d, ebx
mov eax, ebx
cmp ebx, 0x11c
ja 0x1400231e1
je 0x1400231d9
sub eax, 0x1d
cmp eax, 0x36
ja case.0x140023206.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x232dc]
mov ecx, dword [rdx + rax*4 + 0x23290]
add rcx, rdx
jmp rcx
mov al, 0xa0
add rsp, 0x20
pop rbx
ret
mov al, 0xa2
add rsp, 0x20
pop rbx
ret
mov al, 0xa4
add rsp, 0x20
pop rbx
ret
mov al, 0x6a
add rsp, 0x20
pop rbx
ret
mov al, 0x6d
add rsp, 0x20
pop rbx
ret
mov al, 0x6b
add rsp, 0x20
pop rbx
ret
mov al, 0x2e
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_ioctlsocket
add rsp, 0x20
pop rbx
ret
mov al, 0x2d
add rsp, 0x20
pop rbx
ret
mov al, 0x26
add rsp, 0x20
pop rbx
ret
mov al, 0x28
add rsp, 0x20
pop rbx
ret
mov al, 0x25
add rsp, 0x20
pop rbx
ret
mov al, 0x27
add rsp, 0x20
pop rbx
ret
mov al, 0x24
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, 0x21
add rsp, 0x20
pop rbx
ret
mov al, SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_send
add rsp, 0x20
pop rbx
ret
mov al, 0xd
add rsp, 0x20
pop rbx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x140023206.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x2333c]
mov ecx, dword [rdx + rax*4 + 0x23314]
add rcx, rdx
jmp rcx
mov al, 0xa1
add rsp, 0x20
pop rbx
ret
mov al, 0xa3
add rsp, 0x20
pop rbx
ret
mov al, 0xa5
add rsp, 0x20
pop rbx
ret
mov al, 0x5b
add rsp, 0x20
pop rbx
ret
mov al, 0x5c
add rsp, 0x20
pop rbx
ret
mov al, 0x90
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_WSAGetLastError
add rsp, 0x20
pop rbx
ret
mov al, 0x5d
add rsp, 0x20
pop rbx
ret
mov al, 0x2c
add rsp, 0x20
pop rbx
ret
mov eax, 0x100
test ax, bx
je 0x140023273
movzx ecx, r8b
mov edx, 1
or ecx, 0xe000
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x140023287
movzx ecx, bl
mov edx, 1
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_MapVirtualKeyW]
add rsp, 0x20
pop rbx
ret
Function at 0x140024dc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r10d, r8d
mov r9, rdx
lea rbx, [0x1400ddc90]
not ecx
cmp r8d, 8
jb 0x140024eb8
mov r11d, r10d
shr r11, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x140024df0
test r10d, r10d
je 0x140024ee0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x140024ec0
mov rbx, qword [rsp + 8]
not ecx
mov eax, ecx
ret

Function at 0x1400252e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
test byte [rcx], 1
mov r10, rdx
mov esi, r8d
mov rdi, rcx
jne 0x140025349
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
xor ebx, ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140025333
mov dword [rdi + 0x10], 7
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ebx, dword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x20]
mov rdx, qword [rdi + 0x18]
lea rax, [rcx + rsi]
cmp rax, rdx
jbe 0x14002535e
mov esi, edx
sub esi, ecx
mov rdx, qword [rdi + 8]
add rdx, rcx
mov r8d, esi
mov rcx, r10
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
add qword [rdi + 0x20], rbx
mov eax, esi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140025390
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
cmp dword [rcx + 0x10], 0
mov rdi, rcx
jne 0x14002544d
test byte [rcx], 1
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x38], rsi
mov esi, 2
jne 0x1400253e8
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x58]
xor ebx, ebx
lea rdx, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400253e2
mov dword [rdi + 0x10], 7
jmp 0x140025428
mov ebx, dword [rsp + 0x58]
jmp 0x140025428
mov qword [rsp + 0x30], r14
mov r14, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
lea rax, [r14 + 2]
cmp rax, rcx
jbe 0x140025403
mov esi, ecx
sub esi, r14d
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x50]
add rdx, r14
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbx + r14]
mov r14, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov ebx, esi
mov rsi, qword [rsp + 0x38]
test ebx, ebx
mov rbx, qword [rsp + 0x60]
je 0x14002544d
movzx eax, byte [rsp + 0x51]
movzx ecx, byte [rsp + 0x50]
shl ax, 8
or ax, cx
add rsp, 0x40
pop rdi
ret
movzx eax, word [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140025460
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
mov rdi, rcx
mov dword [rsp + 0x50], ebx
cmp dword [rcx + 0x10], ebx
jne 0x140025533
test byte [rcx], 1
mov qword [rsp + 0x60], rsi
lea esi, [rbx + 4]
jne 0x1400254b5
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x58]
mov r8d, esi
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400254af
mov dword [rdi + 0x10], 7
jmp 0x1400254f5
mov ebx, dword [rsp + 0x58]
jmp 0x1400254f5
mov qword [rsp + 0x30], r14
mov r14, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
lea rax, [r14 + 4]
cmp rax, rcx
jbe 0x1400254d0
mov esi, ecx
sub esi, r14d
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x50]
add rdx, r14
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbx + r14]
mov r14, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov ebx, esi
mov rsi, qword [rsp + 0x60]
test ebx, ebx
je 0x140025528
movzx ecx, byte [rsp + 0x52]
movzx eax, byte [rsp + 0x53]
shl eax, 8
or eax, ecx
movzx ecx, byte [rsp + 0x51]
shl eax, 8
or eax, ecx
movzx ecx, byte [rsp + 0x50]
shl eax, 8
or eax, ecx
add rsp, 0x38
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x38
pop rdi
pop rbx
ret
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x140025540
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
mov rdi, rcx
mov qword [rsp + 0x58], rbx
cmp dword [rcx + 0x10], ebx
jne 0x14002564b
test byte [rcx], 1
mov qword [rsp + 0x60], rsi
lea esi, [rbx + 8]
jne 0x140025596
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140025590
mov dword [rdi + 0x10], 7
jmp 0x1400255d6
mov ebx, dword [rsp + 0x50]
jmp 0x1400255d6
mov qword [rsp + 0x30], r14
mov r14, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
lea rax, [r14 + 8]
cmp rax, rcx
jbe 0x1400255b1
mov esi, ecx
sub esi, r14d
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x58]
add rdx, r14
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbx + r14]
mov r14, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov ebx, esi
mov rsi, qword [rsp + 0x60]
test ebx, ebx
je 0x14002563f
movzx eax, byte [rsp + 0x5e]
movzx ecx, byte [rsp + 0x5a]
movzx edx, byte [rsp + 0x5f]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x5d]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x5c]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x5b]
shl rdx, 8
or rax, rdx
shl rax, 8
or rax, rcx
movzx ecx, byte [rsp + 0x59]
shl rax, 8
or rax, rcx
movzx ecx, byte [rsp + 0x58]
shl rax, 8
or rax, rcx
add rsp, 0x38
pop rdi
pop rbx
ret
mov rax, qword [rsp + 0x58]
add rsp, 0x38
pop rdi
pop rbx
ret
mov rax, rbx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x1400268d0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
movzx eax, byte [rcx]
mov edi, edx
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 1
test al, al
je 0x140026912
cmp byte [rcx + 1], 0x3a
jne 0x140026912
movzx eax, byte [rcx + 2]
add rcx, 2
movzx edx, al
cmp al, 0x5c
jne 0x14002691d
movzx edx, byte [rcx + 1]
lea rbx, [rcx + 1]
cmovne rbx, rcx
test dl, dl
je 0x140026976
movzx eax, byte [rbx]
test al, al
je 0x14002693f
cmp al, 0x5c
je 0x14002698b
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x140026930
xor ebx, ebx
test edi, edi
je 0x140026976
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140026964
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140026990
test rbx, rbx
je 0x140026976
mov byte [rbx], 0x5c
inc rbx
movzx eax, byte [rbx]
test al, al
jne 0x140026930
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov byte [rbx], 0
jmp 0x140026945
test rbx, rbx
je 0x140026998
mov byte [rbx], 0x5c
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400269b0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
movzx eax, word [rcx]
xor ebp, ebp
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
mov edi, edx
mov qword [rsp + 0x28], rbp
mov rsi, rcx
mov dword [rsp + 0x30], 1
test ax, ax
je 0x1400269f7
cmp word [rcx + 2], 0x3a
jne 0x1400269f7
movzx eax, word [rcx + 4]
add rcx, 4
movzx edx, ax
cmp ax, 0x5c
jne 0x140026a04
movzx edx, word [rcx + 2]
lea rbx, [rcx + 2]
mov qword [rsp + 0x50], r14
cmovne rbx, rcx
test dx, dx
je 0x140026a72
movzx eax, word [rbx]
mov r14d, 0x5c
test ax, ax
je 0x140026a37
cmp ax, r14w
je 0x140026a91
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140026a24
mov rbx, rbp
test edi, edi
je 0x140026a72
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140026a5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140026a96
test rbx, rbx
je 0x140026a72
mov word [rbx], r14w
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x140026a24
mov eax, 1
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov word [rbx], bp
jmp 0x140026a3e
test rbx, rbx
je 0x140026a9f
mov word [rbx], r14w
xor eax, eax
jmp 0x140026a77
Function at 0x140026ab0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, rdx
mov edi, 1
mov edx, edi
mov r14d, r9d
mov rbp, r8
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140026ce9
cmp qword [rbx + 0x38], 0xffffffffffffffff
je 0x140026ce9
mov qword [rsp + 0x70], r15
xor r15d, r15d
mov dword [rbx + 0x10], r15d
test dil, r14b
je 0x140026b7c
cmp word [rbx + 0x80], r15w
jne 0x140026b25
mov rdx, rbp
mov rcx, rbx
call fcn.140025d80
cmp dword [rbx + 0x10], r15d
jne 0x140026cd9
mov word [rbx + 0x80], di
mov r8, qword [rbp + 0x28]
mov rdx, rsi
mov rcx, rbx
call fcn.140026090
mov qword [rbp + 0x28], rax
cmp dword [rbx + 0x10], r15d
jne 0x140026b67
cmp qword [rbx + 0xf8], r15
je 0x140026b67
mov eax, 5
mov r15, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov rcx, rbx
mov word [rbx + 0x80], r15w
call fcn.140025c20
mov eax, dword [rbx + 0x10]
jmp 0x140026b4c
test byte [rbp + 8], 0x10
je 0x140026baa
test r14b, 2
je 0x140026ba6
mov edx, edi
mov rcx, rsi
test r14d, r14d
jns 0x140026b99
call fcn.1400269b0
jmp 0x140026b9e
call fcn.1400268d0
test eax, eax
je 0x140026cd6
xor eax, eax
jmp 0x140026b4c
cmp r14d, 4
je 0x140026c06
xor edx, edx
mov rcx, rsi
test r14d, r14d
jns 0x140026bc1
call fcn.1400269b0
jmp 0x140026bc6
call fcn.1400268d0
test eax, eax
je 0x140026cd6
mov eax, dword [rbp + 8]
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
test r14d, r14d
jns 0x140026bfd
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x140026c03
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x140026cd6
mov rdx, rbp
mov rcx, rbx
call fcn.140025d80
cmp dword [rbx + 0x10], r15d
jne 0x140026cb7
cmp qword [rbx + 0x58], r15
jne 0x140026c48
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x140026c48
mov dword [rbx + 0x10], 2
cmp dword [rbx + 0x10], r15d
jne 0x140026cb7
nop
mov rdx, qword [rbx + 0x58]
mov r8d, 0x4000
mov rcx, rbx
call fcn.140026090
mov rdi, rax
test eax, eax
je 0x140026c9c
mov rdx, qword [rbx + 0x58]
lea r9, [rsp + 0x40]
mov r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140026c95
cmp dword [rsp + 0x40], edi
jne 0x140026c95
cmp dword [rbx + 0x10], r15d
je 0x140026c50
jmp 0x140026c9c
mov dword [rbx + 0x10], 3
cmp dword [rbx + 0x10], r15d
jne 0x140026cb7
lea r9, [rbp + 0x1c]
mov rcx, rsi
lea r8, [rbp + 0xc]
lea rdx, [rbp + 0x14]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp r14d, 4
je 0x140026cd9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140025c20
mov eax, dword [rbx + 0x10]
jmp 0x140026b4c
mov dword [rbx + 0x10], edi
mov rcx, rbx
call fcn.140025c20
mov eax, dword [rbx + 0x10]
jmp 0x140026b4c
mov eax, 9
jmp 0x140026b51
Function at 0x1400274a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x78
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x88]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1400274cf
mov eax, 1
add rsp, 0x78
pop rsi
pop rbx
ret
mov r8d, dword [rsp + 0x38]
mov r9d, r8d
and r9d, 1
mov qword [rsp + 0x70], rdi
mov eax, r8d
mov ecx, r9d
or ecx, 2
and al, 2
mov eax, r8d
cmove ecx, r9d
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, r8d
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, 0x81000000
mov edi, eax
or edi, 0x20
and r8b, 0x20
cmove edi, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, edx
or edi, eax
test r9d, r9d
jne 0x140027530
bts edi, 0x17
mov rcx, qword [rbx + 0x88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rbx + 0x70], rax
cmp rax, 0x28
jbe 0x140027671
cmp qword [rbx + 0x20], 0
jne 0x140027671
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 2
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [rsp + 0x90], ax
jne 0x14002765c
mov edx, dword [rsp + 0xa8]
lea ecx, [rdx + 0x34]
cmp qword [rbx + 0x70], rcx
jbe 0x14002765c
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x30]
cmp eax, 0x5a4d
je 0x140027658
add eax, 0xffffbab4
cmp eax, 4
ja 0x14002765c
mov ecx, reloc.OLEAUT32.dll_SafeArrayUnlock
bt ecx, eax
jae 0x14002765c
bts edi, 0x16
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x44]
movabs r9, 0xd6bf94d5e57a42bd
movabs r8, 0xfe624e212ac18000
mov dword [rsi + 0x10], edi
add rcx, r8
mov rax, r9
imul rcx
add rdx, rcx
mov rcx, qword [rsp + 0x4c]
sar rdx, 0x17
add rcx, r8
add r8, qword [rsp + 0x3c]
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r9
mov dword [rsi], edx
imul rcx
mov rax, r9
add rdx, rcx
sar rdx, 0x17
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
lea rcx, [rsp + 0x4c]
mov dword [rsi + 4], edx
imul r8
add rdx, r8
lea r8, [rsp + 0xa0]
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rsi + 8], edx
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [rsp + 0xa0]
movzx ecx, word [rsp + 0x90]
mov rdi, qword [rsp + 0x70]
shl ecx, 0x10
or ecx, eax
mov dword [rsi + 0xc], ecx
xor eax, eax
add rsp, 0x78
pop rsi
pop rbx
ret