joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004bfe4
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, r9
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov dword [rax - 0x48], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
mov rsi, qword [rsp + 0xa0]
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14004c03e
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
call fcn.140003390
nop
mov dword [rsp + 0x30], 1
mov rcx, r13
call fcn.14005720c
test al, al
je 0x14004c156
mov r15d, 0x200
mov r12d, 0x400
mov ecx, r12d
call fcn.14008755c
mov rbx, rax
test rax, rax
je 0x14004c08b
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.1400b02e0
jmp 0x14004c08d
xor ebx, ebx
mov qword [rsp + 0xa0], rbx
mov r12d, 5
mov dword [rsp + 0x30], r12d
mov rax, r13
cmp qword [r13 + 0x18], 7
jbe 0x14004c0ae
mov rax, qword [r13]
mov r8, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14004c0bb
mov r8, qword [rsi]
mov rdx, r14
cmp qword [r14 + 0x18], 7
jbe 0x14004c0c8
mov rdx, qword [r14]
mov rcx, rbp
cmp qword [rbp + 0x18], 7
jbe 0x14004c0d6
mov rcx, qword [rbp]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r15 - 1]
cmp eax, ecx
jb 0x14004c13c
mov rdx, rbx
mov rcx, rdi
call fcn.140021d64
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14004c109
mov rcx, qword [rsi]
mov rdx, qword [rdi + 0x10]
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14004c11a
mov r8, qword [rdi]
cmp rdx, qword [rsi + 0x10]
jne 0x14004c171
test rdx, rdx
je 0x14004c13c
sub r8, rcx
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x14004c171
add rcx, 2
sub rdx, 1
jne 0x14004c128
mov rdx, rbx
mov rcx, rdi
call fcn.140021d64
nop
test rbx, rbx
je 0x14004c156
mov rcx, rbx
call fcn.140086ebc
nop
mov rax, rdi
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
add r15d, r15d
cmp r15d, 0x6400000
ja 0x14004c13c
mov ecx, r15d
mov eax, 2
mul rcx
mov r14, rax
mov rax, 0xffffffffffffffff
cmovo r14, rax
mov rcx, r14
call fcn.14008755c
mov rbp, rax
test rax, rax
je 0x14004c1b5
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.1400b02e0
jmp 0x14004c1b7
xor ebp, ebp
or r12d, 2
mov dword [rsp + 0x30], r12d
mov rcx, rbx
mov rbx, rbp
mov qword [rsp + 0xa0], rbx
test rcx, rcx
mov r14, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
je 0x14004c0a0
call fcn.140086ebc
jmp 0x14004c0a0
Function at 0x14004c68c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push rdi
sub rsp, 0x48
mov rbx, rdx
mov rdi, rcx
and dword [rax - 0x28], 0
and dword [rax + 0x20], 0
and dword [rax + 8], 0
and dword [rax + 0x18], 0
and qword [rax - 0x38], 0
lea r9, [rax + 0x18]
mov r8d, 4
lea rdx, [rax + 8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], 0
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], 0
mov dword [rsp + 0x30], 1
movsxd rdx, dword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14004c70c
mov r8b, byte [rsp + 0x68]
mov rcx, rbx
call fcn.140028758
and qword [rbx + 0x10], 0
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14004c719
mov rdx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, rbx
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x14004c81c
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x8f8
mov rax, qword [0x14010d440]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
call fcn.14004a454
mov rcx, rax
call fcn.14005f070
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x800
call fcn.1400b02e0
mov r8d, 0x400
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
lea rcx, [rsp + 0x74]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor edx, edx
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0x64]
call fcn.1400b02e0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
and qword [rsp + 0x38], 0
xor edx, edx
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14004c8ee
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.14009b4ac
int3
Function at 0x14004c990
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
movzx edi, dl
mov rbx, rcx
lea r14, [0x140120a20]
mov qword [rbp + 0x30], r14
mov rcx, r14
call fcn.14008528c
test eax, eax
jne 0x14004ca8b
cmp dword [0x140120a6c], 0x7fffffff
je 0x14004ca76
lea edx, [rax + 0xa]
mov rcx, rbx
call fcn.140052d6c
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov r8d, SafeArrayUnaccessData
lea rdx, str.TRAINER_INITIALIZE
lea rcx, [rbp - 0x20]
call fcn.1400030e0
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.14004f548
and dword [rbp + 0x30], 0
and dword [rbp + 0x38], 0
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x38]
mov r8d, 4
lea rdx, [rbp + 0x30]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x30], 1
jne 0x14004ca61
mov dword [rbp + 0x38], edi
and dword [rbp + 0x30], 0
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x30]
mov r8d, 4
lea rdx, [rbp + 0x38]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, r14
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rbp
jmp fcn.140085294
mov dword [0x140120a6c], 0x7ffffffe
mov ecx, 6
call fcn.140085508
int3
mov ecx, 5
call fcn.140085508
int3
Function at 0x14004e998
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14010d440]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
lea rdx, [0x1401208f0]
lea rcx, [0x140120510]
call fcn.140048934
lea rcx, [rbp - 0x28]
call fcn.140056db8
mov rbx, rax
lea rcx, [0x140120830]
xor esi, esi
cmp rcx, rax
je 0x14004ea14
call fcn.140021960
movups xmm0, xmmword [rbx]
movups xmmword [0x140120830], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x140120840], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
lea rcx, [rbp - 0x28]
call fcn.140021960
lea r14, [0x140120a20]
mov qword [rbp - 0x30], r14
mov rcx, r14
call fcn.14008528c
test eax, eax
jne 0x14004eb38
cmp dword [0x140120a6c], 0x7fffffff
je 0x14004eb23
lea ebx, [rax + 0xa]
mov edx, ebx
mov rcx, rdi
call fcn.140052d6c
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], reloc.OLEAUT32.dll_SafeArrayDestroy
movsd xmm0, qword [str.TRAINER_ID]
movsd qword [rbp - 0x28], xmm0
movzx eax, word [0x1400bede8]
mov word [rbp - 0x20], ax
mov byte [rbp - 0x1e], sil
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14004f548
mov dword [rbp - 0x40], esi
mov dword [rbp - 0x38], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x38]
lea r8d, [rbx - 6]
lea rdx, [rbp - 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp - 0x40], 1
jne 0x14004eafa
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rsi
lea rdx, [0x140120910]
cmp qword [0x140120928], 0xf
cmova rdx, qword [0x140120910]
mov r8, qword [0x140120920]
lea rcx, [rbp - 0x28]
call fcn.1400032c8
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14004f548
nop
mov rcx, r14
call fcn.140085294
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140087330
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov dword [0x140120a6c], 0x7ffffffe
mov ecx, 6
call fcn.140085508
int3
mov ecx, 5
call fcn.140085508
int3
Function at 0x14004eb44
Capabilities:
Create process 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, 0xa0
mov rax, qword [0x14010d440]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor esi, esi
mov ebx, esi
mov dword [rbp - 0x19], ebx
call fcn.140057068
test al, al
je 0x14004ec91
lea rcx, [rbp + 0x2f]
call fcn.140056d00
nop
lea r8d, [rsi + 0xe]
lea rdx, str.debug_log.txt
mov rcx, rax
call fcn.14004049c
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
or ebx, 2
lea rcx, [rbp + 0x2f]
call fcn.140021960
lea rdx, [rbp + 0xf]
lea rcx, [0x14010f9e8]
call fcn.1400528e4
or ebx, 4
or ebx, 1
mov dword [rbp - 0x19], ebx
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.14004f464
test al, al
je 0x14004ec11
lea rcx, [rbp - 0x11]
call fcn.14005720c
test al, al
mov dil, 1
jne 0x14004ec14
mov dil, sil
test bl, 1
je 0x14004ec22
lea rcx, [rbp + 0xf]
call fcn.140021960
test dil, dil
je 0x14004ec55
lea r8, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova r8, qword [rbp - 0x11]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x14004ec91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ec8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ecb6
call fcn.140086ebc
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140087330
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14008deb0
int3

Function at 0x14004f548
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
and qword [r11 - 0x28], 0
lea r9, [r11 - 0x18]
mov qword [rsp + 0x38], rdx
mov rbx, rdx
mov eax, dword [rdx + 0x10]
mov rdi, rcx
mov rcx, qword [rcx + 8]
lea rdx, [r11 - 0x10]
and dword [rsp + 0x30], 0
mov r8d, 4
mov dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x14004f595
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14004f5e4
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14004f5df
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004f5ff
mov rcx, r8
call fcn.140086ebc
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14008deb0
int3
Function at 0x14004f608
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
and qword [r11 - 0x28], 0
lea r9, [r11 - 0x18]
mov qword [rsp + 0x38], rdx
mov rbx, rdx
mov eax, dword [rdx + 0x10]
mov rdi, rcx
mov rcx, qword [rcx + 8]
lea rdx, [r11 - 0x10]
and dword [rsp + 0x30], 0
add eax, eax
mov r8d, 4
mov dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x10]
mov rdx, rbx
add r8d, r8d
cmp qword [rbx + 0x18], 7
jbe 0x14004f65e
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.140021960
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140050044
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
jmp 0x1400500b7
cmp ecx, 0x7c
je 0x1400500bc
cmp ecx, 0x29
jne 0x1400500c7
cmp dword [rbx + 0x1c], 0
jne 0x1400500bc
test dword [rbx + 0x80], 0x10000000
je 0x1400501ea
cmp ecx, 0x5d
jne 0x14005008d
test dword [rbx + 0x80], 0x10000000
je 0x1400501dc
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14004f688
mov dil, 1
mov rcx, rbx
call fcn.140051d74
test dil, dil
je 0x1400500b2
mov rcx, rbx
call fcn.140051de8
mov ecx, dword [rbx + 0x7c]
mov al, 1
cmp ecx, 0xffffffff
jne 0x140050058
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ecx, 0x2e
jne 0x1400500e4
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.140020f74
mov rcx, rbx
call fcn.140051d74
jmp 0x1400500aa
cmp ecx, 0x5c
jne 0x140050145
mov rcx, rbx
call fcn.140051d74
test byte [rbx + 0x80], 0x80
je 0x140050138
cmp word [rbx + 0x78], 0x62
jne 0x140050119
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.140020f74
mov rcx, rbx
call fcn.140051d74
jmp 0x1400500b2
cmp word [rbx + 0x78], 0x42
jne 0x140050138
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.140020f74
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x14005010f
mov rcx, rbx
call fcn.140050208
jmp 0x1400500aa
cmp ecx, 0x5b
jne 0x140050165
mov rcx, rbx
call fcn.140051d74
mov rcx, rbx
call fcn.14005045c
cmp dword [rbx + 0x7c], 0x5d
jne 0x1400501dc
jmp 0x1400500da
cmp ecx, 0x28
jne 0x140050188
mov rcx, rbx
call fcn.140051d74
mov rcx, rbx
call fcn.1400523c4
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x1400501ea
jmp 0x14005009d
cmp ecx, 0x5e
jne 0x140050195
lea edx, [rcx - 0x5c]
jmp 0x140050106
cmp ecx, 0x24
jne 0x1400501a2
lea edx, [rcx - 0x21]
jmp 0x140050106
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400501ce
cmp ecx, 0x3f
je 0x1400501ce
cmp ecx, 0x7b
je 0x1400501ce
cmp ecx, 0x7d
jne 0x140050078
test dword [rbx + 0x80], 0x10000000
je 0x1400501f8
jmp 0x14005008d
mov edx, 0xa
mov rcx, rbx
call fcn.14001f7ac
int3
mov edx, 4
mov rcx, rbx
call fcn.14001f7ac
int3
mov edx, 5
mov rcx, rbx
call fcn.14001f7ac
int3
mov edx, 6
mov rcx, rbx
call fcn.14001f7ac
int3
Function at 0x140052520
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14004481e
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140044801
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400447ec

Function at 0x14005274c
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 [0x14010d440]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r15, r9
mov r12, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
mov rdi, qword [rsp + 0xe0]
xor ebp, ebp
call fcn.14005720c
test al, al
jne 0x1400527b6
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
lea r8d, [rbp + 0x19]
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbx
call fcn.1400031c0
jmp 0x1400528c2
mov ecx, 0x208
mov r13d, 1
call fcn.14008755c
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x1400b6d20]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], bp
mov ebp, 0x104
mov rax, r14
cmp qword [r14 + 0x18], 7
jbe 0x1400527f6
mov rax, qword [r14]
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140052803
mov r8, qword [rdi]
mov rdx, r15
cmp qword [r15 + 0x18], 7
jbe 0x140052810
mov rdx, qword [r15]
mov rcx, r12
cmp qword [r12 + 0x18], 7
jbe 0x14005281f
mov rcx, qword [r12]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [rbp - 1]
cmp eax, ecx
jb 0x14005289c
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140052845
mov rcx, qword [rdi]
mov rax, rsi
sub rcx, rsi
movzx edx, word [rax]
movzx r8d, word [rax + rcx]
sub edx, r8d
jne 0x140052861
add rax, 2
test r8d, r8d
jne 0x14005284b
test edx, edx
je 0x14005289c
mov rcx, rsi
call fcn.140086ebc
inc r13d
imul ebp, r13d, 0x104
mov ecx, ebp
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14008755c
mov rsi, rax
jmp 0x1400527e9
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140021d64
mov rcx, rsi
call fcn.140086ebc
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140087330
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140052ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov ebx, ecx
mov r14, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140052d13
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov qword [r14], rcx
test rbx, rbx
je 0x140052d13
test eax, eax
je 0x140052d13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x140052d15
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140052d6c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
sub rsp, 0x38
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
mov r8d, 4
mov rcx, qword [rcx + 8]
mov dword [rax + 8], edx
lea rdx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret

Function at 0x140056d00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14010d440]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140056d5f
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400031c0
mov dword [rsp + 0x30], 1
mov r8d, SafeArrayDestroy
lea rdx, [0x1400bf5a0]
mov rcx, rbx
call fcn.14004049c
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140087330
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x140056db8
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14010d440]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, rcx
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x24], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
xor r8d, r8d
lea rdx, [0x1400b5d70]
call fcn.1400031c0
mov dword [rsp + 0x24], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.1400b02e0
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140056ee4
cmp eax, ebx
je 0x140056ee4
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
je 0x140056ee4
mov ecx, r14d
call fcn.14008755c
mov rdi, rax
mov qword [rsp + 0x40], rax
and qword [rsp + 0x30], 0
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.1400b02e0
and dword [rsp + 0x28], 0
mov r9, rdi
mov r8d, r14d
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140056ed7
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, str.StringFileInfo000004b0ProductVersion
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140056ed7
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140021d64
nop
test rdi, rdi
je 0x140056ee4
mov rcx, rdi
call fcn.140086ebc
mov rax, rsi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140087330
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140056f10
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14010d440]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, rcx
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x24], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
xor r8d, r8d
lea rdx, [0x1400b5d70]
call fcn.1400031c0
mov dword [rsp + 0x24], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.1400b02e0
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14005703c
cmp eax, ebx
je 0x14005703c
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
je 0x14005703c
mov ecx, r14d
call fcn.14008755c
mov rdi, rax
mov qword [rsp + 0x40], rax
and qword [rsp + 0x30], 0
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.1400b02e0
and dword [rsp + 0x28], 0
mov r9, rdi
mov r8d, r14d
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14005702f
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, str.StringFileInfo000004b0ProductName
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14005702f
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140021d64
nop
test rdi, rdi
je 0x14005703c
mov rcx, rdi
call fcn.140086ebc
mov rax, rsi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140087330
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret