joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002890
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
sub esp, 0xadc
push ebx
lea eax, [esp + 0x62c]
push ebp
push eax
mov dword [esp + 0x28], ecx
push 0x200
mov byte [esp + 0x238], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor edx, edx
lea ebx, [esp + 0x630]
cmp word [esp + 0x630], dx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ebp, 1
je 0x10002a4f
lea ecx, [esp + 0x23b]
push esi
push edi
mov dword [esp + 0x10], ecx
jmp 0x100028f4
xor edx, edx
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x30]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
push edx
push edx
push edx
push edx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x410
lea ecx, [esp + 0x83c]
push 0x2b4
push ecx
push 0x80
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0xa4c]
push edx
call edi
lea esi, [eax + eax + 2]
lea eax, [esp + 0x30]
push eax
call edi
lea ecx, [eax + eax + 2]
mov ax, word [ebx]
cmp ax, 0x41
mov dword [esp + 0x28], ecx
je 0x100029aa
cmp ax, 0x42
je 0x100029aa
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x100029aa
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.1000b480
mov edx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x20]
mov ecx, 0x14
call fcn.1000b480
mov dword [esp + 0x14], eax
jmp 0x100029b0
xor edi, edi
mov dword [esp + 0x14], edi
mov cl, byte [ebx]
push ebx
mov byte [esp + ebp + 0x23c], cl
call dword [0x100128c8]
mov edx, dword [esp + 0x14]
mov byte [esp + ebp + 0x239], al
mov dword [esp + ebp + 0x23a], edi
mov dword [esp + ebp + 0x23e], edx
test esi, esi
jle 0x100029fe
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov ecx, esi
lea esi, [esp + 0xa4c]
jmp 0x10002a1c
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, eax
lea esi, [esp + 0x30]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add eax, 0x1e
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
add ebp, 0x1e
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 + 2], 0
lea ebx, [ebx + eax*2 + 2]
jne 0x100028f2
pop edi
pop esi
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x230]
push ebp
push eax
call fcn.10004530
pop ebp
pop ebx
add esp, 0xadc
ret
Function at 0x10003ef0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 4]
push ecx
push str.SOFTWAREMicrosoftWindowsDbxUpdateET
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esp + 8]
add esp, 4
shl eax, 1
push eax
push esi
push 1
push 0
push 0x100123e8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret

Function at 0x10003fe0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [0x100128f0]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x10003f60
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [0x100128e0]
mov eax, dword [esp + 0x10]
push eax
call dword [0x10012920]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x100045d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, 0x41
xor eax, eax
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsDbxUpdateET_
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000463b
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret

Function at 0x10004650
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push getsockname
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.MHz
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add esp, 0x10
ret
Function at 0x100046b0
Capabilities:
Get hostname

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [esp + 0xc]
push edi
push eax
push 0
mov dword [esp + 0x18], 0
call esi
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
call esi
test eax, eax
mov ecx, 7
mov esi, ebx
jne 0x100046f6
mov esi, str.NULL
mov ebp, dword [esp + 0x1c]
push ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10004720
Capabilities:
Get local ipv4 addresses
Get memory capacity
Get socket information

Disassembly:
sub esp, 0x7cc
push ebx
push esi
push edi
mov ecx, 0x165
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2b8]
mov byte [esp + 0x44], 0x83
push eax
mov dword [esp + 0x2bc], 0x11c
call dword [0x10012888]
lea ecx, [esp + 0x46]
push ecx
push 0x100123e8
call fcn.100045d0
mov ebx, dword [esp + 0x7e8]
xor edx, edx
mov dword [esp + 0x1c], edx
add esp, 8
mov dword [esp + 0x18], edx
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 0xa8]
push eax
push ecx
push edx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x7dc]
mov dword [esp + 0x250], eax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x5d8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x5d8]
push 0x200
push ecx
push edx
call fcn.100046b0
mov ecx, 0x19
lea esi, [esp + 0x5e4]
lea edi, [esp + 0x260]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
call fcn.10004650
mov dword [esp + 0x4d4], eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x4d8]
shr ecx, 0x14
push ecx
push 0x100123bc
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x4e4]
push 0x1001258c
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3d4]
mov dword [esp + 0x10], 0x50
push ecx
push edx
push 0
call sub.MPR.dll_WNetGetUserW
lea eax, [esp + 0x44]
push 0x594
push eax
mov ecx, ebx
call fcn.10001af0
pop edi
pop esi
pop ebx
add esp, 0x7cc
ret

Function at 0x100048c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x10004919
lea ecx, [esp]
push str.Help_
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea edx, [esp]
push 0
push edx
call dword [0x10012878]
mov ecx, dword [esp + 0x20c]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov al, 1
add esp, 0x208
ret
xor al, al
add esp, 0x208
ret
Function at 0x10004cd0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
mov ecx, 0x82
xor eax, eax
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x100123e8
call fcn.100045d0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 8
lea ecx, [esp + 8]
push ecx
call edi
lea edx, [esp + 8]
push edx
call edi
test eax, eax
jle 0x10004d18
xor eax, eax
pop edi
add esp, 0x20c
ret
lea eax, [esp + 4]
push esi
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 8]
push ecx
push str.SOFTWAREMicrosoftWindowsDbxUpdateET
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, dword [esp + 0x218]
push esi
call edi
mov edx, dword [esp + 8]
shl eax, 1
push eax
push esi
push 1
push 0
push 0x100123e8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop edi
add esp, 0x20c
ret

Function at 0x100050c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push 0
mov eax, dword [ebp]
mov ebx, dword [ebp + 4]
mov edi, ecx
push 0x80
push 3
mov dword [esp + 0x30], eax
push 0
lea eax, [edi + 0x10]
push 2
push 0x40000000
push eax
call dword [0x1001289c]
lea ecx, [esp + 0x24]
push 0
mov esi, eax
push ecx
push ebx
push esi
call dword [0x10012894]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x10]
push 0
add eax, 0xfffffff8
push edx
add ebp, 8
push eax
push ebp
push esi
call dword [0x10012890]
push esi
call dword [0x10012920]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x218]
lea eax, [ecx + ebx]
xor ecx, ecx
cmp eax, edx
jne 0x10005153
cmp ecx, dword [edi + 0x21c]
jne 0x10005153
push ecx
push ecx
lea eax, [edi + 0x10]
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebx
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.10004530
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x10005190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d198
push 0x1000b472
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10005311
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp word [edi], 0x5c
jne 0x1000524f
lea eax, [edi + 2]
cmp word [eax], 0x5c
jne 0x1000524f
mov esi, eax
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
mov ax, word [esi]
test ax, ax
je 0x10005222
cmp ax, 0x5c
je 0x10005222
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x10005206
cmp word [esi], 0
je 0x1000522e
add esi, 2
mov dword [ebp - 0x1c], esi
mov ax, word [esi]
test ax, ax
je 0x10005247
cmp ax, 0x5c
je 0x10005247
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x1000522b
cmp word [esi], 0
je 0x10005277
jmp 0x10005271
lea eax, [edi + 2]
cmp word [eax], 0x3a
jne 0x10005277
mov esi, eax
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
mov ax, word [esi]
test ax, ax
je 0x10005277
cmp ax, 0x5c
jne 0x10005277
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ax, word [esi]
test ax, ax
je 0x100052d5
cmp ax, 0x5c
jne 0x100052c7
mov word [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x100052b8
push 0
push edi
call dword [0x10012878]
test eax, eax
jne 0x100052c2
call dword [0x100128cc]
cmp eax, 0xb7
je 0x100052c2
push edi
jmp 0x10005308
and eax, 0x10
cmp al, 0x10
je 0x100052c2
push edi
jmp 0x10005308
mov word [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x1000527d
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403a60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd147
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x53806c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
push 0x1c
call fcn.004ba211
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x403ace
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00403260
mov dword [ebp - 0x24], eax
jmp 0x403ad5
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00409e20
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00409e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00403bb0
movzx edx, byte [ebp - 0x14]
test edx, edx
jne 0x403b89
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00405640
mov dword [ebp - 4], 2
push str.more_than_one_flags_defined_with_the_same_name
lea ecx, [ebp - 0x4c]
call fcn.00405640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.00403900
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.004054e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.004054e0
push 0
call fcn.004d9a49
xor eax, eax
jne 0x403b2f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9f48
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x405bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x405cce
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x405be8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00406610
jmp 0x405ce2
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.004081a0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x405c7c
jg 0x405c10
cmp dword [ebp + 0xc], 0
jbe 0x405c7c
cmp dword [ebp - 8], 0
jl 0x405c7c
jg 0x405c1e
cmp dword [ebp - 0xc], 0
jbe 0x405c7c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x405c3c
jl 0x405c30
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x405c3c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.004083a0
push eax
call fcn.004017b0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00408220
cmp dword [ebp + 0x10], 0
jl 0x405cbe
jg 0x405c8a
cmp dword [ebp + 0xc], 0
jbe 0x405cbe
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x405cbe
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004df6e1
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x405ce2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00406610
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x405e16
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x405d28
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00406730
jmp 0x405e2a
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.00408260
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x405dbc
jg 0x405d50
cmp dword [ebp + 0xc], 0
jbe 0x405dbc
cmp dword [ebp - 8], 0
jl 0x405dbc
jg 0x405d5e
cmp dword [ebp - 0xc], 0
jbe 0x405dbc
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x405d7c
jl 0x405d70
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x405d7c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.004083c0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004017b0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00408340
cmp dword [ebp + 0x10], 0
jl 0x405e06
jg 0x405dca
cmp dword [ebp + 0xc], 0
jbe 0x405e06
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x405e06
mov ecx, dword [ebp - 4]
call fcn.00407c70
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004dfce6
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x405e2a
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00406730
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4062a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x53806c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x38], ecx
call fcn.00401920
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.004018a0
add esp, 8
movzx edx, al
test edx, edx
je 0x4062e5
lea eax, [ebp + 8]
push eax
call fcn.004018d0
add esp, 4
jmp 0x406466
mov ecx, dword [ebp - 0x38]
call fcn.004083a0
test eax, eax
je 0x406327
mov ecx, dword [ebp - 0x38]
call fcn.004083a0
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.00408320
cmp esi, eax
jae 0x406327
lea ecx, [ebp + 8]
push ecx
call fcn.00401880
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x38]
call fcn.004081d0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x406466
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x4c], 0
jne 0x40633a
call fcn.00401920
jmp 0x406466
mov ecx, dword [ebp - 0x38]
call fcn.00407c70
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x38], 0
jne 0x406389
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00401880
add esp, 4
movzx ecx, al
push ecx
call fcn.004031e0
add esp, 8
movzx edx, al
test edx, edx
je 0x406379
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
jmp 0x406381
call fcn.00401920
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
jmp 0x406466
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.00401880
add esp, 4
mov byte [ebp - 0x2a], al
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x29]
push eax
lea ecx, [ebp - 0x2a]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
call fcn.00406d70
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jl 0x406461
cmp dword [ebp - 0x3c], 1
jle 0x4063e4
cmp dword [ebp - 0x3c], 3
je 0x406431
jmp 0x406461
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x40], ecx
je 0x406416
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.004df6e1
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x406416
call fcn.00401920
jmp 0x406466
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2a]
cmp dword [ebp - 0x34], edx
je 0x40642a
mov eax, dword [ebp + 8]
jmp 0x406466
call fcn.00401920
jmp 0x406466
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2a]
push edx
call fcn.004031e0
add esp, 8
movzx eax, al
test eax, eax
je 0x406454
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
jmp 0x40645c
call fcn.00401920
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x406466
call fcn.00401920
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9f48
mov esp, ebp
pop ebp
ret 4