joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f63d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d4d4]
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.00419e1b
and dword [ebp - 0x14], 0
cmp dword [0x430b40], 0
mov dword [ebp - 0x18], eax
jne 0x41f6f0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41f798
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41f798
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x430b40], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x430b44], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x430b48], eax
call edi
push eax
call esi
mov dword [0x430b50], eax
test eax, eax
je 0x41f6f0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x430b4c], eax
mov eax, dword [0x430b4c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41f749
cmp dword [0x430b50], ecx
je 0x41f749
push eax
call esi
push dword [0x430b50]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41f749
test ebx, ebx
je 0x41f749
call edi
test eax, eax
je 0x41f740
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41f740
test byte [ebp - 8], 1
jne 0x41f749
or dword [ebp + 0x10], 0x200000
jmp 0x41f77c
mov eax, dword [0x430b44]
cmp eax, dword [ebp - 0x18]
je 0x41f77c
push eax
call esi
test eax, eax
je 0x41f77c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41f77c
mov eax, dword [0x430b48]
cmp eax, dword [ebp - 0x18]
je 0x41f77c
push eax
call esi
test eax, eax
je 0x41f77c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430b40]
call esi
test eax, eax
je 0x41f798
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41f79a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041528c
leave
ret
Function at 0x401240
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x402600
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x260
push ebx
push esi
push edi
mov esi, dword [esp + 0x27c]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x24]
mov eax, ecx
xor ebx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
call esi
test eax, eax
jne 0x402663
push 8
push 1
push ebx
lea edx, [esp + 0x1c]
push ebx
push edx
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ebx
push ebx
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, dword [esp + 0xc]
push ebx
lea edx, [esp + 0x28]
push 0x40
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x800000
push edx
push 0x6801
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x278]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], 0x200
jle 0x402776
mov edx, dword [esp + 0x270]
push ebp
mov ebp, dword [esp + 0x278]
sub edx, ebp
mov dword [esp + 0x1c], edx
jmp 0x402703
mov edx, dword [esp + 0x1c]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0x27c]
dec eax
cmp ebx, eax
jne 0x402725
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
lea esi, [edx + ebp]
mov ecx, 0x80
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
push 0x200
lea edx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push 0
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0x27c]
mov edi, ebp
inc ebx
mov ecx, 0x80
lea esi, [esp + 0x6c]
add ebp, 0x200
cmp ebx, eax
rep movsd dword es:[edi], dword [esi]
jl 0x4026ff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x260
ret
Function at 0x402780
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x218
lea eax, [esp + 4]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
push edi
push ebx
push 1
push ebx
push ebx
push eax
call esi
test eax, eax
jne 0x4027ae
push 8
push 1
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ecx, dword [esp + 0xc]
push ebx
push 0x80
push 0x437c2c
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0x800000
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x230]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x1c], 0x200
jle 0x4028aa
mov edx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x230]
dec eax
sub edx, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x18], edx
jmp 0x40284e
mov edx, dword [esp + 0x18]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x24]
lea esi, [edx + ebp]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x80
lea edi, [esp + 0x24]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push 0x200
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0x234]
mov edi, ebp
inc ebx
mov ecx, 0x80
lea esi, [esp + 0x24]
add ebp, 0x200
cmp ebx, eax
rep movsd dword es:[edi], dword [esi]
jl 0x40284a
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x218
ret
Function at 0x4038d0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403944
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 8]
push 0x10
push ecx
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
add esp, 0x1c
ret
xor eax, eax
add esp, 0x1c
ret

Function at 0x403950
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x4274c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x254], 0
call fcn.004038d0
push 0
push 2
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403a63
lea eax, [esp + 0x1c]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403a5c
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0x1f0fff
call ebp
lea edx, [esp + 0x18]
mov esi, eax
push edx
lea eax, [esp + 0x18]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x14]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x144]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x144]
push 0x105
push ecx
push edx
push esi
stosb byte es:[edi], al
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [esp + 0x144]
lea ecx, [esp + 0x10]
push eax
call fcn.004201b7
lea ecx, [esp + 0x10]
mov byte [esp + 0x254], 1
call fcn.004203d1
mov ecx, dword [esp + 0x25c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041b772
test eax, eax
jge 0x403a95
lea edx, [esp + 0x1c]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x254], 0
call fcn.00420149
test esi, esi
jne 0x4039b4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x25c]
mov dword [esp + 0x254], 0xffffffff
call fcn.00420149
xor eax, eax
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x248
ret
mov eax, dword [esp + 0x24]
push eax
push 0
push 1
call ebp
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x254], 0
call fcn.00420149
lea ecx, [esp + 0x25c]
mov dword [esp + 0x254], 0xffffffff
call fcn.00420149
mov eax, 1
jmp 0x403a7c
Function at 0x4055c0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x4365a0]
sub esp, 0x1c
push ebp
push esi
push 5
mov ebp, ecx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
call esi
test eax, eax
je 0x40561f
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x4055fc
pop edi
pop ebx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
mov byte [0x437cb4], 0
call fcn.00404a60
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x41af80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040dad0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41b04b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41b04b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41affe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41b009
or bh, 8
and edi, 0x8000000
je 0x41b024
mov eax, dword [0x43b63c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41b04b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41b44b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41b46f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41b48a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41f04e
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 0x41f090
call fcn.0042411a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41f090
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41f087
xor eax, eax
jmp 0x41f098
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f09e
pop edi
pop esi
pop ebx
ret 4

Function at 0x424d31
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 0x424d5f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424d7d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424c97
jmp 0x424d7d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424d7d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00424c97
test edi, edi
mov eax, edi
jne 0x424d67
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427004]
jne 0x40100a
repz ret
jmp fcn.00401a5a

Function at 0x407a98
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.004025da
and dword [ebp - 4], 0
cmp dword [0x429264], 0
mov ebx, eax
jne 0x407b49
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407bfa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407bfa
push eax
call fcn.00402568
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x429264], eax
call esi
push eax
call fcn.00402568
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x429268], eax
call esi
push eax
call fcn.00402568
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42926c], eax
call esi
push eax
call fcn.00402568
pop ecx
mov dword [0x429274], eax
test eax, eax
je 0x407b49
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402568
pop ecx
mov dword [0x429270], eax
mov eax, dword [0x429270]
cmp eax, ebx
je 0x407ba1
cmp dword [0x429274], ebx
je 0x407ba1
push eax
call fcn.004025e3
push dword [0x429274]
mov esi, eax
call fcn.004025e3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407ba1
test edi, edi
je 0x407ba1
call esi
test eax, eax
je 0x407b98
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407b98
test byte [ebp - 0xc], 1
jne 0x407ba1
or dword [ebp + 0x10], 0x200000
jmp 0x407bda
mov eax, dword [0x429268]
cmp eax, ebx
je 0x407bda
push eax
call fcn.004025e3
pop ecx
test eax, eax
je 0x407bda
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407bda
mov eax, dword [0x42926c]
cmp eax, ebx
je 0x407bda
push eax
call fcn.004025e3
pop ecx
test eax, eax
je 0x407bda
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429264]
call fcn.004025e3
pop ecx
test eax, eax
je 0x407bfa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407bfc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a6ea
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], ebx
jle 0x40a731
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.0040a6e2
mov al, byte [ebp - 8]
xor byte [edi + esi], al
cmp dword [ebp + 8], 0xf
jne 0x40a72b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc esi
cmp esi, dword [ebp + 8]
jl 0x40a704
cmp dword [ebp + 8], 0x2d
pop esi
pop ebx
jne 0x40a74a
or dword [0x2340a9c], 0xffffffff
mov dword [0x2340a98], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret
Function at 0x40c64b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b018]
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.00408c4c
mov dword [ebp - 0x14], eax
cmp dword [0x41d204], esi
jne 0x40c73e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c6cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c81e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c81e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c81e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41d204], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41d208], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41d20c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d214], eax
test eax, eax
je 0x40c73b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d210], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c763
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c756
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c778
push 4
pop eax
jmp 0x40c820
cmp dword [ebp - 0x14], esi
je 0x40c778
push dword [0x41d204]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c75d
mov eax, dword [0x41d210]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c7d6
cmp dword [0x41d214], edi
je 0x40c7d6
push eax
call ebx
push dword [0x41d214]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c7d6
test eax, eax
je 0x40c7d6
call ecx
test eax, eax
je 0x40c7cb
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 0x40c7cb
test byte [ebp - 8], 1
jne 0x40c7d6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c806
mov eax, dword [0x41d208]
cmp eax, edi
je 0x40c803
push eax
call ebx
test eax, eax
je 0x40c803
call eax
mov esi, eax
test esi, esi
je 0x40c803
mov eax, dword [0x41d20c]
cmp eax, edi
je 0x40c803
push eax
call ebx
test eax, eax
je 0x40c803
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41d204]
call ebx
test eax, eax
je 0x40c81e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c820
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004054b9
mov esp, ebp
pop ebp
ret