joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466688
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4666c0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4666a1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4666b0
or bl, 4
test esi, 0x20000000
je 0x4666bb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46cdbc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46cdce
add esp, 0xfffffff0
call fcn.00403d1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00428360
mov eax, dword [0x576f7c]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d160
mov eax, dword [0x576f98]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d16c
mov eax, ebx
call fcn.0046d178
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41c5b8]
call fcn.00403974
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41c5b8]
call fcn.00403974
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41c5b8]
call fcn.00403974
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41c5b8]
call fcn.00403974
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41c5b8]
call fcn.00403974
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, 0x469590
push eax
push 0
push 0
mov eax, dword [0x577310]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x429e90]
call fcn.0042b64c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x429e90]
call fcn.0042b64c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x429e90]
call fcn.0042b64c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046d5ec
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d4b4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d4b4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d4b4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46cf0b
call fcn.00403d74
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46d274
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46d444
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46d425
mov dl, 1
mov eax, dword [0x41cc1c]
call fcn.00403974
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004048d4
lea eax, [ebp - 0x118]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov ebx, eax
call sub.kernel32.dll_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0x10], eax
dec ebx
test ebx, ebx
jl 0x46d414
inc ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0045a6d8
test al, al
jne 0x46d311
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46d407
xor edx, edx
push ebp
push 0x46d400
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46d331
mov ebx, dword [ebp - 0x10]
jmp 0x46d333
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
mov edx, 0x46d454
lea eax, [ebp - 0x258]
call fcn.0040acc0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46d3e9
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x46d48c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46d3e9
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, 0x100
call fcn.00404b44
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x18]
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 - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46d3e9
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, 0x100
call fcn.00404b44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d407
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x46d2f2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00421bb4
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 0x46d44b
lea eax, [ebp - 0x264]
call fcn.004048d4
ret
Function at 0x46dd8c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x578b80]
cmp byte [eax + 0xa5], 0
jne 0x46ddfd
cmp dword [0x578b98], 0
jne 0x46ddbe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46dd48
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x578b98], eax
cmp dword [0x578b94], 0
jne 0x46ddd9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x578b94], eax
cmp dword [0x578b9c], 0
jne 0x46ddfd
push esp
push 0
push 0
push 0x46dcec
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x578b9c], eax
pop edx
ret

Function at 0x46e490
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x578b80]
cmp dword [eax + 0x30], 0
je 0x46e53a
cmp dword [ebx + 0x94], 0
jne 0x46e534
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46e420
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46e534
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 0x46e4fa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46e534
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.0041efb0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46e509
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46f098
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 0x46f0cd
push 0x100
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.004049c4
jmp 0x46f0da
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404928
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x470294
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4702d5
mov eax, esi
call fcn.00455c0c
test al, al
je 0x4702d5
mov eax, dword [ebx + 0x84]
call fcn.00455908
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4702d5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00455908
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4713ac
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x471515
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040496c
mov eax, dword [ebp - 0x10]
call fcn.00470f20
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4713fe
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404e50
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004719d0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4714d3
xor eax, eax
push ebp
push 0x4714cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004710cc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00471544
test al, al
je 0x4714aa
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004049c4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4714aa
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404db0
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4714a4
mov eax, dword [ebp - 0x14]
call fcn.00404db0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404acc
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004713ac
dec ebx
cmp ebx, 0xffffffff
jne 0x47145d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4714d3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004710cc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404db0
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004710b8
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47151c
lea eax, [ebp - 0x3c]
call fcn.004048d4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004048f8
ret

Function at 0x471544
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0040333c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x577820]
cmp byte [edx + 0xc], 0
je 0x4715a8
mov edx, dword [0x577804]
cmp dword [edx], 2
jne 0x4715a8
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x4715ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x471664
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00471544
test al, al
je 0x471646
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004049c4
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x471646
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404db0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404db0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404acc
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4715ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47166b
lea eax, [ebp - 0x2c]
call fcn.004048d4
lea eax, [ebp - 0xc]
call fcn.004048d4
ret

Function at 0x4718e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00470f34
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404db0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x471942
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x577324]
mov dl, 1
mov eax, dword [0x470dc0]
call fcn.0040de28
call fcn.00404248
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47194c
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.00404db0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4719a4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x57782c]
mov dl, 1
mov eax, dword [0x470dc0]
call fcn.0040de28
call fcn.00404248
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00470f64
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 0x475964
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042c77c
cmp ebx, dword [ebp - 8]
jge 0x4759c7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042cb80
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042cb80
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042cbac
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x47598d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4759d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042c77c
cmp ebx, dword [ebp - 8]
jge 0x475a33
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042cb80
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042cb80
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042cbac
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4759f9
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x47fc04
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47fc32
mov eax, ebx
call fcn.004806b8
cmp dword [ebx + 0x40], 0
je 0x47fc2b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47fca3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47fc95
cmp dword [ebx + 8], 0
je 0x47fc54
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47fc66
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47fc95
cmp dword [ebx + 8], 0
je 0x47fc47
cmp eax, 3
je 0x47fc79
dec eax
jne 0x47fc47
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47fc47
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47fc47
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47fcc1
cmp dword [ebx + 0x14], 0xcc
je 0x47fcc1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047fccc
pop ebx
ret
Function at 0x4914d4
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 0x491734
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x491537
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0049117c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040e73c
cmp al, 1
jne 0x491537
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00491444
test al, al
je 0x4916c3
cmp dword [ebp - 8], 0
jge 0x491555
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.0049117c
mov eax, dword [ebp - 0x210]
call fcn.00404bb0
cmp ebx, eax
jge 0x49159f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0049117c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x5777ec]
and eax, 0xff
bt dword [edx], eax
jae 0x49159f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4915b3
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004914b0
cmp ebx, dword [ebp - 8]
je 0x4916b5
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4915df
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bac
and eax, 0x7f
movzx eax, word [eax*2 + 0x571c04]
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 0x4916a2
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bac
and eax, 0x7f
movzx eax, word [eax*2 + 0x571c04]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.00455908
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bac
and eax, 0x7f
movzx eax, word [eax*2 + 0x571c04]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00455908
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4916a9
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 0x491716
cmp dword [ebp - 8], 0
jge 0x4916ce
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0049117c
mov eax, dword [ebp - 0x218]
call fcn.00404bb0
cmp eax, dword [ebp - 8]
jg 0x491708
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0049117c
mov eax, dword [ebp - 0x21c]
call fcn.00404bb0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004914b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49173b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004048f8
ret
Function at 0x4e2bcc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, ecx
push esp
push edx
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404b44
add esp, 0x10c
pop ebx
ret

Function at 0x4e2c08
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push 0x100
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.00404b44
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x4e2c53
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404e50
add esp, 0x100
pop ebx
ret

Function at 0x4e2c5c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push esp
push 0x100
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.00404b44
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x4e2ca3
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404e50
add esp, 0x100
pop ebx
ret

Function at 0x4e2cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, edx
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
je 0x4e2d19
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404b44
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x4e2d2f
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404e50
jmp 0x4e2d2f
mov ecx, 0x4e2d40
mov dl, 1
mov eax, dword [0x40868c]
call fcn.0040dd30
call fcn.00404248
add esp, 0x108
pop ebx
ret
Function at 0x4e6884
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
test dl, dl
je 0x4e689e
add esp, 0xfffffff0
call fcn.00403d1c
mov dword [ebp - 4], ecx
mov ebx, edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 8]
xor eax, eax
push ebp
push 0x4e6981
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x18], edx
mov dl, 1
mov eax, dword [0x41cf30]
call fcn.00403974
mov edx, dword [esi]
mov dword [edx + 8], eax
mov eax, dword [esi]
add eax, 0xc
mov edx, dword [ebp - 4]
call fcn.00404928
mov eax, dword [esi]
mov word [eax + 0x1c], di
push 0
push 0
mov eax, dword [esi]
call fcn.004e7c88
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x30], edx
mov eax, dword [esi]
cmp word [eax + 0x1c], 0xffff
jne 0x4e6908
push ebp
call fcn.004e668c
pop ecx
push edi
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [esi]
call fcn.004e6e74
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [esi]
call fcn.004221cc
mov eax, dword [esi]
cmp word [eax + 0x1c], 0xffff
je 0x4e696b
push 0
push 0
mov dl, 2
mov eax, dword [esi]
call fcn.004e76f0
mov eax, dword [esi]
lea edx, [eax + 0x30]
mov ecx, 4
mov eax, dword [esi]
call fcn.004e76e0
mov eax, dword [esi]
lea edx, [eax + 0x34]
mov ecx, 4
mov eax, dword [esi]
call fcn.004e76e0
push 0
push 0
xor edx, edx
mov eax, dword [esi]
call fcn.004e76f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6988
lea eax, [ebp - 0xc]
call fcn.004048d4
ret