joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001de30
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2020
call fcn.10055430
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2014], ecx
mov dword [ebp - 0x2010], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2020], xmm0
push str._INF__UpdateBotIni__Start
call fcn.100098e0
add esp, 4
lea eax, [ebp - 0x2010]
push eax
lea ecx, [ebp - 0x2020]
push ecx
push 7
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2004]
push edx
push str.C:_boot.ini
mov eax, dword [ebp - 0x2014]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x7644]
call edx
add esp, 0x20
mov dword [ebp - 0x200c], eax
cmp dword [ebp - 0x200c], 0
je 0x1001df87
push 1
lea eax, [ebp - 0x2004]
push eax
mov ecx, dword [ebp - 0x2014]
call fcn.1001dbf0
mov dword [ebp - 0x2018], eax
cmp dword [ebp - 0x2018], 0
je 0x1001df87
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x2020]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1002e1a0
add esp, 0x10
mov byte [ebp - 0x2005], al
movzx ecx, byte [ebp - 0x2005]
test ecx, ecx
jne 0x1001df1b
jmp 0x1001df87
mov edx, dword [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2004]
push eax
mov ecx, dword [ebp - 0x2010]
lea edx, [ebp + ecx - 0x1004]
push edx
call fcn.100321c0
add esp, 0xc
mov eax, dword [ebp - 0x200c]
push eax
mov ecx, dword [ebp - 0x2010]
push ecx
lea edx, [ebp - 0x1004]
push edx
mov ecx, dword [ebp - 0x2014]
call fcn.100160a0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x2020]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1002e270
add esp, 0x10
mov byte [ebp - 0x2005], al
push str._SUC__UpdateBotIni__End
call fcn.100098e0
add esp, 4
mov eax, dword [ebp - 0x2018]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1001dfb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], 0
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1001e02b
mov eax, dword [ebp - 0x18]
and eax, 1
je 0x1001e007
cmp dword [ebp - 0x14], 1
jle 0x1001e007
mov ecx, dword [ebp - 0x14]
add ecx, 0x41
push ecx
push 0x1006d538
push 5
lea edx, [ebp - 0xc]
push edx
call fcn.100011b0
add esp, 0x10
jmp 0x1001e018
cmp dword [ebp - 0x14], 2
jle 0x1001e018
mov eax, dword [ebp - 0x14]
add eax, 0x41
mov byte [ebp - 0xd], al
jmp 0x1001e02b
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
shr edx, 1
mov dword [ebp - 0x18], edx
jmp 0x1001dfd7
cmp dword [ebp - 0x14], 0x1a
jge 0x1001e03a
mov eax, dword [ebp - 0x14]
add eax, 0x41
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret
Function at 0x1001e2c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x124], ecx
mov eax, 1
imul ecx, eax, 0
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp + 0xc]
mov cl, byte [edx + ecx]
mov byte [ebp + eax - 0x114], cl
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0x114], 0x3a
mov eax, 1
shl eax, 1
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 3
jae 0x1001e31e
jmp 0x1001e323
call fcn.1002fd8f
mov ecx, dword [ebp - 0x118]
mov byte [ebp + ecx - 0x114], 0
mov edx, 1
imul eax, edx, 0
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + eax]
mov byte [ebp + edx - 0x10c], al
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 0x10c], 0x3a
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x10c], 0x5c
mov eax, 1
imul ecx, eax, 3
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x11c], 4
jae 0x1001e386
jmp 0x1001e38b
call fcn.1002fd8f
mov edx, dword [ebp - 0x11c]
mov byte [ebp + edx - 0x10c], 0
push str._INF__MountVolume__Start
call fcn.100098e0
add esp, 4
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001e3c6
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
mov dword [ebp - 0x110], eax
jmp 0x1001e4a9
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x114]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
je 0x1001e4a9
push str._INF__MountVolume__DefineDosDeviceA_OK_
call fcn.100098e0
add esp, 4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
jne 0x1001e459
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INF__MountVolume__GetVolumeNameForVolumeMountPointA_Fail__GetLastError___d
call fcn.100098e0
add esp, 8
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0x120], ecx
cmp dword [ebp - 0x120], 0x104
jae 0x1001e446
jmp 0x1001e44b
call fcn.1002fd8f
mov edx, dword [ebp - 0x120]
mov byte [ebp + edx - 0x108], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
mov dword [ebp - 0x110], eax
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x1001e4a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INF__MountVolume__SetVolumeMountPointA_Fail__GetLastError___d
call fcn.100098e0
add esp, 8
push str._INF__MountVolume__End
call fcn.100098e0
add esp, 4
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001f400
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057366
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x478], ecx
push 0x400
push 0
lea eax, [ebp - 0x410]
push eax
call fcn.10033d10
add esp, 0xc
lea ecx, [ebp - 0x440]
call fcn.10005620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.10005620
mov byte [ebp - 4], 1
mov ecx, 0x10078dd0
call fcn.10005370
push eax
push str._sLogslog_engine.txt
lea ecx, [ebp - 0x458]
push ecx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x474], eax
mov edx, dword [ebp - 0x474]
push edx
lea ecx, [ebp - 0x428]
call fcn.100054a0
lea ecx, [ebp - 0x458]
call fcn.10005450
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
movsx edx, byte [ecx + 0x69de]
push edx
push str._c:WindowsTemplog.txt
lea eax, [ebp - 0x470]
push eax
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x47c], eax
mov ecx, dword [ebp - 0x47c]
push ecx
lea ecx, [ebp - 0x440]
call fcn.100054a0
lea ecx, [ebp - 0x470]
call fcn.10005450
push 0
lea ecx, [ebp - 0x428]
call fcn.10005370
push eax
lea ecx, [ebp - 0x440]
call fcn.10005370
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INF__CopyLogFile__GetLastError__d
call fcn.100098e0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.10005450
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret
Function at 0x10021610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], ecx
push 0x40
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.10033d10
add esp, 0xc
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
movsx eax, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._INF__SetSrcDiskInfo__SrcDisk_:__d__CPart_:__c__DPart_:__d__EPart_:__d
call fcn.100098e0
add esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x100216c4
push 0x40
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x100216b0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
add edx, 0x69e8
push edx
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x44]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call fcn.100041f0
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x44]
push eax
call fcn.100417a5
add esp, 4
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov byte [edx + 0x69de], al
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x68], ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x6c], eax
jmp 0x100216f2
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov dword [edx + 0x69e8], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov al, byte [ebp + 0xc]
mov byte [edx + 0x69de], al
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x68], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x6c], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10021ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005776b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0x28]
call fcn.10005620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10005620
mov byte [ebp - 4], 1
push str.RunDiskpart.txt
push 0x10078dd0
lea eax, [ebp - 0x58]
push eax
call fcn.1000a460
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0x58]
call fcn.10005450
lea ecx, [ebp - 0x28]
call fcn.10005370
push eax
push str._s___s_
lea edx, [ebp - 0x70]
push edx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x40]
call fcn.100054a0
lea ecx, [ebp - 0x70]
call fcn.10005450
push 0x1006e49c
lea ecx, [ebp - 0x28]
call fcn.10005370
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.10040ef1
add esp, 0xc
test eax, eax
je 0x10021fb0
mov byte [ebp - 0x71], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005450
mov al, byte [ebp - 0x71]
jmp 0x10022089
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1003f560
add esp, 4
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.100419e6
add esp, 0x10
mov edx, dword [ebp - 0x78]
push edx
call fcn.10041000
add esp, 4
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x88], esp
lea ecx, [ebp - 0x40]
call fcn.10005370
push eax
mov ecx, esi
call fcn.100055b0
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x90], esp
push 0x1006e4a0
call fcn.100055b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x84]
call fcn.10016d00
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x94], esp
lea eax, [ebp - 0x28]
push eax
call fcn.10005670
call fcn.10009b10
add esp, 0x18
mov byte [ebp - 0x72], al
movzx ecx, byte [ebp - 0x72]
test ecx, ecx
je 0x10022067
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
lea edx, [ebp - 0x28]
push edx
call fcn.10005670
call fcn.10009ca0
add esp, 0x18
mov byte [ebp - 0x73], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005450
mov al, byte [ebp - 0x73]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret 4
Function at 0x100220b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100577a8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x58], 0x1a
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x4c], 1
lea ecx, [ebp - 0x28]
call fcn.10005620
mov dword [ebp - 4], 0
mov byte [ebp - 0x41], 0
mov byte [ebp - 0x41], 0
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002212b
mov dword [ebp - 0x50], 0x19
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x54], 0xffffffff
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
jmp 0x1002213c
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x54]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x58]
je 0x100221ab
mov ecx, dword [ebp - 0x48]
add ecx, 0x41
push ecx
push str._c:_
lea edx, [ebp - 0x40]
push edx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0x40]
call fcn.10005450
lea ecx, [ebp - 0x28]
call fcn.10005370
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x100221a9
cmp dword [ebp - 0x48], 2
jl 0x100221a9
mov ecx, dword [ebp - 0x48]
add ecx, 0x41
mov byte [ebp - 0x41], cl
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x4c]
jne 0x100221a0
jmp 0x100221ab
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x10022133
mov cl, byte [ebp - 0x41]
mov byte [ebp - 0x42], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005450
mov al, byte [ebp - 0x42]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret 8
Function at 0x10022d00
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 0x10022e1e
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x10022d38
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.10023860
jmp 0x10022e32
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.100248b0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x10022dcc
jg 0x10022d60
cmp dword [ebp + 0xc], 0
jbe 0x10022dcc
cmp dword [ebp - 8], 0
jl 0x10022dcc
jg 0x10022d6e
cmp dword [ebp - 0xc], 0
jbe 0x10022dcc
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x10022d8c
jl 0x10022d80
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x10022d8c
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.10024af0
push eax
call fcn.10001330
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.10024930
cmp dword [ebp + 0x10], 0
jl 0x10022e0e
jg 0x10022dda
cmp dword [ebp + 0xc], 0
jbe 0x10022e0e
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x10022e0e
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.100419e6
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 0x10022e32
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.10023860
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10022e40
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 0x10022f66
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x10022e78
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.10023980
jmp 0x10022f7a
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.10024970
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x10022f0c
jg 0x10022ea0
cmp dword [ebp + 0xc], 0
jbe 0x10022f0c
cmp dword [ebp - 8], 0
jl 0x10022f0c
jg 0x10022eae
cmp dword [ebp - 0xc], 0
jbe 0x10022f0c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x10022ecc
jl 0x10022ec0
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x10022ecc
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.10024b10
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.10001330
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.10024a90
cmp dword [ebp + 0x10], 0
jl 0x10022f56
jg 0x10022f1a
cmp dword [ebp + 0xc], 0
jbe 0x10022f56
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x10022f56
mov ecx, dword [ebp - 4]
call fcn.100243e0
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.10041e59
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 0x10022f7a
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.10023980
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100233d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2c], ecx
call fcn.10006840
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.1000a890
add esp, 8
movzx edx, al
test edx, edx
je 0x10023415
lea eax, [ebp + 8]
push eax
call fcn.1000a8c0
add esp, 4
jmp 0x10023596
mov ecx, dword [ebp - 0x2c]
call fcn.10024af0
test eax, eax
je 0x10023457
mov ecx, dword [ebp - 0x2c]
call fcn.10024af0
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.10024a30
cmp esi, eax
jae 0x10023457
lea ecx, [ebp + 8]
push ecx
call fcn.1000a870
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x2c]
call fcn.100248e0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x10023596
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x1002346a
call fcn.10006840
jmp 0x10023596
mov ecx, dword [ebp - 0x2c]
call fcn.100243e0
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x100234b9
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.1000a870
add esp, 4
movzx ecx, al
push ecx
call fcn.1000bfe0
add esp, 8
movzx edx, al
test edx, edx
je 0x100234a9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x100234b1
call fcn.10006840
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x10023596
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.1000a870
add esp, 4
mov byte [ebp - 0x2e], al
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.10023fe0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x10023591
cmp dword [ebp - 0x34], 1
jle 0x10023514
cmp dword [ebp - 0x34], 3
je 0x10023561
jmp 0x10023591
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x10023546
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.100419e6
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10023546
call fcn.10006840
jmp 0x10023596
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2e]
cmp dword [ebp - 0x4c], edx
je 0x1002355a
mov eax, dword [ebp + 8]
jmp 0x10023596
call fcn.10006840
jmp 0x10023596
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2e]
push edx
call fcn.1000bfe0
add esp, 8
movzx eax, al
test eax, eax
je 0x10023584
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
jmp 0x1002358c
call fcn.10006840
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x10023596
call fcn.10006840
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret 4
Function at 0x10024470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x10024497
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1002449e
mov al, 1
jmp 0x10024572
call fcn.10006840
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.10006840
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.1000a890
add esp, 8
movzx eax, al
test eax, eax
je 0x100244da
xor al, al
jmp 0x10024572
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.10024dd0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10024516
cmp dword [ebp - 0x30], 1
je 0x1002451d
cmp dword [ebp - 0x30], 3
je 0x1002456c
jmp 0x10024570
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x34], ecx
je 0x1002454c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.100419e6
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x1002454c
xor al, al
jmp 0x10024572
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10024560
mov dword [ebp - 0x38], 1
jmp 0x10024567
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x10024572
mov al, 1
jmp 0x10024572
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret