joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51912e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x519146
mov edi, dword [esi + 0xc]
jmp 0x519186
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x51915f
call fcn.0044ad7d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x519174
call fcn.0044ad7d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x519186
call fcn.0044ad7d
call fcn.00439ede
cmp dword [eax + 0x3c], 0
je 0x51919b
push edi
mov ecx, ebx
call fcn.00517f60
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00519048
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5191b9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5191c5
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5381db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c9030]
jne 0x5381e5
repz ret
jmp fcn.00541673
Function at 0x54e358
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c9030]
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.0054109b
and dword [ebp - 0x14], 0
cmp dword [0x5d1384], 0
mov dword [ebp - 0x18], eax
jne 0x54e40b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x54e4b3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x596188
push ebx
call edi
test eax, eax
je 0x54e4b3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x596178
push ebx
mov dword [0x5d1384], eax
call edi
push eax
call esi
push 0x596164
push ebx
mov dword [0x5d1388], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5d138c], eax
call edi
push eax
call esi
mov dword [0x5d1394], eax
test eax, eax
je 0x54e40b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5d1390], eax
mov eax, dword [0x5d1390]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x54e464
cmp dword [0x5d1394], ecx
je 0x54e464
push eax
call esi
push dword [0x5d1394]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x54e464
test ebx, ebx
je 0x54e464
call edi
test eax, eax
je 0x54e45b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x54e45b
test byte [ebp - 8], 1
jne 0x54e464
or dword [ebp + 0x10], 0x200000
jmp 0x54e497
mov eax, dword [0x5d1388]
cmp eax, dword [ebp - 0x18]
je 0x54e497
push eax
call esi
test eax, eax
je 0x54e497
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x54e497
mov eax, dword [0x5d138c]
cmp eax, dword [ebp - 0x18]
je 0x54e497
push eax
call esi
test eax, eax
je 0x54e497
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5d1384]
call esi
test eax, eax
je 0x54e4b3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x54e4b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005381db
leave
ret
Function at 0x4011c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 9
mov esi, ecx
push str.SoftwareMicrosoftWindows_NTCurrentVersionPerflib_03X
xor edi, edi
push esi
mov dword [esi + 0x808], edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4013a0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push edi
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
push edi
mov word [esi], cx
mov ecx, dword [ebp - 8]
push str.Counters
push ecx
call ebx
test eax, eax
jne 0x4012e1
mov edx, dword [ebp - 4]
lea eax, [edx*4]
push eax
call fcn.004412a0
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4012df
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push edi
lea edx, [ebp - 0xc]
push edx
push 0
push str.Counters
push eax
call ebx
test eax, eax
jne 0x4012d6
cmp word [edi], ax
je 0x4012d6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Process
push edi
call ebx
test eax, eax
jne 0x401296
push edi
call fcn.00401170
push eax
push 0x4c0818
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4012ba
cmp dword [esi + 0x808], 0
jne 0x4012ba
push str.ID_Process
push edi
call ebx
test eax, eax
jne 0x4012ba
push edi
call fcn.00401170
add esp, 4
mov dword [esi + 0x808], eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [edi + eax*2 + 2], 0
lea edi, [edi + eax*2 + 2]
jne 0x401272
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 0x10]
push edi
call fcn.00441300
add esp, 4
xor edi, edi
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], di
je 0x40139f
cmp dword [esi + 0x800], edi
jne 0x401320
push 0x7d000
mov dword [esi + 0x804], 0x7d000
call fcn.004412a0
add esp, 4
mov dword [esi + 0x800], eax
lea esp, [esp]
mov edx, dword [esi + 0x804]
mov dword [ebp - 4], edx
lea esp, [esp]
mov ecx, dword [esi + 0x800]
lea eax, [ebp - 4]
push eax
push ecx
lea edx, [ebp - 0xc]
push edx
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocStringLen
call ebx
cmp eax, 0xa7
je 0x401330
cmp eax, edi
je 0x4013a6
cmp eax, 0xea
jne 0x401383
mov eax, dword [ebp - 4]
add eax, 0x3e800
push eax
mov dword [ebp - 4], eax
call fcn.004412a0
add esp, 4
cmp eax, edi
je 0x4013cc
mov dword [esi + 0x800], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x804], eax
jmp 0x401320
cmp eax, 0x100000
jge 0x401320
mov edx, dword [esi + 0x800]
push edx
call fcn.00441300
mov dword [esi + 0x800], edi
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x800]
mov eax, str.PERF
mov ecx, 8
sub edx, eax
cmp ecx, 4
jb 0x40139f
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x40138a
sub ecx, 4
add eax, 4
jmp 0x4013b8
mov ecx, dword [esi + 0x800]
push ecx
jmp 0x401391
Function at 0x404760
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test si, si
jne 0x4047cf
test ebx, ebx
jne 0x4047cf
test di, di
je 0x4047cf
push edi
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
mov dword [ebp + 0xc], eax
test ax, ax
je 0x4047cf
mov ecx, 0xffff
cmp ax, cx
je 0x4047cf
movzx esi, al
shr ax, 8
mov dl, al
and dl, 7
mov word [ebp + 0xc], ax
cmp dl, 6
jne 0x4047b8
mov ebx, 0x10
jmp 0x4047cf
test al, 1
je 0x4047c1
mov ebx, 0x10
test al, 2
je 0x4047c8
or ebx, 8
test al, 4
je 0x4047cf
or ebx, 2
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x4047e3
movzx eax, si
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ecx, 1
mov word [ebp - 0x14], cx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov ecx, 1
mov edx, ecx
mov word [ebp - 8], ax
mov eax, dword [ebp + 0x18]
mov word [ebp - 0xc], dx
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov word [ebp - 0xa], si
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov word [ebp - 6], di
mov esi, dword [ebp - 8]
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ebx
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
xor edi, edi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
pop edi
mov dword [eax + 0xc], esi
pop esi
mov dword [eax + 0x10], ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405e70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x405e8d
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x562]
push ecx
mov word [ebp - 0x564], ax
call fcn.004b03e0
xor eax, eax
push 0x44
push eax
lea edx, [ebp - 0x54]
push edx
xor bl, bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call fcn.004b03e0
add esp, 0x18
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x270f
push eax
add esi, 0x1c4c
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x564]
push str.__s___DEBUGPID_u__BW80__BH25__BZ_u
push eax
call esi
add esp, 0x14
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x564]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x154]
push str.Cant_create_debugger_console__ErrCode0x_08X
push ecx
call esi
push 0
push 0
lea edx, [ebp - 0x154]
push 0x40
push edx
call fcn.00420020
add esp, 0x1c
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, 1
mov dword [0x50b3b4], ebx
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405f70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf0f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x964
mov dword [ebp - 0x18], ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.004a4720
lea eax, [ebp - 0x14]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.0049f8f0
add esp, 8
test eax, eax
jl 0x405fc8
lea ecx, [ebp - 0x14]
call fcn.004a4800
mov ecx, eax
call fcn.004a4a70
mov esi, eax
test esi, esi
jne 0x405fe8
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4770
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push edi
mov ecx, esi
call fcn.004771d0
mov edi, eax
test edi, edi
jne 0x406017
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4770
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x96e]
push edx
mov word [ebp - 0x970], cx
call fcn.004b03e0
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x70], 0x44
call fcn.004b03e0
or dword [ebp - 0x44], 1
xor ecx, ecx
add esp, 0x18
mov word [ebp - 0x40], cx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, esi
mov ebx, eax
call fcn.00478350
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.00478370
push 0
push edi
mov esi, eax
call fcn.004ad170
add esp, 8
cmp eax, 0x40
mov eax, dword [ebp - 0x18]
jne 0x40609a
add eax, 0x1e6c
jmp 0x40609f
add eax, 0x1c4c
mov edx, dword [ebp - 0x1c]
mov ecx, dword [0x50b384]
push edi
push eax
push 0x270f
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edx
push ecx
push ebx
push eax
lea edx, [ebp - 0x970]
push str.__s___ATTACH__GID_i__GHWND_08X__BW_i__BH_i__BZ_u__ROOT___s___DEBUGPID_i
push edx
call esi
add esp, 0x28
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push 0x30
push 0
push 0
push 0
lea edx, [ebp - 0x970]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x406121
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x170]
push str.Cant_create_debugger_console__ErrCode0x_08X
push eax
call esi
push 0
push 0
lea ecx, [ebp - 0x170]
push 0x40
push ecx
call fcn.00420020
mov bl, byte [ebp - 0xd]
add esp, 0x1c
jmp 0x40612d
mov dword [0x50b3b4], 1
mov bl, 1
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4770
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x406150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x958
push ebx
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.004a4720
xor ebx, ebx
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0049f8f0
add esp, 8
test eax, eax
jl 0x4061a3
lea ecx, [ebp - 0x10]
call fcn.004a4800
mov ecx, eax
call fcn.004a4a70
cmp eax, ebx
jne 0x4061c4
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4770
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
mov ecx, eax
call fcn.004771d0
mov esi, eax
cmp esi, ebx
jne 0x4061f4
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4770
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x7fe
lea edx, [ebp - 0x962]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x964], cx
call fcn.004b03e0
xor eax, eax
push 0x40
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], 0x44
call fcn.004b03e0
or dword [ebp - 0x38], 1
mov ecx, 1
push 0
push esi
mov word [ebp - 0x34], cx
call fcn.004ad170
add esp, 0x20
cmp eax, 0x40
lea eax, [edi + 0x1e6c]
je 0x406259
lea eax, [edi + 0x1c4c]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea edx, [ebp - 0x964]
push str.__s___DEBUGPID_i__DUMP
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 0x30
push 0
push 0
push 0
lea edx, [ebp - 0x964]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4062c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x164]
push str.Cant_create_debugger_console__ErrCode0x_08X
push eax
call esi
push 0
push 0
lea ecx, [ebp - 0x164]
push 0x40
push ecx
call fcn.00420020
add esp, 0x1c
jmp 0x4062d1
mov dword [0x50b3b4], 1
mov bl, 1
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4770
mov ecx, dword [ebp - 0xc]
pop esi
pop edi
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x406b30
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x50b3a0]
test byte [eax + 0x11811], 1
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
jne 0x406b8d
mov ecx, dword [0x50b3a4]
cmp byte [ecx + 0x127d2], 1
jbe 0x406cc6
test ebx, ebx
je 0x406cc6
mov ecx, dword [ebx + 0x4244]
test ecx, ecx
je 0x406cc6
push 1
push 0
push 1
push str.CConEmuMain::SwitchKeyboardLayout_skipped__cause_of_isMonitorConsoleLang0
call fcn.004adc30
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
push 0x50
lea edx, [ebp - 0x54]
push 0
push edx
call fcn.004b03e0
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0x14
xor esi, esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov edi, dword [ebp + 8]
xor ecx, ecx
cmp ecx, eax
jae 0x406bc6
cmp dword [ebp + ecx*4 - 0x54], edi
jne 0x406bc1
mov esi, 1
inc ecx
test esi, esi
je 0x406bb2
xor edx, edx
test esi, esi
jne 0x406c07
lea esp, [esp]
cmp edx, eax
jae 0x406bf5
mov ecx, dword [ebp + edx*4 - 0x54]
mov ebx, ecx
xor ebx, edi
test ebx, 0xffff
jne 0x406beb
mov esi, 1
mov edi, ecx
mov ebx, dword [ebp - 4]
inc edx
test esi, esi
je 0x406bd0
jmp 0x406c07
test esi, esi
jne 0x406c07
movzx ecx, di
cmp edi, ecx
jne 0x406c07
mov edx, edi
shl edx, 0x10
or edi, edx
mov eax, dword [ebx + 0x740c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp edi, eax
je 0x406c84
mov ecx, dword [0x50b3a4]
cmp byte [ecx + 0x127d2], 1
jbe 0x406c59
push edi
lea edx, [ebp - 0x254]
push str.CConEmuMain::SwitchKeyboardLayout__posting_WM_INPUTLANGCHANGEREQUEST__WM_INPUTLANGCHANGE_for_0x_08X
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebx + 0x4244]
add esp, 0xc
test ecx, ecx
je 0x406c59
push 1
push 0
push 1
lea eax, [ebp - 0x254]
push eax
call fcn.004adc30
mov ecx, dword [0x50b384]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push edi
push 0
push 0x50
push ecx
call esi
mov edx, dword [0x50b384]
push edi
push 0
push 0x51
push edx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x50b3a4]
cmp byte [eax + 0x127d2], 1
jbe 0x406cc4
push edi
lea ecx, [ebp - 0x254]
push str.CConEmuMain::SwitchKeyboardLayout_skipped__cause_of_GetActiveKeyboardLayout__0x_08X
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebx + 0x4244]
add esp, 0xc
test ecx, ecx
je 0x406cc4
push 1
push 0
push 1
lea edx, [ebp - 0x254]
push edx
call fcn.004adc30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407300
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x50b384]
sub esp, 0x2c
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
push eax
mov esi, ecx
call edi
test eax, eax
jne 0x407324
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x50b384]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
setne al
test al, al
jne 0x40731c
mov edx, dword [0x50b3a0]
cmp byte [edx + 0x1220], al
je 0x407350
cmp byte [esi + 0x426a], al
jne 0x40731c
cmp byte [esi + 0x4224], 0
jne 0x407365
mov eax, dword [0x50b384]
push eax
call edi
test eax, eax
je 0x40731c
mov edx, dword [0x50b384]
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x40731c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push ebx
mov edi, eax
mov ebx, edx
sub ebx, esi
sub edi, ecx
imul edi, ebx
xor ebx, ebx
cmp edi, ebx
jg 0x4073b9
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
push edx
push ecx
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 2
call dword [sym.imp.GDI32.dll_CreateRectRgn]
lea ecx, [ebp - 0x2c]
push ecx
push 0x4071d0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x18], 1
mov esi, 0x64
jne 0x40740b
mov eax, dword [ebp - 0x1c]
push eax
xor esi, esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
push ebx
push ebx
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.GDI32.dll_GetRegionData]
mov ebx, eax
cmp ebx, 4
jbe 0x40748d
push 1
push ebx
call fcn.004412c0
add esp, 8
mov esi, eax
push esi
mov dword [esi], 0x20
mov eax, dword [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.GDI32.dll_GetRegionData]
test eax, eax
je 0x40746f
cmp dword [esi + 4], 1
jne 0x40746f
cmp dword [esi + 8], 0
jbe 0x40746f
mov ecx, dword [esi + 8]
lea eax, [esi + 0x24]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
sub edx, dword [eax - 4]
sub ebx, dword [eax]
add eax, 0x10
imul edx, ebx
add dword [ebp - 4], edx
sub ecx, 1
jne 0x407456
push esi
call fcn.00441300
mov eax, dword [ebp - 4]
imul eax, eax, 0x64
cdq
idiv edi
add esp, 4
mov esi, eax
cmp esi, 0x64
jbe 0x40748d
mov esi, 0x64
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407cc0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf018
push eax
mov dword fs:[0], esp
mov eax, dword [0x50b3a4]
sub esp, 0x218
cmp byte [eax + 0x127d2], 1
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
jbe 0x407d41
cmp dword [ebp + 8], 0x51
mov eax, str.WM_INPUTLANGCHANGE
je 0x407d04
mov eax, str.WM_INPUTLANGCHANGEREQUEST
mov ecx, dword [ebp + 0xc]
push 0
push ebx
push ecx
push eax
lea edx, [ebp - 0x224]
push str.CConEmuMain::OnLangChange:__s_CP:_i__HKL:0x_08I64X_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test edi, edi
je 0x407d41
mov ecx, dword [edi + 0x4244]
test ecx, ecx
je 0x407d41
push 1
push 0
push 1
lea eax, [ebp - 0x224]
push eax
call fcn.004adc30
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [0x50b384]
push ebx
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0x10], eax
xor eax, eax
lea edx, [ebp - 0x24]
xor ecx, ecx
push edx
mov word [ebp - 0x24], cx
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push 0x10
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x14]
push edx
mov dword [ebp + 0x10], eax
call fcn.004b0706
add esp, 0xc
or esi, 0xffffffff
xor ecx, ecx
lea edx, [edi + 0x50c0]
lea ebx, [ebx]
cmp dword [edx - 4], 0
jne 0x407daf
cmp esi, 0xffffffff
jne 0x407db3
mov esi, ecx
jmp 0x407db3
cmp dword [edx], eax
je 0x407dcb
inc ecx
add edx, 0xc
cmp ecx, 0x14
jl 0x407da0
cmp esi, 0xffffffff
je 0x407dcb
push ebx
push eax
push esi
mov ecx, edi
call fcn.00407bd0
mov esi, dword [ebp + 8]
cmp esi, 0x50
je 0x407dd8
cmp esi, 0x51
jne 0x407e52
lea ecx, [ebp + 8]
call fcn.004a4720
lea eax, [ebp + 8]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.0049f8f0
add esp, 8
test eax, eax
jl 0x407e37
lea ecx, [ebp + 8]
call fcn.004a4800
mov ecx, eax
call fcn.004a4a70
test eax, eax
je 0x407e37
cmp dword [0x50b31c], 0x50
jne 0x407e22
cmp esi, 0x51
jne 0x407e22
cmp dword [0x50b318], ebx
je 0x407e37
xor ecx, ecx
cmp esi, 0x50
setne cl
push ebx
dec ecx
and ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.0047b970
lea ecx, [ebp + 8]
mov dword [0x50b31c], esi
mov dword [0x50b318], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004a4770
mov ecx, dword [edi + 0x423c]
mov dword [edi + 0x50b8], ebx
call fcn.004903c0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409140
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [section..data]
mov ecx, dword [0x50b384]
push 1
push 0
push 0
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x409177
push 0
push 0
push 0
push eax
push str.ShellExecute_failed
call fcn.004200b0
add esp, 0x14
ret

Function at 0x409180
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [str.http:__code.google.com_p_conemu_maximus5_issues_entry]
mov ecx, dword [0x50b384]
push 1
push 0
push 0
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4091b7
push 0
push 0
push 0
push eax
push str.ShellExecute_failed
call fcn.004200b0
add esp, 0x14
ret

Function at 0x4091c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4091d3
cmp word [esi], 0
jne 0x4091d3
xor esi, esi
mov eax, dword [str.http:__code.google.com_p_conemu_maximus5_issues_entry]
mov ecx, dword [0x50b384]
push 1
push 0
push 0
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40920f
push 0
push 0
push 0
push eax
push str.ShellExecute_failed
call fcn.004200b0
add esp, 0x14
pop esi
pop ebp
ret 4
test esi, esi
je 0x409225
push 0
push 0
push 0x1030
push esi
call fcn.00420020
add esp, 0x10
pop esi
pop ebp
ret 4