joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53e480
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x53e4a1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x53e4c8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x53e4fc
test ebx, ebx
jne 0x53e4fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x53e4fc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.00550840
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x53e579
push 0
push 0x10
push ebx
push esi
call fcn.0054fd30
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x53e557
mov eax, dword [edi + 0xc]
push eax
call fcn.005664c5
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
shl eax, 4
push eax
call fcn.0056649c
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x53e557
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53e576
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x53e7c0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x53e7e1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x53e808
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x53e83c
test ebx, ebx
jne 0x53e83c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x53e83c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.00550840
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x53e8bd
push 0
push 8
push ebx
push esi
call fcn.0054fd30
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x53e89b
mov eax, dword [edi + 0xc]
push eax
call fcn.005664c5
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*8]
push ecx
call fcn.0056649c
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x53e89b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53e8ba
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x53e970
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x53e9b5
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 3
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x53f4a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5902e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x639ad4]
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x60]
xor edi, edi
test eax, eax
mov byte [esp + 0x44], 1
jle 0x53f525
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0053eac0
test al, al
je 0x53f51c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x53f51c
push eax
call ebp
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x53f4f6
pop ebp
lea ecx, [esi + 0x68]
call fcn.0053de90
lea ecx, [esi + 0x50]
call fcn.0053e350
mov al, byte [esp + 0x4c]
mov dword [esi + 0x60], 0
test al, al
je 0x53f551
mov eax, dword [esi + 0x64]
push 0
push eax
mov ecx, esi
call fcn.0053f210
lea ecx, [esp + 8]
mov byte [esp + 0x44], 0
call fcn.0056a100
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 5
call fcn.0056a100
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 4
call fcn.0056a100
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call fcn.0056a100
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 2
call fcn.0056a100
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.0056a100
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x53f5c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x590328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x639ad4]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x60]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edi, edi
mov byte [esp + 0x4c], 1
test eax, eax
jle 0x53f644
lea eax, [esp + 0x14]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0053eac0
test al, al
je 0x53f63c
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x53f63c
push eax
call ebp
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x53f616
lea ecx, [esi + 0x68]
call fcn.0053de90
lea ecx, [esi + 0x50]
call fcn.0053e350
lea ecx, [esi + 8]
mov dword [esi + 0x60], 0
call fcn.00543340
mov edx, dword [0x639ad4]
mov dword [esp + 0xc], edx
mov eax, dword [esi + 0x64]
lea ecx, [esp + 0xc]
push eax
push str._s.cdb
push ecx
mov byte [esp + 0x58], 2
call fcn.00562ecb
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x4c], 1
call fcn.0056a100
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 0
call fcn.0056a100
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 6
call fcn.0056a100
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 5
call fcn.0056a100
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 4
call fcn.0056a100
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 3
call fcn.0056a100
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0056a100
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x44
ret

Function at 0x541380
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x590548
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.00542780
mov ecx, edi
call fcn.00542500
mov eax, dword [edi + 0xb8]
xor esi, esi
test eax, eax
jle 0x541417
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi + 0xb4]
mov eax, dword [eax + esi*4]
push eax
call ebx
mov ecx, dword [0x639ad4]
mov dword [esp + 0xc], ecx
mov edx, dword [edi + 0xb4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
mov eax, dword [edx + esi*4]
push eax
push str._s.z
push ecx
call fcn.00562ecb
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0056a100
mov eax, dword [edi + 0xb8]
inc esi
cmp esi, eax
jl 0x5413b9
pop ebx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x542e80
Capabilities:
Get disk size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push 0
push 0
push 0
push eax
push ecx
call fcn.0054ea7c
mov al, byte [0x63f600]
add esp, 0x14
test al, 1
jne 0x542ee8
or al, 1
push str.KERNEL32
mov byte [0x63f600], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [0x63f5f8], eax
je 0x542ede
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x63f5f4], eax
mov dword [0x63f5fc], 1
jne 0x542ee8
mov dword [0x63f5fc], 0
mov eax, dword [0x63f5fc]
push esi
push edi
or esi, 0xffffffff
or edi, 0xffffffff
test eax, eax
je 0x542f21
lea edx, [esp + 0x20]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [0x63f5f4]
test eax, eax
je 0x542f54
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jmp 0x542f54
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x542f54
mov esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
xor edi, edi
cmp edi, dword [esp + 0x3c]
jg 0x542f71
jl 0x542f62
cmp esi, dword [esp + 0x38]
ja 0x542f71
and esi, edi
cmp esi, 0xffffffff
je 0x542f71
pop edi
xor al, al
pop esi
add esp, 0x28
ret
pop edi
mov al, 1
pop esi
add esp, 0x28
ret

Function at 0x543010
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00543340
mov al, byte [esp + 0x18]
mov ebp, dword [esp + 0x14]
neg al
sbb eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
and eax, 2
push 0
add eax, 2
push 0
mov edi, eax
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x54305b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0
push 0
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x2c], eax
jne 0x54308c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00543340
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov al, byte [esp + 0x18]
test al, al
je 0x5430ff
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
cmp dword [esi + 8], 0xffffffff
jne 0x5430d6
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x5430d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x5430d6
mov ecx, esi
call fcn.00543340
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
call fcn.00550840
mov ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 8], ecx
mov eax, dword [esi + 0xc]
adc eax, edx
mov dword [esi + 0xc], eax
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
pop esi
pop ebp
pop ebx
ret 8
Function at 0x543110
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x10]
push 2
push eax
push 0
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esi + 8]
mov ebp, dword [esi + 0xc]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x54317a
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, 0xffffffff
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 8]
add edx, eax
push edi
mov dword [esi + 8], edx
mov ecx, dword [esi + 0xc]
adc ecx, 0
mov dword [esi + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov edx, ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x5431b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov bl, byte [esp + 0x20]
push esi
mov esi, ecx
test bl, bl
je 0x5431c9
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push 0
push edx
mov dword [esp + 0x10], eax
push eax
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x543216
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x543216
test bl, bl
je 0x543243
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x54324d
test bl, bl
je 0x543243
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
test bl, bl
je 0x54325b
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0x14
Function at 0x543270
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x20]
push edi
cmp eax, ecx
jg 0x543329
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x5432df
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5432df
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, 0xffffffff
pop ebx
add esp, 8
ret 0x14
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push 0
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x543315
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, 0xffffffff
pop ebx
add esp, 8
ret 0x14
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov edx, ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret 0x14
push eax
mov eax, dword [esp + 0x30]
push eax
mov ecx, esi
call fcn.00543110
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14

Function at 0x543380
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push 0
push edx
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esi + 0x2c]
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x5433d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5433d7
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 8]
push 0
push ecx
mov ecx, dword [esi + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
jne 0x543407
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 0x10
Function at 0x55a0e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x63d8b8
cmp edx, dword [eax]
je 0x55a10a
add eax, 8
inc ecx
cmp eax, 0x63d948
jl 0x55a0fb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x63d8b8]
jne 0x55a238
mov eax, dword [0x641770]
cmp eax, 1
je 0x55a212
test eax, eax
jne 0x55a13b
cmp dword [0x63ae44], 1
je 0x55a212
cmp edx, 0xfc
je 0x55a238
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x55a172
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0055a430
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00552580
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x55a1b5
lea eax, [ebp - 0x1a4]
push eax
call fcn.00552580
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62aeac
push edi
call fcn.0054e560
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0055a430
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0055a440
lea eax, [ebp - 0xa0]
push 0x630c3c
push eax
call fcn.0055a440
push dword [esi + 0x63d8bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0055a440
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0055d4d6
add esp, 0x2c
pop edi
jmp 0x55a238
lea eax, [ebp + 8]
lea esi, [esi + 0x63d8bc]
push 0
push eax
push dword [esi]
call fcn.00552580
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x562070
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0054e3f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x56213b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x56213b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5620ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5620f9
or bh, 8
and edi, 0x8000000
je 0x562114
mov eax, dword [0x642ebc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x56213b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x562510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x56253b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x56255f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x56257a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20