joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5d20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x594584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x5a0c80
mov dword [ebp - 0x78], 0x6f0053
lea esi, [ebp - 0x78]
mov dword [ebp - 0x74], 0x740066
push edi
mov dword [ebp - 0x70], 0x610077
mov edx, 0x3a
mov dword [ebp - 0x6c], 0x650072
sub esi, eax
mov dword [ebp - 0x68], 0x4d005c
mov dword [ebp - 0x64], 0x630069
mov dword [ebp - 0x60], 0x6f0072
mov dword [ebp - 0x5c], 0x6f0073
mov dword [ebp - 0x58], 0x740066
mov dword [ebp - 0x54], 0x49005c
mov dword [ebp - 0x50], 0x74006e
mov dword [ebp - 0x4c], 0x720065
mov dword [ebp - 0x48], 0x65006e
mov dword [ebp - 0x44], 0x200074
mov dword [ebp - 0x40], 0x780045
mov dword [ebp - 0x3c], 0x6c0070
mov dword [ebp - 0x38], 0x72006f
mov dword [ebp - 0x34], 0x720065
mov dword [ebp - 0x30], 0x4d005c
mov dword [ebp - 0x2c], 0x690061
mov dword [ebp - 0x28], 0x5c006e
mov dword [ebp - 0x24], 0x650046
mov dword [ebp - 0x20], 0x740061
mov dword [ebp - 0x1c], 0x720075
mov dword [ebp - 0x18], 0x430065
mov dword [ebp - 0x14], 0x6e006f
mov dword [ebp - 0x10], 0x720074
mov dword [ebp - 0xc], 0x6c006f
mov dword [ebp - 8], 0x5c
nop dword [eax]
lea ecx, [edx + 0x7fffffc4]
test ecx, ecx
je 0x4a5e2e
movzx ecx, word [esi + eax]
test cx, cx
je 0x4a5e2e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4a5e10
test edx, edx
lea ecx, [eax - 2]
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cc1ce
mov esp, ebp
pop ebp
ret
Function at 0x4a8a40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54876b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x594584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x231]
xor esi, esi
mov dword [ebp - 0x238], esi
call fcn.004a5620
push eax
lea ecx, [ebp - 0x230]
call fcn.00406c40
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], esi
jb 0x4a8a9c
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.0040f4c0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4a8b31
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0050f150
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x4a8b31
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove esi, ecx
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x4a8b42
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4a8b7e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a8b74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a8b9d
push edx
push ecx
call fcn.004cbf26
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc1ce
mov esp, ebp
pop ebp
ret 8
call fcn.005127d9
int3
Function at 0x4a94a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548840
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x594584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x4a95e7
cmp dword [edi + 0x14], 0
je 0x4a95e7
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
call fcn.004ccb60
mov esi, esp
test esi, esi
je 0x4a95e7
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x14]
mov ecx, esi
mov eax, dword [eax + 0x7c8]
lea edx, [ecx + 2]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9530
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040f730
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test eax, eax
je 0x4a9576
mov esi, ecx
cmp word [esi], 0xa
je 0x4a960a
add esi, 2
sub eax, 1
jne 0x4a9564
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x19c]
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x4a95c2
push 0
push 0
push 0xb0
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
and eax, 0xf
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x4a95c2
push ebx
push ebx
push 0xb1
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x14]
push 0
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push dword [ebp - 0x44]
call dword [eax + 0x20]
mov ecx, eax
call fcn.00456be0
lea ecx, [ebp - 0x28]
call fcn.00407a40
xor eax, eax
lea esp, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc1ce
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x4a9576
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4a9576
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0048b510
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4a963c
mov edx, dword [edx]
mov ecx, dword [edi + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x19c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00407a40
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0048b510
cmp dword [eax + 0x14], 8
jb 0x4a966b
mov eax, dword [eax]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x40]
call fcn.00407a40
jmp 0x4a95c2
Function at 0x4aa020
Capabilities:
Log keystrokes via polling

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

Function at 0x4aa110
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0xd
jne 0x4aa15f
mov eax, dword [esi]
push ebx
call dword [eax + 0x34]
push dword [edi + 0x10]
mov ebx, eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4aa158
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
mov dword [esi + 0x55c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 4]
mov dword [esi + 0x560], eax
mov byte [esi + 0x564], 1
pop ebx
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x4aa180
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x4aa159
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4aa1b2
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4aa1b2
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x4aa159
cmp byte [esi + 0x564], 0
je 0x4aa159
mov edx, dword [ecx]
lea eax, [edi + 0xc]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [edx]
push edi
mov ecx, esi
call fcn.0045a190
pop edi
pop esi
pop ebp
ret 4
Function at 0x4b0240
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x59b6d0
cmp al, 6
jb 0x4b027d
push 0x18
call fcn.004cc46d
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4b02b9
mov ecx, eax
call fcn.004b02d0
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x14
call fcn.004cc46d
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4b02b9
mov dword [eax], vtable.CGDIPlusImageImpl.0
mov dword [eax + 4], 6
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b2350
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548d38
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x594584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4b24fe
cmp ebx, 7
jb 0x4b24fe
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4b2458
test esi, esi
je 0x4b23bc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x28]
push eax
call fcn.004bf500
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b240b
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.00407a40
mov eax, esi
jmp 0x4b2500
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push ebx
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, edi
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.00407a40
mov eax, esi
jmp 0x4b2500
push ebx
push dword [ebp - 0x2c]
push eax
call fcn.0050e650
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4b2480
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x10], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp - 0x30]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4b24c6
lea eax, [ebp - 0x2c]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp - 0x2c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 4], eax
jmp 0x4b24c8
xor esi, esi
mov dword [edi + 0x10], esi
test esi, esi
je 0x4b24eb
mov ecx, esi
call fcn.004b1e80
mov ecx, dword [edi + 0x10]
mov dword [edi + 8], eax
call fcn.004b1e40
mov dword [edi + 0xc], eax
mov esi, 1
jmp 0x4b24ed
xor esi, esi
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4b24fa
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x4b2500
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc1ce
mov esp, ebp
pop ebp
ret 8

Function at 0x4b2f80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x10], 0
jne 0x4b2f8f
xor eax, eax
pop ebp
ret 4
pop ebp
jmp fcn.004b1b30
Function at 0x4bf500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548ecb
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x594584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
call fcn.0050f150
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4bf641
cmp eax, 0x104
ja 0x4bf641
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0050f150
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x564ce0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4bf5f2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bf5d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.0040f730
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x438]
mov dword [esi + 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov word [ebp - 0x438], ax
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
call fcn.00407a40
jmp 0x4bf666
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc1ce
mov esp, ebp
pop ebp
ret
Function at 0x4c29b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
test edx, edx
je 0x4c2aaf
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4c2aaf
mov eax, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4c2a87
push edi
mov edi, esi
shr edi, 3
nop
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5663f0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5663f0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5663f0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5663f0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5663f0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5663f0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5663f0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5663f0]
sub edi, 1
jne 0x4c29e0
pop edi
test esi, esi
je 0x4c2aaa
nop dword [eax + eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5663f0]
sub esi, 1
jne 0x4c2a90
not eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop esi
pop ebp
ret

Function at 0x4c2ca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549038
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x594584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x20], 0
jne 0x4c2ce7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 1
jbe 0x4c2d23
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4c33f0
push 0
push 0
call fcn.0051d8b5
xor ecx, ecx
mov dword [esi + 0x10], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x44]
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x1c], edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push 0
push 0
push dword [eax + 4]
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
push ebx
cmovne esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
call fcn.0045acd0
mov ecx, esi
call fcn.004c30b0
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c9d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549438
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x594584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov edx, dword [ebp + 8]
test edx, edx
je 0x4c9f06
cmp dword [ebx + 0x21c], 0
lea edi, [ebx + 0x20c]
mov dword [ebp - 0x38], edi
jne 0x4c9f06
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c9db6
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040f730
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4c9dd8
mov ecx, dword [edi]
mov edx, edi
jb 0x4c9dde
mov edx, dword [edi]
mov eax, dword [edi + 0x10]
mov esi, edi
lea edx, [edx + eax*2]
jb 0x4c9dea
mov esi, dword [edi]
mov eax, edx
mov dword [ebp - 0x2c], 0
sub eax, esi
inc eax
shr eax, 1
cmp esi, edx
cmova eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4c9e32
sub ecx, esi
mov edi, eax
mov dword [ebp - 0x34], ecx
xor ebx, ebx
nop
movzx eax, word [esi]
push eax
call fcn.004cb210
mov ecx, dword [ebp - 0x34]
lea esi, [esi + 2]
inc ebx
add esp, 4
mov word [ecx + esi - 2], ax
cmp ebx, edi
jne 0x4c9e10
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x30]
push 0xfde9
lea eax, [ebx + 0x224]
mov ecx, edi
push eax
call fcn.004cb230
push 4
xor eax, eax
mov dword [ebp - 0x18], 0
push str.._
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040f730
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], 0
jb 0x4c9e7a
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0040f4c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x208], eax
cmp eax, 0xffffffff
je 0x4c9efe
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0x200
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c9efe
cmp byte [ebx + 3], 0x4e
jne 0x4c9ee8
cmp byte [ebx + 4], 0x54
jne 0x4c9ee8
cmp byte [ebx + 5], 0x46
jne 0x4c9ee8
cmp byte [ebx + 6], 0x53
jne 0x4c9ee8
mov byte [ebx + 0x28c], 1
jmp 0x4c9efe
push dword [ebx + 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x208], 0
lea ecx, [ebp - 0x28]
call fcn.00407a40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc1ce
mov esp, ebp
pop ebp
ret 4
Function at 0x4cb000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549578
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x594584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x2ac]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.004cb4d0
mov ecx, dword [edi + 0x2e4]
lea eax, [edi + 0x2d4]
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4cb076
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f4c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004cb6d0
lea eax, [edi + 0x20c]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4cb0a2
mov eax, dword [eax]
movzx eax, word [eax]
lea ecx, [ebp - 0x28]
push eax
call fcn.004c79b0
push 5
push str..ntdb
lea ecx, [ebp - 0x28]
call fcn.0040f4c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x566b70
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005277cc
mov esi, eax
add esp, 8
test esi, esi
je 0x4cb1af
push esi
push 1
lea ecx, [edi + 0x2a8]
push 1
push ecx
call fcn.0052882d
push esi
push 1
lea eax, [edi + 0x2a0]
push 8
push eax
call fcn.0052882d
push esi
push 1
lea eax, [edi + 0x290]
push 8
push eax
call fcn.0052882d
mov eax, dword [edi + 0x26c]
add esp, 0x30
mov ecx, dword [edi + 0x268]
xor ebx, ebx
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4cb1a0
nop dword [eax]
mov eax, dword [ecx + ebx*4]
push esi
push 1
push 4
cmp dword [eax + 8], 0
push eax
je 0x4cb182
call fcn.0052882d
mov eax, dword [edi + 0x268]
push esi
push 1
push 4
mov eax, dword [eax + ebx*4]
add eax, 4
push eax
call fcn.0052882d
mov eax, dword [edi + 0x268]
add esp, 0x20
mov eax, dword [eax + ebx*4]
mov edx, dword [eax + 8]
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x2c], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cb172
sub eax, dword [ebp - 0x2c]
push esi
inc eax
push eax
push 1
push edx
call fcn.0052882d
mov eax, dword [edi + 0x26c]
inc ebx
mov ecx, dword [edi + 0x268]
add esp, 0x10
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x4cb130
push esi
call fcn.0052833e
push esi
call fcn.00527fc6
add esp, 8
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4cb1ee
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cb1e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cb20a
push edx
push ecx
call fcn.004cbf26
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc1ce
mov esp, ebp
pop ebp
ret
call fcn.005127d9
int3