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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor edi, edi
push edi
push edi
push 0x147
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x4b63bb
push 0xfffffffffffffff0
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
jne 0x4b63bb
push esi
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push edi
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea ecx, [esi + 1]
push ecx
xor eax, eax
push edi
mov word [edi], ax
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
or esi, 0xffffffff
push esi
push 0x158
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push dword [0xf81030]
cmp eax, esi
cmove ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
mov eax, ebx
pop ebp
cdq
pop ebx
ret 4

Function at 0x4b6ef8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0xffc6f0]
call fcn.004ce04a
xor ebx, ebx
mov ebp, eax
cmp dword [0xffb870], ebx
jne 0x4b6f8c
mov esi, 0xa8
push esi
push ebx
push 0xffb7c8
call fcn.00465b30
add esp, 0xc
mov dword [0xffb7cc], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0xffb7c8], 0xa
mov dword [0xffb7d0], 0x4b6a86
push 0x7f89
push ebx
mov dword [0xffb840], 0x4b7748
mov dword [0xffb844], 0x4b7722
mov dword [0xffb7d4], 0x4b6aa5
mov dword [0xffb858], 0x4b6ac5
call esi
mov dword [0xffb870], eax
test eax, eax
jne 0x4b6f8c
push 0x7f00
push ebx
call esi
mov dword [0xffb870], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004bdb1f
push ebx
push dword [0xf81034]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push 0x5c18c0
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4b7058
push edi
push dword [esp + 0x14]
push dword [0xffc47c]
call fcn.004ce2c9
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffb7c8
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.004b760f
push 0x4b6bab
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x4b8b1f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0xffc470]
call fcn.004ce28b
mov esi, eax
test esi, esi
je 0x4b8bfb
cmp dword [ebp + 0xc], 0
je 0x4b8b6b
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4b8b5c
cmp dword [esi + 0x1c], 0
jne 0x4b8b5c
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4b8bfb
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x4b8b89
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004b9e94
cmp dword [esi + 0x3c], 0xffffffff
je 0x4b8bad
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4b8bc5
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x4b8be0
test eax, eax
je 0x4b8bd6
push 8
jmp 0x4b8be6
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x4b8bf1
test eax, eax
je 0x4b8be9
push 3
pop ebx
jmp 0x4b8bf1
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4ba238
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4ba2ce
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4ba2cb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4ba2cb
lea eax, [esi - 1]
push eax
push dword [0xffc470]
call fcn.004ce28b
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4ba2cd
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4ba2bb
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4ba2c6
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4ba2ab
jmp 0x4ba2cb
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4ba374
push eax
call esi
test al, al
jns 0x4ba374
push 0x11
call esi
test al, al
js 0x4ba374
push 0x10
call esi
test al, al
js 0x4ba374
push 0x12
call esi
test al, al
js 0x4ba374
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4ba374
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0045c3e7
add esp, 0xc
test eax, eax
je 0x4ba348
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0045c3e7
add esp, 0xc
test eax, eax
jne 0x4ba35f
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4ba3b5
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.005713e4
pop ecx
pop ecx
test eax, eax
je 0x4ba3b5
test ebp, ebp
je 0x4ba398
push 0x11
call esi
test al, al
js 0x4ba390
push 0x10
call esi
test al, al
js 0x4ba390
push 0x12
call esi
test al, al
jns 0x4ba398
push 1
push ebp
call fcn.004ba3c1
test ebx, ebx
je 0x4ba3ac
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4ba3b5
test edi, edi
je 0x4ba3b5
mov eax, dword [edi + 8]
jmp 0x4ba3b7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4ba73d
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4ba885
xor ecx, ecx
cmp word [eax], cx
je 0x4ba885
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.005710fa
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0045ace3
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4ba796
cmp eax, 3
jne 0x4ba7d0
cmp word [esp + 0xa], 0x3a
jne 0x4ba7d0
cmp eax, 2
jne 0x4ba7b4
lea eax, [esp + 8]
push 0x5a5398
push eax
call fcn.00571446
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ba885
push 0xfffffffffffffffe
pop edi
jmp 0x4ba885
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4ba7e5
cmp ax, bx
jne 0x4ba7ef
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4ba7d8
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4ba82e
test byte [esp + 0x21c], 0x10
je 0x4ba815
push 0xfffffffffffffffe
pop edi
jmp 0x4ba825
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4ba883
cmp word [esp + 0x10], bp
jne 0x4ba83c
cmp word [esp + 0x12], bp
je 0x4ba85b
cmp word [esp + 0x10], bx
jne 0x4ba84a
cmp word [esp + 0x12], bx
je 0x4ba85b
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4ba883
cmp word [esp + 0x12], ax
jne 0x4ba883
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4ba870
test al, 0x10
je 0x4ba883
jmp 0x4ba880
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ba883
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4ba894
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4ba8bd
test byte [esp + 8], 2
je 0x4ba8b1
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ba8bf
xor eax, eax
ret 8

Function at 0x4ba902
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x4ba922
cmp dword [esp + 8], 0
je 0x4ba922
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4ba924
xor eax, eax
ret 8
Function at 0x4bacd8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4bad50
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.005710fa
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0045ace3
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4bad31
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4bad2e
cmp ecx, 0x5c
je 0x4bad2e
cmp ecx, 0x2f
jne 0x4bad3b
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4bad1b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4bad52
xor eax, eax
leave
ret 4

Function at 0x4bae0f
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0xffba68]
push esi
push edi
test eax, eax
jne 0x4bae35
push fcn.004baf3e
push 0x10
push 0x258
call fcn.004ce35d
mov dword [0xffba68], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.004ce2c9
mov esi, eax
test esi, esi
je 0x4baf36
cmp dword [esp + 0x14], ebx
mov eax, 0x5a8268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x4bae6d
xor ecx, ecx
cmp word [ebp], cx
jne 0x4bae76
mov ebp, 0x5c1e40
mov dword [esp + 0x1c], ebp
push eax
call fcn.0045ace3
push ebp
mov dword [esp + 0x20], eax
call fcn.0045ace3
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4baf23
push dword [esp + 0x14]
push ebp
call fcn.00571424
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4baed6
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4baed6
push 0x5a5398
push ebp
call fcn.00571446
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.00571446
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4baefb
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x4baf0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x4baf11
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x4baf35
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0xffba68]
call fcn.004ce23c
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc
Function at 0x4bb3d2
Capabilities:
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4bb3ef
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
jmp 0x4bb3f2
or eax, 0xffffffff
ret 4

Function at 0x4bb3f5
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x4bb403
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x4bb470
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x4bb489
push dword [0xffc750]
call fcn.004ce20e
pop edi
ret 4
push esi
push edi
push dword [0xffc750]
call fcn.004ce28b
mov esi, eax
test esi, esi
je 0x4bb4f3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4bb4df
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4bb4ce
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0xffc750]
call fcn.004ce23c
pop esi
pop edi
ret 4

Function at 0x4bb500
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4bb53c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x4bba00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4bba65
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4bba5d
push dword [esp + 0x10]
push dword [0xffc750]
call fcn.004ce28b
test eax, eax
je 0x4bba53
cmp dword [eax + 4], 0
je 0x4bba42
push edi
push esi
push eax
call fcn.004bc070
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x4bba70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0xffc750]
call fcn.004ce28b
mov esi, eax
test esi, esi
je 0x4bbaef
cmp dword [esi + 4], 0
je 0x4bbac0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004bc190
test eax, eax
je 0x4bbab4
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bbafa
cmp dword [esp + 8], 0
je 0x4bbafa
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x4bbd40
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x4bbe3e
cmp word [edx], 0
je 0x4bbe3e
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x4bbd6e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4bbdc4
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bbd80
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x4bbda6
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004bc070
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
push edx
xor edx, edx
mov eax, 0xfde9
cmp ecx, 2
cmovne eax, edx
push eax
call fcn.004bc7a0
mov edi, eax
test edi, edi
je 0x4bbdba
cmp dword [esi + 4], 0
je 0x4bbe11
push dword [esp + 0x14]
push edi
push esi
call fcn.004bc070
push edi
push 0
push dword [0xf81030]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x4bbe50
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0xffc750]
call fcn.004ce28b
test eax, eax
je 0x4bbe6c
mov dword [esp + 4], eax
jmp fcn.004bbd40
xor eax, eax
ret 0xc
Function at 0x4bc2d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0xf81030]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4bc460
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
nop
cmp ebp, 0xffffffff
je 0x4bc31e
test ebp, ebp
je 0x4bc3c6
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x4bc33a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004bc190
mov dword [esp + 0x10], eax
jmp 0x4bc354
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x4bc3c9
test cl, cl
je 0x4bc368
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4bc3a3
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0xf81030]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x4bc3c6
cmp dword [esp + 0x28], 0
jne 0x4bc310
cmp cl, 0xd
je 0x4bc3d2
cmp cl, 0xa
jne 0x4bc310
dec esi
jmp 0x4bc443
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x4bc443
jmp 0x4bc3d5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x4bc3dd
dec esi
jmp 0x4bc443
cmp cl, 0xd
jne 0x4bc443
dec esi
cmp dword [edi], 0
je 0x4bc3fb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004bc190
mov dword [esp + 0x10], eax
jmp 0x4bc411
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x4bc443
cmp dword [edi], 0
je 0x4bc422
inc dword [ebx + 0xc]
jmp 0x4bc443
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x4bc470
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x4bc62f
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x4bc4c9
test ecx, ecx
je 0x4bc58c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x4bc4e5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004bc190
mov dword [esp + 0x10], eax
jmp 0x4bc4ff
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x4bc58f
test ax, ax
je 0x4bc51d
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x4bc564
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0xf81030]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x4bc58f
cmp dword [esp + 0x2c], 0
jne 0x4bc4b3
cmp ax, 0xd
je 0x4bc596
cmp ax, 0xa
jne 0x4bc4b3
sub edi, 2
jmp 0x4bc60e
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x4bc60e
cmp ax, 0xa
jne 0x4bc5a1
sub edi, 2
jmp 0x4bc60e
cmp ax, 0xd
jne 0x4bc60e
sub edi, 2
cmp dword [ebp], 0
je 0x4bc5c3
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004bc190
mov dword [esp + 0x10], eax
jmp 0x4bc5d9
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x4bc60e
cmp dword [ebp], 0
je 0x4bc5ed
add dword [ebx + 0xc], 2
jmp 0x4bc60e
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x4bc640
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0xf81030]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x4bc790
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x4bc68c
test edi, edi
je 0x4bc6fd
dec edi
push esi
push ebp
call fcn.004bc810
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4bc69f
xor cl, cl
jmp 0x4bc6a1
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x4bc6e4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0xf81030]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x4bc6fd
test eax, eax
jne 0x4bc682
cmp cl, 0xd
je 0x4bc701
cmp cl, 0xa
jne 0x4bc682
dec esi
jmp 0x4bc773
test eax, eax
jne 0x4bc773
cmp cl, 0xa
jne 0x4bc709
dec esi
jmp 0x4bc773
cmp cl, 0xd
jne 0x4bc773
dec esi
cmp dword [ebp + 4], 0
je 0x4bc728
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.004bc190
mov dword [esp + 0x20], eax
jmp 0x4bc73f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x4bc773
cmp dword [ebp + 4], 0
je 0x4bc751
inc dword [ebp + 0xc]
jmp 0x4bc773
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10