joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9197
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x60]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x5071e0
call fcn.004c6de0
xor ebx, ebx
lea ecx, [esi + 0x84]
mov dword [ebp - 4], ebx
call fcn.004c6de0
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 1
call fcn.004c6de0
mov byte [ebp - 4], 2
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], ebx
cmp dword [0x532dd8], ebx
jne 0x4b2f65
mov ecx, dword [0x52fe2c]
push ebx
push str.VConTerminated
call fcn.004126e0
mov dword [0x532dd8], eax
mov ecx, dword [0x52fe2c]
push str.ConEmuTabsChanged
push str.CONEMUTABCHANGED
call fcn.004126e0
push ebx
mov dword [esi + 0x20], eax
mov ecx, dword [0x52fe2c]
push str.CConEmuChild::PostFullPaint
call fcn.004126e0
push ebx
mov dword [esi + 0x24], eax
mov ecx, dword [0x52fe2c]
push str.CConEmuChild::SavePaneSnapshoot
call fcn.004126e0
push ebx
mov dword [esi + 0x28], eax
mov ecx, dword [0x52fe2c]
push str.CConEmuChild::Detach
call fcn.004126e0
push str.ConEmu::RestoreChildFocus
mov dword [esi + 0x2c], eax
mov ecx, dword [0x52fe2c]
push str.CONEMUMSG_RESTORECHILDFOCUS
call fcn.004126e0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], eax
mov dword [esi + 0x70], ebx
mov dword [esi + 0xa8], 0x1c
mov dword [esi + 0xac], 7
mov eax, dword [0x52fe30]
mov cl, byte [eax + 0x1140c]
mov byte [esi + 0xa4], cl
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0xc4], bl
xor eax, eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], eax
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4b36a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
test esi, esi
je 0x4b3705
cmp dword [esi + 0x38], 0
jne 0x4b3705
mov ecx, dword [0x52fe2c]
call fcn.0040a9d0
test al, al
jne 0x4b371b
cmp dword [esi + 0x5c], 0
push edi
jne 0x4b370c
cmp dword [esi + 0x54], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x4b36df
call edi
sub eax, dword [esi + 0x54]
cmp eax, 5
jb 0x4b370c
call edi
mov ecx, dword [esi + 0x10]
push 0
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x24]
push 0
push eax
push ecx
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 1
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov dword [esi + 0x58], 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0x10]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp byte [ebp + 8], 0
mov dword [esi + 0x5c], 0
je 0x4b3705
mov ecx, dword [esi + 0x10]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x4b3705
mov eax, dword [esi + 0x10]
push 0x92a
push 0
lea edx, [ebp - 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b3880
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d91c0
push eax
mov dword fs:[0], esp
sub esp, 0x40
cmp byte [ebp + 8], 0
push esi
mov esi, ecx
je 0x4b38d0
mov eax, dword [0x52fe30]
mov al, byte [eax + 0x1140c]
test al, al
jne 0x4b38c6
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp al, 1
je 0x4b38d0
cmp dword [esi + 0x74], 0
je 0x4b38b3
push ebx
xor bl, bl
test esi, esi
je 0x4b38dc
lea eax, [esi - 8]
jmp 0x4b38de
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.004bca20
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.004bc8c0
push 0
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [0x52fe2c]
mov byte [ebp - 4], 1
call fcn.0040a790
test eax, eax
jl 0x4b3a2e
push edi
lea ecx, [ebp - 0x20]
call fcn.004bc9d0
mov ecx, eax
call fcn.004bcc80
mov edi, eax
test edi, edi
je 0x4b3a2d
mov ecx, edi
call fcn.00486ee0
test eax, eax
je 0x4b3a2d
mov ecx, edi
call fcn.00488d20
test eax, eax
jne 0x4b3a2d
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
cmp dword [esi + 0x80], eax
je 0x4b3983
push 1
call edi
mov edx, 0x8000
and ax, dx
mov ecx, edx
cmp ax, cx
je 0x4b3976
mov dword [esi + 0x80], 0
cmp dword [esi + 0x80], 0
jne 0x4b3a2b
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x40]
push 2
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x10]
sub ecx, eax
mov eax, dword [ebp - 0x14]
push edx
mov dword [ebp - 0x3c], ecx
push eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4b3a2d
cmp dword [esi + 0x74], 0
jne 0x4b3a2b
push 0x10
call edi
mov edx, 0x8000
and ax, dx
mov ecx, edx
cmp ax, cx
je 0x4b3a2d
push 0x11
call edi
mov edx, 0x8000
and ax, dx
mov ecx, edx
cmp ax, cx
je 0x4b3a2d
push 0x12
call edi
mov edx, 0x8000
and ax, dx
mov ecx, edx
cmp ax, cx
je 0x4b3a2d
push 1
call edi
mov edx, 0x8000
and ax, dx
mov ecx, edx
cmp ax, cx
je 0x4b3a2d
mov bl, 1
pop edi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004bc960
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004bc960
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b5820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x4e5028
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 1
xor ebx, ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [esi], fcn.004bc8b0
mov dword [esi + 0x20], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 0x1f4
call fcn.00425070
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x24], ecx
push ebx
mov dword [esi + 0x28], edx
lea ecx, [ebp - 0x38]
push ebx
mov dword [esi + 0x2c], edi
push ecx
mov dword [esi + 0x30], eax
call fcn.00425070
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov dword [esi + 0x3c], edi
add esp, 0x18
lea ecx, [ebp - 0x18]
mov dword [esi + 0x40], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x48], ebx
call fcn.004c6bf0
push 0xffffffffffffffff
push 0x532de0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004c7670
xor eax, eax
mov edi, edi
cmp dword [eax*4 + 0x532e80], ebx
je 0x4b58f1
inc eax
cmp eax, 0x3c
jb 0x4b58e0
jmp 0x4b58f8
mov dword [eax*4 + 0x532e80], esi
lea ecx, [ebp - 0x18]
call fcn.004c6c00
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004c6c00
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b86c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x49a722
call fcn.004b8680
test al, al
jne 0x49a722
cmp dword [esi + 4], 0
je 0x49a724
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
ret
mov ecx, esi
pop esi
jmp fcn.0049a510
xor eax, eax
mov dword [0x532e78], eax
mov byte [0x532e76], al
mov eax, dword [0x52fe2c]
mov ecx, dword [eax + 0x40d4]
jmp 0x49a700
Function at 0x4bcd20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push esi
mov esi, ecx
test esi, esi
je 0x4bcee7
cmp dword [esi + 0xf8], 0
je 0x4bcee7
mov eax, dword [esi + 0x18c]
mov ecx, dword [esi + 0x188]
mov edx, dword [esi + 0x17c]
push edi
mov edi, dword [ebp + 8]
push edi
push eax
push ecx
push 0
push edx
call fcn.004a11e0
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4bcda4
push 0
push 0
push 0
push 0
push str.Cant_create_file_
call fcn.004263e0
add esp, 0x14
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x52fe2c]
push ebx
push 1
call fcn.0040a760
mov ecx, eax
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4bcdb7
sub ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
sar ecx, 1
lea edx, [ebp + 8]
push edx
add ecx, ecx
push ecx
push eax
push edi
call ebx
movsx edx, word [esi + 0x126]
movsx eax, word [esi + 0x124]
mov ecx, dword [esi + 0x108]
push edx
mov edx, dword [esi + 0x104]
push eax
push ecx
push edx
lea eax, [ebp - 0xc8]
push str._r_nSize:__ix_i___Cursor:__ix_i_r_n
push eax
call fcn.004b57e0
lea eax, [ebp - 0xc8]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bce14
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp + 8]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0xc8]
push eax
push edi
call ebx
mov edx, dword [esi + 0x104]
imul edx, dword [esi + 0x108]
mov eax, dword [esi + 0x278]
push 0
lea ecx, [ebp + 8]
push ecx
add edx, edx
push edx
push eax
push edi
call ebx
mov eax, dword [esi + 0x104]
imul eax, dword [esi + 0x108]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x280]
push 0
add edx, edx
lea ecx, [ebp + 8]
push ecx
add edx, edx
add edx, edx
push edx
push eax
push edi
call ebx
mov edx, dword [esi + 0x104]
imul edx, dword [esi + 0x108]
mov eax, dword [esi + 0x27c]
push 0
lea ecx, [ebp + 8]
push ecx
add edx, edx
push edx
push eax
push edi
call ebx
mov eax, dword [esi + 0x104]
imul eax, dword [esi + 0x108]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x284]
push 0
add edx, edx
lea ecx, [ebp + 8]
push ecx
add edx, edx
add edx, edx
push edx
push eax
push edi
call ebx
mov ecx, dword [esi + 0xf8]
pop ebx
test ecx, ecx
je 0x4bced6
push edi
call fcn.00486be0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4bed60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x4bed96
call fcn.00488d20
test eax, eax
je 0x4bed96
mov ecx, dword [esi + 0xf8]
call fcn.00486ee0
test eax, eax
jne 0x4bed96
mov eax, dword [ebp + 8]
mov byte [eax], 0
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0xf8]
push ebx
push edi
push 0
call fcn.0048f6a0
mov ecx, dword [0x52fe30]
push eax
call fcn.0044e860
cmp dword [esi + 0x1518], 0
mov dword [esi + 0x14dc], eax
setne cl
xor edi, edi
push edi
push 1
mov byte [esi + 0x122], cl
mov ecx, dword [0x52fe2c]
push edi
call fcn.004169e0
push edi
push esi
mov byte [ebp - 3], al
call fcn.004b6cc0
mov bl, al
add esp, 8
test bl, bl
jne 0x4bedfe
mov ecx, dword [0x52fe2c]
push esi
call fcn.0040aa90
mov byte [ebp - 2], bl
test al, al
je 0x4bee02
mov byte [ebp - 2], 1
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x4bee2c
call fcn.004893a0
test al, al
jne 0x4bee26
mov ecx, dword [esi + 0xf8]
push 1
call fcn.00489030
test al, al
jne 0x4bee2c
mov byte [ebp - 1], 1
jmp 0x4bee30
mov byte [ebp - 1], 0
cmp dword [esi + 0x1518], edi
je 0x4bef51
cmp byte [esi + 0x1528], 0
je 0x4bef51
test bl, bl
mov bl, byte [ebp - 3]
je 0x4bee58
test bl, bl
je 0x4bee58
mov al, 1
jmp 0x4bee5a
xor al, al
mov ecx, dword [esi + 0x14dc]
push eax
call fcn.00486ae0
test al, al
jne 0x4bee88
mov byte [esi + 0x120], 1
cmp byte [esi + 0x123], bl
jne 0x4bef5b
mov edx, dword [ebp + 8]
mov byte [edx], 1
jmp 0x4bef5b
mov ax, word [esi + 0x124]
cmp ax, word [esi + 0x14fc]
jne 0x4bef37
mov cx, word [esi + 0x126]
cmp cx, word [esi + 0x14fe]
jne 0x4bef37
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x138]
cmp eax, dword [esi + 0x134]
jbe 0x4bef5b
mov ecx, dword [0x52fe2c]
call fcn.0040a650
test al, al
je 0x4beee5
mov byte [esi + 0x120], 0
mov edi, 1
jmp 0x4bef5b
cmp byte [esi + 0x123], 0
je 0x4bef06
test bl, bl
je 0x4bef06
mov edx, dword [ebp + 8]
mov byte [esi + 0x120], 1
mov byte [edx], 1
mov edi, 1
jmp 0x4bef5b
cmp byte [ebp - 2], 0
je 0x4bef2a
cmp byte [esi + 0x120], 0
je 0x4bef1b
cmp byte [ebp - 1], 0
jne 0x4bef2a
mov eax, 1
mov byte [esi + 0x120], al
mov edi, eax
jmp 0x4bef5b
xor eax, eax
mov byte [esi + 0x120], al
lea edi, [eax + 1]
jmp 0x4bef5b
mov al, byte [ebp - 2]
mov byte [esi + 0x120], al
test al, al
je 0x4bef4a
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov edi, 1
jmp 0x4bef5b
mov bl, byte [ebp - 3]
mov byte [esi + 0x120], 0
mov cl, byte [esi + 0x120]
cmp cl, byte [esi + 0x121]
je 0x4bef83
mov ecx, dword [0x52fe2c]
call fcn.0040a650
test al, al
jne 0x4bef83
mov edx, dword [ebp + 8]
mov byte [edx], 1
mov edi, 1
mov al, byte [esi + 0x120]
test al, al
je 0x4bef98
test bl, bl
sete cl
mov byte [esi + 0x123], cl
test edi, edi
pop edi
mov byte [esi + 0x121], al
pop ebx
je 0x4befb0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x138], eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c4040
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x4c4083
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4c405f
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x4c406e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x110], ebx
xor ecx, ecx
lea edi, [esi + 0x10]
lea eax, [esi + 0x114]
mov dword [esi + 0x110], ebx
mov word [eax], cx
cmp word [edi], bx
jne 0x4c40b3
push str.Internal_error._Mapping_file_name_was_not_specified.
push eax
call fcn.00412a30
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jg 0x4c40bf
mov eax, 0xf8
mov edx, dword [ebp + 8]
mov dword [esi + 0xc], eax
cmp edx, ebx
jne 0x4c40d2
cmp dword [ebp + 0xc], ebx
jne 0x4c40d2
xor ecx, ecx
jmp 0x4c40d7
mov ecx, 1
mov dword [esi + 8], ecx
push edi
cmp edx, ebx
je 0x4c40f3
push eax
push ebx
push 4
call fcn.0044cf40
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
jmp 0x4c40fc
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ecx, eax
mov dword [esi], eax
cmp ecx, ebx
jne 0x4c4129
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
mov ecx, str.create
cmp dword [ebp + 8], ebx
jne 0x4c411f
mov ecx, str.open
push edi
push eax
push ecx
push str.Cant__s_console_data_file_mapping._ErrCode0x_08X_n_s
jmp 0x4c416d
mov eax, dword [esi + 8]
neg eax
push ebx
sbb eax, eax
push ebx
and eax, 0xf001b
push ebx
add eax, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x4c4181
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
mov ecx, str.ReadWrite
cmp dword [esi + 8], ebx
jne 0x4c4165
mov ecx, 0x4e93f8
push edi
push eax
push ecx
push str.Cant_map_console_info___s_._ErrCode0x_08X_n_s
lea eax, [esi + 0x114]
push 0x208
push eax
call fcn.0044cff0
add esp, 0x18
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4c5850
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x4c59a6
cmp word [esi], bx
je 0x4c59a6
push edi
push 0x24c
lea eax, [ebp - 0x280]
push ebx
push eax
mov dword [ebp - 0x284], ebx
call fcn.004c9b50
add esp, 0xc
lea ecx, [ebp - 0x284]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c5933
mov byte [ebp + 0xb], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4c5929
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
je 0x4c5922
cmp esi, edi
je 0x4c5922
push 0x30
lea edx, [ebp - 0x30]
push ebx
push edx
mov dword [ebp - 0x34], ebx
call fcn.004c9b50
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4c5922
test byte [ebp - 0x34], 0x10
jne 0x4c5922
mov ecx, dword [ebp + 0xc]
mov byte [ebp + 0xb], 1
cmp ecx, ebx
je 0x4c5922
cmp dword [ebp - 0x14], ebx
je 0x4c591d
or eax, edi
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor bl, bl
jmp 0x4c5940
test byte [ebp - 0x284], 0x10
je 0x4c5967
lea ecx, [ebp - 0x284]
push ecx
push edi
call esi
test eax, eax
jne 0x4c5940
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov bl, 1
test ecx, ecx
je 0x4c5996
cmp dword [ebp - 0x268], 0
je 0x4c598e
or eax, 0xffffffff
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x264]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5ac0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4c5beb
cmp word [edi], 0
je 0x4c5beb
push ebx
push esi
push 0
push 0x2000000
push 3
push 0
push 1
push 0
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x4c5b3f
cmp esi, 0xffffffff
je 0x4c5b3f
push 0x30
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
call fcn.004c9b50
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4c5b2f
test byte [ebp - 0x34], 0x10
je 0x4c5b2f
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0x24c
push eax
lea edx, [ebp - 0x280]
push edx
mov dword [ebp - 0x284], eax
call fcn.004c9b50
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c5b78
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, edi
test byte [ebp - 0x284], 0x10
je 0x4c5bad
push 0x4e4e20
lea ecx, [ebp - 0x258]
push ecx
call edi
test eax, eax
je 0x4c5bad
push 0x507dc4
lea edx, [ebp - 0x258]
push edx
call edi
test eax, eax
jne 0x4c5bd4
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c5b80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop esi
test bl, bl
pop ebx
setne al
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop esi
test bl, bl
pop ebx
setne al
pop edi
mov esp, ebp
pop ebp
ret
xor al, al
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4c5c00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4c5cc4
cmp word [edi], 0
je 0x4c5cc4
push ebx
push esi
push 0x5c
push edi
mov dword [ebp + 8], 0
call fcn.004c9bca
push 0x5c
push edi
mov ebx, eax
call fcn.004ca94c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c5c43
cmp esi, ebx
jne 0x4c5c66
xor esi, esi
push edi
call fcn.004c5ac0
add esp, 4
test al, al
jne 0x4c5c86
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4c5c8d
mov dword [ebp + 8], 1
jmp 0x4c5cab
xor eax, eax
mov word [esi], ax
cmp word [esi + 2], ax
jne 0x4c5c50
push edi
call fcn.004c5ac0
add esp, 4
test al, al
je 0x4c5c50
mov ecx, 0x5c
mov word [esi], cx
pop esi
pop ebx
mov al, 1
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4c5cb7
cmp eax, 5
je 0x4c5cab
push edi
call fcn.004c5c00
movzx edx, al
add esp, 4
mov dword [ebp + 8], edx
test esi, esi
je 0x4c5cb7
mov eax, 0x5c
mov word [esi], ax
xor eax, eax
cmp dword [ebp + 8], eax
pop esi
pop ebx
setne al
pop edi
pop ebp
ret
xor al, al
pop edi
pop ebp
ret