joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e3c8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400937f0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002e426
cmp word [rdx], r12w
jne 0x14002e426
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002e42c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002e587
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002e562
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002e465
mov rcx, r9
jmp 0x14002e488
cmp r9, rdx
jae 0x14002e49f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002e449
jmp 0x14002e587
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002e55c
cmp dword [rsp + 0x80], edi
je 0x14002e55c
mov rdx, r14
lea r11, [0x1400937f0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002e535
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002e508
mov word [rbx], r12w
jmp 0x14002e583
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002e511
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002e583
cmp word [rsp + 0x70], r12w
jne 0x14002e542
cmp rbx, rsi
je 0x14002e502
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002f3ac
cmp word [rsp + 0x70], r12w
je 0x14002e587
mov word [rbx], r13w
jmp 0x14002e583
lea r11, [0x1400937f0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002e57f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002e587
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002eddc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14002ee0e
call fcn.140022e4c
mov dword [rax], socket
call fcn.14001826c
jmp 0x14002ef2d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002ef2d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002ef2d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002ee3d
lock or dword [rcx + 0x14], 0x10
jmp 0x14002ef2d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002ee51
call fcn.140038b8c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002bddc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002e874
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002ef1b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002eee6
mov rcx, rsi
call fcn.14002bddc
cmp eax, edi
je 0x14002eed1
mov rcx, rsi
call fcn.14002bddc
cmp eax, 0xfffffffe
je 0x14002eed1
mov rcx, rsi
call fcn.14002bddc
movsxd rbx, eax
lea r14, [0x1400937f0]
mov rcx, rsi
sar rbx, 6
call fcn.14002bddc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002eed8
lea rdx, [0x14008d400]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002eee6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002ef0a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002ef0a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002ef0a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14002ef30
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002f760
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140012230
sub rsp, rax
mov rax, qword [0x14008d058]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002bddc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002f7af
mov rax, rbp
jmp 0x14002f8b7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x937f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002f3a4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x937f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002f8b3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002f8b3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002f3a4
test rax, rax
js 0x14002f8b3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002f8b3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002f8a5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002f8a5
cmp byte [rcx], 0xd
jne 0x14002f88b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002f89a
cmp byte [rcx + 1], 0xa
jne 0x14002f89a
inc rcx
jmp 0x14002f89a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8d450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002f86d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002f8b7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140011770
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400342ec
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140034373
mov rsi, rbx
cmp word [rax], bp
je 0x140034332
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003431c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140034318
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002ac3c
mov rdi, rax
test rax, rax
je 0x140034360
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140013b20
mov rbp, rdi
xor ecx, ecx
call fcn.14002965c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003aa9c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14002f3ac
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002f3ac
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003abec
cmp rax, 0xffffffffffffffff
je 0x14003abec
xor edi, edi
test rbp, rbp
jle 0x14003ab97
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002cdc4
mov rbx, rax
test rax, rax
jne 0x14003ab24
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003ab8d
mov edx, 0x8000
mov ecx, r14d
call fcn.140027be4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002d8a8
cmp eax, 0xffffffff
je 0x14003ab6d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003ab34
mov edx, r15d
mov ecx, r14d
call fcn.140027be4
jmp 0x14003ab8d
cmp byte [rsi + 0x38], dil
je 0x14003ab84
cmp dword [rsi + 0x34], 5
jne 0x14003ab84
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x14003ab8d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002965c
jmp 0x14003ac00
jns 0x14003ac00
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002f3ac
cmp rax, 0xffffffffffffffff
jne 0x14003abb8
cmp byte [rsi + 0x30], dil
je 0x14003ac00
mov edi, dword [rsi + 0x2c]
jmp 0x14003ac00
mov ecx, r14d
call fcn.14002fe8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003ac00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x14003ac00
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003abf9
mov eax, dword [rsi + 0x2c]
jmp 0x14003abfe
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002f3ac
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14003bf94
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x430
mov rax, qword [0x14008d058]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call fcn.1400141d0
mov rcx, qword [rbx + 0xb8]
lea rdx, [rsp + 0x20]
mov r8d, 0x200
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rbx + 0xe8]
lea rdx, [rsp + 0x20]
call fcn.1400024d0
mov rcx, qword [rbx + 8]
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140011770
add rsp, 0x430
pop rbx
ret
Function at 0x1400402e0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14008d058]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rbx, rcx
mov rcx, qword [rcx]
call fcn.140044ed8
mov rdi, rax
mov rdx, qword [rbx]
lea rcx, [rsp + 0x40]
call fcn.140044f08
nop
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
and qword [rsp + 0x38], 0
mov r8d, 0x1c
lea rdx, [rsp + 0x60]
lea rcx, [0x1400b4f80]
call fcn.140046490
nop
cmp qword [rax + 0x18], 8
jb 0x14004036b
mov rax, qword [rax]
lea r8, [rsp + 0x28]
mov rdx, rax
mov ecx, dword [rsp + 0x20]
call fcn.140056790
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.140001a7c
cmp ebx, 1
jle 0x140040406
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x80]
call fcn.1400141d0
mov rbx, qword [rsp + 0x28]
cmp rbx, qword [rsp + 0x30]
je 0x14004041f
mov r8d, 0x200
lea rdx, [rbp - 0x80]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rax, [rbp - 0x80]
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x1400403eb
add rax, 2
test r8d, r8d
jne 0x1400403d5
test ecx, ecx
je 0x1400403fc
add rbx, 8
cmp rbx, qword [rsp + 0x30]
jne 0x1400403aa
jmp 0x1400403ff
mov rdi, qword [rbx]
mov rbx, qword [rsp + 0x28]
jmp 0x14004041f
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
sub rax, rbx
sar rax, 3
test rax, rax
je 0x14004041f
mov rdi, qword [rbx]
test rbx, rbx
je 0x140040470
mov rax, qword [rsp + 0x38]
sub rax, rbx
sar rax, 3
lea rdx, [rax*8]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140040459
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400404a1
mov rcx, rbx
call fcn.140011ab0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
call fcn.140001a7c
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140011770
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14001828c
nop
int3
Function at 0x140040fbc
Capabilities:
Create thread

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x14008d058]
xor rax, rsp
mov qword [rsp + 0xb8], rax
cmp byte [0x1400b5511], 0
jne 0x14004104a
and dword [0x1400b5430], 0
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [0x1400b4fb0]
lea r8, [0x14003bc78]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
call fcn.140057c24
mov dword [0x1400b5430], eax
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140041041
xor r9d, r9d
xor r8d, r8d
mov edx, 0x502
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x1400b5430], 0
je 0x140041062
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140011770
add rsp, 0xc8
ret
lea rcx, [rsp + 0x78]
call fcn.140005088
nop
call fcn.140004548
lea rdx, [rsp + 0x98]
test al, al
je 0x1400410b3
mov r9d, 0x2b
lea r8d, [r9 - 0x18]
call fcn.14003fd54
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140003c48
lea rcx, [rsp + 0x98]
call fcn.140002c44
lea rcx, [rsp + 0x78]
call fcn.140057810
jmp 0x1400410dc
mov r9d, 0x29
lea r8d, [r9 - 0x18]
call fcn.14003fd54
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140003c48
lea rcx, [rsp + 0x98]
call fcn.140002c44
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140002ad8
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140002b74
lea rdx, [0x14008a898]
lea rcx, [rsp + 0x58]
call fcn.140014360
int3

Function at 0x140041114
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
call fcn.140018358
cmp byte [0x1400b5511], 0
mov ebx, eax
jne 0x1400411bd
cmp qword [0x1400b5428], 0
jne 0x1400411bd
cmp word [0x14009141a], 3
jne 0x14004118d
mov eax, dword [0x140091428]
test eax, eax
jne 0x14004117c
cmp qword [0x140091508], 0
je 0x14004117c
cmp qword [0x140091510], 0x10
lea rcx, [0x1400914f8]
cmovae rcx, qword [0x1400914f8]
call fcn.14001f294
mov dword [0x140091428], eax
test al, 1
je 0x14004118d
mov eax, dword [0x1400b5130]
shr eax, 9
test al, 1
je 0x1400411bd
lea rax, [0x1400b5434]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x140091410]
and dword [rsp + 0x20], 0
lea r8, [0x14003ee64]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400b5438], rax
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400412d4
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x14008d058]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov eax, dword [0x1400b5130]
shr eax, 0xe
test al, 1
je 0x140041474
xor ebx, ebx
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x3f], rbx
lea rdx, [0x1400b4fd0]
lea rcx, [rbp + 0x27]
call fcn.140002cfc
nop
mov qword [rbp + 7], rbx
mov qword [rbp + 0x17], rbx
lea esi, [rbx + 7]
mov qword [rbp + 0x1f], rsi
mov word [rbp + 7], bx
lea rdx, [0x14007fcc4]
lea rcx, [rbp + 7]
call fcn.1400024d0
nop
mov qword [rbp - 0x19], rbx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rsi
mov word [rbp - 0x19], bx
lea rdx, [0x14007fc78]
lea rcx, [rbp - 0x19]
call fcn.1400024d0
nop
lea r8, [rbp + 7]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x27]
call fcn.14004a2f0
nop
mov edi, 0x1000
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x1400413c5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, rdi
jb 0x1400413c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004149f
call fcn.140011ab0
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rsi
mov word [rbp - 0x19], bx
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x14004140d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rdi
jb 0x140041408
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400414a5
call fcn.140011ab0
lea r8, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae r8, qword [rbp + 0x27]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1400b5440], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400414ab
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x140041474
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, rdi
jb 0x14004146f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041499
call fcn.140011ab0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140011770
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14001828c
nop
call fcn.14001828c
nop
call fcn.14001828c
int3
mov r9d, 0x2e
lea r8d, [r9 - 5]
lea rdx, [rbp + 7]
call fcn.14003fd54
nop
lea rcx, [rbp + 7]
call fcn.140057810
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x19]
call fcn.140002ad8
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.140002b74
lea rdx, [0x14008a898]
lea rcx, [rbp - 0x39]
call fcn.140014360
int3
Function at 0x140041dd4
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x830
mov rax, qword [0x14008d058]
xor rax, rsp
mov qword [rsp + 0x820], rax
cmp qword [0x1400b5000], 0
lea rbx, [0x1400b4ff0]
jne 0x140041f0b
lea rdx, [rsp + 0x20]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400024d0
cmp qword [0x1400b5008], 8
mov rcx, rbx
cmovae rcx, qword [0x1400b4ff0]
xor edx, edx
call fcn.14001f344
test eax, eax
je 0x140041e56
lea rdx, [0x140078880]
mov rcx, rbx
call fcn.1400024d0
mov rcx, rbx
call fcn.140047cf0
cmp qword [0x1400b5000], 0
je 0x140041e7e
cmp qword [0x1400b5008], 8
mov rcx, rbx
cmovae rcx, qword [0x1400b4ff0]
xor edx, edx
call fcn.14001f344
test eax, eax
je 0x140041e95
lea rcx, str.TEMP
call fcn.140020210
mov rdx, rax
mov rcx, rbx
call fcn.1400024d0
cmp qword [0x1400b5000], 0
je 0x140041ebd
cmp qword [0x1400b5008], 8
mov rcx, rbx
cmovae rcx, qword [0x1400b4ff0]
xor edx, edx
call fcn.14001f344
test eax, eax
je 0x140041ed4
lea rcx, [0x14007fca8]
call fcn.140020210
mov rdx, rax
mov rcx, rbx
call fcn.1400024d0
cmp qword [0x1400b5000], 0
je 0x140041efc
cmp qword [0x1400b5008], 8
mov rcx, rbx
cmovae rcx, qword [0x1400b4ff0]
xor edx, edx
call fcn.14001f344
test eax, eax
je 0x140041f0b
lea rdx, [0x1400b4fb0]
mov rcx, rbx
call fcn.140002bc0
mov rax, rbx
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140011770
add rsp, 0x830
pop rbx
ret
Function at 0x140042ce4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1370]
mov eax, 0x1470
call fcn.140012230
sub rsp, rax
mov rax, qword [0x14008d058]
xor rax, rsp
mov qword [rbp + 0x1360], rax
mov rbx, r8
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
test rdx, rdx
je 0x140042d6b
cmp word [rdx], r15w
je 0x140042d6b
xor edx, edx
mov rcx, rdi
call fcn.14001f344
test eax, eax
jne 0x140042d6b
mov esi, r15d
mov rcx, rdi
call fcn.140047a50
test al, al
je 0x140042d6b
mov rcx, rdi
call fcn.14001f73c
test eax, eax
je 0x140042d6b
mov ecx, VarDecRound
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3e8
jl 0x140042d3e
test rbx, rbx
je 0x140042db4
cmp word [rbx], r15w
je 0x140042db4
xor edx, edx
mov rcx, rbx
call fcn.14001f344
test eax, eax
jne 0x140042db4
mov edi, r15d
mov rcx, rbx
call fcn.140047a50
test al, al
je 0x140042db4
mov rcx, rbx
call fcn.14001f73c
test eax, eax
je 0x140042db4
mov ecx, VarDecRound
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x140042d87
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x30], r15
mov edi, 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x20], r15w
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x40], r15w
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14004a010
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x60]
call fcn.1400141d0
lea rdx, [rsp + 0x60]
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, 0x1000
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x360]
call fcn.1400141d0
mov r8d, 0x800
lea rdx, [rbp + 0x360]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp qword [rsp + 0x30], r15
je 0x140042eba
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rbp + 0x360]
call fcn.1400184dc
test eax, eax
je 0x140042eba
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.140047ae0
test al, al
je 0x140042eba
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
call fcn.140005284
cmp byte [r14 + 0x60], r15b
jne 0x140042eba
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.14001f91c
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140042ef4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, rbx
jb 0x140042eef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042f6a
call fcn.140011ab0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x40], r15w
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140042f3e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, rbx
jb 0x140042f39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042f64
call fcn.140011ab0
mov rcx, qword [rbp + 0x1360]
xor rcx, rsp
call fcn.140011770
mov rbx, qword [rsp + 0x14a0]
add rsp, 0x1470
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14001828c
nop
call fcn.14001828c
nop
int3
Function at 0x140047960
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x70], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x78], r15d
lea rdx, [rsp + 0x78]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
mov ecx, eax
call fcn.140011b20
mov rdi, rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x28], r15
mov r9, rax
mov r8d, r14d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140047a0a
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [0x14007fc78]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140047a0a
movzx eax, word [rcx + 0xa]
mov word [rbx], ax
movzx eax, word [rcx + 8]
mov word [rbx + 2], ax
movzx eax, word [rcx + 0xe]
mov word [rbx + 4], ax
movzx eax, word [rcx + 0xc]
mov word [rbx + 6], ax
mov ebx, 1
mov dword [rsp + 0x70], ebx
jmp 0x140047a1e
test rdi, rdi
je 0x140047a2b
mov rcx, rdi
call fcn.140011ab0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140047a50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor bl, bl
test rcx, rcx
je 0x140047a81
cmp word [rcx], 0
je 0x140047a81
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140047a81
test al, 0x10
mov ecx, 1
movzx eax, bl
cmove eax, ecx
add rsp, 0x20
pop rbx
ret
movzx eax, bl
add rsp, 0x20
pop rbx
ret