joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4789d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x44]
mov esi, dword [eax + 0x18]
sub esi, dword [eax + 0x10]
mov edx, dword [eax + 0x1c]
sbb edx, dword [eax + 0x14]
add esi, 1
adc edx, 0
xor eax, eax
add ecx, ebx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
adc eax, ecx
mov dword [ebp + 0xc], ecx
cmp eax, edx
ja 0x478b91
jb 0x478a24
cmp dword [ebp - 8], esi
ja 0x478b91
mov eax, dword [edi + 0x10]
mov edx, dword [ebp + 0x10]
imul eax, edx
cmp dword [ebp + 0x18], eax
jb 0x478b91
mov eax, dword [edi + 0x38]
mov dword [edi + 0x40], eax
test eax, eax
je 0x478b78
mov eax, dword [eax + 4]
test eax, eax
je 0x478b78
nop
cmp ecx, dword [eax + 0x14]
jb 0x478b5d
ja 0x478a64
cmp ebx, dword [eax + 0x10]
jb 0x478b5d
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
cmp dword [ebp + 0xc], ecx
ja 0x478b5a
jb 0x478a7d
cmp ebx, esi
ja 0x478b5a
sub esi, ebx
mov dword [ebp - 8], 0
sbb ecx, dword [ebp + 0xc]
add esi, 1
adc ecx, 0
cmp dword [ebp - 8], ecx
jb 0x478a9a
ja 0x478a9c
cmp edx, esi
ja 0x478a9c
mov esi, edx
mov edx, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, dword [eax + 0x10]
mov ebx, dword [edi + 0x10]
sbb edx, dword [eax + 0x14]
add ecx, dword [eax]
adc edx, dword [eax + 4]
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
jne 0x478ace
imul ebx, esi
push ebx
push 0
push dword [ebp + 0x14]
call fcn.00588800
mov ecx, dword [edi + 0x10]
add esp, 0xc
jmp 0x478b30
push edx
push ecx
push 0
push ebx
call fcn.005dd6d0
add eax, dword [edi + 0x20]
lea ecx, [ebp - 0xc]
push 0
adc edx, dword [edi + 0x24]
push ecx
push eax
push dword [edi + 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
jne 0x478b06
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x478b78
push 0
lea eax, [ebp + 0x18]
push eax
mov eax, dword [edi + 0x10]
imul eax, esi
push eax
push dword [ebp + 0x14]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x478b78
mov ecx, dword [edi + 0x10]
mov eax, ecx
imul eax, esi
cmp dword [ebp + 0x18], eax
jne 0x478b78
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp - 4]
sub edx, esi
imul ecx, esi
add dword [eax], esi
mov dword [ebp + 0x10], edx
add dword [ebp + 0x14], ecx
add ebx, esi
mov ecx, dword [ebp + 0xc]
adc ecx, 0
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], ecx
test edx, edx
je 0x478b78
jmp 0x478b5d
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x40]
test eax, eax
je 0x478b78
mov eax, dword [eax]
mov dword [edi + 0x40], eax
test eax, eax
je 0x478b78
mov eax, dword [eax + 4]
test eax, eax
jne 0x478a50
mov ecx, dword [ebp + 0x1c]
mov eax, dword [edi + 0x10]
imul eax, dword [ecx]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x47a760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 8], ebx
mov edi, 0x10
lea esi, [ebx + 0x5c]
mov ecx, esi
call fcn.0047ddc0
add esi, 0x14
sub edi, 1
jne 0x47a776
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x47a79a
push 0x30
push eax
call fcn.005603ff
add esp, 8
mov dword [ebx + 0xc], edi
mov edx, dword [ebp + 0xc]
lea edi, [ebx + 8]
mov eax, dword [ebp + 8]
test edx, edx
jne 0x47a7ac
cmp eax, 0x10
jb 0x47a811
mov ecx, dword [edi]
cmp dword [ecx + 0x70], 0
je 0x47a811
mov ecx, dword [ecx + 0x10]
mov eax, edx
mul ecx
mov esi, eax
mov eax, dword [ebp + 8]
mul ecx
mov dword [ebp - 0x18], eax
add esi, edx
mov eax, dword [edi]
mov dword [ebp - 0x14], esi
push dword [eax + 0x10]
call fcn.00560596
mov edx, dword [edi]
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov ecx, dword [edx + 0x70]
push eax
push dword [edx + 0x10]
lea eax, [ebp - 0x18]
mov esi, dword [ecx]
push ebx
push eax
call dword [esi + 0xc]
test eax, eax
je 0x47a801
mov ecx, dword [edi]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx + 0x10]
je 0x47a8a2
push 0x30
push ebx
call fcn.005603ff
add esp, 8
jmp 0x47a8a6
mov esi, dword [edi]
push edx
push eax
push 0
push dword [esi + 0x10]
call fcn.005dd6d0
add eax, dword [esi + 0x18]
mov ecx, esi
adc edx, dword [esi + 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [esi]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x10]
add ecx, eax
lea eax, [ebp - 0xc]
push 0
adc dword [ebp - 0xc], edx
push eax
mov eax, dword [edi]
push ecx
mov dword [ebp - 0x10], ecx
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x47a863
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47a8a9
mov eax, dword [edi]
push dword [eax + 0x10]
call fcn.00560596
add esp, 4
lea ecx, [ebp - 4]
mov ebx, eax
mov eax, dword [edi]
push 0
push ecx
push dword [eax + 0x10]
push ebx
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47a895
mov ecx, dword [edi]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx + 0x10]
je 0x47a8a2
push 0x30
push ebx
call fcn.005603ff
add esp, 8
xor ebx, ebx
test ebx, ebx
jne 0x47a8c2
mov ebx, dword [ebp - 8]
mov dword [ebx + 0x10], 0xffffffff
xor eax, eax
mov dword [ebx + 0x14], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
cmp dword [ebx], 0x454c4946
jne 0x47a912
movzx ecx, word [ebx + 4]
mov eax, dword [edi]
add ecx, ebx
movzx edx, word [ecx]
add ecx, 2
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 0x10]
push edx
xor edx, edx
div ecx
mov ecx, esi
push eax
push ebx
call fcn.00479cf0
test eax, eax
je 0x47a912
mov dword [esi + 0xc], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x30
push ebx
call fcn.005603ff
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47b350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1414
call fcn.005ddc60
mov eax, dword [0x6b000c]
xor eax, esp
mov dword [esp + 0x1410], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
je 0x47b530
push 0x208
lea eax, [esp + 0x214]
push 0
push eax
call fcn.00588800
movzx eax, word [esi]
add esp, 0xc
cmp eax, 0x7b
jne 0x47b3a7
lea ecx, [eax - 0x4b]
mov edx, str._Volume_s
jmp 0x47b3c4
cmp eax, 0x5c
jne 0x47b3b8
mov ecx, 0x104
mov edx, 0x64f670
jmp 0x47b3c4
mov ecx, 6
mov edx, str.._c:
mov esi, eax
push esi
push edx
push ecx
lea eax, [esp + 0x21c]
push eax
call fcn.0046d0c0
add esp, 0x10
lea eax, [esp + 0x210]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebx + 0x20], esi
cmp esi, 0xffffffff
je 0x47b51a
push 0x1000
lea eax, [esp + 0x41c]
push 0
push eax
call fcn.00588800
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
push 0x1000
lea eax, [esp + 0x424]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47b4f9
cmp dword [esp + 0xc], 0x1000
jne 0x47b4f9
push 8
lea eax, [esp + 0x17]
mov ecx, 0x80
lea esi, [esp + 0x41c]
lea edi, [esp + 0x14]
push 0x64f678
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005a86e0
add esp, 0xc
test eax, eax
jne 0x47b51a
mov ax, word [esp + 0x1b]
movzx edx, byte [esp + 0x1d]
movsx ecx, byte [esp + 0x50]
mov word [ebx + 8], ax
movzx eax, ax
imul edx, eax
mov dword [ebx + 0xc], edx
test ecx, ecx
jle 0x47b49f
mov eax, edx
imul eax, ecx
jmp 0x47b4a8
neg ecx
mov eax, 1
shl eax, cl
mov dword [ebx + 0x10], eax
movsx ecx, byte [esp + 0x54]
test ecx, ecx
jle 0x47b4b9
imul edx, ecx
jmp 0x47b4c2
neg ecx
mov edx, 1
shl edx, cl
mov dword [ebx + 0x14], edx
mov eax, dword [esp + 0x44]
mul dword [ebx + 0xc]
mov esi, eax
mov eax, dword [esp + 0x40]
mul dword [ebx + 0xc]
add esi, edx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1410]
xor ecx, esp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4
push dword [ebx + 0x20]
call dword [sym.imp.SCSIEngine.dll_public:_static_unsigned_int___cdecl_SCSIEngine::ComputeSectorSize_void__]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Read_boot_sector_error:__d__sec_size_is__d_n
call fcn.004131f0
add esp, 0xc
mov eax, dword [ebx + 0x20]
cmp eax, 0xffffffff
je 0x47b530
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x20], 0xffffffff
mov ecx, dword [esp + 0x141c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4
Function at 0x47e8b0
Capabilities:
Delete file
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x47e999
push 4
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push 0
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test dword [ebp - 0x234], 0x20000
je 0x47e999
push esi
mov ecx, edi
call fcn.0047ea00
test al, al
je 0x47e999
push esi
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.._EFS
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x230], eax
cmp eax, 0xffffffff
je 0x47e999
lea eax, [ebp - 0x238]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_OpenEncryptedFileRawW]
test eax, eax
je 0x47e9ad
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push 0x47ede0
call dword [sym.imp.ADVAPI32.dll_WriteEncryptedFileRaw]
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4
Function at 0x47f150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x6b000c]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov byte [esp + 0xb], 0
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x47f18d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
push 4
lea edi, [esi + 0x18]
push 0x64edf4
mov ecx, edi
call fcn.00412890
push ebx
mov ecx, edi
call fcn.00420c90
push 0x643ec4
mov ecx, edi
call fcn.00420c90
cmp dword [edi + 0x14], 0x10
jb 0x47f1ba
mov edi, dword [edi]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x47f247
mov ecx, esi
call fcn.0047f270
mov bl, al
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x47f22e
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
add edx, 0x78000
push 0
adc ecx, 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x47f22e
push 0
lea eax, [esp + 0x20]
push eax
push 0x200
lea eax, [esp + 0x2c]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x224]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4

Function at 0x47f270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x47f30a
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push edx
push ecx
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x47f30a
push 0
lea eax, [ebp - 4]
push eax
push 0x200
lea edi, [esi + 0x3c]
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0x200
jne 0x47f30a
cmp dword [esi + 0x3f], 0x53466552
jne 0x47f30a
cmp dword [esi + 0x4c], 0x53525346
jne 0x47f30a
xor ebx, ebx
xor edx, edx
nop dword [eax]
cmp edx, 0x16
je 0x47f301
cmp edx, 0x17
je 0x47f301
movzx ecx, byte [edi + edx]
mov eax, ebx
sar eax, 1
add eax, ecx
test bl, 1
lea ebx, [eax + 0x8000]
jne 0x47f301
mov ebx, eax
inc edx
cmp edx, 0x200
jl 0x47f2e0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, ecx
mov byte [esp + 7], 0
push ebx
push esi
push edi
mov ecx, dword [eax + 0xa28]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x482179
cmp ecx, 0xffffffff
je 0x482179
push dword [ebp + 0xc]
mov edi, dword [eax + 0xa18]
push dword [ebp + 8]
push 0
push edi
call fcn.005dd6d0
push 0
mov ebx, eax
mov esi, edx
mov eax, dword [esp + 0x18]
push edi
push dword [ebp + 0x14]
add ebx, dword [eax + 0xa20]
push dword [ebp + 0x10]
adc esi, dword [eax + 0xa24]
call fcn.005ddd60
sub edi, eax
mov eax, dword [ebp + 0x10]
add eax, edi
push eax
mov dword [esp + 0x1c], eax
call fcn.00560596
add esp, 4
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x14]
mov edi, eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], ebx
push 0
push eax
push ebx
push dword [esi + 0xa28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x482163
push 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push edi
push dword [esi + 0xa28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne byte [esp + 0x13]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0x18]
call fcn.00589190
add esp, 0xc
push edi
call fcn.00560591
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x483900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x48392b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00430e00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x48394d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x48394f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4839d3
jg 0x483964
test esi, esi
je 0x4839d3
test ecx, ecx
jl 0x4839ad
jg 0x48396e
test eax, eax
je 0x4839ad
cmp edi, ecx
jg 0x483982
jl 0x483978
cmp esi, eax
jae 0x483982
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00589190
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4839b0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4839d3
jg 0x4839ba
test esi, esi
je 0x4839d3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4839d3
push eax
push esi
push 1
push edx
call fcn.005a8fc0
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4839f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x483a1b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00430ee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x483a3d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x483a3f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x483ade
jg 0x483a5c
test esi, esi
je 0x483ade
test ecx, ecx
jl 0x483aa9
jg 0x483a66
test eax, eax
je 0x483aa9
cmp ebx, ecx
jg 0x483a7a
jl 0x483a70
cmp esi, eax
jae 0x483a7a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00589190
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x483ab0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x483ade
jg 0x483aba
test esi, esi
je 0x483ade
cmp dword [edi + 0x4c], 0
je 0x483ade
mov ecx, edi
call fcn.004848a0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.005a926f
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x483e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x483e50
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x483e8c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x483e8c
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.0055f9be
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x483f71
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x483eb4
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 0x483ee7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.005b671a
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.0055f9be
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 0x483f71
cmp eax, 1
jle 0x483f44
cmp eax, 3
jne 0x483f71
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0047f950
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.0055f9be
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x483f61
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005a8fc0
add esp, 0x10
cmp edi, eax
jne 0x483f71
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x483e77
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4
Function at 0x484910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4849b1
cmp byte [esi + 0x3d], 0
je 0x4849b1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x484967
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 0x484979
sub eax, 1
je 0x48497d
sub eax, 2
je 0x4849b1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x48499a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005a8fc0
add esp, 0x10
cmp edi, eax
jne 0x484967
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0055f9be
mov esp, ebp
pop ebp
ret

Function at 0x487bc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f2c69
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ecx + 0x20], eax
mov dword [ebp - 4], 4
mov dword [ecx], vtable.CCheckTreeCtrl.0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 1
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 1
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov byte [ebp - 4], 5
mov dword [ecx + 0x58], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret