joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5774
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4b5786
add esp, 0xfffffff0
call fcn.0040539c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00441904
mov eax, dword [0x5047c8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4b5bd0
mov eax, dword [0x5047d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4b5bdc
mov eax, ebx
call fcn.004b5be8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x42a454]
call fcn.00404e38
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x42a454]
call fcn.00404e38
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x42a454]
call fcn.00404e38
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x42a454]
call fcn.00404e38
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x42a454]
call fcn.00404e38
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4b051c
push eax
push 0
push 0
mov eax, dword [0x5049ac]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x44e218]
call fcn.00454754
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x44e218]
call fcn.00454754
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x44e218]
call fcn.00454754
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x44e218]
call fcn.00454754
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x44e218]
call fcn.00454754
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004b6140
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b5fb0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b5fb0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b5fb0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b5fb0
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b5fb0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b5901
call fcn.004053f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4b5d50
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b5efd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4b5ede
mov dl, 1
mov eax, dword [0x42cb54]
call fcn.00438ebc
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00406d60
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4b5ecd
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.00498478
test al, al
je 0x4b5ec0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4b5f0c
lea eax, [ebp - 0x394]
call fcn.00415148
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4b5ec0
xor eax, eax
push ebp
push 0x4b5eb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4b5f7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4b5ea2
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406f48
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4b5ea2
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406f48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5ec0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4b5dc3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00438df8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5f04
lea eax, [ebp - 0x3a0]
call fcn.00406d50
ret

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

Disassembly:
push ecx
mov eax, dword [0x50a2c0]
cmp byte [eax + 0xad], 0
jne 0x4b6ace
cmp dword [0x50a2d8], 0
jne 0x4b6a8e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x503054]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x50a2d8], eax
cmp dword [0x50a2d4], 0
jne 0x4b6aa9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x50a2d4], eax
cmp dword [0x50a2dc], 0
jne 0x4b6ace
push esp
push 0
push 0
mov eax, dword [0x503050]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x50a2dc], eax
pop edx
ret
Function at 0x4b6df4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4b6e0b
add esp, 0xfffffff0
call fcn.0040539c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00441904
mov eax, dword [0x5046b8]
cmp byte [eax], 0
jne 0x4b6e38
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x504984]
cmp word [eax + 2], 0
jne 0x4b6e52
mov eax, dword [0x504984]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004b8eec
mov eax, dword [0x504a88]
cmp word [eax + 2], 0
jne 0x4b6e6c
mov eax, dword [0x504a88]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004b90fc
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44e218]
call fcn.00454754
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4b96ac
mov dl, 1
mov eax, dword [0x42a454]
call fcn.00404e38
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42a454]
call fcn.00404e38
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 [0x452918]
call fcn.0045df64
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4b704c
mov eax, dword [0x504858]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0045e3f8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4b9994
mov dl, 1
mov eax, dword [0x42a454]
call fcn.00404e38
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x504858]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00414f94
test eax, eax
je 0x4b6f7d
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00414d78
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00414f78
test eax, eax
je 0x4b6f95
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406f48
push ebx
push 0x4b88bc
call fcn.004acb04
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x5046b8]
cmp byte [eax], 0
jne 0x4b6fe6
mov eax, ebx
call fcn.004b71c0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004b9bc0
mov eax, ebx
call fcn.004ba7f4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b7043
call fcn.004053f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7494
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4b7536
cmp dword [ebx + 0x94], 0
jne 0x4b7530
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4b73e0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4b7530
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_GetWindowLongW
test al, 8
je 0x4b74f6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4b7530
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.00435850
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4b7505
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x50a2c0]
cmp dword [eax + 0x170], 0
je 0x4b78b9
test bl, bl
jne 0x4b7807
cmp dword [esi + 0x9c], 0
jne 0x4b77fc
mov eax, esi
call fcn.004ba644
push eax
push 0x4b7660
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4b77cd
mov eax, dword [0x50a2c0]
cmp byte [eax + 0xd3], 0
je 0x4b77cd
mov eax, dword [esi + 0xd8]
call fcn.00408544
mov edi, eax
cmp edi, 0
jl 0x4b77cd
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b77b6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b77fc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00435850
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b77dc
inc dword [esi + 0x9c]
jmp 0x4b78b9
cmp dword [esi + 0x9c], 0
jle 0x4b78b9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4b78b9
cmp dword [esi + 0x44], 0
je 0x4b7864
mov eax, dword [0x50a2c0]
cmp byte [eax + 0xd3], 0
je 0x4b7864
mov eax, dword [esi + 0xd8]
call fcn.00408544
mov edi, eax
cmp edi, 0
jl 0x4b7864
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b784d
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b7893
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00435850
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b7873
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4aa9dc]
call fcn.00408704
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4b8508
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4b8573
cmp byte [ebx + 0xd3], 0
jne 0x4b8573
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406e9c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4b8560
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4b8580
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d60
jmp 0x4b8580
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d60
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4b9da8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4b9e16
mov eax, esi
call fcn.004923d4
test al, al
je 0x4b9e16
mov eax, dword [ebx + 0x84]
call fcn.00492028
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b9e16
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4b9e0a
push 0
mov eax, dword [ebx + 0x84]
call fcn.00492028
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00488fc4
jmp 0x4b9e16
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004b9be0
pop esi
pop ebx
ret
Function at 0x4bb524
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40cbb0]
call fcn.00407a54
xor eax, eax
push ebp
push 0x4bb66e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x503094], 0
jne 0x4bb578
mov ecx, dword [0x5046d8]
mov dl, 1
mov eax, dword [0x40dfa4]
call fcn.00418af8
call fcn.00405940
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.0040482c
mov eax, ebx
call fcn.00406be4
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4bb67c
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00409b70
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4bb5bf
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4bb614
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4bb60d
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00406fb0
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00406f48
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.00412e64
test eax, eax
jne 0x4bb60d
mov ebx, 0x15
jmp 0x4bb619
mov ebx, 0x10
jmp 0x4bb619
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x503094]
call fcn.004bb390
mov eax, dword [ebp - 4]
call fcn.004bb390
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00409b88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb675
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00406d58
lea eax, [ebp - 0xc]
mov edx, dword [0x40cbb0]
call fcn.00407b2c
ret
Function at 0x4bf8b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x4bf8cc
add esp, 0xfffffff0
call fcn.0040539c
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4bf9e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00404264
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x4bf9d0
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004bb390
xor eax, eax
push ebp
push 0x4bf9bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004bb390
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00406fb0
jmp 0x4bf98e
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00407558
mov eax, dword [ebx + 4]
call fcn.004070b8
dec eax
jle 0x4bf9a2
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x4bf97c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf9c4
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf9ed
lea eax, [ebp - 4]
call fcn.00406a18
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4c70d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004c6f78
test esi, esi
je 0x4c70ba
mov eax, dword [ebp - 4]
call fcn.00406dec
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4c70b4
test al, 0x10
jne 0x4c70b8
xor ebx, ebx
jmp 0x4c70ba
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c70d7
lea eax, [ebp - 4]
call fcn.00406d50
ret

Function at 0x4c774c
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
cmp dword [esp + 4], 5
ja 0x4c7778
cmp dword [esp + 4], 5
jne 0x4c7774
cmp dword [esp + 8], 1
jae 0x4c7778
xor eax, eax
jmp 0x4c777a
mov al, 1
add esp, 0x114
ret
Function at 0x4c84e4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, eax
mov eax, ecx
test esi, esi
je 0x4c8514
test edx, edx
jle 0x4c8514
xor eax, 0xffffffff
test edx, edx
jle 0x4c8511
mov ecx, eax
xor cl, byte [esi]
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x50316c]
shr eax, 8
xor ecx, eax
mov eax, ecx
inc esi
dec edx
jne 0x4c84f8
xor eax, 0xffffffff
pop esi
ret

Function at 0x4c871c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov byte [ebp - 9], 1
cmp dword [ebp - 4], 0xffffffff
je 0x4c885b
xor eax, eax
push ebp
push 0x4c884d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00413c64
lea edx, [ebp - 0x58]
mov ecx, 0x40
mov eax, dword [ebp - 4]
call fcn.00413c0c
mov ebx, eax
cmp ebx, 0x40
jne 0x4c8843
cmp word [ebp - 0x58], 0x5a4d
jne 0x4c8843
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00413c64
test eax, eax
jl 0x4c8843
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.00413c0c
mov ebx, eax
cmp ebx, 4
jne 0x4c8843
cmp dword [ebp - 0x10], 0x4550
jne 0x4c8843
lea edx, [ebp - 0x6c]
mov ecx, 0x14
mov eax, dword [ebp - 4]
call fcn.00413c0c
mov ebx, eax
cmp ebx, 0x14
jne 0x4c8843
cmp word [ebp - 0x6c], 0x14c
jne 0x4c8843
movzx eax, word [ebp - 0x6a]
mov dword [ebp - 0x18], eax
mov ecx, 1
mov edx, 0xe0
mov eax, dword [ebp - 4]
call fcn.00413c64
test eax, eax
jl 0x4c8843
mov byte [ebp - 9], 0
mov edi, dword [ebp - 0x18]
test edi, edi
jle 0x4c8758
lea edx, [ebp - 0x94]
mov ecx, 0x28
mov eax, dword [ebp - 4]
call fcn.00413c0c
mov ebx, eax
cmp ebx, 0x28
je 0x4c882a
mov byte [ebp - 9], 1
jmp 0x4c8758
mov esi, dword [ebp - 0x80]
add esi, dword [ebp - 0x84]
cmp esi, dword [ebp - 8]
jbe 0x4c883b
mov dword [ebp - 8], esi
dec edi
jne 0x4c8807
jmp 0x4c8758
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c885b
cmp byte [ebp - 9], 0
je 0x4c8866
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ce14c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 0xd], dl
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ce2da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4ce2bf
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x4ce2b4
lea ecx, [ebp - 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov edx, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4ce1c7
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4ce1c7
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406314
test eax, eax
je 0x4ce1d0
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
jl 0x4ce2aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
setne al
or al, byte [ebp - 0xd]
je 0x4ce2aa
mov esi, dword [ebp - 4]
test esi, esi
je 0x4ce213
mov eax, esi
sub eax, 0xa
cmp word [eax], 2
je 0x4ce213
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406314
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4ce230
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4ce230
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406314
test eax, eax
je 0x4ce239
sub eax, 4
mov eax, dword [eax]
mov edx, 0x4ce2e8
mov dword [ebp - 0x14], edx
cmp word [esi + eax*2 - 2], 0x100
jae 0x4ce25a
movzx eax, byte [esi + eax*2 - 2]
mov edx, dword [ebp - 0x14]
movzx eax, al
bt dword [edx], eax
jb 0x4ce25e
xor eax, eax
jmp 0x4ce260
mov al, 1
test al, al
je 0x4ce290
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041a57c
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406db4
mov eax, dword [ebp - 4]
call fcn.004c7074
test al, al
je 0x4ce2aa
mov eax, dword [ebp - 4]
call fcn.00414ce4
jmp 0x4ce2aa
mov eax, dword [ebp - 4]
call fcn.00413d00
test al, al
je 0x4ce2aa
mov eax, dword [ebp - 4]
call fcn.00406dec
push eax
call sub.kernel32.dll_DeleteFileW
dec ebx
cmp ebx, 0xffffffff
jne 0x4ce19a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce2e1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406d58
ret
Function at 0x4ce618
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406d48
mov eax, dword [ebp - 8]
call fcn.00406d48
xor eax, eax
push ebp
push 0x4ce739
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4ce660
lea eax, [ebp - 4]
mov edx, 0x4ce754
call fcn.00406db4
cmp dword [ebp - 8], 0
jne 0x4ce673
lea eax, [ebp - 8]
mov edx, 0x4ce768
call fcn.00406db4
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x4ce67f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4ce6b0
mov eax, dword [ebp - 0x10]
call fcn.00406dec
push eax
push 0
call sub.kernel32.dll_GetTempPathW
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004070c4
mov eax, dword [ebp - 0x10]
call fcn.00406dec
push eax
push ebx
call sub.kernel32.dll_GetTempPathW
jmp 0x4ce6bd
lea ecx, [ebp - 0x10]
mov dl, 1
mov eax, dword [ebx + 0x78]
call fcn.004c6f78
lea eax, [ebp - 0xc]
mov edx, 0x110
call fcn.004070c4
mov eax, dword [ebp - 0xc]
call fcn.00406dec
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00406dec
push eax
mov eax, dword [ebp - 0x10]
call fcn.00406dec
push eax
call sub.kernel32.dll_GetTempFileNameW
test eax, eax
je 0x4ce71e
mov eax, dword [ebp - 0xc]
call fcn.00406dec
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00406f0c
mov eax, dword [ebp - 0xc]
call fcn.00406dec
push eax
call sub.kernel32.dll_DeleteFileW
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004142a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce740
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406d58
ret