joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4101cf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040af34
and dword [ebp - 4], 0
cmp dword [0x419b2c], 0
mov ebx, eax
jne 0x410280
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410331
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410331
push eax
call fcn.0040aec2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419b2c], eax
call esi
push eax
call fcn.0040aec2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419b30], eax
call esi
push eax
call fcn.0040aec2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x419b34], eax
call esi
push eax
call fcn.0040aec2
pop ecx
mov dword [0x419b3c], eax
test eax, eax
je 0x410280
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040aec2
pop ecx
mov dword [0x419b38], eax
mov eax, dword [0x419b38]
cmp eax, ebx
je 0x4102d8
cmp dword [0x419b3c], ebx
je 0x4102d8
push eax
call fcn.0040af3d
push dword [0x419b3c]
mov esi, eax
call fcn.0040af3d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4102d8
test edi, edi
je 0x4102d8
call esi
test eax, eax
je 0x4102cf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4102cf
test byte [ebp - 0xc], 1
jne 0x4102d8
or dword [ebp + 0x10], 0x200000
jmp 0x410311
mov eax, dword [0x419b30]
cmp eax, ebx
je 0x410311
push eax
call fcn.0040af3d
pop ecx
test eax, eax
je 0x410311
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410311
mov eax, dword [0x419b34]
cmp eax, ebx
je 0x410311
push eax
call fcn.0040af3d
pop ecx
test eax, eax
je 0x410311
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419b2c]
call fcn.0040af3d
pop ecx
test eax, eax
je 0x410331
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410333
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x4a779c1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..text
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x7b65026d
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x411792
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419364]
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.0040b952
and dword [ebp - 0x14], 0
cmp dword [0x4af1c8], 0
mov dword [ebp - 0x18], eax
jne 0x411845
push 0x403e58
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4118ed
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e4c
push ebx
call edi
test eax, eax
je 0x4118ed
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e3c
push ebx
mov dword [0x4af1c8], eax
call edi
push eax
call esi
push 0x403e28
push ebx
mov dword [0x4af1cc], eax
call edi
push eax
call esi
push 0x403e0c
push ebx
mov dword [0x4af1d0], eax
call edi
push eax
call esi
mov dword [0x4af1d8], eax
test eax, eax
je 0x411845
push 0x403df4
push ebx
call edi
push eax
call esi
mov dword [0x4af1d4], eax
mov eax, dword [0x4af1d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41189e
cmp dword [0x4af1d8], ecx
je 0x41189e
push eax
call esi
push dword [0x4af1d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41189e
test ebx, ebx
je 0x41189e
call edi
test eax, eax
je 0x411895
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411895
test byte [ebp - 8], 1
jne 0x41189e
or dword [ebp + 0x10], 0x200000
jmp 0x4118d1
mov eax, dword [0x4af1cc]
cmp eax, dword [ebp - 0x18]
je 0x4118d1
push eax
call esi
test eax, eax
je 0x4118d1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4118d1
mov eax, dword [0x4af1d0]
cmp eax, dword [ebp - 0x18]
je 0x4118d1
push eax
call esi
test eax, eax
je 0x4118d1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4af1c8]
call esi
test eax, eax
je 0x4118ed
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4118ef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040927b
leave
ret
Function at 0x401520
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4a63d0], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x401591
push str.ADVAPI32.DLL
mov dword [0x4a63e4], 0xc
mov dword [0x4a63ec], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401587
push str.ConvertStringSecurityDescriptorToSecurityDescriptorW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x401587
push 0
push 0x4a63e8
push 1
push str.O:_A_OICI_GAFA___BA__A_OICI_GAFA___SY_
call ebx
mov dword [0x4a63d0], eax
jmp 0x401591
mov dword [0x4a63e8], 0
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
push dword [esi + 4]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*4]
push eax
push 0
push 4
push 0x4a63e4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x18], eax
test eax, eax
je 0x401675
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401675
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*4]
push eax
push 0
push 0
push 6
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0x1c], edx
test edx, edx
je 0x401675
mov ecx, dword [esi + 0xc]
xor edi, edi
test ecx, ecx
jle 0x401640
mov edx, dword [esi + 8]
lea ebx, [edi + 1]
mov eax, dword [esi + 0x1c]
imul edx, ebx
add eax, edx
mov dword [ebp - 4], eax
lea eax, [ecx - 1]
xor ecx, ecx
cmp edi, eax
cmovne ecx, edx
mov edx, dword [ebp - 4]
mov dword [edx - 4], ecx
test edi, edi
jne 0x40162a
mov edi, dword [esi + 0xc]
lea eax, [edi - 1]
mov edi, ebx
imul eax, dword [esi + 8]
mov dword [edx - 8], eax
mov ecx, dword [esi + 0xc]
cmp edi, ecx
jl 0x401602
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
imul eax, ecx
xor ecx, ecx
add eax, edx
mov dword [esi + 0x14], eax
cmp dword [esi + 0x10], ecx
jle 0x401665
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, dword [esi + 0x10]
jl 0x401652
mov eax, dword [esi + 0x14]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401680
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push edi
push dword [esi + 4]
push 1
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
mov dword [esi + 0x18], edi
test edi, edi
je 0x4016cb
mov edx, dword [esi + 0xc]
imul edx, dword [esi + 8]
mov ecx, dword [esi + 0x10]
lea eax, [edx + ecx*4]
push eax
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4016cb
mov ecx, dword [esi + 0xc]
imul ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 0x14], ecx
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x401dc0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x4a39ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.00455350
push 0x103
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004357d0
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401f98
push ebx
push esi
push edi
call fcn.004020c0
add esp, 8
lea eax, [ebp - 0x20c]
push 0x497d1c
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401f90
nop dword [eax]
lea eax, [ebp - 0x450]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401f8a
test byte [ebp - 0x450], 0x10
push 0x104
push 0
je 0x401f40
lea eax, [ebp - 0x108]
push eax
call fcn.00455350
add esp, 0xc
lea eax, [ebp - 0x424]
mov ecx, 0x497d20
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401eb4
test dl, dl
je 0x401eb0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401eb4
add eax, 2
add ecx, 2
test dl, dl
jne 0x401e94
xor eax, eax
jmp 0x401eb9
sbb eax, eax
or eax, 1
test eax, eax
je 0x401e50
mov eax, 0x497d24
lea ecx, [ebp - 0x424]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401ee8
test dl, dl
je 0x401ee4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401ee8
add ecx, 2
add eax, 2
test dl, dl
jne 0x401ec8
xor eax, eax
jmp 0x401eed
sbb eax, eax
or eax, 1
test eax, eax
je 0x401e50
push 0x103
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004357d0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004020c0
add esp, 8
lea ecx, [ebp - 0x108]
mov edx, esi
call fcn.00401dc0
jmp 0x401e50
lea eax, [ebp - 0x310]
push eax
call fcn.00455350
push 0x103
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.004357d0
add esp, 0x18
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.004020c0
add esp, 8
jmp 0x401e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047b11c
mov esp, ebp
pop ebp
ret
Function at 0x403210
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x4a39ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.Engine.dll_long_int_sam_bFullScreenActive]
push ebx
push esi
push edi
cmp dword [eax], 0
je 0x4032d6
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
call ebx
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 0xc
push edi
call esi
push 8
push edi
call esi
push 0xa
push edi
call esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x9c
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.00455350
mov eax, 0x9c
mov dword [ebp - 0x98], 0x180000
mov word [ebp - 0x9c], ax
add esp, 0xc
mov eax, dword [0x4a4c00]
mov dword [ebp - 0x54], eax
mov eax, dword [0x4a4c04]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0xc0]
push 4
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov eax, dword [sym.imp.Engine.dll_long_int_sam_bFullScreenActive]
cmp dword [eax], 0
je 0x4032d6
mov esi, dword [0x4a4c00]
xor ecx, ecx
mov ebx, dword [0x4a4c04]
mov dword [ebp - 0xc4], 0
jmp 0x4033a6
lea eax, [ebp - 0x14]
push eax
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
push dword [eax]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [0x4a4c00]
sub esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
sub ebx, dword [ebp - 8]
sub esi, dword [ebp - 0x24]
sub ebx, dword [ebp - 0x20]
mov eax, dword [sym.imp.Engine.dll_long_int_cmd_iWindowLeft]
add esi, dword [ebp - 0x14]
add ebx, dword [0x4a4c04]
add esi, dword [ebp - 0x1c]
add ebx, dword [ebp - 0x18]
cmp dword [eax], 0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
jle 0x403357
mov eax, dword [eax]
mov dword [ebp - 0xc4], eax
call edi
cmp dword [ebp - 0xc4], eax
jle 0x40334a
push 0
call edi
mov dword [ebp - 0xc4], eax
mov eax, dword [sym.imp.Engine.dll_long_int_cmd_iWindowLeft]
mov dword [eax], 0xffffffff
jmp 0x403368
call edi
sub eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [ebp - 0xc4], ecx
mov eax, dword [sym.imp.Engine.dll_long_int_cmd_iWindowTop]
push 1
cmp dword [eax], 0
jle 0x40339b
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
call edi
mov ecx, dword [ebp - 0xc8]
cmp ecx, eax
jle 0x40338e
push 1
call edi
mov ecx, eax
mov eax, dword [sym.imp.Engine.dll_long_int_cmd_iWindowTop]
mov dword [eax], 0xffffffff
jmp 0x4033a6
call edi
sub eax, ebx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
push 4
push ebx
push esi
push ecx
push dword [ebp - 0xc4]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
push 5
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b11c
mov esp, ebp
pop ebp
ret
Function at 0x4047d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4a39ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4048bb
mov dword [ebp - 0x12c], 0x128
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x130], eax
xor ebx, ebx
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x404894
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x124], eax
jne 0x404847
mov ebx, 1
jmp 0x404883
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404850
sub eax, edx
xor edx, edx
cmp eax, 8
push 0x487cfc
lea ecx, [eax - 8]
cmovle ecx, edx
lea eax, [ebp - 0x108]
add eax, ecx
push eax
call fcn.0047fadc
add esp, 8
test eax, eax
jne 0x404883
inc esi
test esi, esi
jg 0x4048b2
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404832
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4048bb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b11c
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4048cf
push 0
push str.LastChaos_Run
push str.Fail_Execute_LastChaos_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b11c
mov esp, ebp
pop ebp
ret
Function at 0x40abf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4a39ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40ac93
cmp byte [esi + 0x3d], 0
je 0x40ac93
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40ac49
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40ac5b
sub eax, 1
je 0x40ac5f
sub eax, 2
je 0x40ac93
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b11c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ac7c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00423ed6
add esp, 0x10
cmp edi, eax
jne 0x40ac49
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b11c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0047b11c
mov esp, ebp
pop ebp
ret

Function at 0x40fe60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483868
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a39ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0047b265
mov edi, eax
add esp, 4
test edi, edi
je 0x40fefd
push 1
mov dword [ebp - 4], 0
call fcn.0046100f
add esp, 4
mov dword [edi + 4], eax
jmp 0x40feff
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.004086b0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x40ff63
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40ff63
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x40ff83
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.0040e120
cmp byte [ebp + 0xc], 0
je 0x40ff92
push esi
call fcn.004622c1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a39ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x410190
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b11c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4101cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4101cc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b11c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4102b3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4101f4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x410227
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0042346d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b11c
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x4102b3
cmp eax, 1
jle 0x410286
cmp eax, 3
jne 0x4102b3
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00408180
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b11c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4102a3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00423ed6
add esp, 0x10
cmp edi, eax
jne 0x4102b3
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4101b7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b11c
mov esp, ebp
pop ebp
ret 4
Function at 0x410a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x410b34
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x410b23
jg 0x410a98
test edx, edx
je 0x410b23
call fcn.0040d0a0
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x410ae8
jg 0x410aae
test esi, esi
je 0x410ae8
cmp ebx, eax
jg 0x410abd
jl 0x410ab8
cmp edi, esi
jae 0x410abd
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.00455b10
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp + 8]
jmp 0x410b0a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x410b1d
mov eax, dword [ebp + 8]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jg 0x410a98
jl 0x410b1d
test edi, edi
jne 0x410a98
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x410b53
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x410b55
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x410bfd
jg 0x410b6f
test esi, esi
je 0x410bfd
test eax, eax
jl 0x410bae
jg 0x410b79
test ebx, ebx
je 0x410bae
cmp edi, eax
jg 0x410b88
jl 0x410b83
cmp esi, ebx
jae 0x410b88
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00455b10
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp + 8], ebx
sub esi, ebx
sbb edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x410bb4
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x410bfd
jg 0x410bbe
test esi, esi
je 0x410bfd
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x410bfd
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x410be9
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [ebp + 8]
call fcn.00423781
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc