joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ceb0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x40cf00
mov edx, dword [0x004da068]
test edx, edx
js 0x40cf10
test edx, edx
mov rsi, qword [0x00511958]
jne 0x40cf26
mov qword [rsp + 0x28], rsi
lea rsi, [rsp + 0x28]
mov rcx, rbx
lea r8, [rsp + 0x24]
mov rdx, rsi
call fcn.0040c980
cmp eax, 7
jne 0x40cf49
mov rcx, rsi
call fcn.0040c910
nop dword [rax]
call fcn.0040cc70
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.0040c880
mov edx, dword [0x004da068]
mov rsi, qword [0x00511958]
test edx, edx
je 0x40ced6
mov esi, dword [0x00511950]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40ced6
call sub.msvcrt.dll_abort
nop
nop
mov rax, qword [rcx + 8]
test rax, rax
je 0x40cf64
mov rdx, rcx
mov ecx, 1
jmp rax
ret
Function at 0x482160
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x482188
call r12
cmp dword [rax], 4
jne 0x4821a6
mov rcx, rbp
call fcn.00481fd0
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x482180
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4d7bf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x004dcf20]
jmp 0x40d170

Function at 0x4d8aa0
Capabilities:
Create thread

Disassembly:
push rbp
sub rsp, 0xd0
lea rax, [0x004d8280]
mov qword [rsp + 0x70], rax
lea rax, [0x005040bc]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x80], rax
lea rax, [0x004d8bcb]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x40]
mov rcx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x90], rsp
call fcn.0040cad0
call fcn.0040afd0
mov edx, 0x7fffffff
pxor xmm0, xmm0
mov qword [rsp + 0xc0], 0
lea rcx, [rsp + 0xb0]
movaps xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0x48], 1
call fcn.004015b0
mov qword [rsp + 0x28], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [0x00401550]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xb8]
sub rdx, rcx
call fcn.00401700
test rax, rax
mov qword [0x00511030], rax
je 0x4d8bbe
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0xac], 0
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x4d8ba4
call fcn.004d7340
mov rcx, qword [rsp + 0x38]
call fcn.0040cb60
mov eax, dword [rsp + 0xac]
add rsp, 0xd0
pop rbp
ret
mov dword [rsp + 0xac], 1
jmp 0x4d8b92

Function at 0x4d9030
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00417850
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00417850
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x14000212c
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, r8
mov edi, edx
mov rsi, rcx
test r9d, r9d
jne 0x140002177
mov r8d, dword [rsp + 0x80]
lea r9, [0x14003e3c0]
mov rdx, rbx
lea rcx, str.Config
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, edi
mov rcx, rsi
mov r8d, eax
call qword [sym.imp.USER32.dll_CheckDlgButton]
jmp 0x1400021ae
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov r8d, eax
lea rdx, [0x140034a04]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [0x14003e3c0]
mov rdx, rbx
lea r8, [rsp + 0x20]
lea rcx, str.Config
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400026b4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r10, rcx
jmp 0x1400026f4
movzx eax, byte [r10]
dec edx
movzx r9d, r8b
inc r10
xor r9d, eax
mov r11d, 8
shr r8d, 8
mov ecx, r9d
mov eax, r9d
shr ecx, 1
mov r9d, ecx
xor r9d, 0xedb88320
test al, 1
cmove r9d, ecx
sub r11, 1
jne 0x1400026d3
xor r8d, r9d
test edx, edx
jne 0x1400026b9
mov eax, r8d
ret

Function at 0x140003104
Capabilities:
Copy file

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
xor ebx, ebx
mov r14, rdx
mov rbp, rcx
mov r15d, r8d
mov ecx, 0x410
lea edx, [rbx + 0x1a]
lea edi, [rbx + 0xe]
call fcn.1400013f4
mov rsi, rax
test rax, rax
je 0x1400031bd
mov r8d, 0x104
mov rdx, rax
mov rcx, rbp
call fcn.14000a1f8
mov rdi, rax
lea ebp, [rbx + 0x5c]
jmp 0x14000316d
mov r9, rax
add rax, 2
cmp ecx, 0x2f
jne 0x14000316d
mov word [r9], bp
movzx ecx, word [rax]
test ecx, ecx
jne 0x14000315d
mov r8d, 0x104
lea rdx, [rsi + 0x208]
mov rcx, r14
call fcn.14000a1f8
mov r9, rax
jmp 0x14000319d
mov rdx, rax
add rax, 2
cmp ecx, 0x2f
jne 0x14000319d
mov word [rdx], bp
movzx ecx, word [rax]
test ecx, ecx
jne 0x14000318e
mov r8d, r15d
mov rdx, r9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call fcn.14000522c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140003654
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea edx, [rbx + 0x17]
lea esi, [rbx + 0xe]
call fcn.14000a310
mov rdi, rax
test rax, rax
je 0x1400036b0
mov rcx, rax
movzx eax, word [rax]
jmp 0x140003697
mov rdx, rcx
add rcx, 2
cmp eax, 0x2f
jne 0x140003694
mov eax, 0x5c
mov word [rdx], ax
movzx eax, word [rcx]
test eax, eax
jne 0x140003680
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rdi
call fcn.14000522c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400037f8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov edi, edx
mov rsi, rcx
mov ebx, 0x50
lea rdx, [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [rsp + 0x20]
call fcn.14000104c
mov r8d, ebx
lea rdx, str.DEBUG.TXT
lea rcx, [rsp + 0x20]
call fcn.14000b000
lea edx, [rbx - 0x4e]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140003865
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140003889
xor edx, edx
mov ecx, ebx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll__llseek]
mov r8d, edi
mov rdx, rsi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll__lwrite]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll__lclose]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003b7c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea edx, [rbx + 0x16]
lea esi, [rbx + 0xe]
call fcn.14000a310
mov rdi, rax
test rax, rax
je 0x140003bd6
mov rcx, rax
movzx eax, word [rax]
jmp 0x140003bbf
mov rdx, rcx
add rcx, 2
cmp eax, 0x2f
jne 0x140003bbc
mov eax, 0x5c
mov word [rdx], ax
movzx eax, word [rcx]
test eax, eax
jne 0x140003ba8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rdi
call fcn.14000522c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003f14
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x70
mov byte [rax - 0x58], 0
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140003f4d
mov r8d, 0x50
lea rdx, [rax - 0x58]
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [rsp + 0x20], 0
jne 0x140003f68
mov rcx, qword [0x14003e3b8]
lea r8, [rsp + 0x20]
mov r9d, 0x50
mov edx, r9d
call qword [sym.imp.USER32.dll_LoadStringA]
mov r9d, edi
lea r8, [rsp + 0x20]
or r9d, 0x30
mov rdx, rsi
test dil, 0x70
mov rcx, rbx
cmovne r9d, edi
bts r9d, 0xd
call qword [sym.imp.USER32.dll_MessageBoxA]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003fa0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, r8d
mov ecx, edx
call fcn.14000612c
mov rdx, rax
mov r8d, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140003fd0

Function at 0x140003fd0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov r12d, r8d
mov rcx, rdx
mov rbp, rdx
mov ebx, 2
call fcn.140005400
lea edx, [rbx + 0x33]
mov r14d, eax
lea r15d, [rax + rax + 2]
lea ecx, [r15 + 0xa0]
call fcn.1400013f4
xor r13d, r13d
mov rdi, rax
test rax, rax
je 0x140004095
movsxd rbx, r15d
lea r8d, [r14 + 1]
mov rdx, rax
mov rcx, rbp
add rbx, rax
call fcn.14000a1f8
mov word [rbx], r13w
lea ebp, [r13 + 0x50]
test rsi, rsi
je 0x14000405b
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rbx], r13w
jne 0x140004070
mov rcx, qword [0x14003e3b8]
mov r9d, ebp
mov r8, rbx
mov edx, ebp
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, r12d
mov r8, rbx
or r9d, 0x30
mov rdx, rdi
test r12b, 0x70
mov rcx, rsi
cmovne r9d, r12d
bts r9d, 0xd
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, eax
mov rcx, rdi
call fcn.14000522c
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400046e0
Capabilities:
Read .ini file

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 r14
sub rsp, 0x30
mov ebp, edx
mov r14, rcx
mov edx, WSAGetLastError
mov ecx, r9d
mov edi, r9d
mov rsi, r8
call fcn.1400013f4
mov rbx, rax
test rax, rax
je 0x14000479d
cmp dword [rsp + 0x60], 0
jne 0x14000476a
mov r9, qword [rsp + 0x68]
lea r8, [0x1400349f0]
test r9, r9
lea rcx, str.Config
mov rdx, rsi
cmovne r8, r9
lea r9, [0x14003e3c0]
mov qword [rsp + 0x28], r9
mov r9, rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov r8, rbx
mov edx, ebp
mov rcx, r14
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x140004795
mov r9d, edi
mov r8, rbx
mov edx, ebp
mov rcx, r14
call qword [sym.imp.USER32.dll_GetDlgItemTextA]
lea r9, [0x14003e3c0]
mov r8, rbx
mov rdx, rsi
lea rcx, str.Config
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rcx, rbx
call fcn.14000522c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400047b8
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp dword [rsp + 0x80], 0
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
jne 0x140004813
mov r8d, dword [rsp + 0x88]
lea r9, [0x14003e3c0]
mov rdx, rdi
lea rcx, str.Config
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov r9d, ebx
mov edx, esi
mov r8d, eax
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetDlgItemInt]
jmp 0x14000484d
xor r8d, r8d
call qword [sym.imp.USER32.dll_GetDlgItemInt]
mov r8d, eax
lea rdx, [0x140034a04]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [0x14003e3c0]
mov rdx, rdi
lea r8, [rsp + 0x20]
lea rcx, str.Config
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140004924
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov edi, edx
movzx ecx, r8w
lea rdx, [0x140034c48]
lea r8, [rsp + 0x30]
call fcn.14000830c
mov rbx, rax
test rax, rax
je 0x14000498c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140004983
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 2
mov edx, edi
mov rcx, rsi
call fcn.1400049f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140004f44
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
or edx, 0xffffffff
test eax, eax
cmove ecx, edx
mov eax, ecx
add rsp, 0x38
ret
Function at 0x140004fcc
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140004ff4
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x70
neg eax
sbb eax, eax
jmp 0x140004ff8
mov eax, dword [rsp + 0x58]
add rsp, 0x38
ret

Function at 0x1400055a0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
mov edx, 1
add rsp, 0x28
jmp fcn.14000864c

Function at 0x1400055bc
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, 0x4d
lea ecx, [rax + rax + 2]
call fcn.1400013f4
mov rbx, rax
test rax, rax
je 0x1400055f9
mov rdx, rax
mov rcx, rdi
call fcn.14000a060
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140005608
Capabilities:
Get common file path

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 r14
sub rsp, 0x20
mov rbp, rdx
mov r14d, ecx
xor edi, edi
mov ecx, 0x514
lea edx, [rdi + 0x1e]
call fcn.1400013f4
mov rbx, rax
test rax, rax
je 0x140005694
mov rdx, rax
lea rsi, [rax + 0x208]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x140005694
mov rdx, rsi
mov rcx, rbx
call fcn.14000a060
movzx r8d, byte [rsi]
mov rcx, rsi
jmp 0x140005680
mov rax, rcx
inc rcx
cmp r8d, 0x5c
jne 0x14000567c
mov byte [rax], 0x2f
movzx r8d, byte [rcx]
test r8d, r8d
jne 0x14000566d
mov r8d, r14d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
mov rcx, rbx
call fcn.14000522c
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x1400058a8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor edi, edi
mov r15d, r8d
mov rbp, rcx
test edx, edx
je 0x1400058d5
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbp, rax
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edx, 0x5c
lea esi, [rax + 2]
lea ebx, [rsi + rsi]
lea ecx, [rbx + rsi*4]
call fcn.1400013f4
mov r14, rax
test rax, rax
je 0x14000592f
movsxd rbx, ebx
mov r8d, esi
mov rdx, rax
mov rcx, rbp
add rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd rax, esi
mov rdx, rbx
mov rcx, r14
mov dword [r14 + rax*2 - 2], edi
call fcn.14000a060
mov edx, r15d
mov rcx, rbx
call fcn.14000341c
mov rdi, rax
mov rcx, r14
call fcn.14000522c
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140005a38
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edx, 0x1b
or edi, 0xffffffff
call fcn.14000a310
mov rbx, rax
test rax, rax
je 0x140005a85
mov rcx, rax
movzx eax, word [rax]
jmp 0x140005a76
mov rdx, rcx
add rcx, 2
cmp eax, 0x2f
jne 0x140005a73
mov eax, 0x5c
mov word [rdx], ax
movzx eax, word [rcx]
test eax, eax
jne 0x140005a5f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.14000522c
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x140005a9c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov edx, 0x3a
mov ecx, 0x200000
or ebx, 0xffffffff
call fcn.1400013f4
mov rsi, rax
test rax, rax
je 0x140005b1f
mov rcx, rdi
call fcn.140004f6c
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005b1f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, 0x200000
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005b11
mov edx, dword [rsp + 0x48]
test edx, edx
jle 0x140005b11
mov r8d, ebx
mov rcx, rsi
call fcn.1400026b4
mov ebx, eax
jmp 0x140005ad9
test rdi, rdi
je 0x140005b1f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14000522c
mov rsi, qword [rsp + 0x50]
not ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140005c6c
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rdx, [rsp + 0x38]
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140005c96
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140005ca1
mov ebx, dword [rsp + 0x38]
shl rbx, 0x20
or rbx, rdi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140005d5c
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x38
lea rax, [0x14003e3c0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r9d
mov r9, r8
lea r8, [0x1400349f0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add rsp, 0x38
ret
Function at 0x140005d88
Capabilities:
Read .ini file

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 r14
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [rsp + 0x60]
mov edx, 0x4e
mov r14d, r9d
mov rsi, r8
call fcn.14000a154
test rax, rax
lea r8, [0x1400349f0]
mov rbp, rax
mov r9, rsi
cmovne r8, rax
mov rdx, rbx
lea rax, [0x14003e3c0]
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
test eax, eax
jle 0x140005e2e
mov edx, 0x4e
mov rcx, rsi
call fcn.140004e3c
mov rbx, rax
test rax, rax
je 0x140005e2c
mov r8d, r14d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
mov rcx, rbx
call fcn.14000522c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
jmp 0x140005e2e
xor ebx, ebx
mov rcx, rbp
call fcn.14000522c
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140005e54
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
mov r8d, edx
lea rcx, [rsp + 0x30]
lea rdx, [0x140034a04]
mov ebx, r9d
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [0x14003e3c0]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400349f0]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140006898
Capabilities:
Get common file path

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 r14
sub rsp, 0x20
mov rbp, rdx
mov r14d, ecx
xor edi, edi
mov ecx, 0x514
lea edx, [rdi + 0x1f]
call fcn.1400013f4
mov rbx, rax
test rax, rax
je 0x140006924
mov rdx, rax
lea rsi, [rax + 0x208]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test eax, eax
je 0x140006924
mov rdx, rsi
mov rcx, rbx
call fcn.14000a060
movzx r8d, byte [rsi]
mov rcx, rsi
jmp 0x140006910
mov rax, rcx
inc rcx
cmp r8d, 0x5c
jne 0x14000690c
mov byte [rax], 0x2f
movzx r8d, byte [rcx]
test r8d, r8d
jne 0x1400068fd
mov r8d, r14d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
mov rcx, rbx
call fcn.14000522c
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140007a44
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.140004f6c
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140007ad6
mov rcx, rax
call fcn.140005c6c
mov rdi, rax
test eax, eax
jle 0x140007ac4
lea ecx, [rax + 1]
lea edx, [rbp + 0x36]
call fcn.1400013f4
mov rbx, rax
test rax, rax
je 0x140007ac4
and qword [rsp + 0x20], rbp
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007ac4
cmp dword [rsp + 0x60], edi
jne 0x140007ac4
movsxd rax, edi
mov byte [rax + rbx], bpl
test r14, r14
je 0x140007abf
mov dword [r14], edi
mov ebp, 1
test rsi, rsi
je 0x140007ad2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x140007ae0
mov rcx, rbx
call fcn.14000522c
xor ebx, ebx
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140007eb8
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov r14, rdx
mov rbp, rcx
mov ecx, 0x410
lea edx, [rbx + 0x19]
lea edi, [rbx + 0xe]
call fcn.1400013f4
mov rsi, rax
test rax, rax
je 0x140007f66
mov r8d, 0x104
mov rdx, rax
mov rcx, rbp
call fcn.14000a1f8
mov rdi, rax
lea ebp, [rbx + 0x5c]
jmp 0x140007f19
mov r9, rax
add rax, 2
cmp ecx, 0x2f
jne 0x140007f19
mov word [r9], bp
movzx ecx, word [rax]
test ecx, ecx
jne 0x140007f09
mov r8d, 0x104
lea rdx, [rsi + 0x208]
mov rcx, r14
call fcn.14000a1f8
mov r8, rax
jmp 0x140007f49
mov rdx, rax
add rax, 2
cmp ecx, 0x2f
jne 0x140007f49
mov word [rdx], bp
movzx ecx, word [rax]
test ecx, ecx
jne 0x140007f3a
mov rdx, r8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call fcn.14000522c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14000830c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
xor ebx, ebx
mov r8, rdx
mov rdx, rcx
mov rcx, qword [0x14003e3b8]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x140008365
mov rcx, qword [0x14003e3b8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rsi, rsi
je 0x140008365
mov rcx, qword [0x14003e3b8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsi], eax
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret