joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485d0c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x485dae
cmp dword [ebx + 0x90], 0
jne 0x485da8
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x485c58
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x485da8
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 0x485d6e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x485da8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.0042e35c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x485d7d
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x53e178]
cmp dword [eax + 0x170], 0
je 0x486131
test bl, bl
jne 0x48607f
cmp dword [esi + 0x98], 0
jne 0x486074
mov eax, esi
call fcn.00488bac
push eax
push 0x485ed8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x486045
mov eax, dword [0x53e178]
cmp byte [eax + 0xcf], 0
je 0x486045
mov eax, dword [esi + 0xd4]
call fcn.00407e64
mov edi, eax
cmp edi, 0
jl 0x486045
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x48602e
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x486074
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0042e35c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x486054
inc dword [esi + 0x98]
jmp 0x486131
cmp dword [esi + 0x98], 0
jle 0x486131
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x486131
cmp dword [esi + 0x40], 0
je 0x4860dc
mov eax, dword [0x53e178]
cmp byte [eax + 0xcf], 0
je 0x4860dc
mov eax, dword [esi + 0xd4]
call fcn.00407e64
mov edi, eax
cmp edi, 0
jl 0x4860dc
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4860c5
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x48610b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0042e35c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4860eb
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x47b744]
call fcn.00408024
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x486cec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x486d57
cmp byte [ebx + 0xcf], 0
jne 0x486d57
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.00406584
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x486d44
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x486d64
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406448
jmp 0x486d64
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406448
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x48836c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x4883da
mov eax, esi
call fcn.0046ec04
test al, al
je 0x4883da
mov eax, dword [ebx + 0x80]
call fcn.0046e858
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4883da
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4883ce
push 0
mov eax, dword [ebx + 0x80]
call fcn.0046e858
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00465e58
jmp 0x4883da
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.004881b8
pop esi
pop ebx
ret

Function at 0x489938
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x48997e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004898cc
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489985
lea eax, [ebp - 4]
call fcn.00406438
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4899a5
test al, 0x10
je 0x4899a9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4899f2
test al, 0x10
je 0x4899f2
test ah, 4
je 0x4899f6
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4899fc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00406430
xor eax, eax
push ebp
push 0x489af1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00406eb0
mov ebx, pe_nt_image_headers32
mov eax, edi
mov ecx, ebx
xor edx, edx
call fcn.00406584
cmp dword [ebp + 0xc], 0
je 0x489a7b
mov eax, dword [ebp + 0xc]
call fcn.004064d4
push eax
push ebx
mov eax, edi
call fcn.00406eb8
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004064d4
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov esi, eax
jmp 0x489aa6
push ebx
mov eax, edi
call fcn.00406eb8
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004064d4
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetProfileStringW
mov esi, eax
test esi, esi
je 0x489ab8
mov eax, dword [edi]
call fcn.004064d4
call fcn.00418a98
mov esi, eax
mov eax, ebx
sub eax, 8
cmp esi, eax
jl 0x489ac9
cmp ebx, 0x10000
jl 0x489ad4
mov eax, edi
mov edx, esi
call fcn.004067bc
jmp 0x489adb
add ebx, ebx
jmp 0x489a34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489af8
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x489bc4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov word [ebp - 0x10], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x489c0e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004064d4
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004064d4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x489c32
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004064d4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetProfileStringW
push ebx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x489ca4
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov word [esp], 0
test ebx, ebx
je 0x489ce2
mov eax, ebx
call fcn.004064d4
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x489d14
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x489d00
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x489d14
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetProfileStringW
cmp word [esp], 0
sete al
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x48a0e4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x48a17b
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x48a12f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00406584
jmp 0x48a165
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x48a148
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040649c
jmp 0x48a15b
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00489f34
mov ebx, eax
test esi, esi
je 0x48a15b
dec esi
jmp 0x48a136
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a182
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x48a55c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00418e3c
add esp, 0x208
pop ebx
ret

Function at 0x48a588
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00418e3c
add esp, 0x208
pop ebx
ret

Function at 0x48a65c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48a6db
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x48a6b7
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jb 0x48a6b7
lea eax, [ebp - 8]
call fcn.0048a588
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004890d8
lea eax, [ebp - 4]
mov edx, 0x48a6f4
call fcn.00406854
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.00489504
jmp 0x48a6c0
mov eax, esi
xor edx, edx
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a6e2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406440
ret
Function at 0x48a944
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x48aa7c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x48aa66
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x48a9a1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x48aa66
cmp dword [ebp - 0x14], 0
jne 0x48a9b8
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00406448
mov bl, 1
jmp 0x48aa66
cmp dword [ebp - 0x14], 0x70000000
jb 0x48a9c6
call fcn.0041c670
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00406584
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00406eb8
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x48a96a
test eax, eax
jne 0x48aa66
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x48aa14
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x48aa66
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x48aa1c
dec esi
test esi, esi
je 0x48aa2b
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x48aa1b
cmp dword [ebp - 0x10], 7
jne 0x48aa36
test esi, esi
je 0x48aa36
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.004067bc
cmp dword [ebp - 0x10], 7
jne 0x48aa59
test esi, esi
je 0x48aa59
lea eax, [ebp - 4]
call fcn.00406eb8
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406448
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48aa83
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x48aaa8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov ebp, eax
push 0
push 0
push 0
push 0
push esi
push ebp
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
test bl, bl
je 0x48ab24
test esi, esi
je 0x48aad5
cmp word [esi], 0
jne 0x48ab24
mov eax, dword [0x538070]
cmp dword [eax], 2
je 0x48ab24
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push ebp
call sub.advapi32.dll_RegEnumValueW
mov edi, eax
test edi, edi
je 0x48ab12
cmp edi, 0xea
jne 0x48ab24
test edi, edi
jne 0x48ab21
cmp word [esp], 0
jne 0x48ab21
mov bl, 1
jmp 0x48ab24
inc esi
jmp 0x48aae3
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48ab90
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x48aba4
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x53e1a0], 0
jne 0x48abc7
push 0x48abec
push 0x48ac0c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409658
mov dword [0x53e1a0], eax
cmp dword [0x53e1a0], 0
je 0x48abe1
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x53e1a0]
jmp 0x48abe6
mov eax, 0x7f
pop esi
pop ebx
ret

Function at 0x48ac28
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x48ad9b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x48ac5c
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x48ac66
mov ebx, 0x57
jmp 0x48ad85
mov eax, dword [0x538070]
cmp dword [eax], 2
jne 0x48ad74
push 0
push 8
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
movzx eax, byte [ebp - 5]
call fcn.0048ab68
test eax, eax
jne 0x48ad74
xor eax, eax
push ebp
push 0x48ad6d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.00406584
xor eax, eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x48acc1
sub ebx, 4
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
call fcn.00406eb8
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov esi, eax
cmp esi, 0xea
jne 0x48ad2c
mov edi, dword [ebp - 4]
test edi, edi
je 0x48acfc
sub edi, 4
mov edi, dword [edi]
cmp edi, 0x10000
jge 0x48ad56
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x48ad1b
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406584
jmp 0x48acb5
test esi, esi
jne 0x48ad56
mov eax, dword [ebp - 4]
call fcn.004064d4
mov ecx, eax
mov edx, dword [ebp - 0x14]
movzx eax, byte [ebp - 5]
call fcn.0048ac28
test eax, eax
je 0x48acb5
inc dword [ebp - 0x18]
jmp 0x48acb5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ad74
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
movzx eax, byte [ebp - 5]
call fcn.0048ab90
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ada2
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x48ae34
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [0x538070]
cmp dword [eax], 2
je 0x48ae51
mov byte [ebp - 1], 1
jmp 0x48b01f
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x536e14
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x48b01f
xor eax, eax
push ebp
push 0x48b018
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x48aeb3
push 0x48b02c
push 0x48b058
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409658
mov ebx, eax
test ebx, ebx
je 0x48aeda
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x48b001
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x48b001
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x48af2b
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x48af0c
call fcn.00404b68
jmp 0x48b01f
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x48af2b
call fcn.00404b68
jmp 0x48b01f
xor eax, eax
push ebp
push 0x48affa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x48af6e
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x48af6e
call fcn.00404b68
call fcn.00404b68
jmp 0x48b01f
mov eax, dword [ebp - 0x14]
call fcn.00403018
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x48afa0
call fcn.00404b68
call fcn.00404b68
jmp 0x48b01f
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x48afdb
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x48afd7
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x48afd7
mov byte [ebp - 1], 1
jmp 0x48afdb
inc ebx
dec esi
jne 0x48afad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b001
mov eax, dword [ebp - 0x18]
call fcn.00403034
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b01f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48badc
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x48bb83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x538070]
cmp dword [eax], 2
jne 0x48bb1f
push 1
mov eax, esi
call fcn.004064d4
push eax
mov eax, edi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x48bb6d
mov eax, esi
call fcn.004064d4
mov edx, eax
lea eax, [ebp - 4]
call fcn.00406604
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x48bb52
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x48bb6d
mov eax, esi
call fcn.004064d4
push eax
mov eax, edi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bb8a
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x48ccc0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x53e1c4
mov eax, esi
mov edx, 8
test al, 1
je 0x48ccdc
shr eax, 1
xor eax, 0xedb88320
jmp 0x48ccde
shr eax, 1
dec edx
jne 0x48cccf
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x48ccc8
pop esi
ret

Function at 0x48ccf4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x53e1c0], 0
jne 0x48cd17
call fcn.0048ccc0
push 1
push 0x53e1c0
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x48cd42
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x53e1c4]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x48cd1d
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x48da84
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004064d4
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jle 0x48db26
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48db1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x48db09
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x48db48
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x48db09
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48db3d
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
mov eax, dword [0x538070]
cmp dword [eax], 1
je 0x48db3d
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0048d8a8
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret