joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a37b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5430fb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x58f574]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
push 0x39
xor edi, edi
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x234], edi
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], ax
call fcn.0040f770
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], edi
jb 0x4a3820
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.0040f500
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
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 0x4a38b5
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00509f10
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 0x4a38b5
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x4a38c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4a3902
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a38f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a3921
push edx
push ecx
call fcn.004c6c76
add esp, 8
mov eax, edi
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.004c6f1e
mov esp, ebp
pop ebp
ret 8
call fcn.0050d599
int3
Function at 0x4a4210
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5431a0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x58f574]
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 0x4a4357
cmp dword [edi + 0x14], 0
je 0x4a4357
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
call fcn.004c78b0
mov esi, esp
test esi, esi
je 0x4a4357
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 0x4a42a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040f770
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 0x4a42e6
mov esi, ecx
cmp word [esi], 0xa
je 0x4a437a
add esi, 2
sub eax, 1
jne 0x4a42d4
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 0x4a4332
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 0x4a4332
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.00456810
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.004c6f1e
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x4a42e6
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4a42e6
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0048b130
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4a43ac
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.0048b130
cmp dword [eax + 0x14], 8
jb 0x4a43db
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 0x4a4332
Function at 0x4a4d90
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 0x4a4dbd
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 0x4a4e0c
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 0x4a4e6d
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 0x4a4e2d
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x578], 0
test ecx, ecx
je 0x4a4e6d
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4a4e67
cmp dword [esi + 0x558], 0
je 0x4a4e6d
cmp byte [esi + 0x578], 0
je 0x4a4e6d
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4a4e6d
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.00459de0
pop edi
pop esi
pop ebp
ret 4

Function at 0x4a4e80
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 0x4a4ecf
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 0x4a4ec8
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 0x4a4ef0
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x4a4ec9
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4a4f22
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4a4f22
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x4a4ec9
cmp byte [esi + 0x564], 0
je 0x4a4ec9
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.00459de0
pop edi
pop esi
pop ebp
ret 4
Function at 0x4aafa0
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 0x596688
cmp al, 6
jb 0x4aafdd
push 0x18
call fcn.004c71bd
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4ab019
mov ecx, eax
call fcn.004ab030
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x14
call fcn.004c71bd
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4ab019
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 0x4ad0b0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543698
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x58f574]
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 0x4ad25e
cmp ebx, 7
jb 0x4ad25e
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 0x4ad1b8
test esi, esi
je 0x4ad11c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x28]
push eax
call fcn.004ba250
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 0x4ad16b
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.00407a40
mov eax, esi
jmp 0x4ad260
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 0x4ad260
push ebx
push dword [ebp - 0x2c]
push eax
call fcn.00509410
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4ad1e0
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 0x4ad226
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 0x4ad228
xor esi, esi
mov dword [edi + 0x10], esi
test esi, esi
je 0x4ad24b
mov ecx, esi
call fcn.004acbe0
mov ecx, dword [edi + 0x10]
mov dword [edi + 8], eax
call fcn.004acba0
mov dword [edi + 0xc], eax
mov esi, 1
jmp 0x4ad24d
xor esi, esi
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4ad25a
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x4ad260
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.004c6f1e
mov esp, ebp
pop ebp
ret 8

Function at 0x4adce0
Capabilities:
Delete file

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54382b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x58f574]
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.00509f10
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4ba391
cmp eax, 0x104
ja 0x4ba391
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00509f10
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x55ffb0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4ba342
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ba320
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.0040f770
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 0x4ba3b6
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.004c6f1e
mov esp, ebp
pop ebp
ret
Function at 0x4bd700
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 0x4bd7ff
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4bd7ff
mov eax, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4bd7d7
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 + 0x5616c0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5616c0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5616c0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5616c0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5616c0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5616c0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5616c0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5616c0]
sub edi, 1
jne 0x4bd730
pop edi
test esi, esi
je 0x4bd7fa
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 + 0x5616c0]
sub esi, 1
jne 0x4bd7e0
not eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop esi
pop ebp
ret

Function at 0x4bd9f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543998
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58f574]
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 0x4bda37
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 0x4bda73
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4be140
push 0
push 0
call fcn.00518675
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.0045a920
mov ecx, esi
call fcn.004bde00
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 0x4c4ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543d98
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x58f574]
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 0x4c4c56
cmp dword [ebx + 0x21c], 0
lea edi, [ebx + 0x20c]
mov dword [ebp - 0x38], edi
jne 0x4c4c56
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c4b06
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040f770
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4c4b28
mov ecx, dword [edi]
mov edx, edi
jb 0x4c4b2e
mov edx, dword [edi]
mov eax, dword [edi + 0x10]
mov esi, edi
lea edx, [edx + eax*2]
jb 0x4c4b3a
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 0x4c4b82
sub ecx, esi
mov edi, eax
mov dword [ebp - 0x34], ecx
xor ebx, ebx
nop
movzx eax, word [esi]
push eax
call fcn.004c5f60
mov ecx, dword [ebp - 0x34]
lea esi, [esi + 2]
inc ebx
add esp, 4
mov word [ecx + esi - 2], ax
cmp ebx, edi
jne 0x4c4b60
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x30]
push 0xfde9
lea eax, [ebx + 0x224]
mov ecx, edi
push eax
call fcn.004c5f80
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.0040f770
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], 0
jb 0x4c4bca
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0040f500
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 0x4c4c4e
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 0x4c4c4e
cmp byte [ebx + 3], 0x4e
jne 0x4c4c38
cmp byte [ebx + 4], 0x54
jne 0x4c4c38
cmp byte [ebx + 5], 0x46
jne 0x4c4c38
cmp byte [ebx + 6], 0x53
jne 0x4c4c38
mov byte [ebx + 0x28c], 1
jmp 0x4c4c4e
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.004c6f1e
mov esp, ebp
pop ebp
ret 4
Function at 0x4c5d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x58f574]
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.004c6220
mov ecx, dword [edi + 0x2e4]
lea eax, [edi + 0x2d4]
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4c5dc6
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f500
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004c6420
lea eax, [edi + 0x20c]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4c5df2
mov eax, dword [eax]
movzx eax, word [eax]
lea ecx, [ebp - 0x28]
push eax
call fcn.004c2700
push 5
push str..ntdb
lea ecx, [ebp - 0x28]
call fcn.0040f500
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x561e40
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0052258c
mov esi, eax
add esp, 8
test esi, esi
je 0x4c5eff
push esi
push 1
lea ecx, [edi + 0x2a8]
push 1
push ecx
call fcn.005235ed
push esi
push 1
lea eax, [edi + 0x2a0]
push 8
push eax
call fcn.005235ed
push esi
push 1
lea eax, [edi + 0x290]
push 8
push eax
call fcn.005235ed
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 0x4c5ef0
nop dword [eax]
mov eax, dword [ecx + ebx*4]
push esi
push 1
push 4
cmp dword [eax + 8], 0
push eax
je 0x4c5ed2
call fcn.005235ed
mov eax, dword [edi + 0x268]
push esi
push 1
push 4
mov eax, dword [eax + ebx*4]
add eax, 4
push eax
call fcn.005235ed
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 0x4c5ec2
sub eax, dword [ebp - 0x2c]
push esi
inc eax
push eax
push 1
push edx
call fcn.005235ed
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 0x4c5e80
push esi
call fcn.005230fe
push esi
call fcn.00522d86
add esp, 8
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4c5f3e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c5f34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5f5a
push edx
push ecx
call fcn.004c6c76
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.004c6f1e
mov esp, ebp
pop ebp
ret
call fcn.0050d599
int3
Function at 0x4c6220
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x58f574]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
call fcn.00509f10
mov bl, byte [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
mov ecx, 0x23
test bl, bl
push eax
push 0
mov eax, 0x1a
cmove eax, ecx
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4c62d6
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c6287
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040f770
cmp dword [esi + 0x14], 8
mov eax, esi
mov ecx, dword [esi + 0x10]
jb 0x4c62b2
mov eax, dword [esi]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4c62c3
push 0x5c
mov ecx, esi
call fcn.004c2700
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f1e
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x4c62a5
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00509f10
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x4c639d
cmp edi, 0x104
jb 0x4c6379
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
push 0x596688
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c7002
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4c639d
lea ecx, [edi*2 + 2]
push ecx
push 0
push ebx
call fcn.00509f10
add esp, 0xc
lea eax, [edi + 1]
push eax
push ebx
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
mov ecx, esi
call fcn.004150a0
push ebx
call fcn.004c6ffd
add esp, 4
jmp 0x4c62a5
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c6382
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
jmp 0x4c629d
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c6f1e
mov esp, ebp
pop ebp
ret