joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45eb50
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ce398
push eax
mov dword fs:[0], esp
sub esp, 0x14
push edi
xor edi, edi
cmp dword [0x65c584], edi
je 0x45ec0e
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
lea eax, [esp + 4]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x45ec02
push esi
mov esi, dword [esp + 8]
push ebx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
push str.EnableLUA
mov ebx, 4
push esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x45ebe7
cmp dword [esp + 0x14], ebx
je 0x45ec20
mov dword [esp + 0x28], 0xffffffff
cmp esi, edi
je 0x45ebfe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], edi
xor al, al
jmp 0x45ec40
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x14], edi
xor al, al
pop edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
cmp dword [esp + 0x10], edi
setne bl
mov dword [esp + 0x28], 0xffffffff
cmp esi, edi
je 0x45ec3e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], edi
mov al, bl
mov ecx, dword [esp + 0x20]
pop ebx
mov dword [esp + 0x18], edi
pop esi
pop edi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x45f2c0
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ce4ab
push eax
mov dword fs:[0], esp
sub esp, 0x224
push esi
mov esi, dword [esp + 0x238]
push esi
call fcn.0045de70
add esp, 4
test eax, eax
jne 0x45f306
pop esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
add esp, 0x230
ret
push esi
lea ecx, [esp + 8]
call fcn.0043bf90
mov dword [esp + 0x230], 0
push str..
lea ecx, [esp + 8]
call fcn.0043a8a0
mov eax, dword [esp + 4]
cmp dword [eax - 4], 1
jle 0x45f344
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 8]
call fcn.00401ba0
mov eax, dword [esp + 4]
push ebx
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.0051e891
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x45f48f
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.0051e9b8
add esp, 8
test eax, eax
jne 0x45f486
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [esp + 0x18], 0x10
je 0x45f401
mov ecx, 0x5deb70
lea eax, [esp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45f3b8
test dx, dx
je 0x45f3b4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45f3b8
add eax, 4
add ecx, 4
test dx, dx
jne 0x45f392
xor eax, eax
jmp 0x45f3bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45f401
push esi
lea ecx, [esp + 0x14]
call fcn.0043a980
push 0x5dc7b4
lea ecx, [esp + 0x14]
call fcn.0043a8a0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.0043a8a0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0045f2c0
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x45f46e
mov ecx, 0x5deb70
lea eax, [esp + 0x2c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45f436
test dx, dx
je 0x45f432
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45f436
add eax, 4
add ecx, 4
test dx, dx
jne 0x45f410
xor eax, eax
jmp 0x45f43b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45f46e
push esi
lea ecx, [esp + 0x14]
call fcn.0043a980
push 0x5dc7b4
lea ecx, [esp + 0x14]
call fcn.0043a8a0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.0043a8a0
mov ecx, dword [esp + 0x10]
push ecx
call edi
call ebp
lea edx, [esp + 0x18]
push edx
push ebx
call fcn.0051e9b8
add esp, 8
test eax, eax
je 0x45f382
pop edi
pop ebp
push ebx
call fcn.0051e1c1
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov dword [esp + 0x234], 0xffffffff
lea ecx, [esp + 8]
call fcn.004381e0
mov ecx, dword [esp + 0x22c]
pop ebx
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x460fe0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ce888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
xor eax, eax
push edi
push 0x44
xor edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.0051d400
mov cx, word [esp + 0xa8]
mov ebp, dword [esp + 0x98]
add esp, 0xc
mov word [esp + 0x68], cx
mov ebx, 1
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], ebx
call fcn.0043bf90
mov dword [esp + 0x84], edi
mov esi, dword [esp + 0x90]
test esi, esi
je 0x4610b8
push 0x5dbdb8
lea ecx, [esp + 0x24]
call fcn.0043bf90
mov byte [esp + 0x84], bl
push esi
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00406610
add esp, 0xc
mov byte [esp + 0x84], 2
push eax
lea ecx, [esp + 0x14]
call fcn.0043a880
mov byte [esp + 0x84], bl
lea ecx, [esp + 0x18]
call fcn.004381e0
mov byte [esp + 0x84], 0
lea ecx, [esp + 0x20]
call fcn.004381e0
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], ebx
jle 0x4610d2
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00401ba0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x461133
cmp dword [esp + 0x94], 0
mov edi, ebx
je 0x46111d
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46111d
xor edi, edi
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
jmp 0x46114c
push ebx
push 0
push esi
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x46114c
mov edi, ebx
mov dword [esp + 0x84], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004381e0
mov ecx, dword [esp + 0x7c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret
Function at 0x4618d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ce976
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov eax, dword [esp + 0x270]
push edi
push eax
lea ecx, [esp + 0x10]
call fcn.0043bf90
mov dword [esp + 0x26c], 0
push 0x5e34d4
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00406610
add esp, 0xc
mov byte [esp + 0x26c], 2
lea ecx, [esp + 0xc]
call fcn.004381e0
mov eax, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46196b
mov dword [esp + 0x26c], eax
lea ecx, [esp + 4]
call fcn.004381e0
mov al, 1
pop edi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
add esp, 0x26c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
lea ecx, [esp + 0x1c]
push ecx
push edi
mov esi, 1
call ebx
test eax, eax
je 0x461996
inc esi
cmp esi, 3
jge 0x461996
lea edx, [esp + 0x1c]
push edx
push edi
call ebx
test eax, eax
jne 0x461984
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 3
setl bl
mov dword [esp + 0x274], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004381e0
mov ecx, dword [esp + 0x26c]
pop esi
mov al, bl
pop ebx
pop edi
mov dword fs:[0], ecx
add esp, 0x26c
ret
Function at 0x463610
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5cee86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], 0
push 0x5dbe20
call fcn.0043bc00
mov byte [esp + 0x20], 1
lea ecx, [edi + 4]
push 0x5dbe20
call fcn.0043bc00
mov byte [esp + 0x20], 2
lea ebp, [edi + 8]
push 0x5dbe20
mov ecx, ebp
call fcn.0043bc00
mov byte [esp + 0x20], 3
sub esp, 8
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00438190
mov byte [esp + 0x28], 4
mov byte [esp + 0x28], 3
call fcn.0045ee00
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov esi, eax
call fcn.00438190
mov byte [esp + 0x28], 5
mov byte [esp + 0x28], 3
call fcn.0045ee70
add esp, 8
mov ebx, eax
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.0040e2b0
mov byte [esp + 0x20], 6
push eax
mov ecx, ebp
call fcn.00403750
mov byte [esp + 0x20], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4636f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esi, ebx
dec esi
push esi
push ebx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040de10
mov byte [esp + 0x20], 8
push eax
lea ecx, [edi + 4]
call fcn.00403750
mov byte [esp + 0x20], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46373e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push 0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040de10
mov byte [esp + 0x20], 0xa
push eax
mov ecx, edi
call fcn.00403750
mov byte [esp + 0x20], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x463781
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004381e0
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 8
Function at 0x466c40
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x5cf60f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x16]
mov dword [esp + 0x10], 0
push ecx
mov word [esp + 0x18], ax
call fcn.0051d400
add esp, 0xc
push 0
push 0x26
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push 0x5dc7b4
push eax
call fcn.004368f0
lea edi, [esp + 0x18]
add esp, 0xc
add edi, 0xfffffffe
jmp 0x466cb0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x466cb0
mov ecx, 0x10
mov esi, str.Internet_Exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0x81c]
mov ecx, esi
cmp eax, 0xffffffff
jne 0x466ced
push 0x5dbe20
call fcn.0043bf90
jmp 0x466cf7
lea edx, [esp + 0xc]
push edx
call fcn.0043bf90
mov dword [esp + 0x814], 0
mov ecx, dword [esp + 0x80c]
mov dword [esp + 8], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x810
ret 4
Function at 0x467e18
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5cf938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
mov esi, ecx
mov dword [esp + 0x78], 0
mov ecx, dword [esp + 0x80]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x468021
jl 0x467e72
push str.mailto:
push ecx
call fcn.0051d47a
add esp, 8
test eax, eax
je 0x467e72
mov ecx, dword [esp + 0x80]
sub eax, ecx
sar eax, 1
jne 0x467e72
push 1
push 0
push str.__new
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x468021
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004673c0
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x80]
cmp dword [eax - 0xc], 0
jl 0x467ead
push str.http:__agent.mail.ru_flashinstall
push eax
call fcn.0051d47a
add esp, 8
test eax, eax
je 0x467ead
sub eax, dword [esp + 0x80]
sar eax, 1
je 0x467eb7
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x467ee0
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.00466c40
mov byte [esp + 0x78], 2
push eax
lea ecx, [esp + 0x10]
call fcn.00439f20
mov byte [esp + 0x78], 1
lea ecx, [esp + 4]
call fcn.004381e0
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x467f0d
mov ecx, dword [esp + 0x80]
push 1
push 0
push str.__new
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x468013
lea ecx, [esp + 0x14]
call fcn.00438090
mov byte [esp + 0x78], 3
push 0
sub esp, 8
mov ecx, esp
mov dword [esp + 0x10], esp
push str.mozilla
call fcn.0043bf90
mov byte [esp + 0x84], 4
mov byte [esp + 0x84], 3
lea ecx, [esp + 0x18]
call fcn.00439ae0
mov edx, dword [esp + 0x80]
cmp eax, 0xffffffff
mov eax, dword [esp + 0xc]
push edx
lea ecx, [esp + 0x18]
push eax
je 0x467f66
push str.__s___url___s_
jmp 0x467f6b
push str.__s____s_
push ecx
call fcn.00403bb0
add esp, 0x10
push 0x44
lea edx, [esp + 0x30]
push 0
push edx
call fcn.0051d400
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov eax, 1
mov word [esp + 0x60], ax
xor eax, eax
lea edx, [esp + 0x30]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
push eax
push 0
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x80], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x467ff1
mov ecx, dword [esp + 0x80]
push 1
push eax
push str.__new
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x14]
call fcn.004381e0
mov byte [esp + 0x78], 0
lea ecx, [esp + 0xc]
call fcn.004381e0
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x80]
call fcn.004381e0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop esi
add esp, 0x78
ret 8
Function at 0x471970
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d03a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 1
xor eax, eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x90], eax
mov eax, dword [ebp + 0x38]
mov dword [esi + 0xbc], eax
mov ecx, dword [ebp + 0x30]
mov dword [esi + 0xa0], ecx
mov edx, dword [ebp + 0x3c]
mov dword [esi + 0xc8], edx
lea edi, [esi + 0xac]
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00439f20
lea ebx, [esi + 0xb4]
lea ecx, [ebp + 0x14]
push ecx
mov ecx, ebx
call fcn.00439f20
mov edx, dword [ebp + 0x34]
mov dword [esi + 0xc0], edx
cmp dword [esi + 0xd8], 0
jne 0x471a0a
test dword [ebp + 8], 0x80000
je 0x471a0a
mov dword [esi + 0xd4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x65c59c], 0
jne 0x471a33
push eax
mov eax, dword [esi + 0xbc]
push eax
push 0x4717c0
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x65c59c], eax
mov ecx, 0x65c598
call fcn.00485850
mov dword [0x65c5a0], esi
mov byte [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [edi]
push esi
mov edx, dword [esi + 0xbc]
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
push edx
mov edx, dword [esi + 0xc0]
push edx
mov edx, dword [esi + 0xa0]
push edx
mov edx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push edx
push edi
mov edx, dword [ebp + 0x1c]
push ebx
push edx
push eax
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x9c], eax
mov dword [ebp - 4], 1
mov ecx, dword [0x65c59c]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor eax, eax
mov dword [0x65c59c], eax
mov dword [0x65c5a0], eax
cmp dword [esi + 0x9c], eax
je 0x471b76
mov dword [esi + 0x84], 1
mov edx, dword [ebp + 0x2c]
lea eax, [edi + edx]
push eax
mov ecx, dword [ebp + 0x28]
lea edx, [ebx + ecx]
push edx
push edi
push ebx
lea ecx, [ebp - 0x24]
call fcn.004a2d50
mov byte [ebp - 4], 4
test eax, eax
je 0x471ae2
lea ecx, [eax + 4]
jmp 0x471ae4
xor ecx, ecx
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov edi, dword [ecx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + 8]
mov dword [eax + 8], edi
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, esi
mov edx, dword [edx + 0x68]
call edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004a2ce0
cmp dword [esi + 0xe4], 0
jne 0x471b36
push esi
push str.MAKFC_CWnd
mov eax, dword [esi + 0x9c]
push eax
call dword [sym.imp.USER32.dll_SetPropW]
mov dword [esi + 0xe4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004381e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004381e0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004381e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004381e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x475b30
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5d074e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.00485ab0
xor edi, edi
mov dword [esp + 0x134], edi
lea ecx, [esi + 0xac]
mov dword [esi], 0x5e50a0
call fcn.00438090
mov byte [esp + 0x134], 1
lea ecx, [esi + 0xb4]
call fcn.00438090
mov ebx, 2
mov byte [esp + 0x134], bl
lea ecx, [esi + 0xf8]
call fcn.004759c0
mov byte [esp + 0x134], 3
lea eax, [esp + 0x18]
mov ebp, 1
push eax
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0xf0], ebp
mov dword [esi + 0xf4], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x120], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x15c], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0x144], edi
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp dword [esp + 0x28], ebx
sete cl
mov dword [esi + 0x168], ecx
cmp eax, 5
ja 0x475c96
jne 0x475c92
cmp dword [esp + 0x20], ebp
jae 0x475c96
xor ecx, ecx
jmp 0x475c98
mov ecx, ebp
cmp eax, 6
sbb edx, edx
inc edx
mov dword [esi + 0x16c], ecx
mov dword [esi + 0x170], edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebp, eax
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 0xc
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebx
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x168]
mov dword [0x64a118], eax
mov ecx, dword [esi + 0x16c]
mov dword [0x64a11c], ecx
mov edx, dword [esi + 0x170]
mov dword [0x65c584], edx
cmp dword [esi + 0x16c], edi
je 0x475d0e
cmp dword [esp + 0x10], 0x18
jl 0x475d0e
mov eax, 1
mov dword [0x64a120], eax
jmp 0x475d19
mov dword [0x64a120], edi
mov eax, 1
mov dword [esi + 0xd0], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0xdc], eax
mov dword [esi + 0x154], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x14c], edi
mov dword [esi + 0x150], eax
mov dword [esi + 0x88], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0x164], edi
mov dword [esi + 0x160], edi
mov dword [esp + 0x134], 0xffffffff
mov ecx, dword [esp + 0x12c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x477a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d09c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
mov ebp, dword [esp + 0x30]
mov ecx, ebp
call fcn.00438090
mov dword [esp + 0x28], esi
mov eax, dword [ebp]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
or eax, ecx
mov dword [esp + 0x1c], 1
jge 0x477a7e
push 1
mov ecx, ebp
call fcn.00402650
mov ecx, dword [ebx + 0x50]
mov edi, dword [ebp]
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
cmp word [ecx], si
je 0x477b6f
mov dword [esp + 0x10], 2
jmp 0x477aa5
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x477ad4
mov edx, dword [ebx + 0x50]
movzx eax, word [edx]
push eax
call fcn.0051e60b
add esp, 4
test eax, eax
jne 0x477ac9
mov ecx, dword [ebx + 0x50]
cmp word [ecx], 0x5f
jne 0x477b6f
mov edx, dword [ebx + 0x50]
mov ax, word [edx]
mov word [edi], ax
jmp 0x477b12
jle 0x477b6f
mov ecx, dword [ebx + 0x50]
movzx edx, word [ecx]
push edx
call fcn.0051e60b
add esp, 4
test eax, eax
jne 0x477b09
mov eax, dword [ebx + 0x50]
movzx ecx, word [eax]
push ecx
call fcn.0051e68c
add esp, 4
test eax, eax
jne 0x477b09
mov edx, dword [ebx + 0x50]
cmp word [edx], 0x5f
jne 0x477b6f
mov eax, dword [ebx + 0x50]
mov cx, word [eax]
mov word [edi], cx
mov edx, dword [esp + 0x10]
add edi, 2
mov esi, edi
sub esi, dword [esp + 0x18]
lea eax, [edx - 1]
sar esi, 1
cmp esi, eax
jl 0x477b5a
mov eax, dword [ebp]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x477b4b
push edx
mov ecx, ebp
call fcn.00402650
mov edx, dword [esp + 0x10]
mov edi, dword [ebp]
inc edx
mov dword [esp + 0x18], edi
lea edi, [edi + esi*2]
mov dword [esp + 0x10], edx
add dword [ebx + 0x50], 2
mov ecx, dword [ebx + 0x50]
inc dword [esp + 0x14]
cmp word [ecx], 0
jne 0x477aa1
xor edx, edx
mov word [edi], dx
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test eax, eax
je 0x477b8c
push ecx
push eax
call fcn.0051d859
add esp, 8
test eax, eax
jl 0x477bb7
mov ecx, dword [ebp]
cmp eax, dword [ecx - 8]
jg 0x477bb7
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp]
pop edi
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [esp + 0x1c]
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
push 0x80070057
call fcn.00401300
int3