joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3490
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd780
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x65b500]
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 0x4b35d7
cmp dword [edi + 0x14], 0
je 0x4b35d7
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
call fcn.004da620
mov esi, esp
test esi, esi
je 0x4b35d7
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 0x4b3520
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004167f0
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 0x4b3566
mov esi, ecx
cmp word [esi], 0xa
je 0x4b35fa
add esi, 2
sub eax, 1
jne 0x4b3554
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 0x4b35b2
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 0x4b35b2
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.00466f30
lea ecx, [ebp - 0x28]
call fcn.00409b00
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.004da36e
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x4b3566
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4b3566
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0044ea60
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4b362c
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.00409b00
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0044ea60
cmp dword [eax + 0x14], 8
jb 0x4b365b
mov eax, dword [eax]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x40]
call fcn.00409b00
jmp 0x4b35b2
Function at 0x4b4010
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 0x4b403d
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 0x4b408c
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 0x4b40ed
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 0x4b40ad
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x578], 0
test ecx, ecx
je 0x4b40ed
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4b40e7
cmp dword [esi + 0x558], 0
je 0x4b40ed
cmp byte [esi + 0x578], 0
je 0x4b40ed
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4b40ed
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.0046e640
pop edi
pop esi
pop ebp
ret 4

Function at 0x4b4100
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 0x4b414f
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 0x4b4148
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 0x4b4170
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x4b4149
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4b41a2
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4b41a2
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x4b4149
cmp byte [esi + 0x564], 0
je 0x4b4149
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.0046e640
pop edi
pop esi
pop ebp
ret 4
Function at 0x4bb530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fdb98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x65b500]
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 0x4bb577
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 0x4bb5b3
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4bbc80
push 0
push 0
call fcn.005cbfd8
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.0046f190
mov ecx, esi
call fcn.004bb940
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 0x4be360
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 0x6682ac
cmp al, 6
jb 0x4be39d
push 0x18
call fcn.004da74a
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4be3d9
mov ecx, eax
call fcn.004be3f0
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x14
call fcn.004da74a
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4be3d9
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 0x4c0470
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6688
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x65b500]
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 0x4c061e
cmp ebx, 7
jb 0x4c061e
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 0x4c0578
test esi, esi
je 0x4c04dc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x28]
push eax
call fcn.004cd630
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 0x4c052b
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.00409b00
mov eax, esi
jmp 0x4c0620
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.00409b00
mov eax, esi
jmp 0x4c0620
push ebx
push dword [ebp - 0x2c]
push eax
call fcn.005c4870
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4c05a0
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 0x4c05e6
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 0x4c05e8
xor esi, esi
mov dword [edi + 0x10], esi
test esi, esi
je 0x4c060b
mov ecx, esi
call fcn.004bffa0
mov ecx, dword [edi + 0x10]
mov dword [edi + 8], eax
call fcn.004bff60
mov dword [edi + 0xc], eax
mov esi, 1
jmp 0x4c060d
xor esi, esi
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4c061a
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x4c0620
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.004da36e
mov esp, ebp
pop ebp
ret 8

Function at 0x4c10a0
Capabilities:
Delete file

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fdffb
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x65b500]
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.005c5370
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4cd771
cmp eax, 0x104
ja 0x4cd771
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c5370
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x61c350
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4cd722
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cd700
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.004167f0
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.00409b00
jmp 0x4cd796
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.004da36e
mov esp, ebp
pop ebp
ret
Function at 0x4d0b20
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 0x4d0c1f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4d0c1f
mov eax, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4d0bf7
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 + 0x61da60]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x61da60]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x61da60]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x61da60]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x61da60]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x61da60]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x61da60]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x61da60]
sub edi, 1
jne 0x4d0b50
pop edi
test esi, esi
je 0x4d0c1a
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 + 0x61da60]
sub esi, 1
jne 0x4d0c00
not eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop esi
pop ebp
ret
Function at 0x4d7f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fe518
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x65b500]
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 0x4d80a6
cmp dword [ebx + 0x21c], 0
lea edi, [ebx + 0x20c]
mov dword [ebp - 0x38], edi
jne 0x4d80a6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d7f56
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004167f0
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4d7f78
mov ecx, dword [edi]
mov edx, edi
jb 0x4d7f7e
mov edx, dword [edi]
mov eax, dword [edi + 0x10]
mov esi, edi
lea edx, [edx + eax*2]
jb 0x4d7f8a
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 0x4d7fd2
sub ecx, esi
mov edi, eax
mov dword [ebp - 0x34], ecx
xor ebx, ebx
nop
movzx eax, word [esi]
push eax
call fcn.004d9380
mov ecx, dword [ebp - 0x34]
lea esi, [esi + 2]
inc ebx
add esp, 4
mov word [ecx + esi - 2], ax
cmp ebx, edi
jne 0x4d7fb0
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x30]
push 0xfde9
lea eax, [ebx + 0x224]
mov ecx, edi
push eax
call fcn.004d9400
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.004167f0
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], 0
jb 0x4d801a
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0043ec40
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 0x4d809e
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 0x4d809e
cmp byte [ebx + 3], 0x4e
jne 0x4d8088
cmp byte [ebx + 4], 0x54
jne 0x4d8088
cmp byte [ebx + 5], 0x46
jne 0x4d8088
cmp byte [ebx + 6], 0x53
jne 0x4d8088
mov byte [ebx + 0x28c], 1
jmp 0x4d809e
push dword [ebx + 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x208], 0
lea ecx, [ebp - 0x28]
call fcn.00409b00
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.004da36e
mov esp, ebp
pop ebp
ret 4
Function at 0x4d9150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fe658
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x65b500]
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.004d96a0
mov ecx, dword [edi + 0x2e4]
lea eax, [edi + 0x2d4]
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4d91c6
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0043ec40
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004d98a0
lea eax, [edi + 0x20c]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4d91f2
mov eax, dword [eax]
movzx eax, word [eax]
lea ecx, [ebp - 0x28]
push eax
call fcn.004d52a0
push 5
push 0x61e128
lea ecx, [ebp - 0x28]
call fcn.0043ec40
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x61e13c
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005ddf6d
mov esi, eax
add esp, 8
test esi, esi
je 0x4d92ff
push esi
push 1
lea ecx, [edi + 0x2a8]
push 1
push ecx
call fcn.005defce
push esi
push 1
lea eax, [edi + 0x2a0]
push 8
push eax
call fcn.005defce
push esi
push 1
lea eax, [edi + 0x290]
push 8
push eax
call fcn.005defce
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 0x4d92f0
nop dword [eax]
mov eax, dword [ecx + ebx*4]
push esi
push 1
push 4
cmp dword [eax + 8], 0
push eax
je 0x4d92d2
call fcn.005defce
mov eax, dword [edi + 0x268]
push esi
push 1
push 4
mov eax, dword [eax + ebx*4]
add eax, 4
push eax
call fcn.005defce
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 0x4d92c2
sub eax, dword [ebp - 0x2c]
push esi
inc eax
push eax
push 1
push edx
call fcn.005defce
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 0x4d9280
push esi
call fcn.005deadf
push esi
call fcn.005de767
add esp, 8
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4d933e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d9334
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d935a
push edx
push ecx
call fcn.004da0c6
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.004da36e
mov esp, ebp
pop ebp
ret
call fcn.005c8d19
int3
Function at 0x4d96a0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x65b500]
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.005c5370
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 0x4d9756
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d9707
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004167f0
cmp dword [esi + 0x14], 8
mov eax, esi
mov ecx, dword [esi + 0x10]
jb 0x4d9732
mov eax, dword [esi]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4d9743
push 0x5c
mov ecx, esi
call fcn.004d52a0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da36e
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x4d9725
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.005c5370
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 0x4d981d
cmp edi, 0x104
jb 0x4d97f9
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
push 0x6682ac
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004da5d2
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4d981d
lea ecx, [edi*2 + 2]
push ecx
push 0
push ebx
call fcn.005c5370
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.004d4be0
push ebx
call fcn.004da3d2
add esp, 4
jmp 0x4d9725
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d9802
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
jmp 0x4d971d
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da36e
mov esp, ebp
pop ebp
ret