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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x37], 0
jne 0x42053f
cmp dword [esi + 0x2b], 0
je 0x42054d
mov dword [esi + 8], 0x1002
xor esi, esi
jmp 0x4205d3
mov dword [esi + 8], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x420570
mov dword [esi + 8], 0x3001
xor esi, esi
jmp 0x4205d3
push eax
push eax
push dword [ebp + 0xc]
call sub.kernel32.dll_LoadResource
pop ecx
or eax, eax
jne 0x42058a
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x4205d3
mov dword [esi + 0x13], eax
mov dword [esi + 0x1b], eax
push ecx
push dword [ebp + 0xc]
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4205a8
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x4205d3
mov dword [esi + 0x17], eax
mov dword [esi + 0x2b], 2
push esi
call fcn.00421e1c
or eax, eax
jne 0x4205c7
mov dword [esi + 0x2b], 0
xor esi, esi
jmp 0x4205d3
mov dword [esi + 0x37], 1
mov esi, 1
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x42304c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42305b
test al, 0x10
jne 0x42305e
xor eax, eax
ret
mov al, 1
ret

Function at 0x423080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42308f
test al, 0x10
je 0x423092
xor eax, eax
ret
mov al, 1
ret

Function at 0x4231a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push esp
push 0x40
push 0x12
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], 0x5024048b
mov byte [ebx + 4], 0xb8
lea eax, [ebx + 9]
mov dword [eax], 0x4244489
mov byte [ebx + 0xd], 0xe9
lea eax, [ebx + 5]
mov dword [eax], esi
sub edi, ebx
sub edi, 0x12
lea eax, [ebx + 0xe]
mov dword [eax], edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x423594
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4235fe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004055c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00423580
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423605
lea eax, [ebp - 0x10c]
call fcn.004053c8
ret
Function at 0x42360c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x423676
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004055c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00423580
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42367d
lea eax, [ebp - 0x10c]
call fcn.004053c8
ret

Function at 0x423684
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
add esp, 0xffffffe4
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 1
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4236b4
push esp
call sub.user32.dll_TranslateMessage
push esp
call sub.user32.dll_DispatchMessageA
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, esi
jb 0x423692
add esp, 0x1c
pop esi
pop ebx
ret

Function at 0x4236d0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4237ae
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00425830
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x423791
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00423080
test al, al
je 0x423725
push 0x20
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
push eax
mov ecx, edi
mov edx, dword [0x6377f8]
mov eax, dword [ebp - 8]
call fcn.00425928
mov eax, dword [ebp - 8]
call fcn.00425498
test eax, eax
jbe 0x423765
mov eax, dword [ebp - 8]
call fcn.00425498
push eax
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004055c0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
xor ecx, ecx
call fcn.004254bc
test esi, esi
je 0x42377b
mov eax, ebx
call fcn.00423080
test al, al
je 0x42377b
push esi
push ebx
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423798
mov eax, dword [ebp - 8]
call fcn.00423fc4
ret
Function at 0x4238d8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push ebp
push 0x423961
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0x423970
push 0
push edx
push eax
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x42394b
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004055c0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x423931
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push ebx
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423968
lea eax, [ebp - 0xc]
call fcn.004053c8
ret

Function at 0x423b58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x423b91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004054b8
jmp 0x423b9a
mov eax, ebx
mov edx, esi
call fcn.0040541c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423ba4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x423bc6
movzx eax, byte [esp]
jmp 0x423bc8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x424ab4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x424b3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edx
mov edx, 0x80000301
call fcn.00425610
mov esi, eax
cmp esi, 0xffffffff
setne bl
test bl, bl
je 0x424b28
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
lea eax, [ebp - 4]
mov ecx, edi
xor edx, edx
call fcn.004054b8
lea eax, [ebp - 4]
call fcn.004058b8
mov edx, eax
mov ecx, edi
mov eax, esi
call fcn.00423064
mov eax, esi
call fcn.00425658
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.0042479c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424b45
lea eax, [ebp - 4]
call fcn.004053c8
ret

Function at 0x425290
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x1d], 1
pop ebx
ret

Function at 0x4252a4
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x1c], 0
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x4252bf
mov byte [ebx + 0x1c], 1
pop ebx
ret
cmp word [ebx + 0x3a], 0
je 0x4252ce
mov edx, ebx
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
pop ebx
ret
Function at 0x4280a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405858
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4280fc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x634154]
mov dl, 1
mov eax, dword [0x427bb0]
call fcn.0040d5ec
call fcn.00404d34
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00427cb8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x428f58
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x428f5e
ret
Function at 0x4379a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x4379c5
test edi, 0x40000
je 0x4379df
test bl, bl
jne 0x437a60
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x437a60
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x437a12
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x437a27
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x437a36
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x437a47
cmp byte [esp + 2], 0
je 0x437a60
cmp byte [esp + 2], 0
je 0x437a58
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x437a60
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x437d04
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x437d2a
mov eax, esp
push eax
push 0x437ccc
call sub.user32.dll_EnumWindows
jmp 0x437d3d
mov eax, esp
push eax
push 0x437cac
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x437dc8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x437e1c]
test si, 4
je 0x437ddd
or bl, 1
test si, 8
je 0x437de7
or bl, 4
test si, 1
je 0x437df1
or bl, 8
test si, 2
je 0x437dfb
or bl, 0x10
test si, 0x10
je 0x437e05
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437e14
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x437e20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x437e5c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437e3a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437e49
or bl, 4
test esi, 0x20000000
je 0x437e54
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43fec8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43feda
add esp, 0xfffffff0
call fcn.004047e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ec70
mov eax, dword [0x633ac8]
mov dword [eax + 4], ebx
mov dword [eax], 0x44026c
mov eax, dword [0x633ad8]
mov dword [eax + 4], ebx
mov dword [eax], 0x440278
mov eax, ebx
call fcn.00440284
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4169cc]
call fcn.004044a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4169cc]
call fcn.004044a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4169cc]
call fcn.004044a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4169cc]
call fcn.004044a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4169cc]
call fcn.004044a8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x43b72c
push eax
push 0
push 0
mov eax, dword [0x633d38]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4285b8]
call fcn.00429ad8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4285b8]
call fcn.00429ad8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4285b8]
call fcn.00429ad8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004406fc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4405cc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4405cc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4405cc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x440017
call fcn.0040483c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4403b0
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 0x44055b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44053c
mov dl, 1
mov eax, dword [0x416df0]
call fcn.004044a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004053c8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44052b
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.0045f118
test al, al
je 0x44051e
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, 0x44056c
lea eax, [ebp - 0x254]
call fcn.0040aa50
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44051e
xor eax, eax
push ebp
push 0x440517
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 0x4405a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x440500
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405638
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 0x440500
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405638
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44051e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x440421
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041aac8
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 0x440562
lea eax, [ebp - 0x260]
call fcn.004053c8
ret

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

Disassembly:
push ecx
mov eax, dword [0x639e00]
cmp byte [eax + 0xad], 0
jne 0x440f45
cmp dword [0x639e1c], 0
jne 0x440f06
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x440e90
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x639e1c], eax
cmp dword [0x639e18], 0
jne 0x440f21
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x639e18], eax
cmp dword [0x639e20], 0
jne 0x440f45
push esp
push 0
push 0
push 0x440e34
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x639e20], eax
pop edx
ret
Function at 0x441148
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44115f
add esp, 0xfffffff0
call fcn.004047e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ec70
mov eax, dword [0x633d04]
cmp word [eax + 2], 0
jne 0x441187
mov eax, dword [0x633d04]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00442be0
mov eax, dword [0x633e68]
cmp word [eax + 2], 0
jne 0x4411a1
mov eax, dword [0x633e68]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00442dec
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4169cc]
call fcn.004044a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4169cc]
call fcn.004044a8
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4169cc]
call fcn.004044a8
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x428d94]
call fcn.0042ec60
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x441358
mov eax, dword [0x633b78]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042f034
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4434b0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x633b78]
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.0040e3b0
test eax, eax
je 0x4412a8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a3f4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e3e4
test eax, eax
je 0x4412bc
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405638
mov byte [ebx + 0xd4], 0
push ebx
push 0x4428c4
call fcn.0041fdec
mov dword [ebx + 0xc8], eax
mov eax, dword [0x633968]
cmp byte [eax], 0
jne 0x44130d
mov eax, ebx
call fcn.0044149c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004436c4
mov eax, ebx
call fcn.00444228
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44134d
call fcn.0040483c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44171c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4417bb
cmp dword [ebx + 0x94], 0
jne 0x4417b5
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4416a4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4417b5
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 0x44177b
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4417b5
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.00418d70
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44178a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4419d4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x639e00]
cmp dword [eax + 0x30], 0
je 0x441b31
test bl, bl
jne 0x441a82
cmp dword [esi + 0x9c], 0
jne 0x441a77
mov eax, esi
call fcn.004440a4
push eax
push 0x441900
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x441a48
mov eax, dword [0x639e00]
call fcn.00444694
test al, al
je 0x441a48
mov eax, dword [0x639e24]
call fcn.00406708
mov edi, eax
cmp edi, 0
jl 0x441a48
push 0
mov eax, dword [0x639e24]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x441a32
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x441a77
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00418d70
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x441a57
inc dword [esi + 0x9c]
jmp 0x441b31
cmp dword [esi + 0x9c], 0
jle 0x441b31
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x441b31
cmp dword [esi + 0x44], 0
je 0x441add
mov eax, dword [0x639e00]
call fcn.00444694
test al, al
je 0x441add
mov eax, dword [0x639e24]
call fcn.00406708
mov edi, eax
cmp edi, 0
jl 0x441add
push 5
mov eax, dword [0x639e24]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x441ac7
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x441b0c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00418d70
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x441aec
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x639e24
mov ecx, 1
mov edx, dword [0x4418e0]
call fcn.004068bc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x442618
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x442682
mov eax, ebx
call fcn.00444694
test al, al
jne 0x442682
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.004054b8
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x44266f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x44268f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040541c
jmp 0x44268f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040541c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4438a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x443916
mov eax, esi
call fcn.00459f50
test al, al
je 0x443916
mov eax, dword [ebx + 0x84]
call fcn.00459c54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x443916
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x44390a
push 0
mov eax, dword [ebx + 0x84]
call fcn.00459c54
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00451cf8
jmp 0x443916
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004436e4
pop esi
pop ebx
ret

Function at 0x445750
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004053c8
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44579e
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00405638
pop ebx
mov esp, ebp
pop ebp
ret