joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bf84b
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4bf9b4
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x4bf997
sub eax, 1
jne 0x4bf9b4
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.004bf804
pop ecx
test eax, eax
je 0x4bf8c2
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x4bf8f8
inc edi
jmp 0x4bf8f8
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4bf9b4
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x4bf993
sub ecx, 1
je 0x4bf98f
sub ecx, 1
je 0x4bf971
sub ecx, 1
je 0x4bf935
sub ecx, 4
jne 0x4bf9b4
test eax, eax
jne 0x4bf9b4
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4bf9b4
sub eax, 0
je 0x4bf964
sub eax, 1
je 0x4bf957
sub eax, 1
je 0x4bf950
sub eax, 1
jne 0x4bf9b4
push 0x69
pop esi
push 0x64
jmp 0x4bf969
push 0x5a
pop esi
push 0x5f
jmp 0x4bf95c
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x4bf9b4
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x4bf9b4
sub eax, 0
je 0x4bf98b
sub eax, 1
je 0x4bf987
sub eax, 1
jne 0x4bf9b4
push 0x41
pop esi
push 0x3c
jmp 0x4bf969
push 0x3c
jmp 0x4bf9b3
push 0x32
jmp 0x4bf9b3
push 0x14
jmp 0x4bf9b3
push 5
jmp 0x4bf9b3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4bf9b1
cmp eax, 0xa
je 0x4bf9ad
cmp eax, 0x5a
jne 0x4bf9b4
push 0x28
jmp 0x4bf9b3
push 0x1e
jmp 0x4bf9b3
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x4bfb1f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x15417f0]
call fcn.004d528b
mov esi, eax
test esi, esi
je 0x4bfbfb
cmp dword [ebp + 0xc], 0
je 0x4bfb6b
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4bfb5c
cmp dword [esi + 0x1c], 0
jne 0x4bfb5c
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4bfbfb
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x4bfb89
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004c0e94
cmp dword [esi + 0x3c], 0xffffffff
je 0x4bfbad
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 0x4bfbc5
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 0x4bfbe0
test eax, eax
je 0x4bfbd6
push 8
jmp 0x4bfbe6
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x4bfbf1
test eax, eax
je 0x4bfbe9
push 3
pop ebx
jmp 0x4bfbf1
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 0x4c1238
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 0x4c12ce
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4c12cb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4c12cb
lea eax, [esi - 1]
push eax
push dword [0x15417f0]
call fcn.004d528b
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4c12cd
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4c12bb
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4c12c6
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4c12ab
jmp 0x4c12cb
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4c1374
push eax
call esi
test al, al
jns 0x4c1374
push 0x11
call esi
test al, al
js 0x4c1374
push 0x10
call esi
test al, al
js 0x4c1374
push 0x12
call esi
test al, al
js 0x4c1374
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4c1374
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004633e7
add esp, 0xc
test eax, eax
je 0x4c1348
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004633e7
add esp, 0xc
test eax, eax
jne 0x4c135f
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4c13b5
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.005783e4
pop ecx
pop ecx
test eax, eax
je 0x4c13b5
test ebp, ebp
je 0x4c1398
push 0x11
call esi
test al, al
js 0x4c1390
push 0x10
call esi
test al, al
js 0x4c1390
push 0x12
call esi
test al, al
jns 0x4c1398
push 1
push ebp
call fcn.004c13c1
test ebx, ebx
je 0x4c13ac
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4c13b5
test edi, edi
je 0x4c13b5
mov eax, dword [edi + 8]
jmp 0x4c13b7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x4c173d
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4c1766
test byte [esp + 8], 2
je 0x4c175a
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 0x4c1768
xor eax, eax
ret 8
Function at 0x4c1779
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 0x4c18c1
xor ecx, ecx
cmp word [eax], cx
je 0x4c18c1
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.005780fa
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00461ce3
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4c17d2
cmp eax, 3
jne 0x4c180c
cmp word [esp + 0xa], 0x3a
jne 0x4c180c
cmp eax, 2
jne 0x4c17f0
lea eax, [esp + 8]
push 0x5ac398
push eax
call fcn.00578446
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4c18c1
push 0xfffffffffffffffe
pop edi
jmp 0x4c18c1
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4c1821
cmp ax, bx
jne 0x4c182b
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4c1814
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4c186a
test byte [esp + 0x21c], 0x10
je 0x4c1851
push 0xfffffffffffffffe
pop edi
jmp 0x4c1861
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4c18bf
cmp word [esp + 0x10], bp
jne 0x4c1878
cmp word [esp + 0x12], bp
je 0x4c1897
cmp word [esp + 0x10], bx
jne 0x4c1886
cmp word [esp + 0x12], bx
je 0x4c1897
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4c18bf
cmp word [esp + 0x12], ax
jne 0x4c18bf
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4c18ac
test al, 0x10
je 0x4c18bf
jmp 0x4c18bc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4c18bf
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 0x4c1902
Capabilities:
Copy file

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4c1d50
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.005780fa
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00461ce3
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4c1d31
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4c1d2e
cmp ecx, 0x5c
je 0x4c1d2e
cmp ecx, 0x2f
jne 0x4c1d3b
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4c1d1b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4c1d52
xor eax, eax
leave
ret 4

Function at 0x4c1e0f
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x1540de8]
push esi
push edi
test eax, eax
jne 0x4c1e35
push fcn.004c1f3e
push 0x10
push 0x258
call fcn.004d535d
mov dword [0x1540de8], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.004d52c9
mov esi, eax
test esi, esi
je 0x4c1f36
cmp dword [esp + 0x14], ebx
mov eax, 0x5af268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x4c1e6d
xor ecx, ecx
cmp word [ebp], cx
jne 0x4c1e76
mov ebp, 0x5c8e40
mov dword [esp + 0x1c], ebp
push eax
call fcn.00461ce3
push ebp
mov dword [esp + 0x20], eax
call fcn.00461ce3
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x14c63b0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4c1f23
push dword [esp + 0x14]
push ebp
call fcn.00578424
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4c1ed6
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4c1ed6
push 0x5ac398
push ebp
call fcn.00578446
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.00578446
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 0x4c1efb
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x4c1f0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x4c1f11
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x14c63b0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x4c1f35
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x1540de8]
call fcn.004d523c
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc
Function at 0x4c23d2
Capabilities:
Set file attributes

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

Function at 0x4c23e3
Capabilities:
Get file attributes

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

Function at 0x4c2470
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x4c2489
push dword [0x1541ad0]
call fcn.004d520e
pop edi
ret 4
push esi
push edi
push dword [0x1541ad0]
call fcn.004d528b
mov esi, eax
test esi, esi
je 0x4c24f3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4c24df
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4c24ce
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 [0x14c63b0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x1541ad0]
call fcn.004d523c
pop esi
pop edi
ret 4

Function at 0x4c2500
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 0x4c253c
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 0x4c2a00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4c2a65
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4c2a5d
push dword [esp + 0x10]
push dword [0x1541ad0]
call fcn.004d528b
test eax, eax
je 0x4c2a53
cmp dword [eax + 4], 0
je 0x4c2a42
push edi
push esi
push eax
call fcn.004c3070
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 0x4c2a70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x1541ad0]
call fcn.004d528b
mov esi, eax
test esi, esi
je 0x4c2aef
cmp dword [esi + 4], 0
je 0x4c2ac0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004c3190
test eax, eax
je 0x4c2ab4
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 0x4c2afa
cmp dword [esp + 8], 0
je 0x4c2afa
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 0x4c2d40
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x4c2e3e
cmp word [edx], 0
je 0x4c2e3e
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x4c2d6e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4c2dc4
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c2d80
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x4c2da6
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004c3070
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.004c37a0
mov edi, eax
test edi, edi
je 0x4c2dba
cmp dword [esi + 4], 0
je 0x4c2e11
push dword [esp + 0x14]
push edi
push esi
call fcn.004c3070
push edi
push 0
push dword [0x14c63b0]
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 [0x14c63b0]
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 0x4c2e50
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x1541ad0]
call fcn.004d528b
test eax, eax
je 0x4c2e6c
mov dword [esp + 4], eax
jmp fcn.004c2d40
xor eax, eax
ret 0xc
Function at 0x4c3070
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x4c3187
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x4c30bd
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x4c3146
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x4c312f
sub eax, 1
je 0x4c3116
sub eax, 2
je 0x4c30ff
push esi
push dword [esp + 0x24]
push ecx
call fcn.004702b0
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.004c2500
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x4c3175
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x4c30e7
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x4c3190
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x4c31b3
push ebx
call fcn.004c2500
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x20]
sub eax, esi
add eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
cmp esi, ebp
jl 0x4c3237
mov ecx, ebp
sub ecx, 1
je 0x4c3222
sub ecx, 1
je 0x4c320b
sub ecx, 2
je 0x4c31f6
push ebp
push eax
push dword [esp + 0x24]
call fcn.004702b0
add esp, 0xc
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov word [eax], cx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax]
mov eax, ebp
pop edi
pop esi
mov byte [ecx], dl
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.004702b0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, esi
mov ecx, dword [ebx]
sub ebp, esi
mov dword [esp + 0x1c], eax
push 0
cmp ebp, edx
jl 0x4c3280
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
pop edi
add eax, esi
mov dword [ebx + 0xc], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
cmp ebp, esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
cmovle esi, ebp
push esi
push dword [ebx + 4]
push eax
call fcn.004702b0
sub dword [ebx + 0xc], esi
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x4c32d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x14c63b0]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4c3460
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
nop
cmp ebp, 0xffffffff
je 0x4c331e
test ebp, ebp
je 0x4c33c6
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x4c333a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004c3190
mov dword [esp + 0x10], eax
jmp 0x4c3354
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 0x4c33c9
test cl, cl
je 0x4c3368
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 0x4c33a3
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x14c63b0]
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 0x4c33c6
cmp dword [esp + 0x28], 0
jne 0x4c3310
cmp cl, 0xd
je 0x4c33d2
cmp cl, 0xa
jne 0x4c3310
dec esi
jmp 0x4c3443
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x4c3443
jmp 0x4c33d5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x4c33dd
dec esi
jmp 0x4c3443
cmp cl, 0xd
jne 0x4c3443
dec esi
cmp dword [edi], 0
je 0x4c33fb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004c3190
mov dword [esp + 0x10], eax
jmp 0x4c3411
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 0x4c3443
cmp dword [edi], 0
je 0x4c3422
inc dword [ebx + 0xc]
jmp 0x4c3443
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 0x4c3470
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x14c63b0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x4c362f
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 0x4c34c9
test ecx, ecx
je 0x4c358c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x4c34e5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004c3190
mov dword [esp + 0x10], eax
jmp 0x4c34ff
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 0x4c358f
test ax, ax
je 0x4c351d
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 0x4c3564
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x14c63b0]
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 0x4c358f
cmp dword [esp + 0x2c], 0
jne 0x4c34b3
cmp ax, 0xd
je 0x4c3596
cmp ax, 0xa
jne 0x4c34b3
sub edi, 2
jmp 0x4c360e
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x4c360e
cmp ax, 0xa
jne 0x4c35a1
sub edi, 2
jmp 0x4c360e
cmp ax, 0xd
jne 0x4c360e
sub edi, 2
cmp dword [ebp], 0
je 0x4c35c3
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004c3190
mov dword [esp + 0x10], eax
jmp 0x4c35d9
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 0x4c360e
cmp dword [ebp], 0
je 0x4c35ed
add dword [ebx + 0xc], 2
jmp 0x4c360e
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