joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408298
Capabilities:
Set registry value

Disassembly:
mov eax, 0x43dad7
call fcn.0043c04c
sub esp, 0x94
push ebx
push esi
push edi
push 0xf
xor ebx, ebx
pop edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
mov byte [ebp - 4], 1
push 0x12
push str.SoftwareGGSQGNA_
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
call fcn.00401f77
push 2
lea ecx, [ebp - 0x9c]
pop edx
lea esi, [ebp - 0x18]
call fcn.0040750e
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00401bdc
push 7
push str.InstKey
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
call fcn.00401f77
mov dword [ebp - 0x10], 0xac3
cmp byte [ebp - 0x14], bl
je 0x408356
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x408343
lea eax, [ebp - 0x38]
push 4
lea ecx, [ebp - 0x10]
push ecx
push 4
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.00401bdc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00407cf9
test al, al
je 0x4083ce
cmp dword [ebp - 0x44], ebx
jbe 0x4083ba
push 3
push 0x442730
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
call fcn.00401f77
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x18]
call fcn.0040756c
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.00401bdc
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x54]
push eax
add ecx, 0xc
call fcn.00402295
cmp dword [ebp - 0x70], ebx
jbe 0x4083ce
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 8]
call fcn.00407e1a
mov dword [ebp - 0x1c], eax
sub esp, 0x10
mov dword [ebp - 0x10], esp
mov esi, esp
push ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x10], esp
call fcn.004047b9
mov eax, dword [ebp + 8]
add eax, 8
push 0xaba
push eax
mov dword [ebp + 8], eax
call fcn.00406127
push ecx
mov dword [ebp - 0x10], esp
lea esi, [ebp - 0x64]
mov dword [ebp - 0x10], esp
call fcn.004047b9
mov byte [ebp - 4], 3
push 6
push str.STATUS
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
call fcn.00401f77
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
mov edi, esi
mov byte [ebp - 4], 4
call fcn.00402fce
push ebx
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00401bdc
sub esp, 0x10
mov dword [ebp - 0x10], esp
push esp
mov ecx, esi
call fcn.0040854f
push 0xa85
push dword [ebp + 8]
call fcn.00406127
mov eax, esi
push eax
mov byte [ebp - 4], 2
call fcn.00402f9f
cmp byte [ebp - 0x14], bl
je 0x408477
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00401bdc
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00401bdc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40a864
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi + 9], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi + 0xd], eax
call esi
push 1
mov dword [ebp - 8], eax
call esi
mov esi, dword [edi + 0xd]
mov ebx, dword [edi + 9]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
push 0
push esi
push ebx
fmul qword [0x442f78]
call fcn.0043bfa0
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
neg esi
sub esi, ecx
add esi, eax
mov eax, ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 8]
cdq
sub eax, edx
push esi
sar ecx, 1
sar eax, 1
sub eax, ecx
push eax
push 0
push dword [edi + 5]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea esi, [edi + 0x11]
mov eax, esi
call fcn.00408c34
push dword [ebp + 0xc]
mov ebx, dword [esi]
push dword [ebp + 8]
call fcn.00408bc8
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 6
push dword [edi + 5]
call esi
push 9
push dword [edi + 5]
call esi
push 0
push 0
push dword [edi + 5]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebx
leave
ret 8

Function at 0x40afa4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
xor eax, eax
xor edi, edi
push str.http:__go.gamenet.ru_a_19_221_inst
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], edi
mov word [ebp - 0x1c], ax
call fcn.0040852a
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x40afd6
lea eax, [ebp - 0x1c]
push 5
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
xor edi, edi
inc edi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401cc1
push dword [esi + 0xcb]
mov dword [esi + 0xcf], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
leave
ret

Function at 0x40c442
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx + 4]
xor ecx, ecx
cmp dword [eax + 0xa3], ecx
je 0x40c46d
add eax, 0x93
cmp dword [eax + 0x14], 8
jb 0x40c45c
mov eax, dword [eax]
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x40c688
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43d115
call fcn.0043c04c
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor edi, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x40c78e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x40c78e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x40c78e
push dword [ebp - 0x14]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
je 0x40c78e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x40c78e
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push eax
call fcn.00424a70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebx + 4], esi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
push eax
push edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x40c77d
mov eax, dword [ebp - 0x10]
push 0x10
mov dword [ebp + 8], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
cmp esi, edi
je 0x40c75d
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 0xc], edi
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
jmp 0x40c75f
xor esi, esi
mov dword [ebx], esi
cmp esi, edi
je 0x40c77d
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
je 0x40c77d
mov ecx, dword [ebx]
cmp ecx, edi
je 0x40c77b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx], edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x40c78e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8
Function at 0x40c79e
Capabilities:
Create http request

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x1a0
push ebx
push esi
xor ebx, ebx
push str.GlobalThistle_580D1956_62F4_40D8_B3A0_E2C1B7334726
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x60], 0xf
mov dword [ebp + 0x5c], ebx
mov byte [ebp + 0x4c], bl
call fcn.00401bb9
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], vtable.MutexLock.0
call fcn.00402834
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x4c]
call fcn.00401bdc
cmp dword [ebp + 4], 0x10
mov eax, dword [ebp - 0x10]
jae 0x40c7f7
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x40c812
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c827
xor esi, esi
lea ecx, [ebp - 0x18]
call fcn.00402806
mov eax, esi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
push edi
push ebx
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x48]
push eax
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
call fcn.0040287a
mov eax, dword [ebp + 0x70]
lea esi, [ebp - 0x138]
call fcn.00409874
mov edi, esi
call fcn.00409a85
mov esi, dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push ebx
push ebx
push ebx
mov edi, str.Installer__compatible__MSIE_6.0b__Windows_NT_5.0__.NET_CLR_1.0.2914_
push edi
call esi
push ebx
push ebx
push ebx
push ebx
push edi
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x2c], 0xf
mov dword [ebp + 0x28], ebx
mov byte [ebp + 0x18], bl
call esi
mov dword [ebp + 0x34], eax
lea eax, [ebp - 0x138]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x50]
mov edi, eax
lea esi, [ebp - 0x65]
mov dword [ebp + 0x50], vtable.._AV___Impl_no_alloc0_U___Callable_obj_V_lambda1___A0x2476420c___0A__tr1_std__X_tr1_std__.0
mov dword [ebp + 0x60], eax
call fcn.0040b46c
mov esi, edi
call fcn.0040b452
lea eax, [ebp + 0xc]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x50]
mov edi, eax
lea esi, [ebp - 0x4d]
mov dword [ebp + 0x50], vtable.._AV___Impl_no_alloc0_U___Callable_obj_V_lambda2___A0x2476420c___0A__tr1_std__X_tr1_std__.0
mov dword [ebp + 0x60], eax
call fcn.0040b46c
mov esi, edi
call fcn.0040b452
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
call esi
pop edi
jmp 0x40c909
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
call esi
test eax, eax
jg 0x40c8ec
mov esi, dword [ebp - 0x2c]
cmp dword [ebp + 0x34], ebx
je 0x40c91e
push dword [ebp + 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp + 0x14]
call fcn.00406109
lea eax, [ebp - 0x138]
push eax
call fcn.0040994a
push dword [ebp + 0x48]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
jmp 0x40c814
Function at 0x40c997
Capabilities:
Create thread

Disassembly:
mov eax, dword [ecx + 4]
lea ecx, [eax + 4]
push ecx
xor ecx, ecx
push ecx
push eax
push 0x40759a
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x40ca00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x40ca9a
mov dword [ebp - 0x210], 0
jmp 0x40ca45
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
cmp edx, dword [ebp - 0x20c]
jae 0x40ca9a
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x210]
mov dx, word [ebp + edx*2 - 0x208]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x210]
movzx ecx, word [ebp + eax*2 - 0x208]
cmp ecx, 0x5c
jne 0x40ca98
xor edx, edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*2 + 2], dx
mov eax, 1
jmp 0x40ca9c
jmp 0x40ca36
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40d9e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 4
push 0
mov ecx, dword [ebp + 8]
call fcn.004016d6
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop ebp
ret 4

Function at 0x40da00
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 4
push 0
mov ecx, dword [ebp + 8]
call fcn.0040681a
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebp
ret 4

Function at 0x4254be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44aca0]
jne 0x4254c8
repz ret
jmp fcn.00430e75

Function at 0x434e3c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44aca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042b3f6
and dword [ebp - 0x14], 0
cmp dword [0x44dc54], 0
mov dword [ebp - 0x18], eax
jne 0x434eef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x434f97
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4418c4
push ebx
call edi
test eax, eax
je 0x434f97
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44dc54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44dc58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44dc5c], eax
call edi
push eax
call esi
mov dword [0x44dc64], eax
test eax, eax
je 0x434eef
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44dc60], eax
mov eax, dword [0x44dc60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x434f48
cmp dword [0x44dc64], ecx
je 0x434f48
push eax
call esi
push dword [0x44dc64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x434f48
test ebx, ebx
je 0x434f48
call edi
test eax, eax
je 0x434f3f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x434f3f
test byte [ebp - 8], 1
jne 0x434f48
or dword [ebp + 0x10], 0x200000
jmp 0x434f7b
mov eax, dword [0x44dc58]
cmp eax, dword [ebp - 0x18]
je 0x434f7b
push eax
call esi
test eax, eax
je 0x434f7b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x434f7b
mov eax, dword [0x44dc5c]
cmp eax, dword [ebp - 0x18]
je 0x434f7b
push eax
call esi
test eax, eax
je 0x434f7b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44dc54]
call esi
test eax, eax
je 0x434f97
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x434f99
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004254be
leave
ret
Function at 0x4014f3
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x14c
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [0x4327fc]
mov dword [ebp - 0x130], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
or eax, 8
mov dword [esp + 0xc], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x40156c
jmp 0x401607
cmp dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x1c]
je 0x40155d
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
push ecx
jmp 0x401607
xor ecx, ecx
mov edx, edi
call fcn.004014f3
test eax, eax
je 0x40157d
jmp 0x4015a4
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edi, [ebp - 0x121]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x12c]
sub esp, 0x10
test eax, eax
je 0x40153d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [esp], 2
call fcn.00407f1f
test eax, eax
push edx
je 0x4015e2
mov edx, dword [0x4327fc]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], edx
call eax
sub esp, 0x10
jmp 0x401607
cmp dword [0x4327fc], 0
mov eax, 1
jne 0x401607
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
push ecx
setne al
push ecx
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40399a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
cmp dword [ebp + 8], 0
je 0x4039c9
mov eax, dword [0x40fc4c]
test eax, eax
je 0x4039ba
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
mov dword [0x40fc4c], 0
jmp 0x403a80
cmp dword [0x40fc4c], 0
je 0x4039e4
mov dword [esp], 0
call fcn.004084c0
push ecx
jmp 0x403a80
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x432850]
jbe 0x403a80
cmp dword [0x432864], 0
je 0x403a37
test byte [0x432800], 1
je 0x403a80
call fcn.004038c8
lea ebx, [ebp - 0x48]
mov dword [esp], ebx
mov dword [esp + 4], str....__d__
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00406dde
jmp 0x403a7e
mov eax, dword [0x432868]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4038fa
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
sub esp, 0x14
mov dword [0x40fc4c], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edx
push edx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403a85
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x403ac8
xor edx, edx
cmp dword [ebp - 0xc], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 8
Function at 0x403b03
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov ebx, dword [0x421818]
add ebx, eax
sub ebx, dword [0x42581c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
test ebx, ebx
mov dword [0x432850], eax
jle 0x403cc6
mov eax, dword [0x421810]
mov dword [esp], eax
call fcn.00403ad1
mov eax, dword [0x42581c]
push ecx
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x40fc44], ebx
mov dword [0x40fc48], 0
sub esp, 0x10
mov ebx, dword [0x421814]
mov eax, 0x4000
sub ebx, dword [0x421810]
mov dword [esp], 0x42181c
cmp ebx, 0x4000
cmovg ebx, eax
mov dword [esp + 4], ebx
call fcn.00403a85
test eax, eax
push edx
push edx
je 0x403cd6
add dword [0x421810], ebx
mov dword [0x417c50], 0x42181c
mov dword [0x417c54], ebx
cmp dword [0x43280c], 0
je 0x403bfc
cmp dword [0x4327ec], 0
jne 0x403bfc
mov eax, dword [0x42581c]
sub eax, dword [0x421818]
mov dword [esp], 0
sub eax, esi
add eax, dword [0x40fc44]
mov dword [0x40fc48], eax
call fcn.0040399a
mov dword [0x417c58], 0x425820
mov dword [0x417c5c], 0x8000
mov dword [esp], 0x417c50
call fcn.00408b1b
test eax, eax
push edi
js 0x403ce2
mov edi, dword [0x417c58]
sub edi, 0x425820
je 0x403c7d
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [0x40a010]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x425820
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x403cdb
cmp edi, dword [ebp - 0x1c]
jne 0x403cdb
add dword [0x42581c], edi
cmp dword [0x417c54], 0
jne 0x403bc6
jmp 0x403c8a
test ebx, ebx
je 0x403ce2
cmp dword [0x417c54], 0
jne 0x403ce2
mov eax, dword [0x421818]
mov edx, eax
sub edx, dword [0x42581c]
add edx, esi
test edx, edx
jg 0x403b7c
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 1
call fcn.0040399a
xor eax, eax
jmp 0x403ce7
or eax, 0xffffffff
jmp 0x403ce7
mov eax, 0xfffffffe
jmp 0x403ce7
mov eax, 0xfffffffd
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403cef
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
test eax, eax
js 0x403d2f
add eax, dword [0x432848]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [0x421818], eax
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov eax, 4
call fcn.00403b03
test eax, eax
mov ebx, eax
js 0x403e98
lea eax, [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, 0xfffffffd
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
lea edi, [ebp - 0x24]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 4
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
je 0x403e98
cmp dword [ebp - 0x24], 4
jne 0x403e98
mov eax, dword [ebp - 0x20]
add dword [0x421818], 4
call fcn.00403b03
test eax, eax
mov ebx, eax
js 0x403e98
cmp dword [ebp + 0x10], 0
jne 0x403e4a
jmp 0x403e3a
cmp eax, 0x4000
mov esi, 0x4000
cmovle esi, eax
mov eax, dword [0x40a010]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x42181c
mov dword [esp], eax
call dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
je 0x403e8c
cmp esi, dword [ebp - 0x24]
jne 0x403e8c
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0x42181c
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x403e93
cmp dword [ebp - 0x1c], esi
jne 0x403e93
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x20], eax
add dword [0x421818], eax
add ebx, eax
jmp 0x403e3d
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x20]
test eax, eax
jg 0x403db3
jmp 0x403e98
mov eax, dword [ebp - 0x20]
mov ebx, 0xfffffffd
cmp dword [ebp + 0x14], eax
cmovle eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [0x40a010]
mov dword [esp + 0xc], edi
mov dword [esp + 4], edx
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
je 0x403e98
mov ebx, dword [ebp - 0x24]
add dword [0x421818], ebx
jmp 0x403e98
mov ebx, 0xfffffffd
jmp 0x403e98
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10