joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a33c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push eax
push 4
push esi
push edi
call ebx
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [esi + 4]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4a3466
mov ecx, dword [esi + 0x18]
add esi, 8
cmp eax, ecx
ja 0x4a3432
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], eax
jb 0x4a342a
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x4a343e
mov ecx, esi
mov byte [ecx + eax], 0
jmp 0x4a343e
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00426c20
cmp dword [esi + 0x14], 0x10
jb 0x4a3446
mov esi, dword [esi]
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 4
push 0
push 0x529344
lea ecx, [esi + 8]
call fcn.004270f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 4

Function at 0x4a3560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f68b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x54d000]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
lea eax, [esp + 4]
mov dword [esp + 0x30], 0
push eax
push dword [ebp + 8]
call fcn.004a37b0
cmp dword [esp + 0x20], 0x10
jb 0x4a35d6
push dword [esp + 0xc]
call fcn.004d9d65
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a35f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0
mov ebx, ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
push ecx
push 4
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
mov ecx, ebx
call fcn.004a3730
xor edi, edi
cmp dword [ebp - 8], edi
jbe 0x4a3647
push esi
xor esi, esi
mov ecx, dword [ebx]
push dword [ebp - 0x10]
add ecx, esi
call fcn.004a33c0
inc edi
add esi, 0x20
cmp edi, dword [ebp - 8]
jb 0x4a3631
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 4
Function at 0x4a3660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
push 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ecx
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 5
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x4a371b
push ebx
xor ebx, ebx
mov edi, dword [edi]
add edi, ebx
push 0
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 4
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [edi + 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4a370e
cmp dword [edi + 0x1c], 0x10
lea eax, [edi + 8]
jb 0x4a36fd
mov eax, dword [eax]
push 0
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x1c]
inc esi
add ebx, 0x20
cmp esi, dword [ebp - 8]
jb 0x4a36a5
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 4
Function at 0x4a53f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x30], ebx
push 4
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x2c], edi
push ecx
mov eax, dword [edi + 4]
mov ecx, ebx
sub eax, dword [edi]
sar eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
call dword [eax + 0x18]
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
jbe 0x4a5528
xor edx, edx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24], edx
mov ecx, dword [edi]
mov ebx, dword [ebx + 4]
add ecx, edx
push 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ecx
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
sar eax, 5
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 4
push ecx
push ebx
call esi
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call esi
xor edi, edi
cmp dword [ebp - 8], edi
jbe 0x4a5508
xor ebx, ebx
mov eax, dword [ebp - 0x28]
push 0
mov esi, dword [eax + 4]
mov eax, dword [esi + ebx + 0x18]
add esi, ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [esi + 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4a54f5
cmp dword [esi + 0x1c], 0x10
lea eax, [esi + 8]
jb 0x4a54e0
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [ebp - 0x10]
push 0
push edx
push ecx
push eax
push dword [ebp - 0x1c]
call esi
jmp 0x4a54fb
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
add ebx, 0x20
cmp edi, dword [ebp - 8]
jb 0x4a5483
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
inc eax
mov edi, dword [ebp - 0x2c]
add edx, 0x10
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
cmp eax, dword [ebp - 0xc]
jb 0x4a5442
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 4
Function at 0x4a5630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x24], ebx
push 4
mov eax, dword [ebx]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, ebx
mov dword [ebp - 0x20], esi
call dword [eax + 0x14]
push dword [ebp - 0xc]
mov ecx, esi
call fcn.004a58d0
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
jbe 0x4a5708
xor edx, edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
mov esi, dword [ebx + 4]
push 0
mov dword [ebp - 0x1c], esi
mov ecx, dword [eax]
add ecx, edx
mov eax, dword [ecx + 8]
lea ebx, [ecx + 4]
sub eax, dword [ebx]
sar eax, 5
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push ecx
push esi
call edi
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call edi
push dword [ebp - 8]
mov ecx, ebx
call fcn.004a3730
xor edi, edi
cmp dword [ebp - 8], edi
jbe 0x4a56e5
xor esi, esi
lea ebx, [ebx]
mov ecx, dword [ebx]
push dword [ebp - 0x1c]
add ecx, esi
call fcn.004a33c0
inc edi
add esi, 0x20
cmp edi, dword [ebp - 8]
jb 0x4a56d0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
inc eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add edx, 0x10
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp eax, dword [ebp - 0xc]
jb 0x4a5681
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 4
Function at 0x4a6bf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6d4c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x54d000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebx], vtable.ISelect.0
mov dword [ebx + 0x24], 0xf
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x10], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov byte [ebp - 4], 3
call fcn.004b64a0
mov dword [ebx + 0x50], eax
call fcn.004b8fc0
mov dword [ebx + 0x54], eax
call fcn.00496280
mov dword [ebx + 0x58], eax
call fcn.004b4210
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x5c], eax
mov dword [ebp - 0x10], 0x1c
mov eax, dword [ecx + 0x54]
mov dword [ebx + 0x60], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0x64], eax
mov eax, dword [ecx + 0x28]
lea ecx, [ebx + 0x38]
mov dword [ebx + 0x68], eax
lea eax, [ebp - 0x10]
mov dword [ebx + 0x28], 0x12c
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push eax
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
call fcn.00439340
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x9c
push eax
lea ecx, [ebx + 0x38]
call fcn.00439340
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x200
push eax
lea ecx, [ebx + 0x38]
call fcn.00439340
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
lea ecx, [ebx + 0x44]
call fcn.00439340
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xd3
push eax
lea ecx, [ebx + 0x44]
call fcn.00439340
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x201
push eax
lea ecx, [ebx + 0x44]
call fcn.00439340
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x52
push eax
lea ecx, [ebx + 0x44]
call fcn.00439340
mov eax, ebx
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 0x4a9180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10b]
push esi
push edi
push 0x104
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x10c], 0
call fcn.004dc9b0
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x4a91c2
mov eax, dword [edi]
jmp 0x4a91c4
mov eax, edi
push eax
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.004da7cf
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x110]
add esp, 0xc
push 0
push eax
push 0x104
lea eax, [ebp - 0x10c]
push eax
push ebx
call esi
push ebx
lea ecx, [edi + 0x3c]
call fcn.004a3660
mov eax, dword [edi + 0x1c]
sub eax, dword [edi + 0x18]
push 0
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x110]
push eax
push 4
lea eax, [ebp - 0x114]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0x110]
push eax
mov eax, dword [edi + 0x1c]
sub eax, dword [edi + 0x18]
push eax
push dword [edi + 0x18]
push ebx
call esi
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x24]
sar eax, 1
push 0
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x110]
push eax
push 4
lea eax, [ebp - 0x114]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0x110]
push eax
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x24]
and eax, 0xfffffffe
push eax
push dword [edi + 0x24]
push ebx
call esi
push ebx
lea ecx, [edi + 0x48]
call fcn.004a3660
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x30]
push 0
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x110]
push eax
push 4
lea eax, [ebp - 0x114]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0x110]
push eax
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x30]
push eax
push dword [edi + 0x30]
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 4
Function at 0x4a92d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10b]
push 0x104
mov ebx, ecx
mov byte [ebp - 0x10c], 0
push 0
push eax
mov dword [ebp - 0x124], ebx
call fcn.004dc9b0
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x118]
add esp, 0xc
push 0
push eax
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
cmp byte [ebp - 0x10c], 0
jne 0x4a9339
xor eax, eax
jmp 0x4a934b
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a9342
sub eax, edx
push eax
lea eax, [ebp - 0x10c]
mov ecx, ebx
push eax
call fcn.004270f0
push 0
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x110]
push eax
push edi
call esi
push dword [ebp - 0x110]
lea ecx, [ebx + 0x3c]
call fcn.004a3730
xor ebx, ebx
cmp dword [ebp - 0x110], ebx
jbe 0x4a93ad
xor esi, esi
lea esp, [esp]
mov eax, dword [ebp - 0x124]
push edi
mov ecx, dword [eax + 0x3c]
add ecx, esi
call fcn.004a33c0
inc ebx
add esi, 0x20
cmp ebx, dword [ebp - 0x110]
jb 0x4a9390
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x118]
push 0
push eax
push 4
lea eax, [ebp - 0x114]
push eax
push edi
call ebx
mov esi, dword [ebp - 0x124]
lea eax, [ebp - 0x11d]
push eax
push dword [ebp - 0x114]
mov byte [ebp - 0x11d], 0
lea ecx, [esi + 0x18]
call fcn.004a5000
push 0
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x114]
push dword [esi + 0x18]
push edi
call ebx
push 0
lea eax, [ebp - 0x118]
push eax
push 4
lea eax, [ebp - 0x114]
push eax
push edi
call ebx
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
push dword [ebp - 0x114]
lea ecx, [esi + 0x24]
call fcn.004a8bc0
push 0
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x114]
add eax, eax
push eax
push dword [esi + 0x24]
push edi
call ebx
push 0
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x110]
push eax
push edi
call ebx
push dword [ebp - 0x110]
lea ecx, [esi + 0x48]
call fcn.004a3730
xor ebx, ebx
cmp dword [ebp - 0x110], ebx
jbe 0x4a949d
xor esi, esi
lea ebx, [ebx]
mov eax, dword [ebp - 0x124]
push edi
mov ecx, dword [eax + 0x48]
add ecx, esi
call fcn.004a33c0
inc ebx
add esi, 0x20
cmp ebx, dword [ebp - 0x110]
jb 0x4a9480
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x118]
push 0
push eax
push 4
lea eax, [ebp - 0x114]
push eax
push edi
call ebx
mov esi, dword [ebp - 0x124]
lea eax, [ebp - 0x11d]
push eax
push dword [ebp - 0x114]
mov byte [ebp - 0x11d], 0
lea ecx, [esi + 0x30]
call fcn.004a5000
push 0
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x114]
push dword [esi + 0x30]
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 4
Function at 0x4aa050
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f6fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x54d000]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x10]
push dword [ebp + 8]
add ecx, 0x18
call fcn.0042d220
mov ecx, dword [esi + 0x10]
push dword [ebp + 0xc]
add ecx, 0x24
call fcn.004ab7c0
mov ecx, dword [esi + 0x10]
push dword [ebp + 0x10]
add ecx, 0x30
call fcn.0042d220
mov ecx, dword [esi + 0x10]
add ecx, 0x48
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x38], 0
push eax
push dword [ebp + 0x14]
call fcn.004a37b0
cmp dword [esp + 0x28], 0x10
jb 0x4aa0f9
push dword [esp + 0x14]
call fcn.004d9d65
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b6080
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7bbe
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x54d000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.CGSIWinDoc.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.004927d0
mov dword [esi + 0x40], eax
mov byte [ebp - 4], 2
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
call fcn.004927d0
mov dword [esi + 0x48], eax
mov eax, esi
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b9070
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f804c
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x54d000]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
mov eax, dword [0x54d000]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.004cca90
lea ecx, [esp + 0x58]
call fcn.004cc1d0
mov dword [esp + 0x80], 0
mov eax, dword [0x58dba4]
push 0x69
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_LoadMenuA]
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
push 0x57c8f0
push 4
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x80cb0000
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], str.GSIWIN
mov dword [esp + 0x5c], 0
call fcn.004da558
add esp, 8
test eax, eax
je 0x4b914f
mov dword [eax], 0
jmp 0x4b9151
xor eax, eax
mov dword [esi + 0x68], eax
test eax, eax
jne 0x4b9197
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
push 0x28
push 0x5324d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 1
call fcn.004270f0
push 0x549be0
lea eax, [esp + 0x14]
mov byte [esp + 0x84], 0
push eax
call fcn.004dd2ec
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.004d1260
push 0x57c8f0
push 0x30
call fcn.004da558
add esp, 8
mov dword [esp + 8], eax
mov byte [esp + 0x80], 2
test eax, eax
je 0x4b91cb
mov ecx, eax
call fcn.004d04d0
jmp 0x4b91cd
xor eax, eax
mov byte [esp + 0x80], 0
mov dword [esi + 0x6c], eax
test eax, eax
jne 0x4b921b
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
push 0x2c
push 0x5324fc
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 3
call fcn.004270f0
push 0x549be0
lea eax, [esp + 0x14]
mov byte [esp + 0x84], 0
push eax
call fcn.004dd2ec
push dword [esi + 0x2c]
mov ecx, eax
call fcn.004d05f0
push 0x57c8f0
push 0x68
call fcn.004da558
add esp, 8
mov dword [esp + 8], eax
mov byte [esp + 0x80], 4
test eax, eax
je 0x4b924d
mov ecx, eax
call fcn.004d0f00
jmp 0x4b924f
xor eax, eax
mov byte [esp + 0x80], 0
mov dword [esi + 0x70], eax
test eax, eax
jne 0x4b927b
push 0x53252c
lea ecx, [esp + 0x14]
call fcn.0042ba20
push 0x549be0
lea eax, [esp + 0x14]
push eax
call fcn.004dd2ec
mov ecx, eax
call fcn.004d1020
push 0x57c8f0
push 4
call fcn.004da558
mov edx, eax
add esp, 8
test edx, edx
je 0x4b929f
mov dword [edx], vtable.CGSIWinMenuEvent.0
jmp 0x4b92a1
xor edx, edx
mov dword [esi + 0x74], edx
test edx, edx
jne 0x4b92c5
push 0x532558
lea ecx, [esp + 0x14]
call fcn.0042ba20
push 0x549be0
lea eax, [esp + 0x14]
push eax
call fcn.004dd2ec
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
push edx
call dword [eax]
mov ecx, esi
call fcn.004b9380
lea ecx, [esp + 0x58]
call fcn.00426b30
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret
Function at 0x4b9830
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
mov edi, ecx
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]
pop edi
pop esi
or dword [eax], 2
pop ebp
ret 4

Function at 0x4b9870
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 0x104], 0
jne 0x4b9886
xor eax, eax
pop edi
pop ebp
ret 4
mov eax, dword [ebp + 8]
movzx eax, al
push ebx
mov bl, byte [eax + 0x57d8e0]
lea eax, [ebx + 0x60]
cmp al, 3
ja 0x4b98b0
push esi
movzx esi, bl
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
sets al
mov byte [esi + edi + 4], al
pop esi
movzx eax, bl
pop ebx
movzx eax, byte [eax + edi + 4]
pop edi
pop ebp
ret 4

Function at 0x4b9bb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push 0x94
push 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [ebp - 0x98]
push eax
call fcn.004dc9b0
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x94]
cmp eax, 6
ja 0x4b9c15
jne 0x4b9c37
cmp dword [ebp - 0x90], 1
jb 0x4b9c37
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 0x4b9c37
push 0
push dword [esi + 8]
call eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 8