joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4549f0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 0x10]
call fcn.00454330
mov ebx, eax
mov eax, dword [edi + 4]
shr eax, 1
not eax
test al, 1
mov dword [esp + 0x14], ebx
je 0x454a34
mov eax, dword [edi + 8]
test eax, eax
jne 0x454ae8
mov ecx, dword [edi + 0xc]
push ecx
push ebx
call fcn.0047a268
add esp, 8
test eax, eax
jne 0x454b07
mov eax, dword [edi + 0x10]
xor esi, esi
test eax, eax
je 0x454aac
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454a40
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454a56
sub eax, esi
sar eax, 1
lea ebx, [eax + edx]
lea ebx, [ebx + ebx + 0x200]
push ebx
call fcn.0045502b
mov esi, eax
add esp, 4
test esi, esi
je 0x454a8a
push ebx
push 0
push esi
call fcn.0047c3b0
add esp, 0xc
mov ecx, dword [edi + 0x10]
mov edx, esi
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x454a90
mov eax, dword [esp + 0x14]
mov ebx, esi
call fcn.004544d0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x454ac9
mov edx, dword [edi + 0x2c]
push 0
push esi
push ebp
push 2
push edx
call eax
mov ebx, eax
test ebx, ebx
jle 0x454bda
mov ecx, dword [edi + 0x14]
mov eax, dword [ebp]
xor ebx, ebx
cmp ecx, ebx
jbe 0x454b1b
xor edx, edx
lea eax, [ecx + eax - 1]
div ecx
imul eax, ecx
add dword [edi + 0x20], eax
adc dword [edi + 0x24], ebx
jmp 0x454b22
cmp eax, 1
jne 0x454a34
mov ebx, dword [edi + 0xc]
mov esi, dword [esp + 0x14]
call fcn.00454980
test eax, eax
mov ebx, esi
jne 0x454a34
test ebx, ebx
je 0x454b14
push ebx
call fcn.0045505b
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cdq
add dword [edi + 0x20], eax
adc dword [edi + 0x24], edx
test byte [edi + 4], 4
je 0x454b31
add dword [edi + 0x18], 1
jmp 0x454bda
cmp esi, ebx
jne 0x454b3d
or ebx, 0xffffffff
jmp 0x454be7
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x454b42
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
call fcn.00454150
mov edi, eax
mov edx, edi
add esp, 4
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x454b66
call fcn.004543d0
push edi
call fcn.00454620
add esp, 4
test eax, eax
jne 0x454b9c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x454b9c
push edi
call fcn.004546e0
add esp, 4
cmp edi, ebx
je 0x454ba9
push edi
call fcn.0045505b
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffff8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x454be7
push esi
call fcn.0045505b
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x454bf8
push eax
call fcn.0045505b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x454c00
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, 1
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x24], 0
jne 0x454c2a
add dword [edi + 0x18], esi
mov ebx, dword [ebp + 4]
call fcn.00454330
mov esi, eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x24], esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454c40
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454c56
sub eax, esi
sar eax, 1
lea esi, [eax + edx]
lea esi, [esi + esi + 0x200]
push esi
call fcn.0045502b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x454c8a
push esi
push 0
push ebx
call fcn.0047c3b0
add esp, 0xc
mov ecx, dword [edi + 0x10]
mov edx, ebx
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x454c90
mov eax, dword [esp + 0x24]
call fcn.004544d0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffff8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
je 0x454d45
movzx edx, word [ebp + 0x1a]
movzx eax, word [ebp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x454d1e
lea ecx, [esp + 0x18]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x454d1e
lea eax, [esp + 0x18]
push eax
push 0
mov ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp + 0x1c]
mov eax, dword [edi + 4]
and ecx, 0x27
test al, 0x10
je 0x454d36
and ecx, 0xfffffffe
test al, 0x20
je 0x454d3d
and ecx, 0xfffffffd
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x454d5c
mov edx, dword [edi + 0x2c]
push 0
push ebx
push ebp
push 3
push edx
call eax
mov esi, eax
jmp 0x454d60
mov esi, dword [esp + 0x14]
test ebx, ebx
je 0x454d6d
push ebx
call fcn.0045505b
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x454d7e
push eax
call fcn.0045505b
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x459413
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x45944c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004593d6
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040b620
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x45b058
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x45b09b
call fcn.0045ed7b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45b09b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45b0b6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0045ac12
test ebx, ebx
mov esi, eax
je 0x45b0b4
test edi, edi
je 0x45b0b4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x45b8b0
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x4bea30]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x45b94e
push 0x49892c
push 4
push eax
call fcn.0047af6c
push eax
call fcn.004049f0
add esp, 0x10
push ebx
push edi
call fcn.0047c708
mov edi, dword [eax]
call fcn.0047c708
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0047c6ae
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0047c708
cmp dword [eax], ebx
je 0x45b965
call fcn.0047c708
push dword [eax]
call fcn.004555db
pop ecx
jmp 0x45b96c
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x45b8ff
jmp 0x45b9de
call fcn.0047c708
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x45b9da
cmp dword [ebp - 0x40], esi
jae 0x45b9da
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0047c3b0
add esp, 0xc
push 0x498704
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x45b9cc
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x45b9cc
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x45b9cc
push ebx
push ebx
push esi
jmp 0x45b9d2
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x45b9dc
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0047a105
add ebp, 0x1f4
leave
ret
Function at 0x461478
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x490942
call fcn.0047c20c
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0045ed7b
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4614c3
call fcn.0045ed7b
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4614d4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4614e1
or eax, 0xffffffff
jmp 0x46163d
mov ecx, esi
call fcn.00460fbf
mov dword [ebp - 0x14], eax
call fcn.0045819b
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x46155f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x46155f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46155f
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004569d5
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x46155f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x46155f
mov ecx, ebx
call fcn.0045dc71
test eax, eax
je 0x46155f
push 0
mov ecx, ebx
call fcn.0045dc8c
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00459ef0
push dword [ebp - 0x14]
call fcn.004580f3
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00461280
xor edi, edi
cmp eax, edi
je 0x4615bc
test byte [esi + 0x3c], 0x10
je 0x4615a6
push 4
pop edi
mov ecx, esi
call fcn.0045db0b
test ax, 0x100
je 0x46159c
push 5
pop edi
push edi
mov ecx, esi
call fcn.00457cbb
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4615bc
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0045de3a
or dword [ebp - 4], 0xffffffff
jmp 0x4615e7
cmp dword [ebp - 0x28], edi
je 0x4615f5
push 1
mov ecx, ebx
call fcn.0045dc8c
cmp dword [ebp - 0x2c], edi
je 0x461605
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x46161e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x46161e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00460ff9
cmp dword [esi + 0x58], edi
je 0x46163a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0047c2b1
ret
Function at 0x46166e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0045ed7b
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4616a5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00461280
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4616fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x46171d
cmp dword [edi + 0x54], 0
jne 0x46171d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0045ed7b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004616c4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x476807
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x476b57
dec esp
add eax, dword [eax]
invalid
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.00474bdf
sub eax, 0xff0e828f
mov ch, 0x60
Function at 0x47a105
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bea30]
jne 0x47a10f
repz ret
jmp fcn.00480dd3

Function at 0x47f0d7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4bebd0]
je 0x47f0f2
inc edi
cmp edi, 0x17
jb 0x47f0e3
cmp edi, 0x17
jae 0x47f272
push ebp
push 3
call fcn.00488fe3
cmp eax, 1
pop ecx
je 0x47f23e
push 3
call fcn.00488fe3
test eax, eax
pop ecx
jne 0x47f126
cmp dword [0x4be784], 1
je 0x47f23e
cmp ebx, 0xfc
je 0x47f271
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4c2a40
push ebp
call fcn.004838c7
add esp, 0xc
test eax, eax
je 0x47f15c
push esi
push esi
push esi
push esi
push esi
call fcn.0047b184
add esp, 0x14
push 0x104
mov esi, 0x4c2a59
push esi
push 0
mov byte [0x4c2b5d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47f1a0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004838c7
add esp, 0xc
test eax, eax
je 0x47f1a0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047b184
add esp, 0x14
push esi
call fcn.0047e330
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47f1e5
push esi
call fcn.0047e330
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c2d54
push 0x49daac
sub ecx, eax
push ecx
push eax
call fcn.00488f30
add esp, 0x14
test eax, eax
je 0x47f1e5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047b184
add esp, 0x14
jmp 0x47f1e7
xor esi, esi
push 0x49daa8
push ebx
push ebp
call fcn.00488ebf
add esp, 0xc
test eax, eax
je 0x47f207
push esi
push esi
push esi
push esi
push esi
call fcn.0047b184
add esp, 0x14
push dword [edi*8 + 0x4bebd4]
push ebx
push ebp
call fcn.00488ebf
add esp, 0xc
test eax, eax
je 0x47f229
push esi
push esi
push esi
push esi
push esi
call fcn.0047b184
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00488d02
add esp, 0xc
jmp 0x47f271
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47f271
cmp ebp, 0xffffffff
je 0x47f271
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4bebd4]
push dword [esi]
call fcn.0047e330
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x488d02
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0047fc9b
xor ebx, ebx
cmp dword [0x4c3540], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x488dd8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x488eb8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x488eb8
push eax
call fcn.0047fc2d
mov dword [esp], 0x49dd54
push edi
mov dword [0x4c3540], eax
call esi
push eax
call fcn.0047fc2d
mov dword [esp], 0x49dd40
push edi
mov dword [0x4c3544], eax
call esi
push eax
call fcn.0047fc2d
mov dword [0x4c3548], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047c7f5
test eax, eax
pop ecx
pop ecx
je 0x488da6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047b184
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x488dd8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0047fc2d
cmp eax, ebx
pop ecx
mov dword [0x4c3550], eax
je 0x488dd8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047fc2d
pop ecx
mov dword [0x4c354c], eax
mov eax, dword [0x4c354c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x488e5d
cmp dword [0x4c3550], ecx
je 0x488e5d
push eax
call fcn.0047fca4
push dword [0x4c3550]
mov esi, eax
call fcn.0047fca4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x488e5d
cmp edi, ebx
je 0x488e5d
call esi
cmp eax, ebx
je 0x488e2a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x488e2a
test byte [ebp - 0x18], 1
jne 0x488e5d
lea eax, [ebp - 0x10]
push eax
call fcn.0047c82c
test eax, eax
pop ecx
je 0x488e45
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047b184
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x488e54
or dword [ebp + 0x10], 0x200000
jmp 0x488e98
or dword [ebp + 0x10], 0x40000
jmp 0x488e98
mov eax, dword [0x4c3544]
cmp eax, dword [ebp - 8]
je 0x488e98
push eax
call fcn.0047fca4
cmp eax, ebx
pop ecx
je 0x488e98
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x488e98
mov eax, dword [0x4c3548]
cmp eax, dword [ebp - 8]
je 0x488e98
push eax
call fcn.0047fca4
cmp eax, ebx
pop ecx
je 0x488e98
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c3540]
call fcn.0047fca4
cmp eax, ebx
pop ecx
je 0x488eb8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x488eba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48fd8a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4bea30]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0048fd1f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0047c3b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x48fdd9
cmp dword [ebp - 0x1c], 5
jb 0x48fdf1
jmp 0x48fded
cmp dword [ebp - 0x10], 1
jne 0x48fdf1
cmp dword [ebp - 0x1c], 4
ja 0x48fded
jne 0x48fdf1
cmp dword [ebp - 0x18], 0
jbe 0x48fdf1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x49f738
call fcn.0048fbf3
test eax, eax
jge 0x48fe12
mov byte [0x4c3814], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047a105
add ebp, 0x78
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x808004]
jne 0x40100a
repz ret
jmp fcn.00401587

Function at 0x40444b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x808004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00401e3b
and dword [ebp - 0x14], 0
cmp dword [0x80a5a8], 0
mov dword [ebp - 0x18], eax
jne 0x4044fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4045a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4045a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x80a5a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x80a5ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x80a5b0], eax
call edi
push eax
call esi
mov dword [0x80a5b8], eax
test eax, eax
je 0x4044fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x80a5b4], eax
mov eax, dword [0x80a5b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404557
cmp dword [0x80a5b8], ecx
je 0x404557
push eax
call esi
push dword [0x80a5b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404557
test ebx, ebx
je 0x404557
call edi
test eax, eax
je 0x40454e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40454e
test byte [ebp - 8], 1
jne 0x404557
or dword [ebp + 0x10], 0x200000
jmp 0x40458a
mov eax, dword [0x80a5ac]
cmp eax, dword [ebp - 0x18]
je 0x40458a
push eax
call esi
test eax, eax
je 0x40458a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40458a
mov eax, dword [0x80a5b0]
cmp eax, dword [ebp - 0x18]
je 0x40458a
push eax
call esi
test eax, eax
je 0x40458a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x80a5a8]
call esi
test eax, eax
je 0x4045a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4045a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret