joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ecc82
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0xa75fbe], 0
je 0x4ecdbd
cmp dword [0xa75fc6], 0
je 0x4ecd2d
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xa75fe6], eax
fild dword [0xa75fe6]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fild dword [0xa75fca]
fstp qword [ebp - 0x10]
fsub qword [ebp - 0x10]
fstp qword [ebp - 0x18]
mov ebx, dword [0xa75fb2]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xa75fbe]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x18]
fsub qword [ebp - 0x24]
fcomp qword [0xa3ad14]
fnstsw ax
test ah, 0x41
jne 0x4ecd28
mov eax, dword [0xa75fe6]
mov dword [0xa75fca], eax
call fcn.004ecdc1
jmp 0x4ecdbd
cmp dword [0xa75fd2], 0
jle 0x4ecdbd
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xa75fe6], eax
fild dword [0xa75fe6]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fild dword [0xa75fd2]
fstp qword [ebp - 0x10]
fsub qword [ebp - 0x10]
fstp qword [ebp - 0x18]
mov ebx, dword [0xa75fb2]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xa75fbe]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x18]
fsub qword [ebp - 0x24]
fcomp qword [0xa3ad1c]
fnstsw ax
test ah, 1
jne 0x4ecdbd
call fcn.004ecaa7
mov dword [0xa75fbe], 0
mov esp, ebp
pop ebp
ret
Function at 0x54f94d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
inc eax
push dword [eax]
pop word [ebp - 4]
cmp dword [ebp - 4], 0xc25e
je 0x54f982
cmp dword [ebp - 4], 0xc35e
je 0x54f982
jmp 0x54f985
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x54f967
cmp dword [ebp - 4], 0xc25e
jne 0x54fa11
push eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp - 8]
push 0xffffffff
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x54f9ce
push 6
call fcn.0069f090
add esp, 4
pop eax
push 0x9090c35e
pop dword [eax]
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 4
push dword [ebp - 8]
push 0xffffffff
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x54fa11
push 6
call fcn.0069f090
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x6a0920
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x6a09b2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x6a09a4
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x6a099c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x6a0965
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x6a1100
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x6a111e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x6a1113
pop esi
ret

Function at 0x6a11e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x6a1249
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.006a0300
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x6a1970
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x208
test eax, eax
push ebx
push esi
push edi
jne 0x6a199b
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
jne 0x6a19c3
mov byte [esp + 0xc], al
jmp 0x6a19c3
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xc]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
je 0x6a19e1
mov byte [eax], 0x5c
mov esi, dword [sym.imp.user32.dll_wsprintfA]
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, dword [sym.imp.shlwapi.dll_PathFileExistsA]
call edi
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x118]
push str._s_x.tmp
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
jne 0x6a19f3
lea edi, [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.006a0300
mov edx, eax
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x6a1cc0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x6a1d10
push esi
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x6a1d05
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.006a3360
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x6a2cb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x6a2cf3
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
call fcn.006a3360
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x6b1110
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xaa6d24]
xor edx, edx
cmp eax, edx
jne 0x6b1136
xor eax, eax
mov byte [eax + 0xaa6c24], al
inc eax
cmp eax, 0x100
jl 0x6b111e
mov dword [0xaa6d24], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xaa6c24
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x6b11c7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x6b119a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x6b1168
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x6b11d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x6b1223
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x6b120a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6b7bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e43de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.006b84f0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xa1ea14
call fcn.006d5cd6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x6b7c63
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006d5cd6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x6b7c5c
push 0
mov ecx, eax
call fcn.006aed40
mov dword [esi + 0xc], eax
jmp 0x6b7c65
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x6b7c65
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x6d8363
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6d839b
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.006d63f0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006d63c8
jmp 0x6d83a7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6d9a58
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 0x6d9a9a
call fcn.006df50d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6d9a9a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6d9a91
xor eax, eax
jmp 0x6d9aa2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006d9aa8
pop edi
pop esi
pop ebx
ret 4

Function at 0x6dfa3d
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_1]
cmp dword [esp + 0x10], 0
jne 0x6dfa6b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x6dfa89
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006df9a3
jmp 0x6dfa89
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6dfa89
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006df9a3
test edi, edi
mov eax, edi
jne 0x6dfa73
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x401020
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x204]
push str.Local_szLibraryName_X
push eax
call fcn.00401000
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
test edi, edi
je 0x401099
push 0x400
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x401092
push esi
push str.C:UsersFlareVMDesktopJ_3Q.dll
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [str.C:UsersFlareVMDesktopJ_3Q.dll], 0
jne 0x4010ba
call sub.ntdll.dll_RtlGetLastNtStatus
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040151b
mov esp, ebp
pop ebp
ret 0x10
push str.C:UsersFlareVMDesktopJ_3Q.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x401118
call sub.ntdll.dll_RtlGetLastNtStatus
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x204]
push str.Failed_to_load_DLL
push eax
call fcn.00401000
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x1010
push eax
push str.C:UsersFlareVMDesktopJ_3Q.dll
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040151b
mov esp, ebp
pop ebp
ret 0x10
push eax
lea eax, [ebp - 0x204]
push str.DLL_loaded:_0x_p
push eax
call fcn.00401000
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x1040
push eax
push str.C:UsersFlareVMDesktopJ_3Q.dll
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040151b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406826
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.00403b16
mov dword [ebp - 0x14], eax
cmp dword [0x414230], esi
jne 0x406919
push 0x800
push esi
push 0x40e4ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4068a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4069f9
push esi
push esi
push 0x40e4ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4069f9
push 0x40e4c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4069f9
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x414230], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x414234], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x414238], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414240], eax
test eax, eax
je 0x406916
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41423c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40693e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406931
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x406953
push 4
pop eax
jmp 0x4069fb
cmp dword [ebp - 0x14], esi
je 0x406953
push dword [0x414230]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x406938
mov eax, dword [0x41423c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4069b1
cmp dword [0x414240], edi
je 0x4069b1
push eax
call ebx
push dword [0x414240]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4069b1
test eax, eax
je 0x4069b1
call ecx
test eax, eax
je 0x4069a6
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 0x4069a6
test byte [ebp - 8], 1
jne 0x4069b1
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4069e1
mov eax, dword [0x414234]
cmp eax, edi
je 0x4069de
push eax
call ebx
test eax, eax
je 0x4069de
call eax
mov esi, eax
test esi, esi
je 0x4069de
mov eax, dword [0x414238]
cmp eax, edi
je 0x4069de
push eax
call ebx
test eax, eax
je 0x4069de
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x414230]
call ebx
test eax, eax
je 0x4069f9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4069fb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040151b
mov esp, ebp
pop ebp
ret
Function at 0x40c434
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d0a70]
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.0040948a
mov dword [ebp - 0x14], eax
cmp dword [0x2e2d290], esi
jne 0x40c527
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c4b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c607
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c607
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c607
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x2e2d290], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x2e2d294], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x2e2d298], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2e2d2a0], eax
test eax, eax
je 0x40c524
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2e2d29c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c54c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c53f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c561
push 4
pop eax
jmp 0x40c609
cmp dword [ebp - 0x14], esi
je 0x40c561
push dword [0x2e2d290]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c546
mov eax, dword [0x2e2d29c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c5bf
cmp dword [0x2e2d2a0], edi
je 0x40c5bf
push eax
call ebx
push dword [0x2e2d2a0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c5bf
test eax, eax
je 0x40c5bf
call ecx
test eax, eax
je 0x40c5b4
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 0x40c5b4
test byte [ebp - 8], 1
jne 0x40c5bf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c5ef
mov eax, dword [0x2e2d294]
cmp eax, edi
je 0x40c5ec
push eax
call ebx
test eax, eax
je 0x40c5ec
call eax
mov esi, eax
test esi, esi
je 0x40c5ec
mov eax, dword [0x2e2d298]
cmp eax, edi
je 0x40c5ec
push eax
call ebx
test eax, eax
je 0x40c5ec
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2e2d290]
call ebx
test eax, eax
je 0x40c607
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c609
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fbe
mov esp, ebp
pop ebp
ret
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425090]
jne 0x401abf
repz ret
jmp fcn.00402898

Function at 0x40a046
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.004068be
and dword [ebp - 4], 0
cmp dword [0x427df8], 0
mov ebx, eax
jne 0x40a0f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a1a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a1a8
push eax
call fcn.0040684c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427df8], eax
call esi
push eax
call fcn.0040684c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427dfc], eax
call esi
push eax
call fcn.0040684c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x427e00], eax
call esi
push eax
call fcn.0040684c
pop ecx
mov dword [0x427e08], eax
test eax, eax
je 0x40a0f7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040684c
pop ecx
mov dword [0x427e04], eax
mov eax, dword [0x427e04]
cmp eax, ebx
je 0x40a14f
cmp dword [0x427e08], ebx
je 0x40a14f
push eax
call fcn.004068c7
push dword [0x427e08]
mov esi, eax
call fcn.004068c7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a14f
test edi, edi
je 0x40a14f
call esi
test eax, eax
je 0x40a146
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a146
test byte [ebp - 0xc], 1
jne 0x40a14f
or dword [ebp + 0x10], 0x200000
jmp 0x40a188
mov eax, dword [0x427dfc]
cmp eax, ebx
je 0x40a188
push eax
call fcn.004068c7
pop ecx
test eax, eax
je 0x40a188
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a188
mov eax, dword [0x427e00]
cmp eax, ebx
je 0x40a188
push eax
call fcn.004068c7
pop ecx
test eax, eax
je 0x40a188
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427df8]
call fcn.004068c7
pop ecx
test eax, eax
je 0x40a1a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a1aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40bbf8
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1f6ec04], 0x930
jne 0x40bc15
push 0x423114
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x1f6ec04], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1f6ea48], eax
jne 0x40bc35
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
leave
ret