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

Disassembly:
mov eax, 0x463e78
call fcn.0043c274
sub esp, 0xc
push esi
push edi
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov esi, 0x467588
jne 0x42f923
mov eax, esi
push 0x20019
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0041c58b
cmp eax, edi
jne 0x42f961
cmp dword [ebp + 0x3c], edi
je 0x42f940
mov esi, dword [ebp + 0x3c]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
mov dword [ebp + 8], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x18]
cmp eax, edi
mov dword [0x47e608], eax
je 0x42f970
mov esi, dword [ebp + 0x5c]
cmp dword [ebp - 0x10], edi
je 0x42f981
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
lea ecx, [ebp + 0xc]
call fcn.0040125c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x430304
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0043037d
test al, al
je 0x430369
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x430369
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push 0x47a1ac
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x431ce5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x431cfb
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x431d30
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413799
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x432c13
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x432c1f
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x4330be
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x464377
call fcn.0043c274
sub esp, 0x138
and byte [ebp - 0x144], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
push 0x479910
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x43319b
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, 0x4798f0
je 0x433128
mov eax, 0x4798d0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x4675b8
mov esi, 0x4675b0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00430560
push 0x4764a4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00404bc9
lea ecx, [ebp - 0x40]
call fcn.00432d03
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401cec
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
jmp 0x4331ea
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x4675b8
mov esi, 0x4675b0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00430560
push 0x4764a4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00404bc9
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401cec
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.0040125c
cmp dword [ebp - 0x10], 0
je 0x433203
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x433203
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4337db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x4337f1
mov dword [ebp + 0xc], 4
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x433826
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413799
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x4370aa
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x437b62
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x437bc9
call esi
cmp eax, 0x3f0
jne 0x437bbc
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x437bc5
push 1
jmp 0x437be8
cmp eax, ebx
je 0x437be7
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x437be7
call esi
cmp eax, 0x7a
je 0x437bf7
push ebx
push dword [ebp - 4]
call fcn.00437b53
pop ecx
pop ecx
jmp 0x437cee
push dword [ebp - 8]
call fcn.0043c844
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x437c3d
push ebx
push dword [ebp - 4]
call fcn.00437b53
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x437c35
push esi
call fcn.0043ba49
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x437cee
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x437c87
push ebx
push dword [ebp - 4]
call fcn.00437b53
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x437c82
push esi
call fcn.0043ba49
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x437cee
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 0xc], bl
jbe 0x437cc6
lea eax, [esi + 4]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x437cb3
add dword [ebp + 8], 8
inc edi
cmp edi, dword [esi]
jb 0x437c96
jmp 0x437cc6
cmp byte [ebp + 0xc], bl
je 0x437cc2
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0xc], bl
jne 0x437cc6
mov byte [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00437b53
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x437ceb
push esi
call fcn.0043ba49
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438407
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push edi
mov edi, ecx
call fcn.00413338
xor ebx, ebx
cmp eax, 1
jne 0x4384a4
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x47aa68
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x438491
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push ebx
push ebx
push 0x47aa50
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x438468
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
push ebx
push 0x47aa34
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x438491
mov byte [ebp - 0x830], bl
cmp dword [ebp - 4], ebx
je 0x4384a4
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x4384a4
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004380b3
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 4], eax
setne cl
pop edi
mov al, cl
pop ebx
leave
ret 0x14
Function at 0x438bef
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x438c27
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x438c33
mov eax, dword [esi + 0x5c]
jmp 0x438c7c
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x438c7a
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x438c58
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x438c3c
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x439355
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x464c28
call fcn.0043c274
sub esp, 0x2c8
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00439555
test al, 0x10
pop ecx
je 0x4394a9
lea eax, [ebp + 8]
push 0x479cb4
push eax
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x10], 1
call 0x4394dc
mov eax, dword [eax + 8]
add esp, 0xc
test eax, eax
jne 0x4393ad
mov eax, 0x467588
lea ecx, [ebp - 0x2d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0040125c
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x43944c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp dword [ebp - 0x10], 0
je 0x439441
lea eax, [ebp - 0x2a8]
push 0x476d64
push eax
call ebx
test eax, eax
je 0x43942e
lea eax, [ebp - 0x2a8]
push 0x479cbc
push eax
call ebx
test eax, eax
je 0x43942e
sub esp, 0x28
lea ecx, [ebp - 0x2a8]
mov eax, esp
mov dword [ebp - 0x10], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call 0x4394dc
add esp, 0xc
call fcn.00439355
add esp, 0x28
lea eax, [ebp - 0x2d4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x10], eax
jmp 0x4393e0
test esi, esi
je 0x43944c
push edi
call esi
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x439458
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x43947f
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.00413799
lea eax, [ebp - 0x5c]
push 0x46c538
push eax
call fcn.0043c99a
cmp dword [ebp - 0x14], 0xffffffff
je 0x43948e
test esi, esi
je 0x43948e
push dword [ebp - 0x14]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4394b5
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43948e
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.00413799
lea eax, [ebp - 0x5c]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, 0x464c53
call fcn.0043c274
sub esp, 0x2c
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 0
mov ebx, 0x4675b8
push dword [ebp + 0xc]
mov edi, 0x4675b0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], edi
call fcn.00401cec
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.00404bc9
mov esi, dword [ebp + 8]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.00401cec
mov dword [ebp - 0x10], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x439555
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
test eax, eax
jne 0x43956b
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x439590
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413799
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
pop esi
leave
ret
Function at 0x43a861
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [ebp - 4], eax
je 0x43a8b3
push eax
call fcn.0043c844
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43a8b3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4764a4
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x43a8b7
xor al, al
jmp 0x43a918
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47ac34
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x43a916
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0043c844
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x43a916
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x43a904
mov al, 1
pop ebx
leave
ret 4
Function at 0x451380
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0xd0]
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0xd4]
lea ecx, [esp + 0x10]
push 2
push ecx
mov edx, dword [edi]
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov eax, 0xa
push 0xa0
add ecx, eax
sub ebp, eax
lea eax, [esp + 0x30]
mov dword [esp + 0x14], ecx
push eax
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x2c], 0
je 0x45152f
push 0x47e390
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ebx
call ebp
push 0xffffffffffffffec
push ebx
mov esi, eax
call ebp
push 0
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [esp + 0x20]
mov ecx, dword [edi]
push eax
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
sub edx, eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
shr esi, 0x10
sub edx, ecx
and esi, 0xff7faffc
push edx
push eax
or esi, 0x50000000
push ecx
lea eax, [esp + 0x4c]
push esi
push eax
push 0x47e204
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x45152f
mov ecx, dword [edi]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push ecx
call ebp
push 1
push eax
push 0x30
push esi
mov dword [esp + 0x38], eax
call ebp
push 0x4512c0
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push edi
push 0x47e1e4
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_SetPropW]
push ebp
push 0x47e1c0
push esi
call dword [sym.imp.USER32.dll_SetPropW]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
je 0x451504
mov edx, dword [esp + 0x28]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x30]
push eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push ebp
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 2
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi + 0x14c]
push edi
push esi
call fcn.00451540
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret
Function at 0x453200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x466827
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x4675bc]
push ebp
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x4675b8
mov dword [esp + 0x30], 0x4675b0
lea esi, [esp + eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], 1
test eax, eax
je 0x453259
add eax, 4
jmp 0x45325b
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.00453720
lea ecx, [esp + 0x24]
call fcn.004485f0
push 0
lea ecx, [esp + 0x34]
call fcn.00448630
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x40], 2
test ebp, ebp
je 0x45328e
lea ecx, [ebp - 1]
jmp 0x453290
xor ecx, ecx
mov edx, dword [esp + 0x18]
mov eax, 0x467588
test edx, edx
je 0x45329f
mov eax, edx
mov ax, word [eax + ecx*2]
cmp ax, 0x5c
je 0x453314
test ebp, ebp
je 0x4532b2
lea ecx, [ebp - 1]
jmp 0x4532b4
xor ecx, ecx
test edx, edx
mov eax, 0x467588
je 0x4532bf
mov eax, edx
cmp word [eax + ecx*2], 0x2f
je 0x453314
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 8]
lea edi, [esi + 4]
test eax, eax
jne 0x4532d9
mov eax, 0x467588
cmp word [eax], 0x5c
je 0x453302
mov eax, dword [edi + 4]
test eax, eax
jne 0x4532eb
mov eax, 0x467588
cmp word [eax], 0x2f
je 0x453302
test ebp, ebp
je 0x453302
push 0x5c
push 1
lea ecx, [esp + 0x1c]
call fcn.00401ef6
mov ecx, dword [0x4675ac]
neg esi
sbb esi, esi
push ecx
and esi, edi
push 0
push esi
jmp 0x453357
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
lea esi, [eax + 4]
test ecx, ecx
jne 0x453327
mov ecx, 0x467588
cmp word [ecx], 0x5c
je 0x453343
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x453339
mov ecx, 0x467588
cmp word [ecx], 0x2f
je 0x453343
xor edx, edx
jmp 0x453348
mov edx, 1
mov ecx, dword [0x4675ac]
neg eax
sbb eax, eax
push ecx
and eax, esi
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.00405680
mov edi, dword [esp + 0x48]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, edi
mov dword [edi], 0x4675b8
mov dword [edi + 0x20], 0x4675b0
call fcn.00401cec
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
neg eax
sbb eax, eax
mov byte [esp + 0x40], 0
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea esi, [esp + 0x10]
neg esi
sbb esi, esi
lea eax, [esp + 0x24]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.0043ba49
mov edx, dword [esi + 8]
add esp, 4
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
neg ecx
sbb ecx, ecx
push 1
and ecx, eax
call fcn.0040b46b
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x38]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x459940
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x466a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
mov byte [esp + 0x44], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4599ae
lea ecx, [esp + 0x14]
call fcn.0040b0cd
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x4599e1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00459b20
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00419941
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.0040b0cd
xor al, al
jmp 0x459af4
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x459a0f
cmp eax, ebx
je 0x459a09
cmp edi, ebx
je 0x459a09
push eax
call edi
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x459a46
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x459a3e
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x459a3e
push ecx
call eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x459a3e
cmp edi, ebx
je 0x459a3e
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebp
jmp 0x459a91
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x459a73
cmp eax, ebx
je 0x459a6d
cmp ebp, ebx
je 0x459a6d
push eax
call ebp
mov eax, esi
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x459a9e
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x459a8a
cmp edi, ebx
je 0x459a8a
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x459a9a
cmp edi, ebx
je 0x459a9a
push eax
call edi
xor al, al
jmp 0x459af4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x20]
push eax
push esi
call fcn.004596d0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x459acf
cmp ebp, ebx
je 0x459acf
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x459ae2
cmp edi, ebx
je 0x459ae2
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x459af2
cmp edi, ebx
je 0x459af2
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8