joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bf3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.00417110
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
pop esi
jne 0x402c55
xor eax, eax
inc eax
cmp dword [ebp - 0x118], 0
je 0x402c4f
cmp dword [ebp - 0x118], eax
jne 0x402c55
cmp byte [ebp - 6], 1
je 0x402c57
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409ec6
mov esp, ebp
pop ebp
ret

Function at 0x402c65
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
mov esi, ecx
call fcn.00417110
lea eax, [ebp - 0x20c]
push str.SOFTWARE_
push eax
call fcn.00419722
lea eax, [ebp - 0x20c]
push str.DFInput
push eax
call fcn.004196f1
lea eax, [esi + 0x3c]
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x402cc0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00419722
lea eax, [esi + 0x24]
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x402cda
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00419722
pop ecx
pop ecx
lea eax, [ebp - 0x620]
push eax
push 2
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d46
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x414]
push edi
mov edi, 0x104
push edi
push eax
push 1
push ebx
push str.CfgRootPath
push dword [ebp - 0x620]
call esi
push edi
lea eax, [ebp - 0x61c]
push eax
push 1
push ebx
push str.CfgUserPath
push dword [ebp - 0x620]
call esi
pop edi
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ec6
mov esp, ebp
pop ebp
ret

Function at 0x403c83
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00419744
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040a0bd
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.00419722
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x403cfd
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x403cf4
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403cea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403cfb
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x403cc7
jmp 0x403cfd
xor edi, edi
push esi
call fcn.0040a1de
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d0d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x82c]
push 0x44
xor ebx, ebx
push ebx
push eax
call fcn.00417110
push 0x10
lea eax, [ebp - 0x7e4]
mov dword [ebp - 0x82c], 0x44
push ebx
push eax
call fcn.00417110
push esi
lea eax, [ebp - 0x7d4]
push 0x42f848
push eax
call fcn.004045c3
add esp, 0x24
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x82c]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x7d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403dc2
push 0xffffffffffffffff
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x7e8]
push eax
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x7e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7e0]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ec6
mov esp, ebp
pop ebp
ret

Function at 0x403e0f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
xor esi, esi
push ecx
push eax
push 0x80000000
call edi
test eax, eax
jne 0x403efa
lea eax, [ebp - 0x210]
push eax
push str.shellopencommand
push dword [ebp - 0x214]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x403ef2
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00417110
add esp, 0xc
mov dword [ebp - 0x218], 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x42f3a0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403eea
cmp word [ebp - 0x20c], si
je 0x403ed8
lea eax, [ebp - 0x20c]
push eax
call fcn.00419744
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004032c0
xor esi, esi
inc esi
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x214]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ec6
mov esp, ebp
pop ebp
ret
Function at 0x4040d9
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
mov dword [ebp - 0x210], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00417110
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x404134
push ebx
push 0x42f878
push eax
call fcn.004045c3
add esp, 0xc
jmp 0x404144
push esi
push ebx
push str._s.bak_d
push eax
call fcn.004045c3
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404162
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0041d940
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
lea eax, [ebp - 0x20c]
push 0
push eax
jne 0x4041a9
call edi
cmp esi, 0xa
jge 0x4041b7
inc esi
jmp 0x404103
call edi
push 5
push 0
push dword [ebp - 0x210]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ec6
mov esp, ebp
pop ebp
ret

Function at 0x404647
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x24]
push esi
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x14]
push ecx
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
sub eax, dword [ebp - 0x10]
pop edi
pop esi
call fcn.00409ec6
mov esp, ebp
pop ebp
ret

Function at 0x4046a7
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x24]
push esi
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x14]
push ecx
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
sub eax, dword [ebp - 0x14]
pop edi
pop esi
call fcn.00409ec6
mov esp, ebp
pop ebp
ret
Function at 0x404707
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x24]
push ecx
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
sub eax, dword [ebp - 0x10]
pop edi
pop esi
call fcn.00409ec6
mov esp, ebp
pop ebp
ret

Function at 0x404808
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 0x4048a5
push esi
push esi
mov dword [0x441ec8], esi
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x24]
push ecx
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov edx, dword [0x441ec8]
pop edi
pop esi
cmp edx, 1
jle 0x404897
test edx, edx
jle 0x404897
mov ecx, 0x441ed8
cmp dword [ecx], eax
cmovg eax, dword [ecx]
lea ecx, [ecx + 0x10]
sub edx, 1
jne 0x40488a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409ec6
mov esp, ebp
pop ebp
ret
Function at 0x40490d
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.0040a090
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x61c]
push edi
xor esi, esi
push esi
push eax
call fcn.00417110
lea eax, [ebp - 0x61c]
push str.C:log_
push eax
call fcn.00419722
push edi
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.00417110
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00417110
add esp, 0x2c
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0041726a
xor ecx, ecx
push 0x800
push esi
mov word [eax], cx
lea eax, [ebp - 0x1028]
push eax
call fcn.00417110
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sgswb.log
push eax
call fcn.0040342b
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x414]
add esp, 0x20
push eax
call edi
test eax, eax
je 0x404b31
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00419744
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.00419722
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.0040342b
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push eax
call fcn.004045e7
push esi
call fcn.0041e6c5
mov dword [ebp - 0x2038], eax
lea eax, [ebp - 0x2038]
push eax
mov dword [ebp - 0x2034], edx
call fcn.0041e61f
lea ecx, [ebp - 0x1028]
push ecx
push dword [eax]
mov ecx, dword [eax + 0x10]
push dword [eax + 4]
inc ecx
push dword [eax + 8]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push ecx
add eax, 0x76c
push eax
lea eax, [ebp - 0x2028]
push str.__d__d__d__d__d__d_:_s
push eax
call fcn.0040342b
xor eax, eax
add esp, 0x5c
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call edi
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x42f928
push eax
cmovne esi, ebx
call fcn.0041daef
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x404b30
test esi, esi
jne 0x404ad6
push edi
push 2
lea eax, [ebp - 0x2030]
mov dword [ebp - 0x2030], 0xfeff
push ebx
push eax
call fcn.0041e33d
add esp, 0x10
lea eax, [ebp - 0x2028]
push eax
call fcn.00419744
push edi
add eax, eax
push eax
lea eax, [ebp - 0x2028]
push ebx
push eax
call fcn.0041e33d
push edi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xd
push ebx
push eax
call fcn.0041e33d
push edi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xa
push ebx
push eax
call fcn.0041e33d
push edi
call fcn.0041e085
add esp, 0x38
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409ec6
mov esp, ebp
pop ebp
ret
Function at 0x40516e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x442038], 0
mov dword [ebp - 8], ecx
je 0x4052c1
add ecx, 8
cmp dword [ecx + 0x14], 8
jb 0x40518f
mov ecx, dword [ecx]
push esi
push 0x42fa28
push ecx
push dword [0x43e03c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4052c0
push ebx
push edi
push esi
push dword [0x43e03c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x43e03c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.00416610
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.0040597e
pop ecx
pop ecx
test eax, eax
je 0x4052be
mov ebx, dword [ebp - 8]
mov ecx, 0x442054
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404f62
mov eax, dword [ebp - 0xc]
push esi
mov dword [eax + 0x14], ebx
push dword [0x43e03c]
push esi
push dword [ebp + 8]
push esi
push esi
push esi
push 0x80000000
push 0x80880000
push esi
push dword [0x43e040]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [ebx + 0x20], eax
call esi
test eax, 0x10000000
jne 0x40527e
mov byte [ebx + 0x28], 1
jmp 0x4052a4
test eax, 0x21000000
je 0x40528b
mov byte [ebx + 0x28], 5
jmp 0x4052a4
push 8
push dword [ebx + 0x20]
mov byte [ebx + 0x28], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, ebx
call fcn.00405c8c
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
push 0x405a9b
push 0xfffffffffffffffc
push dword [ebp + 8]
mov dword [ebx + 0x24], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x406d00
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push 0xa4
mov eax, 0x42e3ad
call fcn.00409f31
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x68], esi
push eax
call fcn.0040721d
xor edi, edi
lea ecx, [ebp - 0x40]
push 0x42f3a0
mov dword [ebp - 4], edi
call fcn.0040391e
test eax, eax
je 0x406d82
push edi
push 0x80
push 4
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406d63
push 3
pop esi
xor edi, edi
jmp 0x406e98
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x64], eax
inc eax
push eax
mov dword [ebp - 0x5c], eax
call fcn.0040a0bd
mov esi, eax
pop ecx
test esi, esi
jne 0x406d89
xor edi, edi
mov esi, edi
jmp 0x406e98
push dword [ebp - 0x5c]
push 0
push esi
call fcn.00417110
and dword [ebp - 0x60], 0
lea eax, [ebp - 0x60]
add esp, 0xc
push 0
push eax
push dword [ebp - 0x64]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xb0]
call fcn.0040aff0
xor edi, edi
mov byte [ebp - 4], 1
push edi
push edi
push esi
lea ecx, [ebp - 0xb0]
call fcn.0040d960
push str.TheCellDict
lea ecx, [ebp - 0xb0]
call fcn.0040bd10
test eax, eax
je 0x406e06
push str.CellDictInfo
mov ecx, eax
call fcn.0040bd10
test eax, eax
je 0x406e06
push str.SignCode
mov ecx, eax
call fcn.0040bd70
test eax, eax
jne 0x406e11
push esi
call fcn.0040a1de
pop ecx
mov esi, edi
jmp 0x406e8d
mov ecx, eax
call fcn.0040bde0
push eax
lea ecx, [ebp - 0x58]
call fcn.00403474
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004041c8
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00403753
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.004038ee
push esi
test eax, eax
je 0x406e5e
call fcn.0040a1de
pop ecx
mov esi, edi
jmp 0x406e82
call fcn.0040a1de
pop ecx
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x406e7f
push 0xffffffffffffffff
push edi
push eax
mov ecx, ebx
call fcn.00403204
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.0040306a
lea ecx, [ebp - 0xb0]
call fcn.00406bd1
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.0040306a
mov eax, esi
call fcn.00409eec
ret 0xc
Function at 0x40721d
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xa0
mov eax, 0x42e41e
call fcn.00409f31
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x9c]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xac], ebx
call fcn.004064b6
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], ebx
call fcn.004065b1
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
xor eax, eax
mov dword [ebp - 0xa0], ebx
stosd dword es:[edi], eax
push ebx
push 0x80
push 4
stosd dword es:[edi], eax
push ebx
push 1
push 0x80000000
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40729d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xa0], eax
jmp 0x4072a3
mov eax, dword [ebp - 0xa0]
lea esi, [eax + 1]
push esi
call fcn.0040a0bd
push esi
mov edi, eax
push 0
push edi
call fcn.00417110
and dword [ebp - 0xa4], 0
lea eax, [ebp - 0xa4]
add esp, 0x10
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0x9c]
push eax
push edi
call fcn.004065bf
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00406514
mov esi, dword [ebp - 0xa8]
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp - 0x9c]
call fcn.0040653e
lea ecx, [ebp - 0x9c]
call fcn.00406506
mov eax, esi
call fcn.00409eec
ret 8
Function at 0x407a8a
Capabilities:
Delete directory

Disassembly:
push 0x474
mov eax, 0x42e4dc
call fcn.00409f31
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
push esi
mov dword [edi], eax
call fcn.00406ead
mov dword [ebp - 0x480], eax
cmp eax, 2
jne 0x407aed
lea ecx, [ebp - 0x479]
call fcn.00407c90
and dword [ebp - 4], 0
lea ecx, [ebp - 0x479]
push 0
push esi
call fcn.0040938a
mov ecx, edi
call fcn.00407327
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x479]
mov ebx, eax
call fcn.0041917c
jmp 0x407af4
xor ebx, ebx
test eax, eax
sete bl
cmp dword [edi + 8], 0
je 0x407b02
xor eax, eax
inc eax
jmp 0x407c7e
mov esi, 0x208
lea eax, [ebp - 0x218]
push esi
push 0
push eax
call fcn.00417110
push esi
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00417110
mov ecx, dword [0x442a00]
add esp, 0x18
call fcn.0040642b
mov ecx, eax
call fcn.0040162f
push eax
lea eax, [ebp - 0x218]
push 0x42fb20
push eax
call fcn.0040342b
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push str._sTemp_
push eax
call fcn.0040342b
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x420]
add esp, 0x18
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
mov eax, dword [ebp - 0x480]
cmp eax, 5
jne 0x407ba4
xor eax, eax
cmp dword [edi], eax
je 0x407c7c
push eax
push 0x42fb48
push 0x42fb54
jmp 0x407c75
test eax, eax
jne 0x407c64
xor esi, esi
cmp dword [edi], esi
je 0x407c7c
cmp dword [edi + 0x10], esi
je 0x407bcc
push esi
push 0x42fb48
push 0x42fb70
push esi
jmp 0x407c76
lea ecx, [ebp - 0x478]
call fcn.004084d0
lea eax, [edi + 0x14]
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x407be9
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x478]
call fcn.00408cbd
lea eax, [edi + 0x2c]
cmp dword [eax + 0x14], 8
jb 0x407c00
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x478]
call fcn.00408ca5
lea eax, [edi + 0x44]
cmp dword [eax + 0x14], 8
jb 0x407c17
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x478]
call fcn.00408cb1
push dword [edi + 0x5c]
lea ecx, [ebp - 0x478]
call fcn.00408cc9
push dword [edi + 0x60]
lea ecx, [ebp - 0x478]
call fcn.00408c98
mov ecx, dword [0x442a00]
push esi
call fcn.00406433
push eax
lea ecx, [ebp - 0x478]
call fcn.0040864f
lea ecx, [ebp - 0x478]
call fcn.00408583
jmp 0x407c7c
xor eax, eax
cmp dword [edi], eax
je 0x407c7c
push eax
push 0x42fb48
push 0x42fb80
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, ebx
call fcn.00409eec
ret 8
Function at 0x4080e5
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x42e51a
call fcn.00409f31
mov eax, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
and dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], cx
and dword [ebp - 4], ecx
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.0040406e
push str.DFInputInfo.ini
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00403b6f
add esp, 0x14
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4081f2
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x42f3a0
push str.CfgUserPath
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x4081aa
xor eax, eax
jmp 0x4081b7
lea eax, [ebp - 0x218]
push eax
call fcn.00419744
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004032c0
mov ebx, str.Dict
push ebx
call fcn.00419744
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.00403160
cmp dword [esi + 0x14], 8
jb 0x4081e3
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4081f2
mov bl, 1
jmp 0x4081f4
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.0040306a
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.0040306a
mov al, bl
call fcn.00409eec
ret 8