joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf826
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp + 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004cf450
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x4cf885
push 0x20
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004cf5e4
test eax, eax
jne 0x4cf883
push 0xffffffffffffffff
push 0
mov edx, dword [ebp + 0x14]
push edx
call fcn.004bcd09
mov ecx, dword [ebp + 8]
call fcn.004cf56f
jmp 0x4cf8a4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004af513
mov dword [ebp - 4], 0
mov esp, ebp
pop ebp
ret

Function at 0x4cff14
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004cf49e
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x4cff8d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4cff64
mov eax, dword [ebp - 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0049e267
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4cff81
push 0x100
push 0xff
mov ecx, dword [ebp + 0x10]
call fcn.0049e0b8
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
call fcn.0049e1f3
jmp 0x4cffbe
mov ecx, dword [ebp + 0x10]
call fcn.004eab3a
push eax
push 0xffffffffffffffff
push 0x14d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4cffbe
mov ecx, dword [ebp + 0x10]
call fcn.004eab3a
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004af513
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d7529
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4d7618
mov eax, dword [ebp - 4]
push eax
call fcn.004960e4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d7604
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
cmp edx, dword [ebp - 4]
je 0x4d7604
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.004d7141
test eax, eax
je 0x4d7604
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x4d75ca
mov ecx, dword [ebp - 0xc]
and ecx, 0x18000000
cmp ecx, 0x10000000
jne 0x4d75ca
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
or ecx, 2
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], ecx
jmp 0x4d7604
cmp dword [ebp + 8], 0
je 0x4d7604
mov eax, dword [ebp - 0xc]
and eax, 0x18000000
test eax, eax
jne 0x4d7604
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 2
test edx, edx
je 0x4d7604
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0xfffffffd
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], edx
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
jmp 0x4d7544
mov esp, ebp
pop ebp
ret 4
Function at 0x4db47e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x4db4a2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x4db4dc
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4db4f6
push 0xc9
push str.dlgprop.cpp
call fcn.004ee570
test eax, eax
je 0x4db4f6
int3
xor eax, eax
test eax, eax
jne 0x4db4dc
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x4db5d1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x4db5a1
push 0x583780
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4db54e
push 0xe1
push str.dlgprop.cpp
call fcn.004ee570
test eax, eax
je 0x4db54e
int3
xor ecx, ecx
test ecx, ecx
jne 0x4db534
cmp dword [ebp - 0x18], 0
je 0x4db59f
push 0x583790
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4db595
mov eax, 1
test eax, eax
je 0x4db58f
push 0xe6
push str.dlgprop.cpp
call fcn.004ee570
test eax, eax
je 0x4db58f
int3
xor ecx, ecx
test ecx, ecx
jne 0x4db572
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4db5d1
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x4db5d1
mov ecx, 1
test ecx, ecx
je 0x4db5cb
push 0xed
push str.dlgprop.cpp
call fcn.004ee570
test eax, eax
je 0x4db5cb
int3
xor edx, edx
test edx, edx
jne 0x4db5ae
call fcn.00505a83
cmp dword [eax + 0x1038], 0
je 0x4db5ee
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004db433
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004db2f5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x4db61e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x44], 0
cmp dword [ebp - 8], 0
je 0x4db633
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f746b
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x4f7492
push 0x3cc
push str.afxwin2.inl
call fcn.004ee570
test eax, eax
je 0x4f7492
int3
xor ecx, ecx
test ecx, ecx
jne 0x4f7475
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x506b1c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x506b42
push 0x146
push str.afxtls.cpp
call fcn.004ee570
test eax, eax
je 0x506b42
int3
xor eax, eax
test eax, eax
jne 0x506b28
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x506b61
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x506be4
cmp dword [ebp + 0xc], 0
je 0x506b84
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x506bc9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x506bb0
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x506bb7
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x506bdf
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x506bdf
mov dword [ebp - 4], 0
jmp 0x506b58
cmp dword [ebp - 4], 0
je 0x506c58
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.005071e0
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x506c43
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x506c4a
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x506c61
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x506ca4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x506ca2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00506b1c
jmp 0x506cd9
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00507200
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x506cd9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00506b1c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x506cb2
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8
Function at 0x50a68d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
jne 0x50a6d9
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x50a6d2
mov eax, dword [ebp + 8]
push eax
push 0x585310
call fcn.00465365
add esp, 8
xor eax, eax
jmp 0x50a745
mov eax, 1
jmp 0x50a745
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x50a732
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x50a732
cmp dword [ebp - 8], 0
jne 0x50a732
mov eax, 1
jmp 0x50a745
mov edx, dword [ebp + 8]
push edx
push str.Warning:_registration_database_update_failed_for_key__s._n
call fcn.00465365
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50b665
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ecx, 0x5b8e44
call fcn.0050b7b0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 8]
test ecx, ecx
jne 0x50b74e
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x50b6a6
push 0x2f
push str.ccdata.cpp
call fcn.004ee570
test eax, eax
je 0x50b6a6
int3
xor eax, eax
test eax, eax
jne 0x50b68c
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50b711
push 5
mov ecx, dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x50b711
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004a4192
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.004eaaf0
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
call fcn.004eab3a
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
mov word [edx + 8], cx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0049dbbd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov ax, word [edx + 8]
mov word [ecx], ax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx]
xor eax, eax
cmp edx, 0xffff
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x513408
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5134ab
cmp dword [ebp + 8], 0
je 0x5134ab
lea edx, [ebp - 0xc]
push edx
push 0x5884a4
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [ebp - 0x10]
push edx
call fcn.0050c06e
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53788f
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0x55
push str.oledrop1.cpp
mov eax, dword [ebp - 0x24]
push eax
call fcn.004a12a0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x38], 0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x5378f3
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
or al, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
or al, 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], eax
jmp 0x537920
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x537920
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
or ecx, 2
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x34]
or ecx, 1
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.004f2344
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
jne 0x5379fa
call fcn.004f2333
cmp eax, dword [ebp + 8]
je 0x53794d
jmp 0x5379fa
push 1
push 0x209
push 0x200
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x537985
push 1
push 0x108
push 0x100
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x5379da
cmp dword [ebp - 0x1c], 0x202
je 0x5379a9
cmp dword [ebp - 0x1c], 0x205
je 0x5379a9
cmp dword [ebp - 0x1c], 0x201
je 0x5379a9
cmp dword [ebp - 0x1c], 0x204
jne 0x5379ab
jmp 0x5379fa
cmp dword [ebp - 0x1c], 0x100
jne 0x5379bc
cmp dword [ebp - 0x18], 0x1b
jne 0x5379bc
jmp 0x5379fa
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call fcn.004f835e
neg eax
sbb eax, eax
inc eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [0x5b8f94]
jbe 0x5379f5
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x30], 1
jmp 0x537931
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x30]
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor eax, esi
mov eax, eax
mov eax, ebx
mov ebx, ebx
xor eax, esi
xor esi, ebx
mov ebx, eax
mov esi, esi
xor ebx, ebx
rcl ebx, 0xc8
rcl ebx, 0x62
dec edx
and esi, 0xc7
imul eax
rol edx, 0x7e
sbb edi, 0xd4
dec esi
dec edi
not esi
rcr esi, 0x21
inc ebx
sbb eax, 0x5d
neg edi
add edx, 0x9c
bswap esi
not esi
bswap ebx
or edx, 0xad
imul ebx
imul eax
rcr eax, 0xb1
neg eax
ror eax, 0xbc
inc edi
bswap ebx
rol esi, 0x25
neg edi
inc eax
dec ebx
inc edi
rol ebx, 0xf
imul edi
neg ebx
dec ebx
sbb esi, 0xa8
rol edi, 0x68
and edx, 0xbd
inc ebx
and edi, 0x7a
sub eax, 0xff
imul ebx
not edx
or esi, 0xfb
imul ebx
rcl edi, 0xee
mov ebx, 4
rcl edi, 0x64
sub esi, 0xce
imul eax
xor ecx, ecx
xor edi, edi
mov esi, esi
mov ebx, ebx
mov ebx, eax
mov ebx, esi
mov esi, eax
xor eax, esi
imul eax
not ebx
rcl eax, 0xb9
rcr eax, 0xd2
rcr ebx, 0xa2
dec edx
mov edi, 0x4b
not ebx
inc esi
imul edx
imul edi
bswap edx
imul edi
bswap esi
and esi, 0x6a
sub ebx, 0x9f
rcl edx, 0xc3
bswap edi
bswap edi
bswap ebx
dec edi
rcl edx, 0x65
bswap ebx
mov esi, 0x73
ror ebx, 0x1c
dec edx
rcr edx, 0xd1
dec esi
imul edx
mov edx, 5
rcr ebx, 0xa
rcl edx, 0xe5
neg edx
and eax, 0xd5
rcr edx, 0xbc
mov ebx, 0xa5
imul esi
or ebx, 0x55
ror edi, 0xef
inc eax
ror eax, 0xa9
imul edx
inc ebx
or edi, 0x30
add edi, 0x71
mov ebx, 0xce
bswap edx
inc edx
inc esi
dec esi
xor esi, esi
mov ebx, eax
mov eax, esi
mov esi, eax
mov ebx, eax
xor eax, ebx
mov esi, eax
xor eax, esi
mov ebx, ebx
mov ecx, dword [ebp + 0xc]
rcr edx, 0x11
ror esi, 0x4d
add eax, 0xe6
neg eax
not edi
mov edi, 0x26
imul esi
inc esi
dec esi
dec esi
bswap ebx
sbb esi, 0x61
inc eax
rol ebx, 0x8d
ror eax, 0x2d
add ebx, 0xa8
sub ebx, 0x43
inc esi
not eax
neg ebx
imul ebx
sbb ebx, 0xa7
rcl ebx, 0x46
sub edi, 0xe4
inc esi
mov eax, 0x93
add eax, 0x75
inc edx
not ebx
neg ebx
mov eax, 0x65
not esi
rcl esi, 0x1d
rol edx, 0x3b
inc ebx
neg ebx
sub ebx, 0x7a
bswap ebx
dec ebx
inc esi
bswap ebx
imul edx
and ebx, 0xc8
imul eax
sub eax, 0x14
inc eax
inc eax
dec edi
rcl edi, 0xe7
dec edx
mov edi, dword [ebp + 8]
xor eax, esi
xor ebx, ebx
mov ebx, ebx
xor esi, ebx
xor ebx, eax
xor ebx, ebx
mov ebx, ebx
xor eax, ebx
xor eax, esi
not byte [edi]
xor esi, esi
mov ebx, eax
mov ebx, esi
mov ebx, esi
xor ebx, eax
xor ebx, ebx
mov eax, eax
mov eax, eax
mov eax, eax
mov esi, eax
xor eax, ebx
mov esi, esi
add byte [edi], 0x33
sub byte [edi], 0x3f
mov eax, esi
mov eax, esi
mov ebx, ebx
mov eax, esi
mov esi, ebx
xor esi, esi
mov esi, ebx
xor ebx, esi
xor ebx, eax
imul byte [edi]
inc edi
loop 0x4011d2
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403a23
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402917
and dword [ebp - 4], 0
cmp dword [0x437068], 0
mov ebx, eax
jne 0x403ad4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403b85
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403b85
push eax
call fcn.004028a5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x437068], eax
call esi
push eax
call fcn.004028a5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43706c], eax
call esi
push eax
call fcn.004028a5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437070], eax
call esi
push eax
call fcn.004028a5
pop ecx
mov dword [0x437078], eax
test eax, eax
je 0x403ad4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004028a5
pop ecx
mov dword [0x437074], eax
mov eax, dword [0x437074]
cmp eax, ebx
je 0x403b2c
cmp dword [0x437078], ebx
je 0x403b2c
push eax
call fcn.00402920
push dword [0x437078]
mov esi, eax
call fcn.00402920
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x403b2c
test edi, edi
je 0x403b2c
call esi
test eax, eax
je 0x403b23
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403b23
test byte [ebp - 0xc], 1
jne 0x403b2c
or dword [ebp + 0x10], 0x200000
jmp 0x403b65
mov eax, dword [0x43706c]
cmp eax, ebx
je 0x403b65
push eax
call fcn.00402920
pop ecx
test eax, eax
je 0x403b65
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403b65
mov eax, dword [0x437070]
cmp eax, ebx
je 0x403b65
push eax
call fcn.00402920
pop ecx
test eax, eax
je 0x403b65
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437068]
call fcn.00402920
pop ecx
test eax, eax
je 0x403b85
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403b87
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405529
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436808]
jne 0x405533
repz ret
jmp fcn.004069a5