joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1460
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50a917
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.004f5b0e
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.004f5b0e
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004c1f80
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4c1fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50a9f0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00501e39
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4c2003
xor al, al
jmp 0x4c212f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4c2025
xor al, al
jmp 0x4c212f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4c2038
xor al, al
jmp 0x4c212f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4c204c
xor al, al
jmp 0x4c212f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004f5bbe
test eax, eax
jne 0x4c2080
xor al, al
jmp 0x4c212f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x5487e4
mov dword [esp + 0x20], ebp
call fcn.00501e39
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004fea1a
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004fea71
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4c2114
mov ax, word [ebx]
test ax, ax
je 0x4c2106
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004c2150
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4c20ea
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004fea71
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4c2690
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.00500203
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4c26d6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004e6814
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x568164
push ecx
call fcn.004e7f6e
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4ccea0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004d32b0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x4ccf99
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.004647e0
test eax, eax
jne 0x4ccf99
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.004647e0
test eax, eax
jne 0x4ccf99
lea edx, [esp + 0x10]
push 0x56a0d8
push edx
call fcn.004e7a60
mov esi, eax
add esp, 8
test esi, esi
jne 0x4ccf6a
lea eax, [esp + 0x10]
push 0x56a0d4
push eax
call fcn.004e7a60
mov esi, eax
add esp, 8
test esi, esi
jne 0x4ccf6a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4ccf6d
mov byte [esi], 0
push 0x56989c
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x4d31f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x50b908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x4d32a0
mov eax, dword [0x56aaf4]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004f7f09
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004f7f58
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004f7eb5
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4d3287
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4d3287
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004f7ad9
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d63a0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50bd90
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4d6547
mov ecx, dword [0x56aaf4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4d649c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004d50c0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004f7c12
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004f7ad9
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x56989c
call fcn.004f7b47
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004d5480
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004f7c12
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004f7ad9
lea ecx, [esp + 0xc]
call fcn.004f7fed
mov ecx, dword [esp + 0xc]
push 0x56a2dc
push ecx
call fcn.004e6944
add esp, 8
test eax, eax
je 0x4d64c4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4d63fd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004f7ad9
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004f7ad9
jmp 0x4d654b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004d6140
test eax, eax
push 0
je 0x4d652f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004d47e0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4d6515
cmp eax, 0x64
jg 0x4d6503
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4d64a0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4d64a0
cmp eax, 0x64
jge 0x4d649c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4d64a0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004d47e0
mov esi, eax
jmp 0x4d64a0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4d6555
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4f9f06
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f9f3e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004f7f80
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f7f58
jmp 0x4f9f4a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4fb700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4fb742
call fcn.00501e39
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4fb742
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4fb739
xor eax, eax
jmp 0x4fb74a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004fb750
pop edi
pop esi
pop ebx
ret 4

Function at 0x502369
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x502397
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5023b5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005022cf
jmp 0x5023b5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5023b5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005022cf
test edi, edi
mov eax, edi
jne 0x50239f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408f80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b21b
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x438b10]
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 byte [ebp - 0x145], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x408fce
xor al, al
jmp 0x4090aa
mov dword [ebp - 0x140], 0x128
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x408ffd
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4090aa
mov dword [ebp - 0x144], 0
push 4
lea ecx, [ebp - 0x14c]
call fcn.0040a950
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00407970
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.00408500
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.00415540
add esp, 8
test eax, eax
je 0x409070
mov byte [ebp - 0x145], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.00408240
jmp 0x40909a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.00408240
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x408ffd
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x145]
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.00412229
mov esp, ebp
pop ebp
ret
Function at 0x409130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b26b
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x438b10]
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 dword [ebp - 4], 0
push 0x42c28c
push 0x43b3e8
call fcn.00401340
add esp, 8
movzx eax, al
test eax, eax
je 0x409192
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402070
jmp 0x409319
lea eax, [ebp - 0x3c]
push eax
call fcn.004109a0
add esp, 4
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040d770
add esp, 8
mov ax, word [0x42c528]
mov word [ebp - 0x50], ax
xor eax, eax
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
mov dword [ebp - 0x46], eax
mov dword [ebp - 0x42], eax
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x20]
add edx, 0x76c
push edx
push str._.4d__.2d__.2d__.2d:_.2d:_.2d
push 0x14
lea eax, [ebp - 0x50]
push eax
call fcn.00415033
add esp, 0x24
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401e40
mov byte [ebp - 4], 1
push 0x42c344
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0xf8]
push edx
call fcn.00401450
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x100]
push ecx
lea edx, [ebp - 0xe0]
push edx
call fcn.00406a20
add esp, 0xc
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
push eax
lea ecx, [ebp - 0x68]
call fcn.00402140
lea ecx, [ebp - 0xe0]
call fcn.00402070
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf8]
call fcn.00402070
push str.connectLog.txt
push 0x43b3e8
lea eax, [ebp - 0x84]
push eax
call fcn.00406a70
add esp, 0xc
push 0x42c560
lea ecx, [ebp - 0x84]
call fcn.00405400
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00414a9c
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00406610
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x6c]
push eax
push 1
mov ecx, dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00405400
push eax
call fcn.00414eab
add esp, 0x10
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00414623
add esp, 4
lea ecx, [ebp - 0x84]
call fcn.00402070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00402070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402070
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.00412229
mov esp, ebp
pop ebp
ret
Function at 0x409650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x438b10]
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 dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x40], 0
je 0x409695
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x45]
test ecx, ecx
jne 0x4096a1
mov al, 1
jmp 0x409865
mov dword [ebp - 0x18], 8
call fcn.0040b5e0
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x94], eax
call fcn.0040b5e0
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x90]
push edx
call fcn.0040b630
add esp, 8
movzx eax, al
test eax, eax
je 0x4096f0
xor al, al
jmp 0x409865
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00407440
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004053d0
mov ecx, eax
call fcn.004022e0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00406610
add esi, eax
push esi
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x34]
call fcn.004053d0
mov ecx, eax
call fcn.004022e0
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x48
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x40]
call fcn.0040d360
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x40977d
cmp dword [ebp - 0x98], 1
je 0x409784
cmp dword [ebp - 0x98], 3
je 0x409821
jmp 0x409839
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x45], 0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x34]
call fcn.004053d0
mov ecx, eax
call fcn.004022e0
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x38], ecx
je 0x4097ea
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x34]
call fcn.004053d0
mov ecx, eax
call fcn.004022e0
push eax
call fcn.00414eab
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x4097ea
mov byte [ebp - 0x7c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402070
mov al, byte [ebp - 0x7c]
jmp 0x409865
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x45]
test ecx, ecx
jne 0x40980d
mov byte [ebp - 0x7b], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402070
mov al, byte [ebp - 0x7b]
jmp 0x409865
cmp dword [ebp - 0x38], 0
jne 0x40981f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040aa00
jmp 0x409851
mov byte [ebp - 0x7a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402070
mov al, byte [ebp - 0x7a]
jmp 0x409865
mov byte [ebp - 0x79], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402070
mov al, byte [ebp - 0x79]
jmp 0x409865
jmp 0x409703
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.00412229
mov esp, ebp
pop ebp
ret
Function at 0x426a32
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x438b10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00418277
mov dword [ebp - 0x14], eax
cmp dword [0x43c45c], esi
jne 0x426b25
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x426ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x426c05
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x426c05
push 0x432cb8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426c05
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43c45c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43c460], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43c464], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43c46c], eax
test eax, eax
je 0x426b22
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43c468], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x426b4a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x426b3d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x426b5f
push 4
pop eax
jmp 0x426c07
cmp dword [ebp - 0x14], esi
je 0x426b5f
push dword [0x43c45c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x426b44
mov eax, dword [0x43c468]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x426bbd
cmp dword [0x43c46c], edi
je 0x426bbd
push eax
call ebx
push dword [0x43c46c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x426bbd
test eax, eax
je 0x426bbd
call ecx
test eax, eax
je 0x426bb2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x426bb2
test byte [ebp - 8], 1
jne 0x426bbd
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x426bed
mov eax, dword [0x43c460]
cmp eax, edi
je 0x426bea
push eax
call ebx
test eax, eax
je 0x426bea
call eax
mov esi, eax
test esi, esi
je 0x426bea
mov eax, dword [0x43c464]
cmp eax, edi
je 0x426bea
push eax
call ebx
test eax, eax
je 0x426bea
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43c45c]
call ebx
test eax, eax
je 0x426c05
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x426c07
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412229
mov esp, ebp
pop ebp
ret