joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032750
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14006e368]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400327c9
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x38]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp ebx, 1
jne 0x1400327d3
lea ecx, [rbx + 4]
jmp 0x1400327fc
cmp ebx, 3
jne 0x1400327e1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x1400327ed
cmp ebx, 2
jne 0x1400327f4
xor r8d, r8d
mov cl, 1
xor edx, edx
call sub.POWRPROF.dll_SetSuspendState
jmp 0x140032807
cmp ebx, 4
jne 0x140032807
lea ecx, [rbx + 2]
mov edx, 0x80000000
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140041060
add rsp, 0x50
pop rbx
ret

Function at 0x140032b80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x140032c22
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140032d30]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140032bf8
lea rdx, str.CreateThread_failed
lea rcx, [0x140072f00]
call fcn.140010c0c
lea rcx, [0x140072f00]
call fcn.140011050
lea edx, [rsi + 2]
lea rcx, [0x140072f00]
call fcn.140010be0
mov qword [rbx + rdi*8 + 8], rsi
inc dword [rbx + 0x208]
mov edx, dword [0x14007a078]
test edx, edx
je 0x140032c18
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x140032b9c
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140041edc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140041f26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140041f26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140041f26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041f26
cmp dword [rcx + 0x84], 0xe
jbe 0x140041f26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140041f28
xor al, al
add rsp, 0x28
ret

Function at 0x14004724c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140047020
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140047020
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140047020
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140047020
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140047020
cmp dword [rcx + 0x84], 0xe
jbe 0x140047020
cmp dword [rcx + 0xf8], esi
je 0x140047020
mov ecx, r14d
call fcn.140047168
mov ecx, 2
call fcn.14004c738
nop
cmp byte [0x14007aa78], 0
jne 0x1400470ea
mov r15d, 1
mov eax, r15d
xchg dword [0x14007aa68], eax
test ebx, ebx
jne 0x140047093
mov rdi, qword [0x14006e368]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14007aa70]
cmp rcx, rax
je 0x14004708a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000d660]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14007abd8]
jmp 0x14004709f
cmp ebx, r15d
jne 0x1400470a5
lea rcx, [0x14007abf0]
call fcn.14004b808
nop
test ebx, ebx
jne 0x1400470bc
lea rdx, [0x140058610]
lea rcx, [0x1400585f0]
call fcn.14004bb00
lea rdx, [0x140058620]
lea rcx, [0x140058618]
call fcn.14004bb00
movzx eax, byte [0x14007aa78]
test esi, esi
cmove eax, r15d
mov byte [0x14007aa78], al
jmp 0x1400470ea
mov ecx, 2
call fcn.14004c798
test esi, esi
jne 0x140047101
mov ecx, r14d
call fcn.14004711c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140046fb0
Function at 0x1400558e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140055908
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140055908
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140029a0c
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.14001d0d4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d0d4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029b5c
cmp rax, 0xffffffffffffffff
je 0x140029b5c
xor edi, edi
test rbp, rbp
jle 0x140029b07
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fa00
mov rbx, rax
test rax, rax
jne 0x140029a94
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029afd
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aa08
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.14001ddb0
cmp eax, 0xffffffff
je 0x140029add
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029aa4
mov edx, r15d
mov ecx, r14d
call fcn.14001aa08
jmp 0x140029afd
cmp byte [rsi + 0x38], dil
je 0x140029af4
cmp dword [rsi + 0x34], 5
jne 0x140029af4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029afd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b79c
jmp 0x140029b70
jns 0x140029b70
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d0d4
cmp rax, 0xffffffffffffffff
jne 0x140029b28
cmp byte [rsi + 0x30], dil
je 0x140029b70
mov edi, dword [rsi + 0x2c]
jmp 0x140029b70
mov ecx, r14d
call fcn.140018ec4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029b70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029b70
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029b69
mov eax, dword [rsi + 0x2c]
jmp 0x140029b6e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d0d4
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 0x14002ac60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ac88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ac88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140166cf3
Capabilities:
Encode data using xor

Disassembly:
mov r9d, 0x3dae3b8e
lea r9, [0x140132d70]
movzx r11d, byte [rsi]
push 0x4e14931c
xor r11d, edx
and r11d, 0xff
mov r11d, dword [r9 + r11*4]
shr edx, 8
xor edx, r11d
not word [rsp + 1]
inc rsi
xor edx, 0xf0045384
dec r8
lea rsp, [rsp + 8]
jne 0x14015ab2f
mov r9d, 0x1ea8283c
push r9
pop r9
pop r9
mov qword [rsp], r9
jmp 0x14015ab22
Function at 0x14000d020
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rdi, [0x14008fbe0]
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call fcn.14003ca80
test eax, eax
jne 0x14000d0b1
cmp dword [0x14008fc2c], 0x7fffffff
je 0x14000d09c
lea edx, [rax + 2]
mov rcx, rbx
call fcn.1400114f0
mov eax, dword [rbx + 0xb0]
mov dword [rsp + 0x50], eax
xor eax, eax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14003ca88
mov dword [0x14008fc2c], 0x7ffffffe
mov ecx, 6
call fcn.14003cda8
int3
mov ecx, 5
call fcn.14003cda8
int3

Function at 0x14000d5d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rdx
xor ebp, ebp
mov dword [rsp + 0x38], ebp
lea r14, [0x14008fbe0]
mov qword [rsp + 0x50], r14
mov rcx, r14
call fcn.14003ca80
test eax, eax
jne 0x14000d6f8
cmp dword [0x14008fc2c], 0x7fffffff
je 0x14000d6e3
lea edx, [rbp + 8]
mov rcx, rdi
call fcn.1400114f0
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140001bb0
mov rdx, rax
mov rcx, rdi
call fcn.140010d60
nop
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x34], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x34]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rsi, dword [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], bpl
mov dword [rsp + 0x38], 2
mov rdx, rsi
cmp rsi, 0xf
jbe 0x14000d6a5
xor r8d, r8d
mov rcx, rbx
call fcn.1400094b0
mov qword [rbx + 0x10], rbp
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000d6b2
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r8d, esi
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov rcx, r14
call fcn.14003ca88
mov rax, rbx
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [0x14008fc2c], 0x7ffffffe
mov ecx, 6
call fcn.14003cda8
int3
mov ecx, 5
call fcn.14003cda8
int3
Function at 0x140010d60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], rdx
lea r9, [rsp + 0x30]
mov eax, dword [rdx + 0x10]
xor esi, esi
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov dword [rsp + 0x38], eax
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x38]
lea r8d, [rsi + 4]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x140010db1
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140010dff
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140010dfa
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140010e1e
mov rcx, r8
call fcn.14003d438
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14004442c
int3

Function at 0x140010e30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], rdx
lea r9, [rsp + 0x30]
mov eax, dword [rdx + 0x10]
mov rbx, rdx
add eax, eax
mov dword [rsp + 0x30], 0
mov rdi, rcx
mov dword [rsp + 0x38], eax
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 7
mov rdx, rbx
mov r8, qword [rbx + 0x10]
jbe 0x140010e8a
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
add r8d, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.1400027e0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140010f90
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14008dfc0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r13, r8
mov rbp, rdx
mov qword [rsp + 0x38], rdx
mov r15, rcx
mov qword [rsp + 0x40], rdx
mov rdi, qword [rsp + 0xe0]
xor ebx, ebx
call fcn.140021410
test al, al
jne 0x140011000
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rbx
lea r8d, [rbx + 0x19]
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbp
call fcn.140001240
jmp 0x140011170
mov ebp, 1
mov ecx, 0x208
call fcn.14003d7dc
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
mov rbx, 0xffffffffffffffff
mov r14d, 0x104
nop word [rax + rax]
mov rax, r15
cmp qword [r15 + 0x18], 7
jbe 0x14001104d
mov rax, qword [r15]
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14001105a
mov r8, qword [rdi]
mov rdx, r12
cmp qword [r12 + 0x18], 7
jbe 0x140011069
mov rdx, qword [r12]
mov rcx, r13
cmp qword [r13 + 0x18], 7
jbe 0x140011077
mov rcx, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r14 - 1]
cmp eax, ecx
jb 0x1400110f8
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14001109f
mov r8, qword [rdi]
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400110c4
add rax, 2
test ecx, ecx
jne 0x1400110b0
test edx, edx
je 0x1400110f8
mov rcx, rsi
call fcn.14003d438
inc ebp
imul r14d, ebp, 0x104
mov ecx, r14d
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.14003d7dc
mov rsi, rax
jmp 0x140011040
mov rbp, qword [rsp + 0x38]
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140011100
mov rax, qword [rsp + 0x60]
cmp rbx, rax
ja 0x140011143
lea rdi, [rsp + 0x48]
cmp rax, 7
cmova rdi, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140062c40
xor r14d, r14d
mov word [rbx + rdi], r14w
jmp 0x140011156
mov r9, rsi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140001370
mov rcx, rsi
call fcn.14003d438
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x10], xmm1
mov rax, rbp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003d550
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400113a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov ebx, ecx
mov rsi, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400114cc
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test rbx, rbx
je 0x1400114cc
test eax, eax
je 0x1400114cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400114cc
mov rcx, qword [rsi]
mov dword [rbp - 0x20], 0x2a96550c
mov dword [rbp - 0x1c], 0xd1dae35a
mov dword [rbp - 0x18], 0xe62f0e69
mov dword [rbp - 0x14], 0xa4eea54c
mov dword [rbp - 0x10], 0xabcedb9e
mov dword [rbp - 0xc], 0xe99eef80
mov dword [rbp - 8], 0x8b9d2ddc
mov dword [rbp - 4], 0x8ea6e8a2
cmp rcx, qword [rsi + 8]
je 0x14001146b
mov qword [rsi + 8], rcx
mov rax, qword [rsi + 0x10]
sub rax, rcx
mov qword [rbp + 0x38], rdi
cmp rdi, rax
jbe 0x140011487
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.1400112f0
xor ebx, ebx
test rdi, rdi
je 0x1400114c8
nop
mov rdx, qword [rsi + 8]
mov rax, rbx
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x20]
xor cl, byte [r14 + rbx]
mov byte [rbp + 0x20], cl
cmp rdx, qword [rsi + 0x10]
je 0x1400114b4
mov byte [rdx], cl
inc qword [rsi + 8]
jmp 0x1400114c0
lea r8, [rbp + 0x20]
mov rcx, rsi
call fcn.1400111a0
inc rbx
cmp rbx, rdi
jb 0x140011490
mov al, 1
jmp 0x1400114ce
xor al, al
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret

Function at 0x1400114f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x48]
xor eax, eax
mov dword [rsp + 0x40], edx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x20], rax
lea r8d, [rax + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret
Function at 0x140012450
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x14008fc30], 0
jne 0x140012540
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x14006c048]
mov qword [rsp + 0x48], rbx
lea rcx, [0x14006c058]
call sub.mscoree.dll_CLRCreateInstance
lea rdi, [0x14008fc30]
test eax, eax
js 0x140012504
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x14006c068]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x1400124f5
mov rcx, qword [rsp + 0x40]
lea r8, [0x140067920]
mov r9, rdi
lea rdx, [0x140067910]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x1400124ea
mov rcx, qword [0x14008fc30]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x140012540
cmp qword [0x14008fc30], 0
jne 0x140012540
lea r9, [0x140067920]
mov qword [rsp + 0x20], rdi
lea r8, [0x140067910]
xor edx, edx
lea rcx, str.v2.0.50727
call sub.mscoree.dll_CorBindToRuntime
test eax, eax
js 0x14001254d
mov rcx, qword [0x14008fc30]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x14006c150]
lea rdx, [0x14006c170]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x14001a570
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14008dfc0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bp
jne 0x14001a5e0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140001240
mov dword [rsp + 0x30], 1
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xd
jb 0x14001a643
lea rsi, [rcx + 0xd]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x14001a627
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x1a
lea rdx, [0x140071ac0]
call fcn.140062c40
mov word [rdi + rsi*2], bp
jmp 0x14001a662
mov qword [rsp + 0x20], SafeArrayDestroy
lea r9, [0x140071ac0]
xor r8d, r8d
lea edx, [r8 + 0xd]
mov rcx, rbx
call fcn.140001810
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14003d550
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001a690
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x14008dfc0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
xor r8d, r8d
lea rdx, [0x140067af4]
call fcn.140001240
mov dword [rsp + 0x24], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.1400632e0
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14001a806
cmp eax, 0x104
je 0x14001a806
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
je 0x14001a806
mov ecx, ebp
call fcn.14003d7dc
mov rsi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], r14
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.1400632e0
mov dword [rsp + 0x28], r14d
mov r9, rsi
mov r8d, ebp
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14001a7f9
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, str.StringFileInfo000004b0ProductVersion
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14001a7f9
mov r9, qword [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x14001a7b0
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x14001a7ed
mov rbp, rdi
cmp rax, 7
jbe 0x14001a7d0
mov rbp, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call fcn.140062c40
mov word [rbx + rbp], r14w
jmp 0x14001a7f9
xor r8d, r8d
mov rcx, rdi
call fcn.140001370
nop
test rsi, rsi
je 0x14001a806
mov rcx, rsi
call fcn.14003d438
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14003d550
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001a840
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x14008dfc0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
xor r8d, r8d
lea rdx, [0x140067af4]
call fcn.140001240
mov dword [rsp + 0x24], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.1400632e0
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14001a9b6
cmp eax, 0x104
je 0x14001a9b6
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
je 0x14001a9b6
mov ecx, ebp
call fcn.14003d7dc
mov rsi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], r14
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.1400632e0
mov dword [rsp + 0x28], r14d
mov r9, rsi
mov r8d, ebp
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14001a9a9
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, str.StringFileInfo000004b0ProductName
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14001a9a9
mov r9, qword [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x14001a960
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x14001a99d
mov rbp, rdi
cmp rax, 7
jbe 0x14001a980
mov rbp, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call fcn.140062c40
mov word [rbx + rbp], r14w
jmp 0x14001a9a9
xor r8d, r8d
mov rcx, rdi
call fcn.140001370
nop
test rsi, rsi
je 0x14001a9b6
mov rcx, rsi
call fcn.14003d438
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14003d550
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret