joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e450
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d83f8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x74
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x54]
call fcn.004afc50
mov dword [ebp - 4], 0
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x48e4e5
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x3c]
push 0x511400
push eax
call fcn.0049ae20
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
mov ecx, 0x565cc0
push 0
cmovae eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x565cc0]
call dword [eax + 4]
lea ecx, [ebp - 0x3c]
call fcn.00428650
jmp 0x48e5f0
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], vtable.CFile.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
lea ecx, [ebp - 0x24]
cmovae eax, dword [ebp - 0x54]
push eax
call fcn.00475600
test eax, eax
jne 0x48e5b1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], al
mov byte [ebp - 4], 3
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
cmovae eax, dword [ebp - 0x54]
push eax
push 0x50a170
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004a9b80
add esp, 0x10
lea ecx, [ebp - 0x84]
call fcn.00428650
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
mov ecx, dword [esi + 4]
cmovae eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0049ae20
mov byte [ebp - 4], 4
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 0x10
mov ecx, 0x565cc0
push 0
cmovae eax, dword [ebp - 0x6c]
push eax
mov eax, dword [0x565cc0]
call dword [eax + 4]
lea ecx, [ebp - 0x6c]
call fcn.00428650
lea ecx, [ebp - 0x3c]
call fcn.00428650
jmp 0x48e5d9
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x1c]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call dword [eax + 0xc]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CFile.0
call fcn.00475690
lea ecx, [ebp - 0x54]
call fcn.00428650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x49db30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9500
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x52600c]
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, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp eax, 0xf
ja 0x49dcff
je 0x49dc8a
sub eax, 1
je 0x49dc74
sub eax, 1
je 0x49dc3f
sub eax, 4
jne 0x49dba8
movzx ecx, word [ebp + 0x10]
mov eax, dword [edi + 0x68]
test cx, cx
jne 0x49dbc7
and dword [eax], 0xfffffffe
call fcn.004757c0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x49dba8
mov eax, dword [ecx]
call dword [eax + 0x10]
xor eax, eax
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.004bcfcc
mov esp, ebp
pop ebp
ret 0x10
or dword [eax], 1
cmp ecx, 2
jne 0x49dbd6
push esi
call dword [sym.imp.USER32.dll_SetCapture]
call fcn.004757c0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x49dbe7
mov eax, dword [ecx]
call dword [eax + 0xc]
call fcn.00475d70
cmp dword [eax + 0x68], 0
je 0x49dba8
mov eax, dword [vtable.CCriticalSection.0]
mov ecx, 0x565b7c
mov dword [ebp - 0x14], 0x565b7c
call dword [eax + 4]
mov dword [ebp - 4], 1
call fcn.00475d70
mov esi, eax
mov ecx, esi
call fcn.00477790
test eax, eax
jne 0x49dc26
mov ecx, esi
call fcn.00477860
mov dword [ebp - 4], 2
mov ecx, 0x565b7c
mov eax, dword [vtable.CCriticalSection.0]
call dword [eax + 8]
jmp 0x49dba8
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x80000000
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [edi + 0x68]
or dword [eax], 2
jmp 0x49dba8
push 0x6c
push dword [0x565cc4]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [edi + 0x78], eax
jmp 0x49dba8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
push eax
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
call fcn.00475d70
cmp dword [eax + 0x68], 0
je 0x49dcef
mov eax, dword [vtable.CCriticalSection.0]
mov ecx, 0x565b7c
mov dword [ebp - 0x14], 0x565b7c
call dword [eax + 4]
mov dword [ebp - 4], 4
call fcn.00475d70
mov edi, eax
mov ecx, edi
call fcn.00477790
test eax, eax
jne 0x49dcdb
mov ecx, edi
call fcn.00477860
mov dword [ebp - 4], 5
mov ecx, 0x565b7c
mov eax, dword [vtable.CCriticalSection.0]
call dword [eax + 8]
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x49dba8
sub eax, 0xa1
je 0x49dd3d
sub eax, 2
je 0x49dd3d
sub eax, 0x6f
jne 0x49dba8
cmp dword [ebp + 0x10], 0xf060
jne 0x49dba8
push eax
push 0x9c41
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
jmp 0x49dbaa
cmp dword [ebp + 0x10], 3
jne 0x49dba8
mov eax, 1
jmp 0x49dbaa
Function at 0x49dd90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 0x104], 0
jne 0x49dda6
xor eax, eax
pop edi
pop ebp
ret 4
movzx eax, byte [ebp + 8]
push esi
mov al, byte [eax + 0x568150]
movzx esi, al
add al, 0x60
cmp al, 3
ja 0x49ddcb
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
sets al
mov byte [esi + edi + 4], al
movzx eax, byte [esi + edi + 4]
pop esi
pop edi
pop ebp
ret 4

Function at 0x49e040
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push 0x90
push 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [ebp - 0x94]
push eax
call fcn.004bf140
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
ja 0x49e0a3
jne 0x49e0c5
cmp dword [ebp - 0x90], 1
jb 0x49e0c5
push str.RegisterTouchWindow
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49e0c5
push 0
push dword [esi + 8]
call eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 8
Function at 0x4a2690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9858
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x52600c]
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, ecx
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
test esi, esi
jle 0x4a27d0
cmp dword [ebp + 0x14], 0
jle 0x4a27d0
mov eax, dword [edi]
mov dword [ebp - 0x14], edi
call dword [eax + 0x34]
push dword [ebp - 0x20]
mov dword [ebp - 4], 0
mov ecx, edi
mov eax, dword [edi]
push dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebp - 0x18]
mov edi, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, dword [ebp - 0x18]
add edi, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
cdq
and edx, 3
add eax, edx
sar eax, 2
lea edx, [eax*4]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], edx
nop dword [eax]
xor ecx, ecx
test esi, esi
jle 0x4a27b3
cmp esi, 0x10
jb 0x4a27a0
mov eax, esi
and eax, 0x8000000f
jns 0x4a2749
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm2, xmmword [0x513f20]
mov edx, esi
sub edx, eax
lea eax, [edi + 0x20]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
add ecx, 0x10
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
pxor xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
pxor xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
cmp ecx, edx
jl 0x4a2760
mov edx, dword [ebp - 0x1c]
cmp ecx, esi
jge 0x4a27b0
xor dword [edi + ecx*4], 0xffffff
inc ecx
cmp ecx, esi
jl 0x4a27a4
mov eax, dword [ebp + 0x14]
add edi, edx
sub eax, 1
mov dword [ebp + 0x14], eax
jne 0x4a2730
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 0x38]
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.004bcfcc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a3140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
test eax, eax
jle 0x4a32c4
cmp dword [ebp + 0x20], 1
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x4a3190
mov esi, dword [ebp + 0xc]
lea eax, [ebx*4]
mov ebx, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
nop dword [eax]
push eax
push esi
push edi
call fcn.004bebc0
add edi, dword [ebp + 0x18]
add esp, 0xc
add esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
sub ebx, 1
jne 0x4a3170
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0xc], edx
xor ecx, ecx
test ebx, ebx
jle 0x4a32ad
cmp ebx, 0x10
jb 0x4a327b
lea eax, [ebx - 1]
lea eax, [edx + eax*4]
lea esi, [ebx - 1]
lea esi, [edi + esi*4]
cmp edi, eax
ja 0x4a31c1
cmp esi, edx
jae 0x4a3278
mov eax, ebx
and eax, 0x8000000f
jns 0x4a31cf
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm3, xmmword [0x513f20]
mov esi, ebx
movaps xmm4, xmmword [0x513f90]
sub esi, eax
mov ebx, edx
mov dword [ebp + 0x20], esi
sub ebx, edi
lea esi, [edx + 0x30]
mov dword [ebp + 8], ebx
lea eax, [edi + 0x10]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x10
lea eax, [eax + 0x40]
lea esi, [esi + 0x40]
pand xmm0, xmm4
movups xmm1, xmmword [esi - 0x70]
movups xmm2, xmmword [edx + eax - 0x40]
pand xmm1, xmm3
por xmm1, xmm0
pand xmm2, xmm3
movups xmmword [eax - 0x50], xmm1
movaps xmm1, xmm4
movups xmm0, xmmword [eax - 0x40]
pand xmm1, xmm0
por xmm2, xmm1
movaps xmm1, xmm4
movups xmmword [eax - 0x40], xmm2
movups xmm0, xmmword [eax - 0x30]
movups xmm2, xmmword [esi - 0x50]
pand xmm1, xmm0
pand xmm2, xmm3
por xmm2, xmm1
movups xmm1, xmmword [esi - 0x40]
movups xmmword [eax - 0x30], xmm2
pand xmm1, xmm3
movups xmm0, xmmword [eax - 0x20]
pand xmm0, xmm4
por xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp + 0x20]
jl 0x4a3200
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
cmp ecx, ebx
jge 0x4a32ad
mov esi, edx
lea eax, [edi + ecx*4]
mov edx, ebx
sub esi, edi
sub edx, ecx
nop word [eax + eax]
mov ecx, dword [eax + esi]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
and ecx, 0xffffff
xor dword [eax - 4], ecx
sub edx, 1
jne 0x4a3290
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
add edx, dword [ebp + 0x1c]
add edi, dword [ebp + 0x18]
sub eax, 1
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x14], eax
jne 0x4a3196
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x4a40b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4050
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x52600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CSpriteAnime.0
mov ecx, dword [0x565e60]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esi + 0x2c], 0
xor edi, edi
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4a411b
mov ecx, dword [esi + 0x30]
mov ecx, dword [ecx + edi*4]
call fcn.004a5e60
mov eax, dword [esi + 0x34]
inc edi
mov ecx, dword [esi + 0x30]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4a4100
test ecx, ecx
je 0x4a4160
mov edx, dword [esi + 0x38]
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x4a4141
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4a4177
mov ecx, edi
push edx
push ecx
call fcn.004bcfdd
mov dword [esi + 0x30], 0
add esp, 8
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi], vtable.IAppTask.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004c12b9
int3
Function at 0x4a6890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9b8b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x52600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x44]
mov dword [ebp - 0x10], esi
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
movups xmm0, xmmword [edi + 0x18]
movups xmmword [esi + 0x18], xmm0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
lea eax, [edi + 0x44]
cmp ecx, eax
je 0x4a6948
push dword [ebp - 0x10]
push dword [eax + 4]
push dword [eax]
call fcn.0042e890
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
movzx eax, word [edi + 0x54]
mov word [esi + 0x54], ax
movzx eax, word [edi + 0x56]
mov word [esi + 0x56], ax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
movups xmm0, xmmword [edi + 0x5c]
movups xmmword [esi + 0x5c], xmm0
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
movups xmm0, xmmword [edi + 0x70]
movups xmmword [esi + 0x70], xmm0
movq xmm0, qword [edi + 0x80]
movq qword [esi + 0x80], xmm0
mov eax, dword [edi + 0x88]
mov dword [esi + 0x88], eax
movq xmm0, qword [edi + 0x8c]
movq qword [esi + 0x8c], xmm0
mov eax, dword [edi + 0x94]
mov dword [esi + 0x94], eax
mov eax, esi
movq xmm0, qword [edi + 0xa4]
movq qword [esi + 0xa4], xmm0
mov ecx, dword [edi + 0xac]
mov dword [esi + 0xac], ecx
movq xmm0, qword [edi + 0x98]
movq qword [esi + 0x98], xmm0
mov ecx, dword [edi + 0xa0]
mov dword [esi + 0xa0], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4aa270
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push 0
push 0x1f0001
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x4aa29b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4aa293
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4aa2d6
cmp eax, 0x80
je 0x4aa2d6
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov dword [edi + 0x174], esi
mov eax, 1
pop edi
pop esi
pop ebp
ret 4
Function at 0x4ab8a0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da4d8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
lea esi, [edi + 0x54]
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x40], esi
call dword [eax + 4]
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], 0x10
jb 0x4ab915
mov ecx, dword [ecx]
cmp dword [edi + 0x44], 0x10
lea eax, [edi + 0x30]
jb 0x4ab920
mov eax, dword [eax]
push ecx
push eax
push str.__xml_version__s__encoding__s_____n
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004a9b80
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.00428650
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4ab954
push eax
push 0
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.004ac520
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], vtable.CFile.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], 0x10
jb 0x4ab983
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x24]
call fcn.00475600
test eax, eax
jne 0x4ab9ab
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CFile.0
call fcn.00475690
xor edi, edi
jmp 0x4ab9f2
cmp dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x1c]
push 0
push ecx
push dword [ebp - 0x2c]
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call dword [eax + 0xc]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CFile.0
call fcn.00475690
mov edi, 1
mov byte [ebp - 4], 6
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
lea ecx, [ebp - 0x3c]
call fcn.00428650
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x4afaf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x90
lea eax, [ebp - 0x94]
mov esi, edx
push 0
push eax
call fcn.004bf140
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
ja 0x4afb57
jne 0x4afb46
cmp dword [ebp - 0x90], esi
jae 0x4afb57
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret
Function at 0x4b0120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x90
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.004bf140
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 6
ja 0x4b01e7
jne 0x4b0174
cmp dword [ebp - 0x98], 2
jae 0x4b01e7
push 0x90
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.004bf140
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 6
ja 0x4b01c6
jne 0x4b01b5
cmp dword [ebp - 0x98], 2
jae 0x4b01c6
mov edx, 1
call fcn.004afaf0
neg eax
sbb eax, eax
inc eax
jmp 0x4b01c8
xor eax, eax
mov ecx, dword [0x565e48]
push eax
push str._Screen_ChangeMode
call fcn.004aba30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret
Function at 0x4b4a50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x56749c], 0
push esi
mov esi, dword [ebp + 0x10]
jne 0x4b4abf
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4b4aaf
mov eax, dword [ebp - 0x94]
cmp eax, 5
ja 0x4b4aa1
jne 0x4b4aaf
cmp dword [ebp - 0x90], 1
jb 0x4b4aaf
mov al, 1
mov byte [0x56749d], al
mov byte [0x56749c], al
jmp 0x4b4ac4
xor al, al
mov byte [0x56749c], 1
mov byte [0x56749d], al
jmp 0x4b4ac4
mov al, byte [0x56749d]
test al, al
mov eax, dword [ebp + 0x18]
je 0x4b4ad0
or eax, 0x100
push eax
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WINMM.dll_timeSetEvent]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret
Function at 0x4b82f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
jne 0x4b830f
pop edi
mov eax, 0x80004003
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
xor eax, eax
lea esi, [edi + 4]
cmp edi, 0xc
cmove esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
movups xmmword [ebx], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [ebp + 8], eax
test eax, eax
je 0x4b83e5
dec eax
test dword [ebp - 8], eax
jne 0x4b83e5
cmp dword [edi + 0x44], 1
jne 0x4b836a
push esi
mov edi, 0x8004020f
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x20]
cmp eax, dword [edi + 0x30]
jge 0x4b8389
push esi
mov edi, 0x80040210
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
add ecx, eax
mov dword [ebp + 0x10], eax
mov eax, ecx
cdq
idiv dword [ebp + 8]
test edx, edx
je 0x4b83a5
mov eax, dword [ebp + 8]
sub eax, edx
add ecx, eax
sub ecx, dword [ebp + 0x10]
mov dword [edi + 0x34], ecx
mov dword [ebx + 4], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov eax, dword [ecx]
mov dword [edi + 0x2c], eax
mov dword [ebx], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x38], eax
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x3c], eax
mov dword [ebx + 0xc], eax
mov dword [edi + 0x40], 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov edi, 0x8004020e
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc