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

Disassembly:
push rbp
push rbx
push rdi
push r14
mov rbp, rsp
sub rsp, 0x58
xor r14d, r14d
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 1]
mov dword [rsp + 0x28], 0x80
mov edi, r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d59ff
xor eax, eax
add rsp, 0x58
pop r14
pop rdi
pop rbx
pop rbp
ret
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x38]
mov r8d, 2
mov rcx, rax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x4d4d
lea r9, [rbp - 0x14]
cmp word [rbp + 0x38], ax
lea rdx, [rbp + 0x40]
mov esi, 1
mov r8d, 2
mov rcx, rbx
mov qword [rsp + 0x20], r14
cmove esi, r14d
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 4
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
jne 0x1400d5a99
mov ecx, dword [rbp - 0x18]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl ecx, 0x10
and eax, 0xff00
shr edx, 8
or eax, ecx
shl eax, 8
or edx, eax
mov dword [rbp - 0x18], edx
jmp 0x1400d5a9c
mov edx, dword [rbp - 0x18]
test edx, edx
je 0x1400d5bc1
nop dword [rax]
nop dword [rax + rax]
mov eax, edx
lea r8, [rbp - 0xc]
xor r9d, r9d
mov edx, eax
mov rcx, rbx
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1400d5ade
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400d5bc1
cmp qword [rbp - 0x10], r14
je 0x1400d5bc1
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x30]
mov r8d, 2
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [rbp + 0x30]
test esi, esi
jne 0x1400d5b14
rol ax, 8
mov word [rbp + 0x30], ax
movzx eax, ax
lea r8, [rbp - 0xc]
mov r9d, 1
lea eax, [rax + rax*2]
mov rcx, rbx
shl eax, 2
cdqe
mov edx, eax
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1400d5b4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400d5bc1
cmp qword [rbp - 0x10], r14
je 0x1400d5bc1
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 4
mov rcx, rbx
inc edi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d5bc1
cmp dword [rbp - 0x14], 4
jne 0x1400d5bc1
test esi, esi
jne 0x1400d5ba7
mov ecx, dword [rbp - 0x18]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl ecx, 0x10
and eax, 0xff00
shr edx, 8
or eax, ecx
shl eax, 8
or edx, eax
mov dword [rbp - 0x18], edx
jmp 0x1400d5baa
mov edx, dword [rbp - 0x18]
cmp edi, 0xa000
ja 0x1400d5bbc
test edx, edx
jne 0x1400d5ab0
jmp 0x1400d5bc1
mov edi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x58
pop r14
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400d6540
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, rcx
mov rcx, qword [0x1401fbba0]
lea r8, [rsp + 0x20]
mov r9d, 0x80
mov edx, 0x526
call qword [sym.imp.USER32.dll_LoadStringW]
lea rdx, [rsp + 0x20]
mov r9d, 0x7cf
mov r8, rbx
mov ecx, 0x54000103
call qword [sym.imp.COMCTL32.dll_CreateStatusWindowW]
lea r9, [0x140208860]
lea rdx, str.Active
lea rcx, str.StatusBar
mov r8d, 1
mov qword [0x1401fbb40], rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x1400d65c7
or dword [0x1401fbc84], 2
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0x130
pop rbx
ret
Function at 0x1400d97c0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x6f8
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov eax, dword [0x1401fcfd8]
cmp eax, 1
je 0x1400d9900
lea rcx, [rsp + 0x30]
mov edx, 0x104
mov qword [rsp + 0x6f0], rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400d9810
cmp word [rsp + rax*2 + 0x2e], 0x5c
je 0x1400d9843
lea rcx, [rsp + 0x30]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400d9830
mov eax, dword [0x140181e84]
mov dword [rcx], eax
xor ebx, ebx
lea rdx, str.TWAINDSM.DLL
mov ecx, ebx
nop
movzx eax, word [rcx + rdx]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x23e], ax
test ax, ax
jne 0x1400d9850
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x30]
lea rdx, str._s_s
lea rcx, [rsp + 0x450]
call fcn.1400f98c8
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1401fcfd0], rax
cmp rax, 0x20
jb 0x1400d98f2
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402074e0], rax
test rax, rax
je 0x1400d98f2
lea rcx, [0x140207380]
xor edx, edx
mov r9w, 4
mov qword [rsp + 0x28], rcx
lea rcx, [0x140207440]
lea r8d, [rdx + 1]
mov word [rsp + 0x20], 0x301
call rax
test ax, ax
sete bl
mov dword [0x1401fcfd8], ebx
mov eax, ebx
jmp 0x1400d98f8
mov eax, dword [0x1401fcfd8]
mov rbx, qword [rsp + 0x6f0]
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0x6f8
ret
Function at 0x1400db6f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xf0
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rsp + 0xd0], rax
movsxd rbp, dword [rsp + 0x168]
mov rbx, qword [rsp + 0x170]
mov r14, rdx
mov qword [rsp + 0x40], rdx
mov rcx, r14
mov edx, 1
mov rsi, r9
mov edi, r8d
call qword [sym.imp.GDI32.dll_SetBkMode]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
test edi, edi
je 0x1400db8ce
lea rdx, [0x140183378]
mov rcx, rsi
mov qword [rsp + 0xe8], r13
call fcn.1400fafe4
mov r13, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400db8be
mov esi, dword [rsp + 0x140]
mov ebx, ebp
mov ecx, 2
mov qword [rsp + 0xe0], r15
imul ebx, esi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
test rax, rax
je 0x1400db892
movsxd rdi, dword [rsp + 0x148]
mov edx, ebp
xor r8d, r8d
mov rcx, r13
imul edx, edi
call fcn.1400fad50
test eax, eax
jne 0x1400db892
lea edx, [rax + 1]
movsxd r8, ebx
mov r9, r13
mov rcx, r15
mov qword [rsp + 0x120], r12
call fcn.1400fabdc
lea ecx, [rsi + rdi]
mov r14, r15
movsxd rsi, ecx
mov r12, rax
mov rcx, rdi
cmp rdi, rsi
jae 0x1400db88a
mov eax, dword [rsp + 0x150]
mov rbx, rbp
xor edi, edi
imul rbx, rcx
imul eax, dword [rsp + 0x158]
neg eax
sub rsi, rcx
mov r13d, eax
nop
mov r8d, r12d
cmp r12d, ebp
lea rcx, [rsp + 0x50]
cmovg r8d, ebp
mov r9, rbx
mov rdx, r14
sub r12d, r8d
mov dword [rsp + 0x20], ebp
call fcn.1400dab00
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400db850
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov r8d, edi
mov edx, r13d
mov dword [rsp + 0x20], eax
call qword [sym.imp.GDI32.dll_TextOutA]
add edi, dword [rsp + 0x160]
add r14, rbp
add rbx, rbp
dec rsi
jne 0x1400db820
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x120]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r15, qword [rsp + 0xe0]
mov rcx, r13
call fcn.1400fa904
mov r13, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0xf0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400dbab0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r12
push r15
sub rsp, 0x438
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov ebx, edx
lea rdx, [0x140183378]
xor esi, esi
mov r15d, esi
call fcn.1400fafe4
mov r12, rax
test rax, rax
je 0x1400dbc68
mov qword [rsp + 0x470], rdi
cmp ebx, 0x73
je 0x1400dbb86
mov edi, 1
lea rcx, [rsp + 0x20]
mov r9, rax
mov edx, edi
mov r8d, 0x400
call fcn.1400fabdc
lea rdx, [rsp + 0x20]
nop
movzx r8d, byte [rdx]
cmp r8b, 0x45
jne 0x1400dbb47
mov eax, edi
cmp byte [rsp + rax + 0x20], 0x78
jne 0x1400dbb47
lea eax, [rdi + 1]
cmp byte [rsp + rax + 0x20], 0x69
jne 0x1400dbb47
lea eax, [rdi + 2]
cmp byte [rsp + rax + 0x20], 0x66
je 0x1400dbb74
cmp r8b, 0x54
jne 0x1400dbb60
mov eax, edi
cmp byte [rsp + rax + 0x20], r8b
jne 0x1400dbb60
lea eax, [rdi + 1]
cmp byte [rsp + rax + 0x20], 0x57
je 0x1400dbb7d
inc edi
inc esi
inc rdx
cmp edi, 0x3f6
jb 0x1400dbb20
jmp 0x1400dbc55
lea r15d, [rsi + 6]
jmp 0x1400dbc55
lea r15d, [rsi + 7]
jmp 0x1400dbc55
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x430], r14
mov r14d, esi
call fcn.1400fad50
mov edi, 1
mov ecx, 0x4010
mov edx, edi
call fcn.1400f97a4
mov rbx, rax
test rax, rax
je 0x1400dbc4d
mov qword [rsp + 0x468], rbp
mov ebp, esi
test r15d, r15d
jne 0x1400dbc3d
mov r9, r12
mov r8d, 0x4000
mov rdx, rdi
mov rcx, rbx
call fcn.1400fabdc
mov edx, esi
mov rax, rsi
cmp byte [rax + rbx], 0x45
jne 0x1400dbc19
cmp byte [rax + rbx + 1], 0x78
jne 0x1400dbc19
cmp byte [rax + rbx + 2], 0x69
jne 0x1400dbc19
cmp byte [rax + rbx + 3], 0x66
jne 0x1400dbc19
movzx ecx, byte [rax + rbx + 6]
cmp cl, 0x49
jne 0x1400dbc0e
cmp byte [rax + rbx + 7], cl
je 0x1400dbc28
cmp cl, 0x4d
jne 0x1400dbc19
cmp byte [rax + rbx + 7], cl
je 0x1400dbc28
inc rax
inc edx
cmp rax, 0x3ff8
jl 0x1400dbbe3
jmp 0x1400dbc2f
lea r15d, [r14 + 6]
add r15d, edx
inc ebp
add r14d, 0x4000
cmp ebp, 3
jl 0x1400dbbc5
mov rcx, rbx
call fcn.1400f97e8
mov rbp, qword [rsp + 0x468]
mov r14, qword [rsp + 0x430]
mov rcx, r12
call fcn.1400fa904
mov rdi, qword [rsp + 0x470]
mov eax, r15d
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0x438
pop r15
pop r12
pop rsi
pop rbx
ret
Function at 0x1400dbc90
Capabilities:
Read file on windows

Disassembly:
test edx, edx
jle 0x1400dbda4
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
mov rdi, qword [rsp + 0x50]
mov rbx, r9
mov ebp, r8d
mov r14, rcx
mov esi, edx
xor eax, eax
mov r9, r14
mov rcx, rbx
mov qword [rbx], rax
lea edx, [rax + 1]
lea r8d, [rax + 0xc]
mov dword [rbx + 8], eax
call fcn.1400fabdc
test ebp, ebp
je 0x1400dbd54
movzx eax, word [rbx]
movzx ecx, byte [rbx + 1]
shl ax, 8
or cx, ax
movzx eax, word [rbx + 2]
mov word [rbx], cx
movzx ecx, byte [rbx + 3]
shl ax, 8
or cx, ax
mov word [rbx + 2], cx
mov ecx, dword [rbx + 4]
mov edx, ecx
mov eax, ecx
shr ecx, 8
shl edx, 0x10
and eax, 0xff00
and ecx, 0xff00
or edx, eax
movzx eax, byte [rbx + 7]
shl edx, 8
or edx, ecx
mov ecx, dword [rbx + 8]
or edx, eax
mov eax, ecx
mov dword [rbx + 4], edx
mov edx, ecx
and eax, 0xff00
shl edx, 0x10
shr ecx, 8
or edx, eax
movzx eax, byte [rbx + 0xb]
and ecx, 0xff00
shl edx, 8
or edx, ecx
or edx, eax
mov dword [rbx + 8], edx
cmp word [rbx + 2], 2
jne 0x1400dbd6e
mov eax, dword [rbx + 4]
cmp eax, 4
jbe 0x1400dbd6e
mov ecx, dword [rbx + 8]
cmp ecx, dword [rdi]
jbe 0x1400dbd6e
add eax, ecx
mov dword [rdi], eax
cmp word [rbx + 2], 5
jne 0x1400dbd81
mov eax, dword [rbx + 8]
cmp eax, dword [rdi]
jbe 0x1400dbd81
add eax, 8
mov dword [rdi], eax
dec rsi
jne 0x1400dbcc2
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400dbfe0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbp, rdx
movsxd rdi, r8d
mov rsi, rcx
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, rbp
mov r14, r9
call fcn.1400f9ab0
mov edx, 1
mov rcx, rdi
call fcn.1400f97a4
mov rbx, rax
test rax, rax
je 0x1400dc0af
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.1400dbdb0
test eax, eax
je 0x1400dc0a7
lea rdx, str.JPGComConversion
lea rcx, str.IPTC
mov r9, r14
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, eax
dec ecx
je 0x1400dc07e
dec ecx
je 0x1400dc077
mov rcx, rbx
call fcn.1400dd0b0
neg eax
sbb ecx, ecx
and ecx, 0xfde9
jmp 0x1400dc080
mov ecx, 0xfde9
jmp 0x1400dc080
xor ecx, ecx
or r9d, 0xffffffff
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rbx
call fcn.1400f97e8
mov eax, 1
jmp 0x1400dc0b1
mov rcx, rbx
call fcn.1400f97e8
xor eax, eax
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 0x1400dc910
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x50
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebp, edx
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.1400fad50
mov r15d, 1
lea rcx, [rsp + 0x24]
mov r9, rdi
mov r8d, 2
mov edx, r15d
call fcn.1400fabdc
xor ebx, ebx
mov eax, 0x4d4d
cmp word [rsp + 0x24], ax
lea rcx, [rsp + 0x24]
lea edx, [rbx + 2]
mov esi, ebx
mov r9, rdi
mov r8d, r15d
cmove esi, r15d
call fcn.1400fabdc
lea edx, [rbx + 4]
lea rcx, [rsp + 0x28]
mov r9, rdi
mov r8d, r15d
call fcn.1400fabdc
test esi, esi
je 0x1400dc9c5
mov ecx, dword [rsp + 0x28]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl ecx, 0x10
and eax, 0xff00
shr edx, 8
or eax, ecx
shl eax, 8
or edx, eax
mov dword [rsp + 0x28], edx
jmp 0x1400dc9c9
mov edx, dword [rsp + 0x28]
mov qword [rsp + 0x78], r14
test edx, edx
je 0x1400dcad0
xor r8d, r8d
mov rcx, rdi
call fcn.1400fad50
test eax, eax
jne 0x1400dcad0
lea edx, [rax + 2]
lea rcx, [rsp + 0x20]
mov r9, rdi
mov r8, r15
call fcn.1400fabdc
movzx eax, word [rsp + 0x20]
test esi, esi
je 0x1400dca0e
rol ax, 8
mov word [rsp + 0x20], ax
mov r14d, 0x200
movzx ecx, ax
cmp ax, r14w
jb 0x1400dca20
mov ecx, r14d
movzx eax, cx
cmp ebx, eax
jae 0x1400dcad0
xor eax, eax
lea rcx, [rsp + 0x30]
mov r9, rdi
lea r8d, [rax + 0xc]
mov rdx, r15
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call fcn.1400fabdc
movzx r8d, word [rsp + 0x30]
test esi, esi
je 0x1400dcab4
rol word [rsp + 0x32], 8
mov ecx, dword [rsp + 0x34]
mov edx, ecx
rol r8w, 8
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl ecx, 0x10
and eax, 0xff00
shr edx, 8
or eax, ecx
mov ecx, dword [rsp + 0x38]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 0x10
mov dword [rsp + 0x34], edx
mov edx, ecx
and edx, 0xff0000
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
shr edx, 8
or eax, ecx
shl eax, 8
or edx, eax
jmp 0x1400dcab8
mov edx, dword [rsp + 0x38]
movzx eax, r8w
cmp eax, ebp
je 0x1400dcacc
movzx eax, word [rsp + 0x20]
inc ebx
jmp 0x1400dca14
mov eax, edx
jmp 0x1400dcad2
xor eax, eax
mov r14, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400f9a80
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rsi
ret
Function at 0x1400dd140
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, qword [rsp + 0xa0]
mov esi, r9d
mov rbx, r8
mov rdi, rcx
call fcn.1400fe108
cmp dword [rbp + 4], 4
mov r14d, eax
jbe 0x1400dd225
mov edx, dword [rbp + 8]
xor r8d, r8d
mov rcx, rdi
add edx, dword [rsp + 0xa8]
call fcn.1400fad50
test eax, eax
jne 0x1400dd20d
lea eax, [rsi - 1]
mov r9, rdi
mov edx, 1
cmp dword [rbp + 4], eax
mov rcx, rbx
cmovb eax, dword [rbp + 4]
mov r8d, eax
call fcn.1400fabdc
xor r8d, r8d
mov rcx, rdi
movsxd rdx, eax
mov byte [rdx + rbx], 0
mov edx, r14d
call fcn.1400fad50
or rax, 0xffffffffffffffff
mov rcx, rax
nop
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400dd1d0
test rcx, rcx
je 0x1400dd20d
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x1400dd1e0
dec eax
movsxd rcx, eax
add rcx, rbx
cmp byte [rcx], 0x20
jne 0x1400dd20d
nop word [rax + rax]
mov byte [rcx], 0
cmp byte [rcx - 1], 0x20
lea rcx, [rcx - 1]
je 0x1400dd200
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp dword [rsp + 0xb0], 0
mov byte [rbx], 0
je 0x1400dd25a
mov ecx, dword [rbp + 8]
mov edx, ecx
mov eax, ecx
shr ecx, 8
shl edx, 0x10
and eax, 0xff00
and ecx, 0xff00
or edx, eax
movzx eax, byte [rbp + 0xb]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [rbp + 8], edx
xor edi, edi
mov esi, edi
nop
mov ecx, 8
cmp dword [rbp + 4], ecx
cmovb ecx, dword [rbp + 4]
cmp edi, ecx
jge 0x1400dd1c8
mov eax, dword [rbp + 8]
mov ecx, esi
lea rdx, [0x14018f340]
shr eax, cl
lea rcx, [rsp + 0x20]
movzx r8d, al
call fcn.1400f9828
lea rax, [rbx - 1]
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x1400dd294
lea r8, [rsp + 0x20]
xor edx, edx
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
lea rdx, [rdx + 1]
mov byte [rax + rdx - 1], cl
test cl, cl
jne 0x1400dd2b0
inc edi
add esi, 8
jmp 0x1400dd260
Function at 0x1400dd760
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, qword [rsp + 0xc8]
movsxd r14, dword [rsp + 0xd0]
mov ebx, r8d
mov r12d, edx
mov rbp, rcx
mov r8, r14
mov rcx, rdi
xor edx, edx
mov r13, r9
call fcn.1400f9ab0
mov r15d, 0x100
xor esi, esi
cmp ebx, r15d
cmovb r15d, ebx
test r15d, r15d
je 0x1400dd909
mov ebx, dword [rsp + 0xc0]
nop dword [rax + rax]
xor eax, eax
lea rcx, [rsp + 0x40]
mov r9, rbp
lea edx, [rax + 1]
lea r8d, [rax + 0xc]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
call fcn.1400fabdc
movzx r8d, word [rsp + 0x40]
test ebx, ebx
je 0x1400dd864
rol word [rsp + 0x42], 8
mov ecx, dword [rsp + 0x44]
mov edx, ecx
rol r8w, 8
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
mov word [rsp + 0x40], r8w
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
shr edx, 8
or eax, ecx
mov ecx, dword [rsp + 0x48]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 0x10
mov dword [rsp + 0x44], edx
mov edx, ecx
and edx, 0xff0000
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
shr edx, 8
or eax, ecx
shl eax, 8
or edx, eax
mov dword [rsp + 0x48], edx
jmp 0x1400dd868
mov edx, dword [rsp + 0x48]
movzx ecx, r8w
sub ecx, 0x8769
je 0x1400dd8e2
sub ecx, 0x89a
je 0x1400dd8ba
dec ecx
jne 0x1400dd8e6
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x1400dd884
test rax, rax
jne 0x1400dd8e6
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
mov r9d, r14d
mov r8, rdi
mov edx, 0x9004
mov rcx, rbp
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call fcn.1400dd140
jmp 0x1400dd8e6
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
mov r9d, r14d
mov r8, rdi
mov edx, 0x9003
mov rcx, rbp
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call fcn.1400dd140
jmp 0x1400dd8e6
mov dword [r13], edx
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x1400dd8f0
test rax, rax
jne 0x1400dd909
inc esi
cmp esi, r15d
jb 0x1400dd7d0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400f9a80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400de970
Capabilities:
Read file on windows
Write file on windows

Disassembly:
test rcx, rcx
je 0x1400dea1c
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rdi
mov edi, 0xfeff
mov edx, 0x61
mov rcx, rax
mov word [rsp + 0x30], di
call fcn.1400f9cdc
test rax, rax
jne 0x1400de9c4
lea edx, [rax + 2]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x30]
mov r9, rbx
call fcn.1400faf54
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400fad50
mov edx, 2
lea rcx, [rsp + 0x40]
lea r8d, [rdx - 1]
mov r9, rbx
call fcn.1400fabdc
cmp word [rsp + 0x40], di
je 0x1400dea04
mov edx, 2
lea rcx, [rsp + 0x30]
mov r9, rbx
lea r8d, [rdx - 1]
call fcn.1400faf54
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1400fad50
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400e23d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x4d0
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rbx, rdx
lea rdx, [rsp + 0x20]
mov r8d, 0x124
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
mov r8, rbx
call fcn.1400f98c8
lea rdx, [rsp + 0x270]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
lea r8, [rsp + 0x20]
mov r9d, 0x124
mov edx, 0x7a6
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
mov r8, rbx
call fcn.1400f98c8
lea r8, [rsp + 0x270]
mov edx, 0x7a6
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.1400f9a80
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4d0
pop rdi
ret

Function at 0x1400e24a0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x370
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov r14, qword [rsp + 0x3d0]
mov esi, r9d
mov edi, r8d
mov rbp, rdx
mov r15, rcx
lea rbx, [0x140208860]
lea r12, str.AddText
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x94]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
call fcn.1400ee550
lea rdx, str.SemiTranspText
mov r9, rbx
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor r12d, r12d
lea rdx, [rsp + 0x110]
lea r8d, [r12 + 0xc]
mov rcx, rbp
mov qword [rsp + 0xa0], r12
mov ebx, eax
mov dword [rsp + 0xa8], edi
mov dword [rsp + 0xac], esi
call fcn.1400ed200
mov qword [rsp + 0x88], r12
mov dword [rsp + 0x80], r12d
movaps xmm0, xmmword [rsp + 0xa0]
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x60], r12d
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0xb0]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x110]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x98]
xor r9d, r9d
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x94]
mov rcx, r15
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call fcn.14003ab30
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0x370
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret