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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401c4960]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400e4127
cmp word [rdx], r13w
jne 0x1400e4127
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e412c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e4251
mov r11d, recvfrom
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e4272
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e4165
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e418c
cmp r9, r8
jae 0x1400e419c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400e4146
jmp 0x1400e4251
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e4246
cmp dword [rsp + 0x80], esi
je 0x1400e4246
lea r8, [0x1401c4960]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e421e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e41ee
mov word [rbx], r13w
jmp 0x1400e424e
mov ecx, recvfrom
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400e41fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e424e
cmp word [rsp + 0x70], r13w
jne 0x1400e422b
cmp rbx, r14
je 0x1400e41e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400e4f58
cmp word [rsp + 0x70], r13w
je 0x1400e4251
mov ecx, recvfrom
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401c4960]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e424b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e4251
Function at 0x1400e9fa4
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 0x1400ea02b
mov rsi, rbx
cmp word [rax], bp
je 0x1400e9fea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e9fd4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e9fd0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e4ffc
mov rdi, rax
test rax, rax
je 0x1400ea018
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400cd4d0
mov rbp, rdi
xor ecx, ecx
call fcn.1400e2c80
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 0x1400ec7f8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400e18c4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400ec899
cmp ebx, dword [rsp + 0x30]
je 0x1400ec892
test esi, esi
je 0x1400ec892
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400ec86d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400ec87a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400ec857
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400ec87e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400ec89b
mov eax, 1
jmp 0x1400ec89b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f0084
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.1400e4f58
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e4f58
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400f01d4
cmp rax, 0xffffffffffffffff
je 0x1400f01d4
xor edi, edi
test rbp, rbp
jle 0x1400f017f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e326c
mov rbx, rax
test rax, rax
jne 0x1400f010c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400f0175
mov edx, 0x8000
mov ecx, r14d
call fcn.1400df84c
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.1400e2978
cmp eax, 0xffffffff
je 0x1400f0155
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400f011c
mov edx, r15d
mov ecx, r14d
call fcn.1400df84c
jmp 0x1400f0175
cmp byte [rsi + 0x38], dil
je 0x1400f016c
cmp dword [rsi + 0x34], 5
jne 0x1400f016c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
cmp byte [rsi + 0x30], dil
je 0x1400f0175
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e2c80
jmp 0x1400f01e8
jns 0x1400f01e8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e4f58
cmp rax, 0xffffffffffffffff
jne 0x1400f01a0
cmp byte [rsi + 0x30], dil
je 0x1400f01e8
mov edi, dword [rsi + 0x2c]
jmp 0x1400f01e8
mov ecx, r14d
call fcn.1400e8e08
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400f01e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recvfrom
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
jmp 0x1400f01e8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400f01e1
mov eax, dword [rsi + 0x2c]
jmp 0x1400f01e6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e4f58
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 0x1400f13b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400f13d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400f13d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800052d0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x6470
call fcn.18000e530
sub rsp, rax
mov rax, qword [0x18001b020]
xor rax, rsp
mov qword [rsp + 0x6460], rax
cmp qword [0x18003c5d0], 8
lea rbx, [0x18003c5b8]
lea rdx, str.initonstartup
mov r9, rbx
lea rcx, str.plugin
cmovae r9, qword [0x18003c5b8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r9, [rsp + 0x460]
lea r8, [0x180016b50]
test eax, eax
mov rax, rbx
lea rdx, str.initexec
setne byte [0x18003e819]
cmp qword [0x18003c5d0], 8
lea rcx, str.plugin
cmovae rax, qword [0x18003c5b8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x460]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x460]
not rcx
lea r8, [rcx - 1]
lea rcx, [0x18003c608]
call fcn.1800067f0
cmp qword [0x18003c5d0], 8
mov rdx, rbx
cmovae rdx, qword [0x18003c5b8]
lea r9, [rsp + 0x2460]
lea r8, [0x180016b50]
mov qword [rsp + 0x28], rdx
lea rdx, str.imports
lea rcx, str.plugin
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x2460]
lea rdx, [rsp + 0x2460]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [0x18003c5e0]
call fcn.1800067f0
cmp qword [0x18003c5d0], 8
mov rdx, rbx
cmovae rdx, qword [0x18003c5b8]
cmp qword [0x18003c648], 8
lea r8, [0x18003c630]
cmovae r8, qword [0x18003c630]
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x260]
lea rdx, str.name
lea rcx, str.plugin
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x260]
lea rdx, [rsp + 0x260]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [0x18003c630]
call fcn.1800067f0
cmp qword [0x18003c5d0], 8
mov rdx, rbx
cmovae rdx, qword [0x18003c5b8]
cmp qword [0x18003c670], 8
lea r8, [0x18003c658]
cmovae r8, qword [0x18003c658]
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x4460]
lea rdx, str.about
lea rcx, str.plugin
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x4460]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x4460]
not rcx
lea r8, [rcx - 1]
lea rcx, [0x18003c658]
call fcn.1800067f0
lea r8, [0x18003c630]
lea rdx, [0x180016ba0]
lea rcx, [rsp + 0x30]
call fcn.1800070a0
cmp qword [0x18003c5d0], 8
cmovae rbx, qword [0x18003c5b8]
cmp qword [rax + 0x18], 8
jb 0x18000553d
mov rax, qword [rax]
lea r9, [rsp + 0x60]
lea rdx, str.about_title
lea rcx, str.plugin
mov r8, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp qword [rsp + 0x48], 8
jb 0x180005578
mov rcx, qword [rsp + 0x30]
call fcn.180008200
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x60]
not rcx
lea r8, [rcx - 1]
lea rcx, [0x18003c680]
call fcn.1800067f0
mov rcx, qword [rsp + 0x6460]
xor rcx, rsp
call fcn.180007800
mov rbx, qword [rsp + 0x6480]
add rsp, 0x6470
pop rdi
ret
Function at 0x180008687
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18001b020]
jne 0x18000781a
rol rcx, 0x10
test cx, 0xffff
jne 0x180007816
repz ret
ror rcx, 0x10
jmp 0x1800085e0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18003c800]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18003c8f8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180008665
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18003c800]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180008687
mov rax, qword [rsp + 0x88]
mov qword [0x18003c8f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18003c898], rax
mov rax, qword [0x18003c8f8]
mov qword [0x18003c770], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18003c880], rax
mov dword [0x18003c760], 0xc0000409
mov dword [0x18003c764], 1
mov rax, qword [0x18001b020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18001b028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18003c7f8], eax
mov ecx, 1
call fcn.18000be60
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800123b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18003c7f8], 0
jne 0x18000870e
mov ecx, 1
call fcn.18000be60
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18000e580
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18001b020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800092f0
xor ebx, ebx
cmp qword [0x18003d7b8], rbx
mov rdi, rax
jne 0x18000e693
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18000e76a
lea rdx, [0x1800146a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000e76a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18003d7b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18003d7c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18003d7c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18003d7d8], rax
test rax, rax
je 0x18000e68a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18003d7d0], rax
jmp 0x18000e69a
mov rax, qword [0x18003d7d0]
jmp 0x18000e6a1
mov rax, qword [0x18003d7d0]
mov r11, qword [0x18003d7d8]
cmp rax, rdi
je 0x18000e708
cmp r11, rdi
je 0x18000e708
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18003d7d8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18000e708
test rax, rax
je 0x18000e708
call rsi
test rax, rax
je 0x18000e702
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18000e702
test byte [rsp + 0x40], 1
jne 0x18000e708
bts ebp, 0x15
jmp 0x18000e748
mov rcx, qword [0x18003d7c0]
cmp rcx, rdi
je 0x18000e748
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000e748
call rax
mov rbx, rax
test rax, rax
je 0x18000e748
mov rcx, qword [0x18003d7c8]
cmp rcx, rdi
je 0x18000e748
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000e748
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18003d7b8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000e76a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18000e76c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180007800
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140016290
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x34], eax
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x1400162dc
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, 0x10
jb 0x14001632a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140016325
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016349
mov rcx, r8
call fcn.140039900
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.140040354
int3

Function at 0x140016350
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov r8, qword [rbx + 0x10]
jb 0x1400163a2
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
add r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400163f4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400163ef
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016413
mov rcx, r8
call fcn.140039900
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.140040354
int3
Function at 0x140018310
Capabilities:
Check if file exists
Get file attributes
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 [0x14007d048]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r13, r8
mov rbp, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rdi, qword [rsp + 0xe0]
xor ebx, ebx
cmp qword [rcx + 0x18], 8
jb 0x14001835a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001838e
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rbx
mov r8d, 0x19
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbp
call fcn.140007fc0
jmp 0x1400184fd
mov ebp, 1
mov ecx, 0x208
call fcn.140039bc0
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 r15d, 0x104
nop dword [rax + rax]
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x1400183dd
mov rax, qword [r14]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400183ea
mov r8, qword [rdi]
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x1400183f9
mov rdx, qword [r12]
mov rcx, r13
cmp qword [r13 + 0x18], 8
jb 0x140018407
mov rcx, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r15 - 1]
cmp eax, ecx
jb 0x140018488
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001842f
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 0x140018454
add rax, 2
test ecx, ecx
jne 0x140018440
test edx, edx
je 0x140018488
mov rcx, rsi
call fcn.140039900
inc ebp
imul r15d, ebp, 0x104
mov ecx, r15d
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.140039bc0
mov rsi, rax
jmp 0x1400183d0
mov rbp, qword [rsp + 0x38]
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140018490
mov rax, qword [rsp + 0x60]
cmp rbx, rax
ja 0x1400184d3
lea rdi, [rsp + 0x48]
cmp rax, 8
cmovae rdi, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14003be30
xor r14d, r14d
mov word [rbx + rdi], r14w
jmp 0x1400184e3
mov r9, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140008610
mov rcx, rsi
call fcn.140039900
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.1400398e0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400195c0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14007d048]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebp, ebp
mov dword [rsp + 0x24], ebp
lea rdx, [0x140080890]
lea rcx, [0x1400804d0]
call fcn.140016490
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
xor r8d, r8d
lea rdx, [0x14006c048]
lea rcx, [rsp + 0x40]
call fcn.140007fc0
mov dword [rsp + 0x24], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.14003ba70
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400196f7
cmp eax, 0x104
je 0x1400196f7
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x1400196f7
mov ecx, esi
call fcn.140039bc0
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.14003ba70
mov dword [rsp + 0x28], ebp
mov r9, rdi
mov r8d, esi
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x60]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400196ef
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, str.StringFileInfo000004b0ProductVersion
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400196ef
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400075e0
nop
mov rcx, rdi
call fcn.140039900
lea rdx, [rsp + 0x40]
lea rcx, [0x1400807f0]
call fcn.1400076d0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140019747
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019742
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019770
call fcn.140039900
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400398e0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140040354
int3
Function at 0x14001a970
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x140080920]
call fcn.140039178
test eax, eax
jne 0x14001aa1f
cmp dword [0x14008096c], 0x7fffffff
je 0x14001aa0a
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r8d, [rax + 4]
xor edi, edi
mov dword [rsp + 0x50], 2
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x170]
lea r9, [rsp + 0x48]
mov rcx, qword [rbx + 8]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x140080920]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
jmp fcn.140039180
mov ecx, 6
mov dword [0x14008096c], 0x7ffffffe
call fcn.140038e40
int3
mov ecx, 5
call fcn.140038e40
int3
Function at 0x14001c1f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x50], rdx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
mov rdi, qword [0x1400803b0]
lea r14, [0x140080920]
mov qword [rsp + 0x58], r14
mov rcx, r14
call fcn.140039178
test eax, eax
jne 0x14001c348
cmp dword [0x14008096c], 0x7fffffff
je 0x14001c333
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x30]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140007850
mov rdx, rax
mov rcx, rdi
call fcn.140016290
nop
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x38]
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 + 0x40], 2
mov rdx, rsi
cmp rsi, 0xf
jbe 0x14001c2eb
mov rcx, rbx
call fcn.140012b80
mov qword [rbx + 0x10], rbp
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001c2f8
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
mov r8d, esi
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov rcx, r14
call fcn.140039180
mov rax, rbx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov dword [0x14008096c], 0x7ffffffe
mov ecx, 6
call fcn.140038e40
int3
mov ecx, 5
call fcn.140038e40
int3