joyce8/EMBER2024-capa huggingface dataset:
Function at 0x652885
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x72acfc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x414], ecx
jne 0x6528c5
xor eax, eax
jmp 0x652a32
and dword [esi], 0
push ebx
push edi
mov edi, dword [ebp + 0x20]
xor ebx, ebx
inc ebx
push ebx
push edi
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x420], ebx
call fcn.006671d1
and dword [ebp - 0x410], 0
and dword [ebp - 0x418], 0
shr edi, 0x1a
not edi
mov dword [ebp - 0x408], eax
and edi, ebx
cmp dword [ebp - 0x408], 0
je 0x65292a
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x17
and eax, ebx
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x6529c6
test edi, edi
je 0x6529c6
and dword [ebp - 0x40c], 0
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.0066704f
test eax, eax
je 0x6529ac
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x19
and eax, ebx
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.00667189
cmp dword [ebp - 0x40c], 5
jne 0x6529ac
cmp dword [ebp - 0x418], 0
jne 0x6529ac
mov dword [ebp - 0x418], ebx
jmp 0x652905
cmp dword [esi], 0
je 0x6529c6
xor eax, eax
cmp dword [ebp - 0x40c], 0xb7
setne al
mov dword [ebp - 0x410], eax
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ecx
je 0x6529d3
cmp eax, 0xffffffff
jne 0x6529f2
cmp edi, ecx
je 0x6529e2
push ecx
push 0x787a6c65
call fcn.00652d6d
xor ecx, ecx
mov dword [esi], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x41c], ecx
pop edi
pop ebx
je 0x652a1a
mov eax, dword [ebp - 0x408]
cmp eax, ecx
jne 0x652a0b
mov eax, 0x42c4c4
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push eax
call fcn.005962d2
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x652a2c
mov ecx, dword [ebp - 0x410]
mov dword [eax], ecx
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0066d880
leave
ret 0x1c
Function at 0x652e72
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x730490]
sub esp, 0x18
push ebx
push esi
push edi
mov dword [0x730c8c], eax
mov eax, dword [0x730c74]
xor edi, edi
cmp eax, edi
je 0x652eae
push eax
call fcn.006522eb
push dword [0x730490]
mov dword [0x730c8c], eax
push dword [0x730c74]
call fcn.00652313
jmp 0x652f24
mov eax, dword [0x730c78]
cmp eax, edi
je 0x652f24
or dword [ebp - 8], 0xffffffff
lea ecx, [ebp - 8]
push ecx
push 0x2001f
push eax
push SysReAllocString
mov dword [ebp - 0x18], 4
call fcn.0065263c
test eax, eax
jne 0x652f24
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov esi, 0x4f3a70
push esi
push dword [ebp - 8]
call fcn.00652668
test eax, eax
jne 0x652f1b
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x18]
mov dword [0x730c8c], eax
mov eax, dword [0x730490]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push esi
push dword [ebp - 8]
call fcn.00652686
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x729f6c], edi
je 0x652f3d
call fcn.00652e51
push eax
push dword [0x729f6c]
call fcn.00652313
call fcn.00652e51
mov esi, eax
call fcn.00652e30
mov ebx, eax
cmp esi, ebx
je 0x653053
movzx eax, si
push eax
call fcn.00593f06
test eax, eax
jne 0x652f71
movzx eax, bx
push eax
call fcn.00593f06
test eax, eax
je 0x653053
lea eax, [ebp - 4]
push eax
push 0x20019
push 0x4f3488
call fcn.0065158f
test eax, eax
jne 0x653053
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x653053
imul eax, eax, 0x104
push eax
lea eax, [ebp - 0xc]
mov esi, 0x104
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], edi
call fcn.00653f0a
test eax, eax
jne 0x652fdb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x653053
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x653027
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jae 0x653027
add dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 8]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
add ecx, eax
push ecx
push dword [ebp - 8]
mov dword [ebp - 0x14], esi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x652ff9
mov ebx, dword [ebp - 8]
cmp ebx, edi
jle 0x653042
mov eax, dword [ebp - 0xc]
add eax, edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add edi, esi
dec ebx
jne 0x65302e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.00654013
pop edi
pop esi
pop ebx
leave
ret
Function at 0x653ebd
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x653ede
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x653ede
cmp edx, eax
jb 0x653ede
add eax, 0x10000
cmp eax, ecx
jae 0x653f09
mov eax, dword [0x729f74]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.00652d6d
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret

Function at 0x662769
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
je 0x6627cf
mov esi, dword [ebp + 0xc]
cmp esi, 0x104
jb 0x6627cf
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4fbccc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6627cf
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
push 0
push 0
push 0x4fbcc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x6627cf
xor eax, eax
inc eax
jmp 0x6627d1
xor eax, eax
pop esi
leave
ret
Function at 0x664a66
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [0x730c98]
mov edi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.0066442b
add esp, 0x10
call fcn.006649f9
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.0066442b
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.0066442b
call fcn.00653142
movzx eax, ax
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.0066442b
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.006643d2
add esp, 0x30
pop edi
pop esi
pop ebp
ret
Function at 0x664c37
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x72acfc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp dword [0x72a5cc], 0xffffffff
movzx eax, ax
mov dword [ebp - 0x44], eax
jne 0x664d80
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0x4f36a0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x40], ebx
mov dword [0x72a5cc], ebx
call fcn.0065158f
test eax, eax
jne 0x664d80
cmp dword [ebp - 0x34], ebx
je 0x664d80
push 9
pop edi
push 0x12
pop esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
jmp 0x664d61
inc dword [ebp - 0x40]
cmp dword [ebp - 0x48], 1
jne 0x664d77
cmp dword [ebp - 0x3c], 8
jne 0x664d77
cmp dword [ebp - 0x38], esi
jne 0x664d77
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 8], bx
call fcn.00596ec3
test eax, eax
je 0x664d4a
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x4c], eax
movzx eax, word [ebp - 0x30]
push eax
call fcn.00593e78
test eax, eax
je 0x664d4a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00596ec3
test eax, eax
je 0x664d4a
movzx ebx, word [ebp - 0x30]
push ebx
call fcn.00593e78
test eax, eax
je 0x664d48
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jne 0x664d48
mov eax, dword [0x72a5cc]
cmp eax, 0x10
jae 0x664d48
mov cx, word [ebp - 0x4c]
mov word [eax*2 + 0x73336c], cx
inc eax
mov dword [0x72a5cc], eax
xor ebx, ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x34]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
call fcn.006526ae
test eax, eax
je 0x664cb6
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x72a5cc], ebx
jle 0x664df1
mov ax, word [ebp - 0x44]
cmp ax, word [ebx*2 + 0x73336c]
jne 0x664de8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x664de8
lea eax, [ebp - 0x18]
push eax
call fcn.005947cb
cmp eax, 8
jne 0x664de8
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00596ec3
test eax, eax
je 0x664de8
movzx esi, word [ebp - 0x30]
movzx edi, word [ebp - 0x30]
push esi
call fcn.00593e78
test eax, eax
je 0x664de8
push 2
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jne 0x664de8
movzx eax, di
mov dword [ebp - 0x44], eax
inc ebx
cmp ebx, dword [0x72a5cc]
jl 0x664d88
mov ecx, dword [ebp - 4]
mov ax, word [ebp - 0x44]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0066d880
leave
ret
Function at 0x664e2a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x72acfc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x664ecb
cmp dword [ebp - 0x90], 2
mov edx, dword [ebp - 0x98]
mov dword [0x730498], edx
jne 0x664ebf
mov eax, dword [ebp - 0x9c]
cmp eax, 5
mov cx, word [ebp - 0xc]
mov dword [0x730494], eax
mov word [0x73049c], cx
jne 0x664ea9
xor eax, eax
inc eax
cmp edx, eax
jb 0x664ecb
test cx, cx
mov dword [0x7304a0], eax
ja 0x664e9d
cmp edx, eax
jbe 0x664ea2
mov dword [0x7304a4], eax
cmp cx, ax
jbe 0x664ecb
jmp 0x664eb8
jbe 0x664ecb
xor eax, eax
inc eax
mov dword [0x7304a0], eax
mov dword [0x7304a4], eax
mov dword [0x7304a8], eax
jmp 0x664ecb
push 0
push 0x77617376
call fcn.00652d6d
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
xor ecx, ebp
mov dword [0x6e5404], eax
call fcn.0066d880
leave
ret

Function at 0x66509e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x72acfc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x733394], 0
je 0x6650c1
mov eax, dword [0x733390]
jmp 0x665140
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.0066e181
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
je 0x6650fd
test byte [ebp - 8], 0x10
je 0x6650fd
xor eax, eax
inc eax
jmp 0x665130
mov ecx, dword [0x730494]
xor eax, eax
cmp ecx, 5
mov dword [0x733390], eax
jg 0x665119
jne 0x665135
cmp dword [0x730498], eax
jbe 0x665135
lea eax, [ebp - 0xa0]
push eax
call esi
test eax, eax
je 0x66512e
test word [ebp - 8], 0x100
jne 0x6650f8
xor eax, eax
mov dword [0x733390], eax
mov dword [0x733394], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066d880
leave
ret
Function at 0x665a6f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x72acfc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
xor ebx, ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
mov word [ebp - 0x20c], si
call fcn.0066e181
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x665b24
push esi
push 0x33753467
call fcn.00652d6d
mov edi, 0x3a98
push edi
push 0xfa1
call fcn.0064e4e5
push edi
push 0xfa2
call fcn.0064e4e5
push edi
push 0xfa3
call fcn.0064e4e5
push edi
push 0xfa4
call fcn.0064e4e5
cmp ebx, esi
je 0x665b15
push ebx
call sym.osetup.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0066d880
leave
ret
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x665ad9
push edi
call sym.osetup.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
cmp ebx, esi
pop ecx
jne 0x665b52
push esi
push 0x33753468
jmp 0x665ad4
push ebx
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x665b70
push esi
push 0x33753469
jmp 0x665ad4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x402e78
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x665b98
push esi
push 0x3375346a
jmp 0x665ad4
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xa]
push eax
push 0xfa1
call fcn.0064e4e5
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 8]
push eax
push 0xfa2
call fcn.0064e4e5
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xe]
push eax
push 0xfa3
call fcn.0064e4e5
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xc]
push eax
jmp 0x665b00
Function at 0x665d72
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x30]
push eax
call fcn.006527ec
test eax, eax
jne 0x665d8f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x30]
push ebx
push esi
push edi
push eax
push 0x11
call fcn.0064e4e5
push dword [ebp - 0x1c]
push 0x12
call fcn.0064e4e5
push 0x41e850
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
cmp eax, ebx
je 0x665e91
push 0x500928
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x665e91
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x665e91
push dword [ebp - 4]
call fcn.00653d20
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x665e87
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x665e87
mov eax, dword [ebp - 4]
push 0x18
xor edx, edx
pop ecx
div ecx
and dword [ebp - 8], ebx
xor esi, esi
test eax, eax
jbe 0x665e87
mov edx, edi
mov edi, eax
mov eax, dword [edx + 4]
sub eax, 0
je 0x665e3f
dec eax
dec eax
jne 0x665e50
push dword [edx]
call fcn.00665522
cmp ebx, eax
pop ecx
ja 0x665e50
mov ebx, eax
jmp 0x665e50
push dword [edx]
inc dword [ebp - 8]
call fcn.00665522
cmp esi, eax
pop ecx
ja 0x665e50
mov esi, eax
add edx, 0x18
dec edi
jne 0x665e23
test esi, esi
je 0x665e65
push esi
push 0x19e1
call fcn.0064e4e5
test ebx, ebx
je 0x665e74
push ebx
push 0x19e2
call fcn.0064e4e5
cmp dword [ebp - 8], 0
je 0x665e87
push dword [ebp - 8]
push 0x19e0
call fcn.0064e4e5
push dword [ebp - 0xc]
call fcn.00653d7d
xor ebx, ebx
cmp dword [ebp - 0x1c], ebx
ja 0x665eaa
push ebx
push 0x72766c74
call fcn.00652d6d
cmp dword [ebp - 0x1c], ebx
jbe 0x665f3e
push 0x50090c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x665ec3
push eax
push 0x3366646b
jmp 0x665edb
push 0x5008f4
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x665ee2
push eax
push 0x3366646c
call fcn.00652d6d
jmp 0x665f33
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
push 0x18
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.osetup.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
je 0x665f33
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x18
push eax
push esi
push 0
push 0
push 0xb
call edi
test eax, eax
je 0x665f22
push 0
push 0x72766c76
call fcn.00652d6d
jmp 0x665f2c
push dword [esi + 4]
push 0x10
call fcn.0064e4e5
push esi
call sym.osetup.dll_void___cdecl_operator_delete_void__
pop ecx
test ebx, ebx
je 0x665f3e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x666141
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x6661b1
push esi
lea eax, [ebp - 4]
push eax
call fcn.00653f0a
test eax, eax
je 0x6661b1
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x6661a9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x402e78
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x6661a9
cmp dword [ebp - 8], ebx
je 0x6661a9
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
pop edi
push dword [ebp - 4]
call fcn.00654013
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x667426
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x72acfc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], ebx
jne 0x66745f
push ebx
push 0x386f706a
call fcn.00652d6d
xor eax, eax
jmp 0x6675c8
cmp dword [0x7341f4], ebx
je 0x667476
mov eax, dword [0x72a8f4]
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x6675c8
lea eax, [ebp - 0x50]
push eax
push 0x20008
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x6674a5
push ebx
push 0x386f706b
call fcn.00652d6d
mov dword [ebp - 0x4c], ebx
jmp 0x6675a1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x50]
call esi
test eax, eax
je 0x6674c5
push ebx
push 0x386f706c
jmp 0x6674d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x6674e3
push ebx
push 0x386f706d
call fcn.00652d6d
mov dword [ebp - 0x4c], ebx
jmp 0x6675a0
push dword [ebp - 0x54]
call sym.osetup.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x6674fa
push ebx
push 0x386f706e
jmp 0x667548
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push edi
push 2
push dword [ebp - 0x50]
call esi
test eax, eax
jne 0x667515
push ebx
push 0x386f706f
jmp 0x667548
push 0x43
lea eax, [ebp - 0x47]
push ebx
push eax
mov byte [ebp - 0x48], bl
call fcn.0066e181
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push 0xb
mov dword [ebp - 0x60], 0x44
call sub.ADVAPI32.dll_CreateWellKnownSid
test eax, eax
jne 0x667552
push ebx
push 0x386f7070
call fcn.00652d6d
mov dword [ebp - 0x4c], ebx
jmp 0x667592
cmp dword [edi], ebx
mov dword [ebp - 0x58], ebx
jbe 0x667592
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x667578
push dword [esi]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x667587
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
add esi, 8
cmp eax, dword [edi]
jb 0x66755c
jmp 0x667592
mov ecx, dword [ebp - 0x5c]
xor eax, eax
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ecx], eax
cmp edi, ebx
je 0x66759d
push edi
call sym.osetup.dll_void___cdecl_operator_delete_void__
pop ecx
mov edi, dword [ebp - 0x5c]
pop esi
cmp dword [ebp - 0x50], ebx
je 0x6675af
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x6675c8
mov dword [0x7341f4], 1
mov ecx, dword [edi]
mov dword [0x72a8f4], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0066d880
leave
ret
Function at 0x667735
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
push esi
call fcn.006a41e7
mov edi, eax
test edi, edi
je 0x66783b
cmp edi, esi
ja 0x66783b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x500af4
sub esi, edi
lea eax, [ebx + edi*2]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
test eax, eax
jle 0x66783b
xor esi, esi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push ebx
call fcn.006a4279
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x66783b
mov eax, dword [ebp + 0x14]
cmp eax, esi
jbe 0x667823
mov esi, dword [ebp + 0x10]
add esi, 8
mov dword [ebp - 0x10], eax
mov edi, dword [esi - 8]
push edi
call fcn.0059473a
push eax
push edi
push dword [ebp - 8]
call fcn.00667643
add esp, 0xc
test eax, eax
je 0x66781b
and dword [ebp - 4], 0
cmp dword [esi], 0
jle 0x66781b
mov eax, dword [esi - 4]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*8]
mov edi, dword [eax + 4]
mov ebx, dword [eax]
push edi
call fcn.0059473a
push eax
push edi
push ebx
call fcn.0059473a
push eax
push ebx
push dword [ebp - 8]
call fcn.00667695
add esp, 0x14
test al, al
je 0x667811
mov dword [ebp - 0xc], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi]
jl 0x6677dd
add esi, 0xc
dec dword [ebp - 0x10]
jne 0x6677ba
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
jne 0x66783b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x66878a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x72acfc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.0066da43
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066d880
leave
ret

Function at 0x66bf16
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x734a84
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x66bf67
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x734a88], eax
mov ax, word [ebp - 0x30]
mov word [0x734a8c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x734a90], eax
mov eax, dword [ebp - 0x40]
mov dword [0x734a94], eax
mov eax, esi
pop esi
leave
ret