joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140128950
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140128968
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140128970
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140128980
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1401289cd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1401289c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1401289cf
add rax, 0x28
cmp rax, r9
jne 0x1401289b0
xor eax, eax
ret

Function at 0x1401289d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140128a60
mov rdx, qword [0x140166690]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140128a4e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140128a4e
cmp word [rax + 0x18], 0x20b
jne 0x140128a4e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140128a60
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140128a39
add rbx, 0x28
cmp rbx, rdi
je 0x140128a60
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140128a30
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140128a70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140166690]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140128a90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140128a98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140128a90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140128aed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140128ae4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140128a90
add rax, 0x28
cmp rax, r9
jne 0x140128ad0
xor eax, eax
ret

Function at 0x140128af0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140166690]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140128b0f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140128b18
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140128b0f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140128b30
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140166690]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140128b50
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140128b58
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140128b50
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140128ba0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140128b97
test rcx, rcx
je 0x140128b50
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140128b88
xor eax, eax
ret

Function at 0x140128bb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140166690]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140128bcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140128bd8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140128bf0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140166690]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140128c10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140128c18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140128c10
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140128c10
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140128c64
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140128c70
add rdx, 0x28
cmp rdx, r9
jne 0x140128c50
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140128c80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140166690]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140128ca2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140128cb0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140128ca2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140128ca2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140128ca2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140128d05
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140128d18
add rdx, 0x28
cmp r10, rdx
jne 0x140128cf0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140128d27
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140128d37
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140128d0e
test ecx, ecx
jg 0x140128d20
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000a990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x14000aaf2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000aaf2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x14000aaf2
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x14000aa36
nop
cmp rdi, r11
jae 0x14000aaf2
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x14000aa20
cmp rdi, r11
jae 0x14000aaf2
movzx eax, word [rdi]
test ax, ax
je 0x14000aaf2
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x14000aa6c
mov edx, ebx
mov rcx, rsi
call fcn.140003510
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x14000aa89
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.1400cd500
test eax, eax
je 0x14000aac8
cmp eax, 0xc
je 0x14000aac2
cmp eax, 0x16
je 0x14000aabc
cmp eax, 0x22
je 0x14000aabc
cmp eax, 0x50
je 0x14000aac8
call fcn.1400a0610
int3
call fcn.1400a0610
int3
call fcn.1400a05c8
int3
test ebx, ebx
js 0x14000aae7
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x14000aae7
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x14000aaf4
mov ecx, 0x80070057
call fcn.1400034f0
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14000ab10
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 0x14000ab43
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 0x14000ab87
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x14000ab82
cmp rbx, r11
jae 0x14000ab87
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x14000ab70
cmp rbx, r11
jb 0x14000ab8b
xor eax, eax
jmp 0x14000ab97
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 0x14000c2e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movzx ebx, dx
mov rsi, r8
mov rdi, rcx
test rbx, 0xffffffffffff0000
mov qword [rcx + 0xb0], rbx
jne 0x14000c31c
cmp dword [rcx + 0xa8], 0
jne 0x14000c31c
mov dword [rcx + 0xa8], ebx
call fcn.1400a02a0
mov r8d, 5
mov rdx, rbx
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test rax, rax
je 0x14000c356
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x48], 0
call qword [sym.imp.USER32.dll_GetProcessDefaultLayout]
test eax, eax
je 0x14000c392
cmp dword [rsp + 0x48], 1
jne 0x14000c392
cmp word [rbx + 2], 0xffff
jne 0x14000c38b
cmp word [rbx], 1
jne 0x14000c392
or dword [rbx + 8], 0x400000
jmp 0x14000c392
or dword [rbx + 4], 0x400000
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call fcn.14009f338
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000e6f0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r8, qword [rbx + 0x78]
test r8, r8
je 0x14000e796
xor edx, edx
nop
cmp dword [r8 + rdx*4], 0x80000000
jne 0x14000e78a
test rdx, rdx
jne 0x14000e748
mov eax, dword [rsp + 0x30]
mov dword [r8], eax
jmp 0x14000e78a
cmp rdx, 1
jne 0x14000e758
mov eax, dword [rsp + 0x24]
mov dword [r8 + 4], eax
jmp 0x14000e78a
cmp rdx, 2
jne 0x14000e768
mov eax, dword [rsp + 0x28]
mov dword [r8 + 8], eax
jmp 0x14000e78a
cmp rdx, 3
jne 0x14000e778
mov eax, dword [rsp + 0x2c]
mov dword [r8 + 0xc], eax
jmp 0x14000e78a
cmp rdx, 4
jne 0x14000e78a
movzx eax, word [rsp + 0x134]
mov dword [r8 + 0x10], eax
add rdx, 1
cmp rdx, 5
jl 0x14000e730
jmp 0x14000e7ee
mov rcx, qword [rbx + 0x190]
mov edx, 8
mov rcx, qword [rcx]
lea r8d, [rdx + 0xc]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [rbx + 0x78], rax
je 0x14000e7f2
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov eax, dword [rsp + 0x24]
mov rcx, qword [rbx + 0x78]
mov dword [rcx + 4], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rbx + 0x78]
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x78]
mov eax, dword [rsp + 0x2c]
mov dword [rcx + 0xc], eax
mov rax, qword [rbx + 0x78]
movzx ecx, word [rsp + 0x134]
mov dword [rax + 0x10], ecx
mov rax, qword [rbx + 0x78]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400cd6e0
add rsp, 0x150
pop rbx
ret
Function at 0x140011290
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r14d, r8d
mov rbp, rdx
xor ebx, ebx
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14001145f
or r12, 0xffffffffffffffff
lea r15d, [rbx + 1]
test r14d, r14d
je 0x140011404
call fcn.14009d5e8
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
je 0x14001144b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x20], rax
test rbp, rbp
je 0x140011368
test rbp, 0xffffffffffff0000
jne 0x140011354
movzx edi, bp
mov ecx, edi
call fcn.1400a1868
test rax, rax
je 0x14001137b
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14000a990
jmp 0x14001137b
xor eax, eax
mov rcx, r12
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
jmp 0x14001136a
xor ecx, ecx
mov r8d, ecx
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140003940
nop
mov r8d, 3
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140015910
nop
xor edx, edx
lea rdi, [0x1400fb380]
mov rsi, qword [rax]
mov ecx, 4
repe cmpsw word [rsi], word [rdi]
je 0x1400113ac
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
sete dil
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400113d3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
jne 0x140011428
test byte [rsp + 0x40], 0x10
cmovne ebx, r15d
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001140d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14001140d
test byte [rsp + 0x40], 0x10
cmove ebx, r15d
lea rdx, [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140011456
test ebx, ebx
jne 0x140011456
jmp 0x1400112f5
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x140011456
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140011456
mov ecx, 0x80004005
call fcn.1400034f0
int3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400cd6e0
lea r11, [rsp + 0x2a0]
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 0x140011b70
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
test r8d, r8d
mov rdi, rdx
mov r12, rcx
mov r13d, 0x80000000
je 0x140011bb8
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x140011bb8
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r14d, r14d
mov ebx, r14d
lea r15d, [r14 + 1]
nop
nop
nop
nop
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, r15d
mov edx, 0x10000
mov rcx, rdi
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbp, 0xffffffffffffffff
mov esi, eax
jne 0x140011c62
cmp eax, 5
jne 0x140011c20
lea ecx, [rax + 0x5f]
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, r15d
cmp ebx, 0xa
jl 0x140011bd0
mov rcx, qword [r12 + 8]
lea r9, [0x1400fc430]
lea r8, str.FileRemoveEx
lea rdx, str.CCmnFunc
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call fcn.140080a70
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
cmove r13d, r15d
mov eax, r13d
jmp 0x140011c96
mov rcx, qword [r12 + 8]
lea r9, [0x1400fc3e0]
lea r8, str.FileRemoveEx
lea rdx, str.CCmnFunc
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ebx
call fcn.140081070
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140011cc0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
sub rsp, 0x30
mov r13, rdx
mov rsi, rcx
xor edx, edx
mov rcx, r13
mov r12, r8
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov ebp, eax
je 0x140011da1
test eax, eax
mov r8, rbp
je 0x140011da1
mov rcx, qword [rsi]
lea edx, [rbx + 8]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x140011d86
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, r13
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140011d78
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x20]
lea rdx, [0x1400fc394]
mov rcx, rdi
mov dword [rsp + 0x68], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140011d78
mov rcx, qword [rsp + 0x20]
mov ebx, 1
movzx eax, word [rcx + 0xa]
mov dword [r12], eax
movzx eax, word [rcx + 8]
mov dword [r12 + 4], eax
movzx eax, word [rcx + 0xe]
mov dword [r12 + 8], eax
movzx eax, word [rcx + 0xc]
mov dword [r12 + 0xc], eax
mov rcx, qword [rsi]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret
mov eax, ebx
jmp 0x140011d8d
Function at 0x140011db0
Capabilities:
Get file version info

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
mov r13, r8
mov rsi, rdx
mov r12, rcx
xor edi, edi
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test eax, eax
je 0x140011f5e
mov r8, rbx
test eax, eax
je 0x140011f5e
lea edx, [rdi + 8]
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140011f5e
mov r9, rax
mov r8d, ebx
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140011e40
mov r8, rbp
xor edx, edx
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140011f5e
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x88], edi
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140011f4f
call fcn.14009d5e8
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x140011e8f
mov ecx, 0x80004005
call fcn.1400034f0
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0x38]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
lea rax, str.Comments
mov qword [rsp + 0x20], rax
lea rdx, str.StringFileInfo_04x_04x_s
lea rcx, [rsp + 0x30]
call fcn.14000a800
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 8], 1
jle 0x140011eeb
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140003570
mov rbx, qword [rsp + 0x30]
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueW
or rsi, 0xffffffffffffffff
test eax, eax
je 0x140011f36
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140011f26
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx - 1]
mov r8d, edi
mov rcx, r13
call fcn.140003940
mov edi, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140011f4f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8, rbp
xor edx, edx
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
ret
Function at 0x1400121d0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xa60
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0xa50], rax
test rdx, rdx
mov rbp, r8
mov rsi, rdx
mov r12, rcx
mov r13d, 1
je 0x140012268
lea rbx, [0x1400fc524]
mov edi, 0x7fffffff
mov rax, rbx
mov rdx, rdi
nop
nop
cmp word [rax], 0
je 0x140012297
add rax, 2
sub rdx, r13
jne 0x140012220
xor eax, eax
movsxd r8, eax
mov rdx, rsi
mov rcx, rbx
call fcn.1400cebc0
xor ecx, ecx
test eax, eax
sete cl
test ecx, ecx
je 0x140012268
mov rax, rdi
nop
cmp word [rbx], 0
je 0x1400122a4
add rbx, 2
sub rax, r13
jne 0x140012250
xor edi, edi
movsxd rax, edi
lea rsi, [rsi + rax*2]
xor r9d, r9d
mov r8w, 0x5c
mov rdx, rsi
mov rcx, r12
call fcn.140010520
test rax, rax
mov rdi, rax
je 0x14001243a
cmp qword [rax + 0x10], 0
jle 0x1400122ae
mov rax, qword [rax + 8]
mov r9, qword [rax]
jmp 0x1400122b1
test rdx, rdx
je 0x14001222f
mov rax, rdi
sub rax, rdx
jmp 0x140012231
test rax, rax
je 0x14001225f
sub rdi, rax
jmp 0x140012261
xor r9d, r9d
lea r8, [0x1400fc530]
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14000ff40
mov rcx, qword [rdi + 0x10]
mov esi, r13d
mov rbx, rsi
cmp rcx, rbx
jle 0x14001242b
nop
nop
test rbx, rbx
js 0x1400122fd
cmp rbx, rcx
jge 0x1400122fd
test rbx, rbx
js 0x140012422
mov rax, qword [rdi + 8]
mov r10, qword [rax + rbx*8]
jmp 0x140012300
xor r10d, r10d
lea r8, [rsp + 0x20]
lea rax, [rsp + 0x230]
xor r9d, r9d
mov edx, 0x410
lea rcx, [rsp + 0x230]
sub r8, rax
lea rax, [rdx + 0x7ffffbee]
test rax, rax
je 0x140012344
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140012344
mov word [rcx], ax
add rcx, 2
sub rdx, r13
jne 0x140012320
jmp 0x140012349
test rdx, rdx
jne 0x140012353
sub rcx, 2
mov r9d, 0x8007007a
test r9d, r9d
mov word [rcx], 0
jne 0x14001240a
lea rcx, [rsp + 0x230]
mov rdx, r10
call fcn.14002ae40
lea rdx, [rsp + 0x230]
lea rax, [rsp + 0x20]
xor r8d, r8d
mov r11d, 0x104
lea rcx, [rsp + 0x20]
sub rdx, rax
nop
lea rax, [r11 + 0x7ffffefa]
test rax, rax
je 0x1400123b3
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400123b3
mov word [rcx], ax
add rcx, 2
sub r11, r13
jne 0x140012390
jmp 0x1400123b8
test r11, r11
jne 0x1400123c2
sub rcx, 2
mov r8d, 0x8007007a
xor eax, eax
test r8d, r8d
mov word [rcx], 0
sete al
test eax, eax
je 0x14001240a
lea rdx, [rsp + 0x20]
mov r8d, r13d
mov rcx, r12
call fcn.140011290
test eax, eax
jne 0x14001240a
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140012428
test rbp, rbp
je 0x14001240a
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.14005cab0
mov rcx, qword [rdi + 0x10]
add esi, r13d
add rbx, r13
movsxd rax, esi
cmp rax, rcx
jl 0x1400122e0
jmp 0x14001242b
call fcn.1400a0610
int3
xor r13d, r13d
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r13d
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.1400cd6e0
mov rbx, qword [rsp + 0xaa8]
add rsp, 0xa60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret