joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1a00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8b40
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x64b4f4]
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 edi, ecx
cmp byte [edi + 0x1c], 0
je 0x4f1b47
cmp dword [edi + 0x14], 0
je 0x4f1b47
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
call fcn.00465c20
mov esi, esp
test esi, esi
je 0x4f1b47
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x14]
mov ecx, esi
mov eax, dword [eax + 0x7c8]
lea edx, [ecx + 2]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f1a90
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00412df0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test eax, eax
je 0x4f1ad6
mov esi, ecx
cmp word [esi], 0xa
je 0x4f1b6a
add esi, 2
sub eax, 1
jne 0x4f1ac4
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x19c]
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x4f1b22
push 0
push 0
push 0xb0
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
and eax, 0xf
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x4f1b22
push ebx
push ebx
push 0xb1
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x14]
push 0
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push dword [ebp - 0x44]
call dword [eax + 0x20]
mov ecx, eax
call fcn.0047ab90
lea ecx, [ebp - 0x28]
call fcn.00410150
xor eax, eax
lea esp, [ebp - 0x54]
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.00465678
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x4f1ad6
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4f1ad6
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004c1b40
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4f1b9c
mov edx, dword [edx]
mov ecx, dword [edi + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x19c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00410150
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004c1b40
cmp dword [eax + 0x14], 8
jb 0x4f1bcb
mov eax, dword [eax]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x40]
call fcn.00410150
jmp 0x4f1b22
Function at 0x4f25e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0x17
jne 0x4f260d
movzx eax, word [esi + 0x55c]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.USER32.dll_SetCursor]
cmp eax, 0xd
jne 0x4f265c
mov eax, dword [esi]
call dword [eax + 0x34]
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f26bd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x568], xmm0
mov eax, dword [edi + 0xc]
mov dword [esi + 0x560], eax
mov eax, dword [edi + 0x10]
pop edi
mov dword [esi + 0x564], eax
mov byte [esi + 0x578], 1
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x4f267d
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x578], 0
test ecx, ecx
je 0x4f26bd
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4f26b7
cmp dword [esi + 0x558], 0
je 0x4f26bd
cmp byte [esi + 0x578], 0
je 0x4f26bd
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4f26bd
mov ecx, dword [esi + 0x558]
lea eax, [edi + 0xc]
push eax
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
pop ebp
ret 4
push edi
call fcn.00481f20
pop edi
pop esi
pop ebp
ret 4

Function at 0x4f26d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0xd
jne 0x4f271f
mov eax, dword [esi]
push ebx
call dword [eax + 0x34]
push dword [edi + 0x10]
mov ebx, eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f2718
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
mov dword [esi + 0x55c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 4]
mov dword [esi + 0x560], eax
mov byte [esi + 0x564], 1
pop ebx
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x4f2740
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x4f2719
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4f2772
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4f2772
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x4f2719
cmp byte [esi + 0x564], 0
je 0x4f2719
mov edx, dword [ecx]
lea eax, [edi + 0xc]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [edx]
push edi
mov ecx, esi
call fcn.00481f20
pop edi
pop esi
pop ebp
ret 4
Function at 0x4fcdb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d94bb
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x64b4f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
call fcn.00523fd0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4fcef1
cmp eax, 0x104
ja 0x4fcef1
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00523fd0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x606530
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4fcea2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fce80
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00412df0
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x438]
mov dword [esi + 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov word [ebp - 0x438], ax
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
call fcn.00410150
jmp 0x4fcf16
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00465678
mov esp, ebp
pop ebp
ret
Function at 0x4fea90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9698
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x64b4f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x20], 0
jne 0x4fead7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 1
jbe 0x4feb13
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4ff600
push 0
push 0
call fcn.0054e8ea
xor ecx, ecx
mov dword [esi + 0x10], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x44]
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x1c], edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push 0
push 0
push dword [eax + 4]
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
push ebx
cmovne esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
call fcn.00482c20
mov ecx, esi
call fcn.004ff270
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x504a3b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x56286b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056246b

Function at 0x562876
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005625ee

Function at 0x568ac5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00568249

Function at 0x568ad0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00568488

Function at 0x569630
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005694fd
Function at 0x571f9b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x657aa0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x571fdc
cmp byte [edx], 0xa
jne 0x571fdc
or byte [eax + edi + 0x28], 4
jmp 0x571fe1
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x5720d2
mov al, byte [ebx]
cmp al, 0x1a
je 0x5720b3
cmp al, 0xd
je 0x57200a
mov byte [esi], al
inc esi
inc ebx
jmp 0x5720a8
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x57202a
cmp byte [eax], 0xa
jne 0x57201f
push 2
mov byte [esi], 0xa
pop eax
jmp 0x572025
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x5720a8
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5720a1
cmp dword [ebp - 0x14], 0
je 0x5720a1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x657aa0]
test byte [eax + edi + 0x28], 0x48
je 0x572078
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x572068
mov byte [esi], dl
jmp 0x5720a4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x657aa0]
mov byte [eax + edi + 0x2a], dl
jmp 0x5720a4
cmp byte [ebp - 1], 0xa
jne 0x57208a
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x57208a
mov byte [esi], 0xa
jmp 0x572027
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00573c39
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5720a5
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x571ff3
jmp 0x5720d2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x657aa0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5720cd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5720d2
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5720dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x657aa0]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x572121
cmp word [edx], bx
jne 0x572121
or byte [edi + eax + 0x28], 4
jmp 0x572126
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x57227a
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x57225a
cmp ax, word [ebp - 0x10]
je 0x57215f
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x57224f
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x572185
push 0xa
pop ecx
cmp word [eax], cx
jne 0x572175
push ecx
pop eax
push 4
jmp 0x57217a
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x572249
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x572240
cmp dword [ebp - 0x18], 0
je 0x572240
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x657aa0]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x57220c
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x5721d0
mov word [esi], ax
jmp 0x572204
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x657aa0]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x657aa0]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x657aa0]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x57224f
cmp word [ebp - 4], ax
jne 0x572221
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x572221
mov word [esi], ax
add esi, 2
jmp 0x57224f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00573c39
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x57224c
jmp 0x572243
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x57213f
jmp 0x57227a
mov ecx, dword [ecx*4 + 0x657aa0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x572271
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x57227a
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x578f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x64b4f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x578fa3
cmp byte [esi + 0x3d], 0
je 0x578fa3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x578f59
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x578f6b
sub eax, 1
je 0x578f6f
sub eax, 2
je 0x578fa3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465678
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x578f8c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005c8d9e
add esp, 0x10
cmp edi, eax
jne 0x578f59
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465678
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00465678
mov esp, ebp
pop ebp
ret
Function at 0x579c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x64b4f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x579cb0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465678
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x579cec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x579cec
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.00465678
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x579dd3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x579d14
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 0x579d47
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0054f198
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.00465678
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x579dd3
cmp eax, 1
jle 0x579da6
cmp eax, 3
jne 0x579dd3
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00578000
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.00465678
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x579dc3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005c8d9e
add esp, 0x10
cmp edi, eax
jne 0x579dd3
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x579cd7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465678
mov esp, ebp
pop ebp
ret 4
Function at 0x57b340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x57b414
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x57b403
jg 0x57b378
test edx, edx
je 0x57b403
call fcn.00458600
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x57b3c8
jg 0x57b38e
test esi, esi
je 0x57b3c8
cmp ebx, eax
jg 0x57b39d
jl 0x57b398
cmp edi, esi
jae 0x57b39d
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.005246c0
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp + 8]
jmp 0x57b3ea
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x57b3fd
mov eax, dword [ebp + 8]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jg 0x57b378
jl 0x57b3fd
test edi, edi
jne 0x57b378
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x57b433
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x57b435
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x57b4dd
jg 0x57b44f
test esi, esi
je 0x57b4dd
test eax, eax
jl 0x57b48e
jg 0x57b459
test ebx, ebx
je 0x57b48e
cmp edi, eax
jg 0x57b468
jl 0x57b463
cmp esi, ebx
jae 0x57b468
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.005246c0
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp + 8], ebx
sub esi, ebx
sbb edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x57b494
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x57b4dd
jg 0x57b49e
test esi, esi
je 0x57b4dd
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x57b4dd
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x57b4c9
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [ebp + 8]
call fcn.005c8680
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x57b4f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x57b5be
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x57b5ad
jg 0x57b528
test edx, edx
je 0x57b5ad
call fcn.00458e50
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x57b576
jg 0x57b53e
test esi, esi
je 0x57b576
cmp ebx, eax
jg 0x57b54d
jl 0x57b548
cmp edi, esi
jae 0x57b54d
mov esi, edi
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.005246c0
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x57b59a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x57b5a7
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp + 8], esi
test ebx, ebx
jg 0x57b528
jl 0x57b5a7
test edi, edi
jne 0x57b528
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x57b5dd
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x57b5df
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x57b658
jg 0x57b5f1
test esi, esi
je 0x57b658
test eax, eax
jl 0x57b632
jg 0x57b5fb
test ebx, ebx
je 0x57b632
cmp edi, eax
jg 0x57b60a
jl 0x57b605
cmp esi, ebx
jae 0x57b60a
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.005246c0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [ebp + 0x10]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x57b635
mov edx, dword [ebp + 8]
test edi, edi
jl 0x57b658
jg 0x57b63f
test esi, esi
je 0x57b658
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x57b658
push eax
push esi
push 1
push edx
call fcn.005c8d9e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc