joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465434
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4655df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4655c0
mov dl, 1
mov eax, dword [0x41bc38]
call fcn.004033f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404254
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4655af
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00453194
test al, al
je 0x4655a2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4655f0
lea eax, [ebp - 0x254]
call fcn.00409cf0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4655a2
xor eax, eax
push ebp
push 0x46559b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x465628
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x465584
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044c4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x465584
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4655a2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4654a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0042061c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4655e6
lea eax, [ebp - 0x260]
call fcn.00404254
ret

Function at 0x465f14
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4ccbec]
cmp byte [eax + 0xa5], 0
jne 0x465f85
cmp dword [0x4ccc04], 0
jne 0x465f46
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x465ed0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4ccc04], eax
cmp dword [0x4ccc00], 0
jne 0x465f61
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4ccc00], eax
cmp dword [0x4ccc08], 0
jne 0x465f85
push esp
push 0
push 0
push 0x465e74
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4ccc08], eax
pop edx
ret
Function at 0x46607c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x466093
add esp, 0xfffffff0
call fcn.00403784
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426c28
mov eax, dword [0x4cb0d0]
cmp word [eax + 2], 0
jne 0x4660bb
mov eax, dword [0x4cb0d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004677fc
mov eax, dword [0x4cb260]
cmp word [eax + 2], 0
jne 0x4660d5
mov eax, dword [0x4cb260]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004679f4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b5d4]
call fcn.004033f0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b5d4]
call fcn.004033f0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4291a4]
call fcn.004308c8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46625c
mov eax, dword [0x4caecc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430c98
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x467fa4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4caecc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040db84
test eax, eax
je 0x4661ca
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004096d0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dbac
test eax, eax
je 0x4661de
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004044c4
mov eax, dword [0x4cabf0]
cmp byte [eax], 0
jne 0x466212
mov eax, ebx
call fcn.00466384
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00468180
mov eax, ebx
call fcn.00468b44
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x466252
call fcn.004037dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466604
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4ccbec]
cmp dword [eax + 0x30], 0
je 0x4666ae
cmp dword [ebx + 0x94], 0
jne 0x4666a8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x466594
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4666a8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46666e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4666a8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041df10
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46667d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x467210
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x467245
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404344
jmp 0x467252
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042a8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46835c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46839d
mov eax, esi
call fcn.0044e614
test al, al
je 0x46839d
mov eax, dword [ebx + 0x84]
call fcn.0044e310
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46839d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044e310
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x48c9b4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x48c9c9
add esp, 0xfffffff0
call fcn.00403784
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov esi, eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
call fcn.00404704
mov eax, dword [ebp + 0x14]
call fcn.00404704
xor eax, eax
push ebp
push 0x48cb16
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.004033f0
lea eax, [esi + 4]
mov edx, dword [ebp - 8]
call fcn.004042a8
lea eax, [esi + 0x10]
mov edx, dword [ebp + 0x14]
call fcn.004042a8
mov dword [esi + 0xc], edi
mov al, byte [ebp + 0xc]
mov byte [esi + 0x1a], al
mov al, byte [ebp + 8]
mov byte [esi + 0x1c], al
mov byte [esi + 0x1b], 0
mov byte [esi + 0x24], 0
mov byte [esi + 0x26], 1
xor eax, eax
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x17c]
call fcn.0048b908
test eax, eax
setle al
mov byte [esi + 0x19], al
mov al, byte [0x48cb40]
mov byte [esi + 0x27], al
mov dl, 1
mov eax, dword [0x41b5d4]
call fcn.004033f0
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x487b00]
call fcn.004033f0
mov edi, eax
mov dword [esi + 0x14], edi
mov edx, dword [esi + 0x10]
push edx
mov ecx, edi
mov eax, dword [esi + 0xc]
mov edx, eax
call fcn.00497184
mov byte [esi + 0x18], bl
test bl, 1
je 0x48caa0
mov eax, dword [esi + 0x10]
push eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
xor ecx, ecx
call fcn.00497428
test bl, 2
je 0x48cab6
mov eax, dword [esi + 0x10]
push eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov cl, 1
call fcn.00497428
test bl, 4
je 0x48cacc
mov eax, dword [esi + 0x10]
push eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov cl, 2
call fcn.00497428
test bl, 8
je 0x48cae2
mov eax, dword [esi + 0x10]
push eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov cl, 3
call fcn.00497428
test bl, 0x10
je 0x48caf8
mov eax, dword [esi + 0x10]
push eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov cl, 4
call fcn.00497428
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cb1d
lea eax, [ebp - 8]
call fcn.00404254
lea eax, [ebp + 0x14]
call fcn.00404254
ret
Function at 0x48cb44
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x48cb5c
add esp, 0xfffffff0
call fcn.00403784
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x48ccb0
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.004033f0
lea eax, [ebx + 4]
mov edx, dword [esi + 0xc]
call fcn.004042a8
lea edx, [ebp - 8]
mov eax, esi
call fcn.0047e1ac
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x10]
call fcn.004042a8
mov dword [ebx + 0xc], edi
mov byte [ebx + 0x1a], 1
mov byte [ebx + 0x1c], 0
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x24], 0
mov byte [ebx + 0x26], 1
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x17c]
call fcn.0048b908
test eax, eax
setle al
mov byte [ebx + 0x19], al
mov al, byte [0x48ccdc]
mov byte [ebx + 0x27], al
mov dl, 1
mov eax, dword [0x41b5d4]
call fcn.004033f0
mov dword [ebx + 8], eax
mov dl, 1
mov eax, dword [0x487b00]
call fcn.004033f0
mov dword [ebx + 0x14], eax
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0047e1ac
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + 0xc]
mov edx, edi
mov eax, edi
call fcn.00497184
mov al, byte [esi + 0x20]
call fcn.0048a53c
mov byte [ebx + 0x18], al
test byte [ebx + 0x18], 1
je 0x48cc39
mov eax, dword [ebx + 0x10]
push eax
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0xc]
xor ecx, ecx
call fcn.00497428
test byte [ebx + 0x18], 2
je 0x48cc50
mov eax, dword [ebx + 0x10]
push eax
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0xc]
mov cl, 1
call fcn.00497428
test byte [ebx + 0x18], 4
je 0x48cc67
mov eax, dword [ebx + 0x10]
push eax
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0xc]
mov cl, 2
call fcn.00497428
test byte [ebx + 0x18], 8
je 0x48cc7e
mov eax, dword [ebx + 0x10]
push eax
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0xc]
mov cl, 3
call fcn.00497428
test byte [ebx + 0x18], 0x10
je 0x48cc95
mov eax, dword [ebx + 0x10]
push eax
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0xc]
mov cl, 4
call fcn.00497428
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ccb7
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404278
ret
Function at 0x4991d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x499438
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49923b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00498ca0
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d6fc
cmp al, 1
jne 0x49923b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00498fb8
test al, al
je 0x4993c7
cmp dword [ebp - 8], 0
jge 0x499259
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00498ca0
mov eax, dword [ebp - 0x210]
call fcn.00404514
cmp ebx, eax
jge 0x4992a3
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00498ca0
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4cb4e0]
and eax, 0xff
bt dword [edx], eax
jae 0x4992a3
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4992b7
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004991b4
cmp ebx, dword [ebp - 8]
je 0x4993b9
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4992e3
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040361c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ca3a8]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4993a6
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040361c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ca3a8]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044e310
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040361c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ca3a8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044e310
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4993ad
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x49941a
cmp dword [ebp - 8], 0
jge 0x4993d2
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00498ca0
mov eax, dword [ebp - 0x218]
call fcn.00404514
cmp eax, dword [ebp - 8]
jg 0x49940c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00498ca0
mov eax, dword [ebp - 0x21c]
call fcn.00404514
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004991b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49943f
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404278
ret
Function at 0x4bd3dc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4bd3e4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4bd5d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4bd5ec
mov eax, esi
call fcn.004bafc4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004042a8
lea ecx, [ebp - 0x10]
mov edx, 0x4bd600
mov eax, esi
call fcn.004bafc4
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004042a8
lea ecx, [ebp - 0x14]
mov edx, 0x4bd618
mov eax, esi
call fcn.004bafc4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004042a8
lea ecx, [ebp - 0x18]
mov edx, 0x4bd634
mov eax, esi
call fcn.004bafc4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004042a8
lea ecx, [ebp - 0x1c]
mov edx, 0x4bd650
mov eax, esi
call fcn.004bafc4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004042a8
lea ecx, [ebp - 0x24]
mov edx, 0x4bd668
mov eax, esi
call fcn.004bafc4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408af8
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409040
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4bd680
mov eax, esi
call fcn.004bafc4
mov eax, dword [ebp - 0x28]
call fcn.004b4a9c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4bd690
mov eax, esi
call fcn.004bafc4
mov eax, dword [ebp - 0x2c]
call fcn.004b4a9c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4bd6a8
mov eax, esi
call fcn.004bafc4
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409040
inc eax
je 0x4bd579
lea ecx, [ebp - 0x34]
mov edx, 0x4bd6a8
mov eax, esi
call fcn.004bafc4
mov eax, dword [ebp - 0x34]
call fcn.00409004
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040ab80
fstp qword [ebp - 0x3c]
wait
call fcn.0040aee4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4bd594
lea ecx, [ebp - 0x40]
mov edx, 0x4bd6a8
mov eax, esi
call fcn.004bafc4
mov eax, dword [ebp - 0x40]
call fcn.004b4a9c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4bd6b8
mov eax, esi
call fcn.004bafc4
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004042a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd5dd
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404278
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404278
ret
Function at 0x4c4368
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4c43c2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004c4358
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004b3708
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004b3308
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c43c9
lea eax, [ebp - 4]
call fcn.00404254
ret

Function at 0x401070
Capabilities:
Hide graphical window

Disassembly:
mov ebp, esp
push esi
mov eax, dword [ebp + 4]
mov dword [0x4040c3], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401082
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x4040c3]
mov dword [ebp - 0x48], eax
mov eax, 0x40214c
mov dword [ebp - 0x54], eax
mov ecx, str.uquamarine
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov dword [0x4041ac], 8
mov dword [0x4041b0], 0x4000
push 0x4041ac
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor ecx, ecx
push ecx
push dword [0x4040c3]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.kippohome
push eax
mov eax, str.uquamarine
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x404200], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x404200]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401132
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x401124
mov esp, ebp
ret
Function at 0x401050
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41f808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, ecx
push ecx
mov eax, esp
mov dword [esp + 0x10], esp
mov dword [eax], esi
call fcn.00403870
mov dword [esp + 0xc], esi
mov ecx, dword [edi + 4]
add edi, 4
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x425040
push 0x20
push 0
push 0
push 0
push 0x86
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
call dword [sym.imp.GDI32.dll_CreateFontA]
mov ebx, eax
push ebx
push esi
mov dword [esp + 0x18], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x34], 0
lea edx, [esp + 0x34]
mov ecx, edi
push edx
mov byte [esp + 0x30], 2
call fcn.00401900
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x401111
push 0xff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x40111d
xor eax, eax
jmp 0x401128
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x14]
push 0x25
push edx
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
je 0x40114e
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 4

Function at 0x401900
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi]
test eax, eax
je 0x40191e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jne 0x40194b
push 0x42811c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
setne cl
mov eax, ecx
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
lea esi, [eax + 1]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0041a120
mov edx, dword [edi]
mov ebx, esp
push esi
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x401975
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
test ebx, ebx
jne 0x40197d
xor eax, eax
jmp 0x4019ac
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0041a120
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, edi
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 8]
xor edx, edx
lea esp, [ebp - 0xc]
test eax, eax
setne dl
pop edi
mov dword [ecx], eax
pop esi
mov eax, edx
pop ebx
pop ebp
ret 4
Function at 0x4046d0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x40471d
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
jne 0x40471d
pop edi
xor ax, ax
pop esi
add esp, 0xa0
ret
mov eax, dword [esp + 0x1c]
sub eax, 0
je 0x4047be
dec eax
je 0x40477b
dec eax
je 0x40473b
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, 4
jbe 0x40474d
mov eax, dword [esp + 8]
cmp ecx, 5
jne 0x4047d0
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x404768
pop edi
mov eax, 5
pop esi
add esp, 0xa0
ret
cmp ecx, 1
jne 0x4047d0
pop edi
mov eax, 6
pop esi
add esp, 0xa0
ret
cmp dword [esp + 0x10], 4
jne 0x4047cc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x404798
pop edi
mov eax, 2
pop esi
add esp, 0xa0
ret
cmp eax, 0xa
jne 0x4047ab
pop edi
mov eax, 2
pop esi
add esp, 0xa0
ret
cmp eax, 0x5a
jne 0x4047cc
pop edi
mov eax, 3
pop esi
add esp, 0xa0
ret
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xa0
ret