joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040ea
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push 0xc
mov dword [ebp - 4], ebx
mov dword [edi + 0x18], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x4040c4
mov dword [eax], ebx
mov esi, eax
jmp 0x4040c6
xor esi, esi
mov dword [edi + 0x14], esi
mov eax, dword [esi]
cmp eax, ebx
je 0x4040d8
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebx
mov eax, dword [ebp + 0xc]
push eax
mov dword [esi + 8], eax
call fcn.00402f62
xor ecx, ecx
push 4
pop edx
mov dword [esi + 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esi + 4]
shl ecx, 2
push ecx
push ebx
push eax
mov dword [esi], eax
call sub.msvcrt.dll_memset
mov esi, dword [edi + 0x14]
add esp, 0x14
push dword [esi + 8]
call fcn.004066c9
cmp dword [edi + 0x18], ebx
jne 0x40415c
mov eax, dword [edi + 0x14]
mov esi, dword [eax + 4]
xor ecx, ecx
push 0x14
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp esi, ebx
pop ecx
mov dword [edi + 0x18], eax
jle 0x404155
xor eax, eax
mov ecx, dword [edi + 0x18]
mov dword [eax + ecx + 0xc], 0x78
add eax, 0x14
dec esi
jne 0x404144
mov dword [ebp - 4], 1
push dword [ebp + 8]
mov eax, 0x448
push edi
call fcn.004014b3
cmp eax, 1
jne 0x404188
mov esi, dword [edi + 0x14]
push dword [esi + 8]
call fcn.0040662e
mov eax, dword [edi + 0x14]
push ebx
push ebx
push dword [eax + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 4], ebx
pop esi
pop ebx
je 0x4041a1
push dword [edi + 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
leave
ret 8

Function at 0x404ca4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
xor ebx, ebx
cmp dword [eax + 4], ebx
push esi
push edi
jne 0x404c66
cmp dword [eax], ebx
je 0x404ce2
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x404ce2
cmp word [ebp - 0x14], 0x7c1
jbe 0x404ce2
mov edi, 0x80
push edi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 1
mov esi, 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push edi
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_wcscpy
push 0x40ed68
push dword [ebp + 8]
call sub.msvcrt.dll_wcscat
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_wcscat
add esp, 0x18
jmp 0x404cf1
push 0x40e4e8
push dword [ebp + 8]
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e83
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x4c
inc eax
test ebx, ebx
je 0x404e87
mov eax, dword [ebx]
and dword [ebp - 0x3c], 0
and dword [ebp - 0x28], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x4c
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0x104
mov dword [ebp - 0x18], 0x80806
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x404eea
test ebx, ebx
je 0x404eda
mov eax, dword [ebp - 0x34]
mov dword [ebx], eax
push dword [ebp - 0x30]
push edi
call sub.msvcrt.dll_wcscpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40500a
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
call sub.msvcrt.dll_wcslen
test eax, eax
pop ecx
mov dword [ebp - 8], eax
jne 0x404fad
leave
ret
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push ebx
push esi
xor ebx, ebx
xor esi, esi
test eax, eax
mov dword [ebp - 4], ecx
jle 0x405005
movzx eax, word [edi + ebx*2]
cmp ax, 0x20
jne 0x404fcc
inc ebx
jmp 0x404ffc
and word [ebp - 0xc], 0
cmp esi, dword [ebp - 4]
mov word [ebp - 0x10], ax
mov ax, word [edi + ebx*2 + 2]
mov word [ebp - 0xe], ax
jae 0x405001
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call sub.msvcrt.dll_wcstoul
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov byte [esi + ecx], al
inc esi
inc ebx
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x404fbf
test esi, esi
jne 0x405009
xor eax, eax
jmp 0x405011
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret

Function at 0x405072
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
push edi
xor esi, esi
push 0x7fe
lea eax, [ebp - 0x802]
push esi
push eax
mov word [ebp - 0x804], si
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
xor edi, edi
cmp eax, esi
mov word [ebx], si
jle 0x4050c7
mov esi, dword [ebp + 8]
add esi, 4
mov dword [ebp - 4], eax
push dword [esi]
lea eax, [ebp - 0x804]
push dword [esi - 4]
push str._s___s_
push 0x400
push eax
call sub.msvcrt.dll__snwprintf
lea eax, [ebp - 0x804]
push eax
call sub.msvcrt.dll_wcslen
mov dword [ebp + 0xc], eax
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebx + edi*2]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
push dword [esi]
lea edi, [edi + eax + 1]
call sub.msvcrt.dll_wcslen
mov dword [ebp + 0xc], eax
lea eax, [eax + eax + 2]
push eax
push dword [esi]
lea eax, [ebx + edi*2]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
add esp, 0x34
add esi, 8
dec dword [ebp - 4]
lea edi, [edi + eax + 1]
jne 0x405053
xor esi, esi
lea edi, [ebx + edi*2]
mov word [edi], si
mov word [edi + 2], si
pop edi
mov eax, ebx
pop esi
leave
ret
Function at 0x4052d2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40530a
cmp word [ebp - 0x224], 0x2e
jne 0x4052f0
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4052d2
jmp 0x405303
mov edi, dword [ebp + 0xc]
mov ecx, 0x94
lea esi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4054cf
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [edi + 0x1c]
jmp 0x4054ee
test esi, esi
jl 0x4054dc
mov ecx, esi
mov eax, edi
call fcn.00405508
jmp 0x4054de
xor eax, eax
push eax
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscmp
test eax, eax
pop ecx
pop ecx
je 0x405501
dec esi
jns 0x4054cd
or eax, 0xffffffff
cmp eax, 0xffffffff
pop esi
jne 0x405505
mov eax, edi
jmp fcn.00405425
mov eax, esi
jmp 0x4054f4
ret 4

Function at 0x4058f9
Capabilities:
Create process on windows

Disassembly:
xor ecx, ecx
mov word [eax + 0x18], cx
mov word [eax + 0x218], cx
mov word [eax + 0x418], cx
mov word [eax + 0x618], cx
mov word [eax + 0x818], cx
mov word [eax + 0xa18], cx
mov word [eax + 0xc18], cx
mov word [eax + 0xe18], cx
ret
Function at 0x405aee
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x4132c4], 0
jne 0x4059d5
call fcn.00405925
mov ecx, dword [0x4132bc]
push esi
xor eax, eax
test ecx, ecx
push edi
jle 0x4059f3
mov edx, dword [0x4132b4]
cmp ebx, dword [edx + eax*4]
je 0x405a20
inc eax
cmp eax, ecx
jl 0x4059e3
xor edi, edi
test edi, edi
jne 0x405b28
test ebx, 0x10000
je 0x405a34
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [0x4132cc]
dec ecx
push ecx
push dword [0x4132b0]
movzx ecx, bx
push ecx
jmp 0x405a9e
mov ecx, dword [0x4132b8]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x4132ac]
lea edi, [ecx + eax*2]
jmp 0x4059f5
cmp word [0x412c68], 0
je 0x405a8b
push str.strings
push 0x412e78
call sub.msvcrt.dll_wcscpy
push dword [0x4132b0]
push ebx
call fcn.00405eb9
add esp, 0x10
test eax, eax
je 0x405a72
push dword [0x4132b0]
call sub.msvcrt.dll_wcslen
mov esi, eax
test esi, esi
pop ecx
jne 0x405aa9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [0x4132cc]
dec ecx
push ecx
push dword [0x4132b0]
push ebx
jmp 0x405a9e
mov eax, dword [0x4132cc]
dec eax
push eax
push dword [0x4132b0]
push ebx
call fcn.00405b2d
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov esi, eax
test esi, esi
jle 0x405b21
mov eax, dword [0x4132c0]
lea ecx, [eax + esi + 2]
cmp ecx, dword [0x4132c4]
jge 0x405b21
mov ecx, dword [0x4132bc]
cmp ecx, dword [0x4132c8]
jge 0x405b21
mov ecx, dword [0x4132ac]
lea edi, [ecx + eax*2]
lea eax, [esi + esi + 2]
push eax
push dword [0x4132b0]
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [0x4132bc]
mov ecx, dword [0x4132c0]
mov edx, dword [0x4132b8]
mov dword [edx + eax*4], ecx
mov eax, dword [0x4132bc]
mov ecx, dword [0x4132b4]
mov dword [ecx + eax*4], ebx
mov eax, dword [0x4132c0]
add esp, 0xc
inc dword [0x4132bc]
test edi, edi
lea eax, [eax + esi + 1]
mov dword [0x4132c0], eax
jne 0x405b28
mov eax, 0x40e4e8
jmp 0x405b2a
mov eax, edi
pop edi
pop esi
ret

Function at 0x405ead
Capabilities:
Enumerate files on windows

Disassembly:
cmp eax, 4
jne 0x405e79
push dword [esp + 4]
push str.menu__d
jmp 0x405e87
cmp eax, 5
jne 0x405e97
push dword [esp + 4]
push str.dialog__d
push 0x40
push 0x412e78
call sub.msvcrt.dll__snwprintf
add esp, 0x10
ret
cmp eax, 6
jne 0x405ea3
push str.strings
jmp 0x405eac
test eax, eax
jne 0x405eb8
push str.general
push 0x412e78
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
ret
Function at 0x406af0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x6c]
mov esi, edi
mov dword [edi + 4], eax
call fcn.00406808
mov eax, dword [ebp + 8]
and dword [edi + 0x38], 0
push 0xd
pop esi
mov dword [edi + 0x298], eax
xor ecx, ecx
push 0x14
pop edx
mov eax, esi
mul edx
seto cl
mov dword [edi + 0x2c8], esi
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi + 0x2cc], eax
xor ecx, ecx
push 0x14
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, 0x4120a0
pop ecx
mov dword [edi + 0x40], eax
mov dword [ebp - 4], ebx
mov esi, dword [ebx]
mov eax, dword [edi + 0x2cc]
imul esi, esi, 0x14
push 0x14
add eax, esi
push ebx
push eax
call sub.msvcrt.dll_memcpy
push 0x14
lea eax, [ebx + 0x14]
push eax
mov eax, dword [edi + 0x40]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 0x2cc]
mov eax, dword [eax + esi + 0x10]
mov ecx, dword [edi + 0x40]
add esp, 0x18
test eax, 0xffff0000
mov dword [ebp - 8], eax
mov dword [ecx + esi + 0x10], eax
jne 0x406b1d
movzx ebx, ax
call fcn.004059c7
mov ecx, dword [edi + 0x2cc]
mov ebx, dword [ebp - 8]
or ebx, 0x10000
mov dword [ecx + esi + 0x10], eax
call fcn.004059c7
mov ecx, dword [edi + 0x40]
mov ebx, dword [ebp - 4]
mov dword [ecx + esi + 0x10], eax
add ebx, 0x28
cmp ebx, 0x4122a8
mov dword [ebp - 4], ebx
jl 0x406aae
mov eax, dword [ebp + 0xc]
and dword [edi + 0x44], 0
push 0xd
mov dword [edi + 0x48], eax
pop eax
xor ecx, ecx
push 4
pop edx
mov dword [edi + 0x2c], eax
mul edx
seto cl
mov dword [edi + 0x28], 0x20
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push 0xc
mov dword [edi + 0x30], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x406b75
mov ecx, dword [edi + 0x58]
mov eax, dword [ebp + 8]
call fcn.004065e7
jmp 0x406b77
xor eax, eax
mov dword [edi + 0x2b8], eax
xor eax, eax
inc eax
xor ecx, ecx
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], ecx
mov dword [edi + 0x2ac], eax
mov dword [edi + 0x2b0], ecx
mov dword [edi + 0x2b4], ecx
mov dword [edi + 0x2bc], eax
mov dword [edi + 0x2c0], eax
mov dword [edi + 0x2e0], 0x32
mov dword [edi + 0x5c], 0xffffff
call fcn.004069be
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406b15
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x6c]
mov esi, edi
mov dword [edi + 4], eax
call fcn.00406808
mov eax, dword [ebp + 8]
and dword [edi + 0x38], 0
push 0xd
pop esi
mov dword [edi + 0x298], eax
xor ecx, ecx
push 0x14
pop edx
mov eax, esi
mul edx
seto cl
mov dword [edi + 0x2c8], esi
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi + 0x2cc], eax
xor ecx, ecx
push 0x14
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, 0x4120a0
pop ecx
mov dword [edi + 0x40], eax
mov dword [ebp - 4], ebx
mov esi, dword [ebx]
mov eax, dword [edi + 0x2cc]
imul esi, esi, 0x14
push 0x14
add eax, esi
push ebx
push eax
call sub.msvcrt.dll_memcpy
push 0x14
lea eax, [ebx + 0x14]
push eax
mov eax, dword [edi + 0x40]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 0x2cc]
mov eax, dword [eax + esi + 0x10]
mov ecx, dword [edi + 0x40]
add esp, 0x18
test eax, 0xffff0000
mov dword [ebp - 8], eax
mov dword [ecx + esi + 0x10], eax
jne 0x406b1d
movzx ebx, ax
call fcn.004059c7
mov ecx, dword [edi + 0x2cc]
mov ebx, dword [ebp - 8]
or ebx, 0x10000
mov dword [ecx + esi + 0x10], eax
call fcn.004059c7
mov ecx, dword [edi + 0x40]
mov ebx, dword [ebp - 4]
mov dword [ecx + esi + 0x10], eax
add ebx, 0x28
cmp ebx, 0x4122a8
mov dword [ebp - 4], ebx
jl 0x406aae
mov eax, dword [ebp + 0xc]
and dword [edi + 0x44], 0
push 0xd
mov dword [edi + 0x48], eax
pop eax
xor ecx, ecx
push 4
pop edx
mov dword [edi + 0x2c], eax
mul edx
seto cl
mov dword [edi + 0x28], 0x20
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push 0xc
mov dword [edi + 0x30], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x406b75
mov ecx, dword [edi + 0x58]
mov eax, dword [ebp + 8]
call fcn.004065e7
jmp 0x406b77
xor eax, eax
mov dword [edi + 0x2b8], eax
xor eax, eax
inc eax
xor ecx, ecx
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], ecx
mov dword [edi + 0x2ac], eax
mov dword [edi + 0x2b0], ecx
mov dword [edi + 0x2b4], ecx
mov dword [edi + 0x2bc], eax
mov dword [edi + 0x2c0], eax
mov dword [edi + 0x2e0], 0x32
mov dword [edi + 0x5c], 0xffffff
call fcn.004069be
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406b88
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x6c]
mov esi, edi
mov dword [edi + 4], eax
call fcn.00406808
mov eax, dword [ebp + 8]
and dword [edi + 0x38], 0
push 0xd
pop esi
mov dword [edi + 0x298], eax
xor ecx, ecx
push 0x14
pop edx
mov eax, esi
mul edx
seto cl
mov dword [edi + 0x2c8], esi
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi + 0x2cc], eax
xor ecx, ecx
push 0x14
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, 0x4120a0
pop ecx
mov dword [edi + 0x40], eax
mov dword [ebp - 4], ebx
mov esi, dword [ebx]
mov eax, dword [edi + 0x2cc]
imul esi, esi, 0x14
push 0x14
add eax, esi
push ebx
push eax
call sub.msvcrt.dll_memcpy
push 0x14
lea eax, [ebx + 0x14]
push eax
mov eax, dword [edi + 0x40]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 0x2cc]
mov eax, dword [eax + esi + 0x10]
mov ecx, dword [edi + 0x40]
add esp, 0x18
test eax, 0xffff0000
mov dword [ebp - 8], eax
mov dword [ecx + esi + 0x10], eax
jne 0x406b1d
movzx ebx, ax
call fcn.004059c7
mov ecx, dword [edi + 0x2cc]
mov ebx, dword [ebp - 8]
or ebx, 0x10000
mov dword [ecx + esi + 0x10], eax
call fcn.004059c7
mov ecx, dword [edi + 0x40]
mov ebx, dword [ebp - 4]
mov dword [ecx + esi + 0x10], eax
add ebx, 0x28
cmp ebx, 0x4122a8
mov dword [ebp - 4], ebx
jl 0x406aae
mov eax, dword [ebp + 0xc]
and dword [edi + 0x44], 0
push 0xd
mov dword [edi + 0x48], eax
pop eax
xor ecx, ecx
push 4
pop edx
mov dword [edi + 0x2c], eax
mul edx
seto cl
mov dword [edi + 0x28], 0x20
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push 0xc
mov dword [edi + 0x30], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x406b75
mov ecx, dword [edi + 0x58]
mov eax, dword [ebp + 8]
call fcn.004065e7
jmp 0x406b77
xor eax, eax
mov dword [edi + 0x2b8], eax
xor eax, eax
inc eax
xor ecx, ecx
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], ecx
mov dword [edi + 0x2ac], eax
mov dword [edi + 0x2b0], ecx
mov dword [edi + 0x2b4], ecx
mov dword [edi + 0x2bc], eax
mov dword [edi + 0x2c0], eax
mov dword [edi + 0x2e0], 0x32
mov dword [edi + 0x5c], 0xffffff
call fcn.004069be
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406dea
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
cmp ebx, 0xffff
jne 0x406d72
mov ebx, dword [esi + 0x2c4]
cmp dword [ebp + 8], 0
jne 0x406d91
mov eax, dword [esi + 0x2c4]
mov ecx, eax
and ecx, 0xfff
cmp ecx, ebx
jne 0x406d91
xor eax, 0x1000
mov ebx, eax
cmp dword [esi + 0x29c], 0
mov dword [esi + 0x2c4], ebx
je 0x406e12
push edi
push dword [esi + 0x298]
mov edi, dword [esi + 0x2c8]
call fcn.00402f4e
and dword [ebp + 8], 0
test edi, edi
pop ecx
mov dword [ebp - 4], eax
jle 0x406ddd
push 0
push 0x4000
push 4
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00403166
add esp, 0x14
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jl 0x406dbe
test bx, 0x1000
jne 0x406de9
mov edi, dword [esi + 0x44]
jmp 0x406dec
mov edi, dword [esi + 0x48]
push dword [esi + 0x298]
call fcn.00402f4e
push edi
push 0x5800
mov ecx, ebx
push 0x24
and ecx, 0xfff
push ecx
push eax
call fcn.00403166
add esp, 0x18
pop edi
mov eax, dword [esi + 0x298]
push 0x406cf6
push esi
push 0x1030
push eax
mov dword [esi + 0x3c], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebx
leave
ret 4

Function at 0x406f74
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [esi + 0x298]
call fcn.00402dd9
mov edi, eax
add esp, 0xc
test edi, edi
je 0x406f95
push dword [ebp + 0xc]
call fcn.00406735
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x40746e
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, eax
xor eax, eax
cmp dword [esi + 0x4c], eax
push edi
je 0x407462
cmp dword [esi + 0x34], eax
mov dword [ebp - 4], eax
jle 0x407462
push dword [ebp - 4]
call fcn.00406735
mov edi, eax
test byte [edi + 4], 1
jne 0x40748f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x34]
jl 0x407447
or dword [ebx + 8], 0xffffffff
or dword [ebx + 0xc], 0xffffffff
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x34]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
cmp edi, 0xffffffff
mov ecx, eax
jne 0x4074aa
push dword [ecx]
call sub.msvcrt.dll_free
jmp 0x4074bd
push dword [esi + 4]
mov eax, dword [edi + 8]
push ebx
push edi
mov dword [ebp - 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [edi + 8], eax
jmp 0x4074df
push dword [ebp - 4]
mov edx, edi
push dword [ebp - 8]
lea eax, [esi + 0x38]
mov edi, ecx
call fcn.00404584
pop ecx
pop ecx
push dword [esi + 0x34]
call fcn.00406735
push dword [esi + 4]
mov edi, eax
push ebx
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
inc dword [esi + 0x34]
mov ecx, esi
call dword [eax + 0x38]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4077c3
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [esi + 0x2cc]
push ebx
push edi
push 0x19
mov dword [ebp - 4], eax
pop ecx
mov eax, 0x3d003d
lea edi, [ebp - 0x204]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov eax, esi
mov word [ebp - 0x1a0], bx
call fcn.004075d8
mov edi, 0x40eeb0
push edi
push dword [ebp + 8]
mov eax, esi
call fcn.004075d8
cmp dword [esi + 0x2c], ebx
jle 0x407823
mov eax, dword [esi + 0x30]
mov edi, dword [eax + ebx*4]
push dword [esi + 0x60]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
call dword [eax]
imul edi, edi, 0x14
push eax
mov eax, dword [ebp - 4]
push dword [edi + eax + 0x10]
push 0x40eebc
push 0x2000
push dword [esi + 0x64]
call sub.msvcrt.dll__snwprintf
add esp, 0x14
push dword [esi + 0x64]
mov eax, esi
push dword [ebp + 8]
call fcn.004075d8
inc ebx
cmp ebx, dword [esi + 0x2c]
jl 0x4077da
mov edi, 0x40eeb0
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
mov eax, esi
call fcn.004075d8
push edi
push dword [ebp + 8]
mov eax, esi
call fcn.004075d8
push edi
push dword [ebp + 8]
mov eax, esi
call fcn.004075d8
pop edi
pop ebx
leave
ret 8

Function at 0x40816d
Capabilities:
Write file on windows

Disassembly:
cmp dword [eax + 0x2d0], 0
je 0x40815e
push dword [esp + 4]
push dword [eax + 0x298]
call fcn.00403252
pop ecx
pop ecx
jmp 0x408179
mov eax, dword [eax + 0x298]
push 2
push dword [esp + 8]
push eax
call fcn.00402dc1
add esp, 0xc
neg eax
sbb eax, eax
neg eax
ret 4