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

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5f5c26
cmp dword [ebx + 0xac], 0
jne 0x5f5c20
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5f5ac4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5f5c20
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 0x5f5be6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5f5c20
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.0045d504
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5f5bf5
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x7b81fc]
cmp dword [eax + 0x188], 0
je 0x5f6035
test bl, bl
jne 0x5f5f88
cmp dword [esi + 0xb4], 0
jne 0x5f5f7d
mov eax, esi
call fcn.005f8f64
push eax
push 0x5f5dcc
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5f5f4e
mov eax, dword [0x7b81fc]
cmp byte [eax + 0xeb], 0
je 0x5f5f4e
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5f5f2f
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5f5f4e
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5f5f37
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5f5f7d
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.0045d504
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5f5f5d
inc dword [esi + 0xb4]
jmp 0x5f6035
cmp dword [esi + 0xb4], 0
jle 0x5f6035
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5f6035
cmp dword [esi + 0x58], 0
je 0x5f5fea
mov eax, dword [0x7b81fc]
cmp byte [eax + 0xeb], 0
je 0x5f5fea
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5f5fcb
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5f5fea
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5f5fd3
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5f6019
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.0045d504
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5f5ff9
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5e6b64]
call fcn.0040babc
pop edi
pop esi
pop ebx
ret
Function at 0x5f6d80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5f6ddd
cmp byte [ebx + 0xeb], 0
jne 0x5f6ddd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040893c
mov eax, dword [esi]
test eax, eax
je 0x5f6dca
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5f6dea
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00408b94
jmp 0x5f6dea
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00408b94
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5f86a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5f8711
mov eax, esi
call fcn.0050df74
test al, al
je 0x5f8711
mov eax, dword [ebx + 0x98]
call fcn.0050dba0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5f8711
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x140]
test al, al
je 0x5f8702
push 0
mov eax, dword [ebx + 0x98]
call fcn.0050dba0
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00504858
jmp 0x5f8711
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005f84ac
pop esi
pop ebx
ret
Function at 0x60414c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x604192
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.006040a0
mov eax, dword [ebp - 4]
call fcn.00409868
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 0x604199
lea eax, [ebp - 4]
call fcn.004087b4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00409868
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x6041b9
test al, 0x10
je 0x6041bd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00409868
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x604206
test al, 0x10
je 0x604206
test ah, 4
je 0x60420a
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x604210
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
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.00408898
xor eax, eax
push ebp
push 0x604309
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00408d70
mov ebx, pe_nt_image_headers32
mov eax, edi
mov ecx, ebx
xor edx, edx
call fcn.0040893c
cmp dword [ebp + 0xc], 0
je 0x60428f
mov eax, dword [ebp + 0xc]
call fcn.00409868
push eax
push ebx
mov eax, edi
call fcn.00408d60
push eax
mov eax, dword [ebp - 4]
call fcn.00409868
push eax
mov eax, dword [ebp - 0xc]
call fcn.00409868
push eax
mov eax, dword [ebp - 8]
call fcn.00409868
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov esi, eax
jmp 0x6042ba
push ebx
mov eax, edi
call fcn.00408d60
push eax
mov eax, dword [ebp - 4]
call fcn.00409868
push eax
mov eax, dword [ebp - 0xc]
call fcn.00409868
push eax
mov eax, dword [ebp - 8]
call fcn.00409868
push eax
call sub.kernel32.dll_GetProfileStringW
mov esi, eax
test esi, esi
je 0x6042d0
mov eax, dword [edi]
call fcn.00409868
call fcn.00408cc4
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
mov eax, ebx
sub eax, 8
cmp esi, eax
jl 0x6042e1
cmp ebx, 0x10000
jl 0x6042ec
mov eax, edi
mov edx, esi
call fcn.004099fc
jmp 0x6042f3
add ebx, ebx
jmp 0x604248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x604310
lea eax, [ebp - 4]
call fcn.004087b4
ret
Function at 0x6043dc
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 0x604426
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00409868
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00409868
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00409868
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x60444a
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00409868
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00409868
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 0x6044bc
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 0x6044fa
mov eax, ebx
call fcn.00409868
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x60452c
push 0
mov eax, esi
call fcn.00409868
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x604518
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x60452c
push 0
mov eax, esi
call fcn.00409868
push eax
call sub.kernel32.dll_GetProfileStringW
cmp word [esp], 0
sete al
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x6048f4
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 0x604989
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x60493f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.0040893c
jmp 0x604973
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x604956
lea eax, [ebp - 4]
call fcn.004087b4
jmp 0x604969
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00604744
mov ebx, eax
test esi, esi
je 0x604969
dec esi
jmp 0x604946
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00408b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x604990
lea eax, [ebp - 4]
call fcn.004087b4
ret

Function at 0x604d74
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.00423014
add esp, 0x208
pop ebx
ret

Function at 0x604da0
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.00423014
add esp, 0x208
pop ebx
ret
Function at 0x604e74
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 0x604ef1
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x604ecf
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp ax, 6
jb 0x604ecf
lea eax, [ebp - 8]
call fcn.00604da0
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.006038c8
lea eax, [ebp - 4]
mov edx, 0x604f0c
call fcn.00409a7c
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.00603cec
jmp 0x604ed6
mov eax, esi
call fcn.004087b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x604ef8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408814
ret

Function at 0x605138
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 0x60526e
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
test eax, eax
jne 0x605258
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x605195
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x605258
cmp dword [ebp - 0x14], 0
jne 0x6051aa
mov eax, dword [ebp - 0xc]
call fcn.004087b4
mov bl, 1
jmp 0x605258
cmp dword [ebp - 0x14], 0x70000000
jb 0x6051b8
call fcn.004283a0
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.0040893c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00408d60
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x60515e
test eax, eax
jne 0x605258
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x605206
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x605258
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x60520e
dec esi
test esi, esi
je 0x60521d
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x60520d
cmp dword [ebp - 0x10], 7
jne 0x605228
test esi, esi
je 0x605228
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.004099fc
cmp dword [ebp - 0x10], 7
jne 0x60524b
test esi, esi
je 0x60524b
lea eax, [ebp - 4]
call fcn.00408d60
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408b94
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x605275
lea eax, [ebp - 4]
call fcn.004087b4
ret
Function at 0x605298
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
test eax, eax
sete bl
test bl, bl
je 0x605314
test esi, esi
je 0x6052c5
cmp word [esi], 0
jne 0x605314
call fcn.004290bc
cmp eax, 2
je 0x605314
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 0x605302
cmp edi, 0xea
jne 0x605314
test edi, edi
jne 0x605311
cmp word [esp], 0
jne 0x605311
mov bl, 1
jmp 0x605314
inc esi
jmp 0x6052d3
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x605380
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x605394
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x7b8230], 0
jne 0x6053b7
push 0x6053dc
push 0x6053fc
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00412f74
mov dword [0x7b8230], eax
cmp dword [0x7b8230], 0
je 0x6053d1
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x7b8230]
jmp 0x6053d6
mov eax, 0x7f
pop esi
pop ebx
ret
Function at 0x605418
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 0x60558b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x60544c
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x605456
mov ebx, 0x57
jmp 0x605575
call fcn.004290bc
cmp eax, 2
jne 0x605564
push 0
push 8
lea eax, [ebp - 0x14]
push eax
movzx eax, byte [ebp - 5]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00605358
test eax, eax
jne 0x605564
xor eax, eax
push ebp
push 0x60555d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.0040893c
xor eax, eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x6054b1
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.00408d60
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 0x60551c
mov edi, dword [ebp - 4]
test edi, edi
je 0x6054ec
sub edi, 4
mov edi, dword [edi]
cmp edi, 0x10000
jge 0x605546
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x60550b
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.0040893c
jmp 0x6054a5
test esi, esi
jne 0x605546
mov eax, dword [ebp - 4]
call fcn.00409868
mov ecx, eax
movzx eax, byte [ebp - 5]
mov edx, dword [ebp - 0x14]
call fcn.00605418
test eax, eax
je 0x6054a5
inc dword [ebp - 0x18]
jmp 0x6054a5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x605564
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, byte [ebp - 5]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00605380
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x605592
lea eax, [ebp - 4]
call fcn.004087b4
ret
Function at 0x605624
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov ebx, eax
call fcn.004290bc
cmp eax, 2
je 0x605641
mov byte [ebp - 1], 1
jmp 0x605816
mov byte [ebp - 1], 0
mov eax, 0x7ae498
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x605816
xor eax, eax
push ebp
push 0x60580f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp ax, 5
jb 0x6056aa
push 0x605820
push 0x60584c
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00412f74
mov ebx, eax
test ebx, ebx
je 0x6056d1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x6057f8
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x6057f8
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 0x605722
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x605703
call fcn.00407f68
jmp 0x605816
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x605722
call fcn.00407f68
jmp 0x605816
xor eax, eax
push ebp
push 0x6057f1
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 0x605765
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x605765
call fcn.00407f68
call fcn.00407f68
jmp 0x605816
mov eax, dword [ebp - 0x14]
call fcn.004054b4
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 0x605797
call fcn.00407f68
call fcn.00407f68
jmp 0x605816
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x6057d2
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 0x6057ce
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x6057ce
mov byte [ebp - 1], 1
jmp 0x6057d2
inc ebx
dec esi
jne 0x6057a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6057f8
mov eax, dword [ebp - 0x18]
call fcn.004054d0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x605816
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 0x6062e8
Capabilities:
Check if file exists
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 0x606385
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004290bc
cmp eax, 2
jne 0x60632b
push 1
mov eax, esi
call fcn.00409868
push eax
mov eax, edi
call fcn.00409868
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x60636f
mov eax, esi
call fcn.00409868
mov edx, eax
lea eax, [ebp - 4]
call fcn.004098d0
mov eax, dword [ebp - 4]
call fcn.00422594
mov ebx, eax
test bl, bl
jne 0x606354
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x60636f
mov eax, esi
call fcn.00409868
push eax
mov eax, edi
call fcn.00409868
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 0x60638c
lea eax, [ebp - 4]
call fcn.004087b4
ret

Function at 0x6072f4
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x60a768
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x7b8274
mov eax, esi
mov edx, 8
test al, 1
je 0x60a784
shr eax, 1
xor eax, 0xedb88320
jmp 0x60a786
shr eax, 1
dec edx
jne 0x60a777
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x60a770
pop esi
ret

Function at 0x60a79c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x7b8270], 0
jne 0x60a7c6
call fcn.0060a768
mov dword [esp], 0x7b8270
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x60a7f0
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x7b8274]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x60a7cc
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x61d750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
lea edi, [ebp - 0xd]
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x61d900
inc esi
mov eax, dword [ebp + 8]
push eax
mov eax, edi
mov edx, 5
call fcn.0061c38c
pop ecx
test al, al
jne 0x61d797
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.0061da34
xor ebx, ebx
jmp 0x61d900
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [edi]
ja 0x61d7b5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.0061da34
xor ebx, ebx
jmp 0x61d900
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.00634c8c
test eax, eax
jne 0x61d7ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.0061da34
xor ebx, ebx
jmp 0x61d900
test byte [edi + 4], 1
je 0x61d8f9
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.0061c38c
pop ecx
test al, al
jne 0x61d820
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.0061da34
xor ebx, ebx
jmp 0x61d900
mov edx, dword [0x61972c]
mov eax, 0xc
call fcn.0040ada8
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x61d8cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00409390
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00408d68
mov edx, dword [ebp - 4]
call fcn.0061c38c
pop ecx
test al, al
jne 0x61d88e
mov edx, dword [0x61972c]
mov eax, dword [ebp - 8]
call fcn.0040adbc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.0061da34
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61d900
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00614ca8
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.006150c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61d8f9
dec esi
jne 0x61d76e
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret