joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c9ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4a5ca8
call fcn.00467fc8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004930c6
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x47c9ea
call fcn.004930c6
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x47c9f8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x47ca06
or eax, 0xffffffff
jmp 0x47caee
mov ecx, esi
call fcn.0047c921
mov dword [ebp - 0x14], eax
call fcn.0047d7b7
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x47ca3d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x47ca3d
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0047d76b
push dword [ebp - 0x14]
call fcn.0047d2b9
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0047c6ae
cmp eax, edi
je 0x47cab0
test byte [esi + 0x24], 0x10
je 0x47ca7e
push 4
mov ecx, esi
pop ebx
call fcn.00480128
test ah, 1
je 0x47ca76
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0047fac1
cmp dword [esi + 0x1c], edi
je 0x47cab0
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00480299
jmp 0x47cab0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x47cac4
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x47cadd
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x47cadd
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0047c95b
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x47dc67
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47dc9f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048108e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00481066
jmp 0x47dcab
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x47f86a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47f8ac
call fcn.004930c6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47f8ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47f8a3
xor eax, eax
jmp 0x47f8b4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047f8ba
pop edi
pop esi
pop ebx
ret 4

Function at 0x492ad7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004930c6
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x492b14
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x492b14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x492b18
xor eax, eax
jmp 0x492b96
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0048118e
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x492b50
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x492b3a
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00492c87
push ebx
mov edi, eax
call fcn.004811b7
test edi, edi
pop ecx
je 0x492b92
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00492a50
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00492b9b
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x494837
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x494865
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x494883
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049479d
jmp 0x494883
mov eax, dword [esi + 0x14]
test eax, eax
je 0x494883
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049479d
test edi, edi
mov eax, edi
jne 0x49486d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401c60
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x154
mov eax, dword [0x421204]
push ebx
push esi
mov esi, dword [esp + 0x160]
test esi, esi
mov dword [esp + 0x158], eax
mov ebx, ecx
je 0x401ce0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401ce0
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401ce0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401ce0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x401cf9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x150]
call fcn.00411d73
add esp, 0x154
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push esi
call edi
test eax, eax
je 0x401d90
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
je 0x401d90
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
je 0x401d90
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebx + 0x104]
push edx
push esi
call edi
test eax, eax
je 0x401d90
mov eax, dword [esp + 0x10]
push eax
call fcn.0041163d
add esp, 4
test eax, eax
mov dword [ebx + 0x108], eax
je 0x401d90
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push esi
call edi
test eax, eax
jne 0x401daa
mov eax, dword [ebx + 0x108]
push eax
call fcn.00411638
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x150]
call fcn.00411d73
add esp, 0x154
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
mov al, 1
pop ebx
call fcn.00411d73
add esp, 0x154
ret 4
Function at 0x4062d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x421204]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4063f2
lea ecx, [esp + 8]
call fcn.004061d0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x4063f6
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
jne 0x4063a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.004062d0
mov edi, eax
test edi, edi
jne 0x40641a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x406362
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4063b9
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4063d8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00411d73
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x406401
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00411d73
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x406429
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.00411d73
add esp, 0x118
ret 4
Function at 0x406910
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x406922
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x409110
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
push edi
mov bl, 1
jne 0x40916f
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push ebp
push eax
mov dword [esp + 0x14], eax
call edi
mov edx, dword [esi + 4]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0xfffffffe
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ecx
call edi
push eax
push 0x4e
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
shr eax, 2
test al, 1
je 0x4091a9
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
push ecx
movzx edx, di
push edx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x28]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
seta bl
test bl, bl
je 0x4091e0
mov al, byte [esi + 0x58]
mov ecx, dword [esi + 4]
push 1
push 0
or al, 2
push ecx
mov byte [esi + 0x58], al
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
Function at 0x409960
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4099c1
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4099a3
cmp eax, 2
jne 0x4099b3
test esi, esi
mov eax, dword [esp + 0x14]
je 0x4099bd
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x4099bd
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x40a1b0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x104]
push edi
xor edi, edi
xor ebx, ebx
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x10], edi
jle 0x40a243
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x108]
push eax
lea edx, [edi + ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40a1fd
mov eax, dword [esi + 0x108]
mov ecx, dword [eax + edi]
mov ebx, dword [eax + edi + 4]
add eax, edi
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0x104]
inc ebp
add edi, 0x18
cmp ebp, eax
jl 0x40a1d0
test ebx, ebx
jle 0x40a243
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a243
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x40a24f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.0041163d
mov edi, dword [esp + 0x24]
add esp, 4
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a295
mov edx, dword [edi]
push edx
call fcn.00411638
add esp, 4
mov dword [edi], 0
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 8
Function at 0x40a2e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x421204]
push ebx
mov dword [esp + 0x10c], eax
push 0x421e38
lea eax, [esp + 0xc]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str._save.dat
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40a3c3
push esi
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a364
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
call fcn.00411d73
add esp, 0x10c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebx + 0xab0]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [ebx + 0xab4]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
add ebx, 0x440
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x108]
call fcn.00411d73
add esp, 0x10c
ret
mov ecx, dword [esp + 0x10c]
xor al, al
pop ebx
call fcn.00411d73
add esp, 0x10c
ret
Function at 0x40ae60
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x258
mov eax, dword [0x421204]
push ebx
mov dword [esp + 0x258], eax
push 0x421e38
lea eax, [esp + 0x18]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str._save.dat
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40afd9
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40afd9
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40aefd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x40af14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x254]
call fcn.00411d73
add esp, 0x258
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
call edi
test eax, eax
jne 0x40af4f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x254]
call fcn.00411d73
add esp, 0x258
ret
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
je 0x40af30
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
je 0x40af30
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40afba
mov eax, dword [ebx + 4]
push 4
push 0x41a8f4
push 0x41a8d4
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40af30
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x440], ecx
mov dword [ebx + 0xab0], edx
mov dword [ebx + 0xab4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x254]
call fcn.00411d73
add esp, 0x258
ret
mov ecx, dword [esp + 0x258]
xor al, al
pop ebx
call fcn.00411d73
add esp, 0x258
ret
Function at 0x40c780
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x421204]
push esi
mov dword [esp + 0x110], eax
push 0x421e38
lea eax, [esp + 0x10]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.error.dat
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40c896
push edi
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c804
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10c]
call fcn.00411d73
add esp, 0x110
ret
mov eax, dword [esi + 0xad0]
test eax, eax
je 0x40c878
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40c820
mov ecx, dword [esi + 0xacc]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 4]
cmp eax, ecx
je 0x40c85c
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call fcn.004121bd
mov eax, dword [esi + 0xad0]
add esp, 4
dec eax
mov dword [esi + 0xad0], eax
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push edi
call ebx
mov eax, dword [esi + 0xad0]
test eax, eax
jne 0x40c820
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x10c]
call fcn.00411d73
add esp, 0x110
ret
mov ecx, dword [esp + 0x110]
xor al, al
pop esi
call fcn.00411d73
add esp, 0x110
ret
Function at 0x40dcf0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x250
mov eax, dword [0x421204]
push esi
mov dword [esp + 0x250], eax
push 0x421e38
lea eax, [esp + 0x10]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.error.dat
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40de20
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40de20
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dd90
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24c]
call fcn.00411d73
add esp, 0x250
ret
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x40ddbf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24c]
call fcn.00411d73
add esp, 0x250
ret
add esi, 0xac8
mov ecx, esi
call fcn.00407410
mov eax, ebx
shr eax, 2
test eax, eax
jle 0x40de01
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov edi, edi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edi
call ebp
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0040d4a0
dec ebx
jne 0x40dde0
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x24c]
call fcn.00411d73
add esp, 0x250
ret
mov ecx, dword [esp + 0x250]
xor al, al
pop esi
call fcn.00411d73
add esp, 0x250
ret

Function at 0x40e460
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.0040b3a0
mov ecx, esi
call fcn.0040dcf0
test al, al
jne 0x40e4b5
cmp dword [esi + 0xae4], 1
jne 0x40e4b5
mov eax, dword [esi + 4]
push 0x10
push 0x41ac28
push 0x41ac04
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi + 0xae4]
test eax, eax
jne 0x40e4a3
mov ecx, esi
call fcn.0040a2e0
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
pop esi
ret 0x10
mov ecx, esi
call fcn.0040de40
mov ecx, esi
call fcn.0040c8f0
mov ecx, esi
call fcn.0040b420
mov ecx, esi
call fcn.0040c450
mov ecx, esi
call fcn.0040a3e0
mov ecx, esi
call fcn.0040c130
cmp dword [esi + 0xae4], 2
jne 0x40e507
lea edx, [esi + 0x43c]
push edx
push 0
push esi
push 0x40b150
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x438], eax
mov eax, dword [esi + 4]
push 0
push 0xea60
push 0x79
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esi + 4]
push 0
push 0
push 0xf
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop esi
ret 0x10
Function at 0x40e78c
Capabilities:
Delete file

Disassembly:
sub esp, 0x140
mov eax, dword [0x421204]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x144], eax
mov eax, dword [esi + 0xae4]
xor ebx, ebx
cmp eax, ebx
jne 0x40e863
mov eax, dword [esi + 0xab0]
mov ecx, dword [esi + 0xab4]
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], 0x41a944
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea edx, [esp + 0xc]
mov edi, eax
push edx
lea eax, [esp + 0x18]
push eax
push 0x421de8
call fcn.004039a0
mov ecx, dword [0x42224c]
push ebx
push 0x403d20
push edi
push 0x25c
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
pop edi
je 0x40e836
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40e8ef
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40e8ef
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esi + 0xab4], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esi + 0xab0], edx
je 0x40e8cc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40e8cc
cmp eax, 1
jne 0x40e8cc
mov ecx, dword [esi + 4]
push 0x24
push 0x41ac68
push 0x41ac34
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40e8cc
push 0x421e38
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.error.dat
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40e8c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407090
add esp, 4
mov edx, dword [esi + 4]
push ebx
push edx
call dword [sym.imp.USER32.dll_EndDialog]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.0040de40
mov ecx, esi
mov dword [esi + 0x440], ebx
mov byte [esi + 0xae0], bl
call fcn.0040c130
mov ecx, dword [esp + 0x144]
pop esi
xor eax, eax
pop ebx
call fcn.00411d73
add esp, 0x140
ret 0x10