joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c310
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov al, byte [0x420ff8]
push ebx
push esi
mov esi, ecx
push edi
mov byte [ebp - 0x15c], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x15b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], esi
push ecx
stosb byte es:[edi], al
call fcn.00401eb0
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
call ebx
lea edx, [ebp - 0x15c]
push 0x5c
push edx
call fcn.00401450
add esp, 8
test eax, eax
je 0x40c415
mov byte [eax + 1], 0
or ecx, 0xffffffff
lea edi, [ebp - 0x15c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x364]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [ebp - 0x15c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov edi, str.PCIRISVRHelper.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x364]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._PCIRISVRHelper.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x364]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esi, dword [ebp - 4]
mov dl, byte [0x420ff8]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x25f]
mov byte [ebp - 0x260], dl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x260]
push eax
call fcn.00401eb0
push eax
call ebx
lea ecx, [ebp - 0x260]
push 0x5c
push ecx
call fcn.00401450
add esp, 8
test eax, eax
je 0x40c47a
mov ecx, dword [esi + 0x28c]
lea edx, [esi + 0xac]
push edx
push ecx
inc eax
push str._PCIRISVRHelper.exe__Arestart_d__T__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x58]
lea edx, [ebp - 0x14]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push edx
mov edx, dword [ebp + 8]
push eax
push 0
push 0
push 0x20
push 1
push 0
lea ecx, [ebp - 0x260]
push 0
push ecx
push 0
push edx
mov ecx, esi
mov word [ebp - 0x28], 5
call fcn.0040c590
test eax, eax
je 0x40c4ca
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0x14]
push ecx
call edi
mov edx, dword [esi + 0x29c]
push 0x3eb
push 2
push 0x401
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c590
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040c660
lea ecx, [ebp - 4]
push 4
mov esi, eax
mov eax, dword [ebp + 8]
push ecx
push 0xc
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ebx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40c652
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov esi, eax
jne 0x40c60b
mov ebx, str.NULL
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40c617
mov eax, str.NULL
push esi
push ebx
push eax
lea edx, [ebp - 0x204]
push str.CreateProcessAsUser_0x_08x____s_____s___...__FAILED___d_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [edi]
add esp, 0x14
lea ecx, [ebp - 0x204]
push 0
push 0
push ecx
push 0xcf
push 1
mov ecx, edi
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x40c910
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
mov ebx, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x104]
push 0x5c
push ecx
call fcn.00401450
add esp, 8
test eax, eax
je 0x40ca54
mov ecx, dword [ebx + 0xa8]
test ecx, ecx
jne 0x40ca54
mov ecx, dword [ebx + 0x2c0]
lea edx, [eax + 1]
test ecx, ecx
je 0x40c98a
mov edi, str.uninstal.log
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40c9b7
mov edi, str.install.log
or ecx, 0xffffffff
xor eax, eax
push 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040bff0
add esp, 8
lea edi, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x208]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2e
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x208]
push ecx
call fcn.00401450
add esp, 8
test eax, eax
je 0x40ca54
lea edx, [eax + 1]
mov edi, 0x41da44
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x104]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x208]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40ca54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x104]
push eax
push ecx
push 0xe
push ebx
call fcn.0040bff0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cbc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 4]
push 0
push edi
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0
push edi
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x40d100
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov ebx, eax
lea eax, [ebp + 0xc]
lea edx, [ebp - 0x430]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [0x420ef4]
test al, al
jne 0x40d18f
push 0x104
push 0x420ef4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x420ef4
call fcn.00401450
add esp, 8
lea edx, [eax + 1]
test eax, eax
jne 0x40d16b
mov edx, 0x420ef4
push edi
mov edi, str.pcirisvr.dbg
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0x41dfb8
push 0x420ef4
call fcn.004111ec
mov esi, eax
add esp, 8
test esi, esi
je 0x40d201
lea ecx, [ebp - 0x30]
push 0x20
push ecx
push str.dd_MMM_yy
push 0
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea edx, [ebp - 0x10]
push 0x10
push edx
push 0
push 0
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x30]
push eax
push ecx
push str.__s__s_
push esi
call fcn.00411cc3
lea edx, [ebp - 0x430]
push esi
push edx
call fcn.00411189
push esi
call fcn.00411133
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d3f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x40d410
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40d41c
mov eax, 0x2000
mov edx, dword [ebp + 8]
lea ecx, [esi + 0xc]
push ecx
push 0
push esi
push edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x40d44d
push 0x1e2
push str.E:_nsmsrc_nsm11301130ctl32Refcount.cpp
push str.hThread
call fcn.00403830
add esp, 0xc
test ebx, ebx
je 0x40d46e
mov eax, dword [esi + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40eea0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
lea edx, [ebp - 0x104]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40eef4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40ef07
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f060
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push str.Kernel32
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
push esi
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x1f0fff
push eax
call esi
mov ecx, dword [ebp + 8]
push eax
push ecx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
mov eax, dword [ebp - 4]
test edi, edi
jne 0x40f0b2
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40f115
cmp dword [ebp - 0x10], 0x103
jne 0x40f115
push str.ExitProcess
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
test edi, edi
jne 0x40f0e0
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0
push ebx
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x40f121
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [ebp - 0xc]
jmp 0x40f140
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], 0x42b
jmp 0x40f140
mov eax, dword [ebp - 4]
test edi, edi
jne 0x40f12b
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
test edi, edi
je 0x40f14e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40f15c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403930
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x4039ab
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.0045eed3
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x403967
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x40397e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.0045eed3
add esp, 4
test eax, eax
jbe 0x4039ab
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.0045eed3
add esp, 4
cmp esi, eax
jb 0x403990
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x404d60
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp dword [0x655698], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x18], 0x2a
jne 0x404df6
push 3
push 0x20
push 3
push 1
push 3
push 2
push esi
push esi
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 0x23
push 0x655698
mov dword [0x655698], 0x11c
mov dword [0x65569c], 6
mov dword [0x6556a0], 1
mov word [0x6557ac], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
add eax, 1
mov dword [0x6051b8], eax
jmp 0x404dfb
mov eax, dword [0x6051b8]
cmp eax, esi
je 0x404e0a
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
cmp ebp, esi
je 0x404f2a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push esi
push esi
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x404f28
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x404f28
push 0
mov ecx, eax
push ecx
push edi
push ebp
call ebx
cmp edi, eax
jbe 0x404f28
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
jmp 0x404e60
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x404edf
push 0
push 0
push str._ProgramW6432_
call ebp
mov edi, eax
test edi, edi
je 0x404f28
lea edx, [edi + edi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x404f28
push edi
push esi
push str._ProgramW6432_
call ebp
cmp edi, eax
jne 0x404f28
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x404ec6
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x4a6bb0
push 0x26
jmp 0x404ee5
cmp word [esi + edi*2 - 4], 0x5c
je 0x404ef3
push 0x4a6e04
add edi, 1
push edi
push esi
call fcn.00404bb0
jmp 0x404ef3
push 0x4a6bb0
push eax
call fcn.00404c50
mov esi, eax
add esp, 8
test esi, esi
je 0x404f28
push esi
call fcn.0045eed3
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.0045f3c5
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x404f28
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 1
xor esi, esi
cmp ebx, 3
jl 0x404e60
pop edi
pop ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0x14
ret

Function at 0x4052e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
call fcn.00405170
mov esi, eax
add esp, 4
test esi, esi
je 0x405322
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405304
test al, 0x50
je 0x405322
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405317
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x408840
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473982
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6051c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
lea ecx, [esi + 0x34]
mov dword [ebp - 0x58], esi
call dword [sym.imp.core3d.dll_public:_void___thiscall_oZone3D_nsp::o3Font::constructor_void_]
mov dword [esi + 0x1aa4], 0
mov dword [esi + 0x1aa8], 0xf
mov byte [esi + 0x1a94], 0
mov dword [esi + 0x1abc], 0
mov dword [esi + 0x1ac0], 0xf
mov dword [ebp - 4], 0
mov byte [esi + 0x1aac], 0
push 0x409430
push 0x409390
push 0x20
push 0x34
lea eax, [esi + 0x1ac4]
mov byte [ebp - 4], 1
push eax
call fcn.0044e0aa
mov dword [esi + 0x219c], 0
mov dword [esi + 0x21a0], 0
mov dword [esi + 0x21a4], 0
mov dword [esi + 8], 0
lea ebx, [esi + 0x1adc]
mov dword [esi + 0x30], 0
xor edi, edi
mov dword [esi + 0x1a10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x1a08], 0
mov dword [esi + 0x1a18], 0
mov dword [esi + 0x1a1c], 0
mov dword [esi + 0x1a20], 0
mov dword [esi + 0x1a24], 0
mov dword [esi + 0x1a28], 0
mov dword [esi + 0x1a2c], 0
mov dword [esi + 0x1a30], 0
mov dword [esi + 0x1a00], 0
mov dword [esi + 0x1a04], 0
mov dword [esi + 0x1a74], 1
mov dword [esi + 0x1a50], 0x55730
mov dword [esi + 0x1a44], 0x64
mov dword [esi + 0x1a40], 0x41700000
mov dword [esi + 0x1a4c], 0x200
mov dword [esi + 0x1a48], 0xa
mov dword [esi + 0x1a6c], 0
mov dword [esi + 0x1a54], 0
mov dword [esi + 0x1a64], 0
mov dword [esi + 0x1a60], 0
mov dword [esi + 0x1a78], 0
mov dword [esi], 0xc0000000
mov dword [esi + 4], 0
mov dword [esi + 0x1a14], 0
mov byte [esi + 0x1c], 0
mov byte [esi + 0x1a90], 0
mov dword [esi + 0x1a88], 0
mov dword [esi + 0x1a34], 0
mov dword [esi + 0x2148], 1
mov dword [esi + 0x2144], 0
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0044f220
inc edi
lea eax, [ebp - 0x50]
push edi
push 0x476f38
push eax
call fcn.00405f60
lea ecx, [ebp - 0x50]
add esp, 0x18
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408a70
sub ecx, edx
lea eax, [ebp - 0x50]
push ecx
push eax
mov ecx, ebx
call fcn.00406f50
add ebx, 0x34
cmp edi, 0x20
jl 0x408a43
mov dword [esi + 0x214c], 0
mov eax, esi
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], 1
mov byte [esi + 0x2184], 1
mov dword [esi + 0x1a80], 1
mov word [esi + 0x1a84], 0
mov word [esi + 0x1a91], 1
mov byte [esi + 0x2194], 0
mov dword [esi + 0x1a0c], 0
mov dword [esi + 0x1a70], 0
mov dword [esi + 0x2198], 0xbf800000
mov byte [esi + 0x10], 0
mov byte [esi + 0x1a7c], 0
mov byte [esi + 0x21a8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret
Function at 0x419440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6051c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4194e1
cmp byte [esi + 0x3d], 0
je 0x4194e1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x419497
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4194a9
sub eax, 1
je 0x4194ad
sub eax, 2
je 0x4194e1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4194ca
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004573d1
add esp, 0x10
cmp edi, eax
jne 0x419497
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret
Function at 0x419e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6051c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x419e90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x419ecc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x419ecc
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.0044dcb2
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x419fb1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x419ef4
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 0x419f27
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00456a7c
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.0044dcb2
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
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 dword [edx + 0x1c]
test eax, eax
js 0x419fb1
cmp eax, 1
jle 0x419f84
cmp eax, 3
jne 0x419fb1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00417af0
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.0044dcb2
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x419fa1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004573d1
add esp, 0x10
cmp edi, eax
jne 0x419fb1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x419eb7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret 4
Function at 0x41a9a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x41a9c4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041aa90
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x41a9e5
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x41a9e7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x41aa6f
jg 0x41a9fa
test esi, esi
je 0x41aa6f
test ecx, ecx
jl 0x41aa3c
jg 0x41aa04
test eax, eax
je 0x41aa3c
cmp ebx, ecx
jg 0x41aa16
jl 0x41aa0e
cmp esi, eax
jae 0x41aa16
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0044f3f0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x41aa42
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x41aa6f
jg 0x41aa4c
test esi, esi
je 0x41aa6f
cmp dword [edi + 0x4c], 0
je 0x41aa6f
mov ecx, edi
call fcn.00419780
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.00456d64
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc