joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4489c0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4489dc
cmp dword [esi + 4], 0
je 0x448a09
test byte [ebx + 0x55], 1
jne 0x4489fb
mov eax, ebx
call fcn.00447560
test eax, eax
jne 0x4489fb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x448b19
mov edx, esi
mov eax, ebx
call fcn.004484e4
jmp 0x448b19
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x448b12
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044a830
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004451fc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004489c0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044a830
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448b19
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f1ec
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5251c4]
cmp byte [eax + 0xc], 0
je 0x44f359
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44f352
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x526b94], 0
jne 0x44f240
push 0x44f360
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44f368
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x526b94], eax
cmp dword [0x521e40], 0
jne 0x44f33b
push 0x44f378
call sub.kernel32.dll_LoadLibraryA
mov dword [0x521e40], eax
cmp dword [0x521e40], 0
je 0x44f33b
push 0x44f384
mov eax, dword [0x521e40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x526b98], eax
push 0x44f394
mov eax, dword [0x521e40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x526b9c], eax
push 0x44f3a8
mov eax, dword [0x521e40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x526ba0], eax
push 0x44f3c0
mov eax, dword [0x521e40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x526ba4], eax
push 0x44f3d8
mov eax, dword [0x521e40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x526ba8], eax
push 0x44f3ec
mov eax, dword [0x521e40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x526bac], eax
push 0x44f404
mov eax, dword [0x521e40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x526bb0], eax
push 0x44f41c
mov eax, dword [0x521e40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x526bb4], eax
push 0x44f438
mov eax, dword [0x521e40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x526bb8], eax
push 0x44f444
mov eax, dword [0x521e40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x526bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f359
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x453490
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.00404574
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4534df
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.004047e4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45acf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45ad40]
test si, 4
je 0x45ad04
or bl, 1
test si, 8
je 0x45ad0e
or bl, 4
test si, 1
je 0x45ad18
or bl, 8
test si, 2
je 0x45ad22
or bl, 0x10
test si, 0x10
je 0x45ad2c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45ad3b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45ad44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45ad7c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45ad5d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45ad6c
or bl, 4
test esi, 0x20000000
je 0x45ad77
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x461440
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x461452
add esp, 0xfffffff0
call fcn.00403b04
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004262b8
mov eax, dword [0x524c00]
mov dword [eax + 4], ebx
mov dword [eax], 0x4617e4
mov eax, dword [0x524c10]
mov dword [eax + 4], ebx
mov dword [eax], 0x4617f0
mov eax, ebx
call fcn.004617fc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41acc8]
call fcn.0040375c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41acc8]
call fcn.0040375c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41acc8]
call fcn.0040375c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41acc8]
call fcn.0040375c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41acc8]
call fcn.0040375c
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, 0x45dc14
push eax
push 0
push 0
mov eax, dword [0x524e5c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x427d44]
call fcn.004294dc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x427d44]
call fcn.004294dc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x427d44]
call fcn.004294dc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00461d00
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x461b80
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x461b80
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x461b80
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46158f
call fcn.00403b5c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x461964
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 0x461b0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x461af0
mov dl, 1
mov eax, dword [0x41b41c]
call fcn.0040375c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404574
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x461adf
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.0044f54c
test al, al
je 0x461ad2
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, 0x461b20
lea eax, [ebp - 0x254]
call fcn.00409fcc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x461ad2
xor eax, eax
push ebp
push 0x461acb
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 0x461b58
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x461ab4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047e4
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 0x461ab4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461ad2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4619d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420224
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 0x461b16
lea eax, [ebp - 0x260]
call fcn.00404574
ret

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

Disassembly:
push ecx
mov eax, dword [0x526be0]
cmp byte [eax + 0xa5], 0
jne 0x462511
cmp dword [0x526bf8], 0
jne 0x4624d2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46245c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x526bf8], eax
cmp dword [0x526bf4], 0
jne 0x4624ed
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x526bf4], eax
cmp dword [0x526bfc], 0
jne 0x462511
push esp
push 0
push 0
push 0x462400
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x526bfc], eax
pop edx
ret
Function at 0x462ba4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x526be0]
cmp dword [eax + 0x30], 0
je 0x462c4e
cmp dword [ebx + 0x94], 0
jne 0x462c48
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x462b34
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x462c48
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 0x462c0e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x462c48
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.0041d7ec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x462c1d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4637ac
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 0x4637e1
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.00404664
jmp 0x4637ee
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045c8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x464928
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x464969
mov eax, esi
call fcn.0044ab34
test al, al
je 0x464969
mov eax, dword [ebx + 0x84]
call fcn.0044a830
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x464969
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044a830
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46de4c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46de7a
mov eax, ebx
call fcn.0046e900
cmp dword [ebx + 0x40], 0
je 0x46de73
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46deeb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46dedd
cmp dword [ebx + 8], 0
je 0x46de9c
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 0x46deae
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46dedd
cmp dword [ebx + 8], 0
je 0x46de8f
cmp eax, 3
je 0x46dec1
dec eax
jne 0x46de8f
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 0x46de8f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46de8f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46df09
cmp dword [ebx + 0x14], 0xcc
je 0x46df09
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.0046df14
pop ebx
ret
Function at 0x47e5a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47e62a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push edi
push esi
call sub.kernel32.dll_GetLocaleInfoA_1
mov ebx, eax
test ebx, ebx
jne 0x47e5e5
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.004045c8
jmp 0x47e614
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404bc0
push ebx
mov eax, dword [ebp - 8]
call fcn.00404a34
push eax
push edi
push esi
call sub.kernel32.dll_GetLocaleInfoA_1
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e631
lea eax, [ebp - 8]
call fcn.00404574
ret
Function at 0x484fa4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0045ad80
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x49cd9c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov eax, dword [ecx]
mov edx, eax
add edx, 3
mov dword [ebp - 0xc], edx
mov edx, dword [ecx + 8]
sub edx, eax
sub edx, 6
mov dword [ebp - 8], edx
mov esi, dword [ecx + 4]
add esi, dword [ecx + 0xc]
sub esi, 9
sar esi, 1
jns 0x49cdcc
adc esi, 0
mov eax, dword [ebp - 4]
call fcn.004ad4a0
mov edx, dword [ebp + 8]
call fcn.00429b9c
xor ebx, ebx
push ebp
mov ecx, ebx
and cl, 1
xor cl, 1
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0049cd44
pop ecx
add esi, 2
inc ebx
cmp ebx, 5
jne 0x49cdde
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c1f48
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x4c1f50
push ebx
mov ebx, 0x52836c
xor eax, eax
push ebp
push 0x4c2165
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x5250b8]
call fcn.0047ff08
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004045c8
lea edx, [ebp - 8]
mov eax, dword [0x524f80]
call fcn.0047ff08
mov edx, dword [ebp - 8]
lea eax, [ebx + 4]
call fcn.004045c8
lea edx, [ebp - 0xc]
mov eax, dword [0x524f78]
call fcn.0047ff08
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 8]
call fcn.004045c8
lea edx, [ebp - 0x10]
mov eax, dword [0x524b8c]
call fcn.0047ff08
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xc]
call fcn.004045c8
lea edx, [ebp - 0x14]
mov eax, dword [0x524c7c]
call fcn.0047ff08
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004045c8
lea edx, [ebp - 0x18]
mov eax, dword [0x525118]
call fcn.0047ff08
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004045c8
lea edx, [ebp - 0x1c]
mov eax, dword [0x5251b8]
call fcn.0047ff08
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x18]
call fcn.004045c8
lea edx, [ebp - 0x20]
mov eax, dword [0x524d24]
call fcn.0047ff08
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.004045c8
lea edx, [ebp - 0x24]
mov eax, dword [0x524b78]
call fcn.0047ff08
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0x20]
call fcn.004045c8
lea edx, [ebp - 0x28]
mov eax, dword [0x524c38]
call fcn.0047ff08
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x24]
call fcn.004045c8
lea edx, [ebp - 0x2c]
mov eax, dword [0x524a7c]
call fcn.0047ff08
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x28]
call fcn.004045c8
lea edx, [ebp - 0x30]
mov eax, dword [0x524bfc]
call fcn.0047ff08
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x2c]
call fcn.004045c8
lea edx, [ebp - 0x34]
mov eax, dword [0x524b6c]
call fcn.0047ff08
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x30]
call fcn.004045c8
lea edx, [ebp - 0x38]
mov eax, dword [0x524f74]
call fcn.0047ff08
mov edx, dword [ebp - 0x38]
lea eax, [ebx + 0x34]
call fcn.004045c8
lea edx, [ebp - 0x3c]
mov eax, dword [0x525088]
call fcn.0047ff08
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x38]
call fcn.004045c8
lea edx, [ebp - 0x40]
mov eax, dword [0x524f50]
call fcn.0047ff08
mov edx, dword [ebp - 0x40]
lea eax, [ebx + 0x3c]
call fcn.004045c8
lea edx, [ebp - 0x44]
mov eax, dword [0x524ea0]
call fcn.0047ff08
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x40]
call fcn.004045c8
lea edx, [ebp - 0x48]
mov eax, dword [0x524bec]
call fcn.0047ff08
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x44]
call fcn.004045c8
lea edx, [ebp - 0x4c]
mov eax, dword [0x5250dc]
call fcn.0047ff08
mov edx, dword [ebp - 0x4c]
lea eax, [ebx + 0x48]
call fcn.004045c8
lea edx, [ebp - 0x50]
mov eax, dword [0x524a8c]
call fcn.0047ff08
mov edx, dword [ebp - 0x50]
lea eax, [ebx + 0x4c]
call fcn.004045c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c216c
lea eax, [ebp - 0x50]
mov edx, 0x14
call fcn.00404598
ret
Function at 0x50e854
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
mov esi, dword [ebp + 8]
mov esi, dword [esi - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x10]
mov eax, dword [ebp + 8]
mov dl, byte [eax + 0x38]
mov eax, dword [ebp + 8]
mov al, byte [eax - 1]
call fcn.0050f094
mov ebx, eax
mov dl, 1
mov eax, dword [0x4286e0]
call fcn.0042ea7c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50e9a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [esi + 8]
sub edx, dword [esi]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x30]
cdq
idiv ecx
imul ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov edx, dword [eax]
call dword [edx + 0x20]
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
sub ebx, eax
sar ebx, 1
jns 0x50e90d
adc ebx, 0
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041c038
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
call fcn.0042f04c
push eax
mov eax, dword [ebp - 4]
call fcn.0042f04c
pop ecx
pop edx
call fcn.0042a3ec
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x38], 3
setne al
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
call fcn.004291f0
push eax
push 0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004c4384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e9ab
mov eax, dword [ebp - 4]
call fcn.0040378c
ret
Function at 0x51ec58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x51ece2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404574
mov eax, 0x104
call fcn.00409b60
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push esi
mov eax, dword [0x524f38]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x51ecbb
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040476c
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
mov eax, dword [ebp - 8]
call fcn.00409bbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ece9
lea eax, [ebp - 0xc]
call fcn.004063b4
ret