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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a314]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a2f5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a304
or bl, 4
test esi, 0x20000000
je 0x44a30f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x450930
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450942
add esp, 0xfffffff0
call fcn.00403a68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420bf8
mov eax, dword [0x458e68]
mov dword [eax + 4], ebx
mov dword [eax], 0x450cd4
mov eax, dword [0x458e78]
mov dword [eax + 4], ebx
mov dword [eax], 0x450ce0
mov eax, ebx
call fcn.00450cec
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416bb8]
call fcn.004036ec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416bb8]
call fcn.004036ec
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416bb8]
call fcn.004036ec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416bb8]
call fcn.004036ec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416bb8]
call fcn.004036ec
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, 0x44d1b4
push eax
push 0
push 0
mov eax, dword [0x458fa8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4225d8]
call fcn.00423a1c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4225d8]
call fcn.00423a1c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4225d8]
call fcn.00423a1c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045110c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450fe8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450fe8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450fe8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450a7f
call fcn.00403ac0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450dcc
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 0x450f77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450f58
mov dl, 1
mov eax, dword [0x4170a8]
call fcn.004036ec
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404470
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450f47
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.0043e87c
test al, al
je 0x450f3a
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, 0x450f88
lea eax, [ebp - 0x254]
call fcn.0040952c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450f3a
xor eax, eax
push ebp
push 0x450f33
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 0x450fc0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450f1c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046d8
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 0x450f1c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450f3a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450e3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b204
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 0x450f7e
lea eax, [ebp - 0x260]
call fcn.00404470
ret

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

Disassembly:
push ecx
mov eax, dword [0x45ac00]
cmp byte [eax + 0xa5], 0
jne 0x45191d
cmp dword [0x45ac18], 0
jne 0x4518de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451868
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45ac18], eax
cmp dword [0x45ac14], 0
jne 0x4518f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45ac14], eax
cmp dword [0x45ac1c], 0
jne 0x45191d
push esp
push 0
push 0
push 0x45180c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45ac1c], eax
pop edx
ret
Function at 0x451a14
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451a2b
add esp, 0xfffffff0
call fcn.00403a68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420bf8
mov eax, dword [0x458f98]
cmp word [eax + 2], 0
jne 0x451a53
mov eax, dword [0x458f98]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453060
mov eax, dword [0x459034]
cmp word [eax + 2], 0
jne 0x451a6d
mov eax, dword [0x459034]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453258
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416bb8]
call fcn.004036ec
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416bb8]
call fcn.004036ec
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], 0x80000018
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 [0x422d88]
call fcn.004289d4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451bf4
mov eax, dword [0x458ec8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428da4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4537d8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x458ec8]
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.0040b810
test eax, eax
je 0x451b62
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e74
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b838
test eax, eax
je 0x451b76
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.004046d8
mov eax, dword [0x458db8]
cmp byte [eax], 0
jne 0x451baa
mov eax, ebx
call fcn.00451d1c
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.004539b4
mov eax, ebx
call fcn.00454364
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451bea
call fcn.00403ac0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451f90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45ac00]
cmp dword [eax + 0x30], 0
je 0x45203a
cmp dword [ebx + 0x94], 0
jne 0x452034
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451f20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452034
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 0x451ffa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452034
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.00419258
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452009
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452b18
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 0x452b4d
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.00404560
jmp 0x452b5a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044c4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453b90
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453bd1
mov eax, esi
call fcn.0043a144
test al, al
je 0x453bd1
mov eax, dword [ebx + 0x84]
call fcn.00439e40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453bd1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439e40
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x454828
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 0x454991
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404508
mov eax, dword [ebp - 0x10]
call fcn.00454590
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x45487a
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004049c0
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.00454be8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45494f
xor eax, eax
push ebp
push 0x454948
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00454700
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004549a0
test al, al
je 0x454926
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404560
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x454926
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.00404920
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x454920
mov eax, dword [ebp - 0x14]
call fcn.00404920
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404660
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00454828
dec ebx
cmp ebx, 0xffffffff
jne 0x4548d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45494f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00454700
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404920
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004546ec
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 0x454998
lea eax, [ebp - 0x3c]
call fcn.00404470
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404494
ret
Function at 0x45494f
Capabilities:
Delete 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 0x454991
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404508
mov eax, dword [ebp - 0x10]
call fcn.00454590
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x45487a
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004049c0
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.00454be8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45494f
xor eax, eax
push ebp
push 0x454948
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00454700
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004549a0
test al, al
je 0x454926
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404560
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x454926
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.00404920
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x454920
mov eax, dword [ebp - 0x14]
call fcn.00404920
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404660
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00454828
dec ebx
cmp ebx, 0xffffffff
jne 0x4548d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45494f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00454700
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404920
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004546ec
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 0x454998
lea eax, [ebp - 0x3c]
call fcn.00404470
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404494
ret

Function at 0x4549a0
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.00402fe0
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 [0x459194]
cmp byte [edx + 0xc], 0
je 0x454a04
mov edx, dword [0x45918c]
cmp dword [edx], 2
jne 0x454a04
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 0x454b0c
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.004545a4
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.00404920
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x454b6a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x458fac]
mov dl, 1
mov eax, dword [0x45449c]
call fcn.0040ae78
call fcn.00403ed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x454b74
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.00404920
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x454bcc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4591a0]
mov dl, 1
mov eax, dword [0x45449c]
call fcn.0040ae78
call fcn.00403ed0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004545d4
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 0x454ec0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd30
push ebx
xor ebx, ebx
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x2c4], ebx
mov dword [ebp - 0x2c0], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404910
mov eax, dword [ebp - 8]
call fcn.00404910
lea eax, [ebp - 0x164]
mov edx, dword [0x4078b0]
call fcn.00404e54
lea eax, [ebp - 0x2bc]
mov edx, dword [0x4078b0]
call fcn.00404e54
xor eax, eax
push ebp
push 0x4550cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404728
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x454f55
lea eax, [ebp - 4]
mov edx, 0x4550e4
call fcn.00404730
lea eax, [ebp - 0x2c0]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x164]
mov edx, 0x27
call fcn.00408ba4
test eax, eax
jne 0x454fc7
mov eax, dword [ebp - 0x158]
cmp byte [eax], 0x2e
je 0x454fb8
mov eax, dword [ebp - 0x15c]
add eax, 0xfffffff0
sub eax, 0x10
jb 0x454fb8
lea eax, [ebp - 0x2c4]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 0x2c4]
call fcn.00408c34
lea eax, [ebp - 0x164]
call fcn.00408bf4
test eax, eax
je 0x454f80
lea eax, [ebp - 0x164]
call fcn.00408c18
cmp byte [ebp - 9], 0
je 0x45508b
lea eax, [ebp - 0x2c8]
mov ecx, 0x4550f0
mov edx, dword [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 0x2c8]
lea ecx, [ebp - 0x2bc]
mov edx, 0x1f
call fcn.00408ba4
test eax, eax
jne 0x455080
mov eax, dword [ebp - 0x2b0]
cmp byte [eax], 0x2e
je 0x455071
mov eax, dword [ebp - 0x2b4]
add eax, 0xfffffff0
sub eax, 0x10
jae 0x455071
push ebx
lea eax, [ebp - 0x2cc]
mov ecx, dword [ebp - 0x2b0]
mov edx, dword [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 0x2cc]
mov cl, byte [ebp - 9]
mov edx, dword [ebp - 8]
call fcn.004550f4
test bl, bl
je 0x455071
lea eax, [ebp - 0x2d0]
mov ecx, dword [ebp - 0x2b0]
mov edx, dword [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 0x2d0]
call fcn.00404920
push eax
call sub.kernel32.dll_RemoveDirectoryA
lea eax, [ebp - 0x2bc]
call fcn.00408bf4
test eax, eax
je 0x455009
lea eax, [ebp - 0x2bc]
call fcn.00408c18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4550d3
lea eax, [ebp - 0x2d0]
mov edx, 5
call fcn.00404494
lea eax, [ebp - 0x2bc]
mov edx, dword [0x4078b0]
mov ecx, 2
call fcn.00404f58
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404494
ret
Function at 0x4550f4
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404910
mov eax, dword [ebp - 8]
call fcn.00404910
xor eax, eax
push ebp
push 0x455161
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov cl, byte [ebp - 9]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00454ec0
test bl, bl
je 0x455146
mov eax, dword [ebp - 4]
call fcn.00404920
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455168
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404494
ret

Function at 0x456324
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4563fa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4563dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.shell32.dll_SHGetMalloc
test eax, eax
jne 0x4563bc
lea eax, [ebp - 8]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, ebx
mov edx, 0x3e8
call fcn.00404aac
mov eax, dword [ebx]
call fcn.00404920
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
jne 0x4563a6
mov ecx, 0x456410
mov dl, 1
mov eax, dword [0x4078d0]
call fcn.0040ad80
call fcn.00403ed0
mov eax, dword [ebx]
call fcn.00404920
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
mov eax, ebx
call fcn.00404aac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4563e4
cmp dword [ebp - 8], 0
je 0x4563dc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
ret

Function at 0x456b04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x456bc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
sub eax, 1
jb 0x456b37
je 0x456b4a
dec eax
je 0x456b5d
jmp 0x456b6e
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp 0x456b6e
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp 0x456b6e
lea eax, [ebp - 0x100]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
cmp ebx, 2
jne 0x456b87
mov eax, esi
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004046d8
jmp 0x456baf
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004046d8
mov edx, dword [ebp - 0x104]
mov eax, esi
mov ecx, 0x456be0
call fcn.00404774
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456bcf
lea eax, [ebp - 0x104]
call fcn.00404470
ret