joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44257c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4747e4
cmp dword [edi], 0
jne 0x4425f8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4747e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x472984
mov ecx, 2
call fcn.00402824
mov edx, 0x442554
lea eax, [esi + 5]
call fcn.00442574
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00442574
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4425cd
mov dword [0x4747e0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x442714
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442764]
test si, 4
je 0x442728
or bl, 1
test si, 8
je 0x442732
or bl, 4
test si, 1
je 0x44273c
or bl, 8
test si, 2
je 0x442746
or bl, 0x10
test si, 0x10
je 0x442750
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44275f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x442768
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4427a0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442781
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442790
or bl, 4
test esi, 0x20000000
je 0x44279b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x448940
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x448952
add esp, 0xfffffff0
call fcn.00403068
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004124c4
mov eax, ebx
call fcn.00448c8c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40c4c0]
call fcn.00402d38
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40c4c0]
call fcn.00402d38
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40c4c0]
call fcn.00402d38
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40c4c0]
call fcn.00402d38
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40c4c0]
call fcn.00402d38
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x445430
push eax
push 0
push 0
mov eax, dword [0x472f58]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41398c]
call fcn.00414ec4
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x41398c]
call fcn.00414ec4
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41398c]
call fcn.00414ec4
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004490fc
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x448fd0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x448fd0
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x448fd0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x448a61
call fcn.004030c0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x448db4
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 0x448f5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x448f40
mov dl, 1
mov eax, dword [0x40c7c0]
call fcn.00402d38
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004039f0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x448f2f
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.00437358
test al, al
je 0x448f22
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, 0x448f70
lea eax, [ebp - 0x254]
call fcn.0040899c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x448f22
xor eax, eax
push ebp
push 0x448f1b
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 0x448fa8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x448f04
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c20
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x448f04
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448f22
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x448e25
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040f558
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448f66
lea eax, [ebp - 0x260]
call fcn.004039f0
ret

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

Disassembly:
push ecx
mov eax, dword [0x4747d4]
cmp byte [eax + 0x95], 0
jne 0x449865
cmp dword [0x4747f0], 0
jne 0x449826
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4497b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4747f0], eax
cmp dword [0x4747ec], 0
jne 0x449841
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4747ec], eax
cmp dword [0x4747f4], 0
jne 0x449865
push esp
push 0
push 0
push 0x449754
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4747f4], eax
pop edx
ret
Function at 0x44995c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x449973
add esp, 0xfffffff0
call fcn.00403068
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004124c4
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40c4c0]
call fcn.00402d38
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40c4c0]
call fcn.00402d38
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x41431c]
call fcn.0041b5b8
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x449ae8
mov eax, dword [0x472e64]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041b9c4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b50c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x472e64]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.00409e4c
test eax, eax
je 0x449a66
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040833c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409e74
test eax, eax
je 0x449a7a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403c20
mov eax, dword [0x472d38]
cmp byte [eax], 0
jne 0x449aab
mov eax, ebx
call fcn.00449bd4
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x449add
call fcn.004030c0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449e44
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4747d4]
cmp dword [eax + 0x24], 0
je 0x449ee7
cmp dword [ebx + 0x84], 0
jne 0x449ee1
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x449dd4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x449ee1
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 0x449eaa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x449ee1
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040db84
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x449eb9
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x44a8f4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x44a929
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ad8
jmp 0x44a933
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403a44
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44b880
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x44b8b8
mov eax, esi
call fcn.00433078
test al, al
je 0x44b8b8
mov eax, dword [ebx + 0x74]
call fcn.00432d7c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44b8b8
push 0
mov eax, dword [ebx + 0x74]
call fcn.00432d7c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45022c
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 0x450395
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403a88
mov eax, dword [ebp - 0x10]
call fcn.0044ff94
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x45027e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00403eb8
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.00450704
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x450353
xor eax, eax
push ebp
push 0x45034c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00450104
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004503c4
test al, al
je 0x45032a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403ad8
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x45032a
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.00403e34
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x450324
mov eax, dword [ebp - 0x14]
call fcn.00403e34
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403ba8
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0045022c
dec ebx
cmp ebx, 0xffffffff
jne 0x4502dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450353
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00450104
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00403e34
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004500f0
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 0x45039c
lea eax, [ebp - 0x3c]
call fcn.004039f0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403a14
ret
Function at 0x4503c4
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.00402a80
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 [0x473150]
cmp byte [edx + 8], 0
je 0x450428
mov edx, dword [0x473148]
cmp dword [edx], 2
jne 0x450428
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 0x450628
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.0044ffa8
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.00403e34
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x450686
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x472f60]
mov dl, 1
mov eax, dword [0x44fea0]
call fcn.004093b8
call fcn.004034c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x450690
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.00403e34
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4506e8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47315c]
mov dl, 1
mov eax, dword [0x44fea0]
call fcn.004093b8
call fcn.004034c0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0044ffd8
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 0x453518
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4535f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x474874], 0
jne 0x4535d4
lea eax, [ebp - 4]
mov edx, 0x453608
call fcn.00403a88
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403e34
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4535d4
mov eax, ebx
call fcn.0040270c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4535cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4535b7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x453618
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4535b7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x474874], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4535d4
mov eax, dword [ebp - 0xc]
call fcn.00402724
ret
mov ebx, dword [0x474874]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4535f7
lea eax, [ebp - 4]
call fcn.004039f0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403e34
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x45da51
test al, 0x10
jne 0x45da55
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x46340c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
xor edx, edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x40c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4634a6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x400
lea eax, [ebp - 0x401]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x401]
mov ecx, 0x401
call fcn.00403c20
mov eax, dword [ebp - 0x40c]
lea edx, [ebp - 0x408]
call fcn.00409cb0
push dword [ebp - 0x408]
push 0x4634bc
push 0x4634c8
mov eax, ebx
mov edx, 3
call fcn.00403d30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4634ad
lea eax, [ebp - 0x40c]
mov edx, 2
call fcn.00403a14
ret
Function at 0x463d14
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x463da2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 0x10]
mov cl, 1
call fcn.0046f334
mov esi, eax
mov edx, esi
mov eax, dword [ebx + 4]
call fcn.0045f124
mov eax, esi
call fcn.00402d68
lea edx, [ebp - 4]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x14]
call fcn.00463c5c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 4]
call fcn.0045f200
mov eax, dword [ebx + 0xc]
mov dl, byte [eax + 0x3c]
mov eax, dword [ebx + 4]
call fcn.0045f254
mov eax, dword [ebx + 0xc]
mov dl, byte [eax + 0x1c]
mov eax, dword [ebx + 4]
call fcn.0045f138
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [eax + 0x30], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463da9
lea eax, [ebp - 4]
call fcn.004039f0
ret
Function at 0x464d8c
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x464f7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x4c]
call fcn.00407f90
mov ebx, dword [eax + 0xc]
lea eax, [ebp - 4]
call fcn.004039f0
mov edi, dword [ebx + 0x30]
mov eax, edi
cmp eax, 5
ja case.default.0x464dcd
jmp dword [eax*4 + 0x464dd4]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.0046d23c
push eax
mov eax, dword [0x472fe0]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebp + 8]
push eax
mov al, byte [ebx + 0x20]
push eax
mov cl, byte [ebx + 0x1f]
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004649f0
pop ecx
mov eax, dword [ebp - 0x10]
call fcn.0046d3c0
jmp case.default.0x464dcd
mov eax, dword [ebp + 8]
push eax
mov al, byte [ebx + 0x20]
push eax
mov cl, byte [ebx + 0x1f]
xor edx, edx
mov eax, esi
call fcn.004649f0
pop ecx
jmp case.default.0x464dcd
lea edx, [ebp - 0x14]
mov eax, 2
call fcn.0046eb24
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
call fcn.00407de0
lea edx, [ebp - 0x18]
mov eax, 0x17
call fcn.0046eb24
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
call fcn.00407de0
cmp dword [ebp - 8], 0
jne 0x464e88
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00403a88
jmp 0x464eb3
cmp dword [ebp - 0xc], 0
jne 0x464e9b
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00403a88
jmp 0x464eb3
push dword [ebp - 8]
push 0x464f90
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403d30
mov eax, dword [ebp + 8]
push eax
mov al, byte [ebx + 0x20]
push eax
mov cl, byte [ebx + 0x1f]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004646bc
pop ecx
jmp case.default.0x464dcd
lea edx, [ebp - 0x1c]
mov eax, 6
call fcn.0046eb24
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 8]
call fcn.00407de0
lea edx, [ebp - 0x20]
mov eax, 0x1f
call fcn.0046eb24
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0xc]
call fcn.00407de0
cmp dword [ebp - 8], 0
jne 0x464f11
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00403a88
jmp 0x464f3c
cmp dword [ebp - 0xc], 0
jne 0x464f24
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00403a88
jmp 0x464f3c
push dword [ebp - 8]
push 0x464f90
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403d30
mov eax, dword [ebp + 8]
push eax
mov al, byte [ebx + 0x20]
push eax
mov cl, byte [ebx + 0x1f]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004646bc
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464f81
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00403a14
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403a14
ret
Function at 0x4651e4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x170], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403e24
xor eax, eax
push ebp
push 0x4653f2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x14], 0xffffffff
jne 0x4653cc
cmp dword [ebx + 0x18], 0xffffffff
jne 0x4653cc
mov edx, dword [ebp - 4]
mov eax, 0x465408
call fcn.00403f5c
test eax, eax
je 0x465272
mov edx, dword [ebp - 4]
mov eax, 0x465408
call fcn.00403f5c
push eax
mov eax, dword [ebp - 4]
call fcn.00403c70
mov ecx, eax
lea eax, [ebp - 4]
pop edx
call fcn.00403eb8
cmp byte [ebx + 0x11], 0
je 0x4652b6
cmp dword [ebx + 0xc], 0
jne 0x4652b6
push 0x4009
push 0x160
lea eax, [ebp - 0x16c]
push eax
push 0
mov eax, dword [ebx + 8]
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4652a8
xor eax, eax
mov dword [ebx + 0x14], eax
jmp 0x4653cc
mov eax, dword [ebp - 0x168]
mov dword [ebx + 0x18], eax
jmp 0x4653cc
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 4]
call fcn.00407de0
cmp dword [ebp - 0x170], 0
je 0x4653c1
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 4]
call fcn.00408218
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
call fcn.00407c10
mov eax, dword [ebp - 0x174]
mov edx, 0x465414
call fcn.00403d80
je 0x465333
lea edx, [ebp - 0x180]
mov eax, dword [ebp - 4]
call fcn.00408218
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x17c]
call fcn.00407c10
mov eax, dword [ebp - 0x17c]
mov edx, 0x465424
call fcn.00403d80
jne 0x46538a
test esi, esi
je 0x46538a
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, dword [ebp - 4]
call fcn.00403e34
push eax
call sub.shell32.dll_ExtractIconExA
mov esi, dword [ebp - 8]
test esi, esi
je 0x465371
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x24]
call fcn.00438928
mov edx, esi
call fcn.0041c3e4
mov dword [ebx + 0x14], eax
jmp 0x465376
xor eax, eax
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_DestroyIcon
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyIcon
jmp 0x4653c3
push 0x4001
push 0x160
lea eax, [ebp - 0x16c]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00403e34
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4653b6
xor eax, eax
mov dword [ebx + 0x14], eax
jmp 0x4653cc
mov eax, dword [ebp - 0x168]
mov dword [ebx + 0x18], eax
jmp 0x4653cc
xor esi, esi
test esi, esi
jne 0x4653cc
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4653f9
lea eax, [ebp - 0x180]
mov edx, 5
call fcn.00403a14
lea eax, [ebp - 4]
call fcn.004039f0
ret