joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44611c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x446135
push 0x80004005
call fcn.0040d99f
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x4461a4
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x44619f
cmp dword [ebp + 0x10], ebx
jbe 0x446195
cmp dword [ebp + 0x10], 2
jbe 0x446187
cmp dword [ebp + 0x10], 7
jne 0x446195
test cl, 1
jne 0x446195
shr ecx, 1
cmp ecx, 1
jb 0x446195
cmp word [esi + ecx*2 - 2], bx
jne 0x446195
cmp ecx, 1
jbe 0x4461a4
cmp word [esi + ecx*2 - 4], bx
jmp 0x446193
test cl, 1
jne 0x446195
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x4461a4
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x4461a4
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4461ab
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x4461c1
push 0x80004005
call fcn.0040d99f
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0x14]
je 0x4461d4
cmp eax, 0xffffffff
jne 0x4461e3
push 0x57
pop eax
jmp 0x446204
cmp eax, 0xffffffff
jne 0x4461e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0x10], al
sete al
dec eax
and eax, 6
inc eax
push eax
push 0
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebp
ret 0x10

Function at 0x44673d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x446771
xor al, al
jmp 0x446784
cmp dword [ebp - 0x70], 2
jne 0x446782
cmp dword [ebp - 0x7c], 5
jb 0x446782
xor eax, eax
inc eax
jmp 0x446784
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00467491
add ebp, 0x98
leave
ret

Function at 0x4480d2
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0044770d
test al, al
je 0x448137
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x448137
push esi
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x4488a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4b7658
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4488dd
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4488dd
call eax
jmp 0x44899b
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x14]
push eax
mov ebx, 0xf003f
push ebx
push 0
push str..DefaultControl_PaneldesktopResourceLocale
mov edi, SysReAllocStringLen
push edi
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x44892c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4c1ca0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x44897a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov esi, eax
test esi, esi
jne 0x44895f
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push str.Locale
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.00447890
test esi, esi
je 0x44897a
lea ecx, [ebp - 0x14]
call fcn.00447890
mov eax, 0x409
jmp 0x448998
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.004679fb
add esp, 0xc
lea ecx, [ebp - 0x14]
movzx esi, ax
call fcn.00447890
mov ax, si
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467491
leave
ret

Function at 0x44a7a6
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x58
mov eax, 0x4ab09e
call fcn.004674a0
mov esi, dword [ebp + 0x214]
and dword [ebp - 0x14], 0
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x44a7fd
lea ecx, [ebp - 0x64]
call fcn.00435c7f
push 0x4d1f50
lea eax, [ebp - 0x64]
push eax
call fcn.004675aa
push 0
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x4b4e94
mov dword [ebp - 0x1c], 0x4b4e8c
call fcn.00409071
and dword [ebp - 4], 0
push 1
push 0x4b21a4
lea ecx, [ebp - 0x48]
call fcn.00449f1c
push eax
mov ecx, esi
call fcn.0044a72a
lea ecx, [ebp - 0x48]
call fcn.00401680
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00467491
add ebp, 0x20c
leave
ret
Function at 0x44a8bd
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x70
mov eax, 0x4ab0f9
call fcn.004674a0
and dword [ebp - 0x14], 0
mov esi, dword [ebp + 0x214]
xor edi, edi
inc edi
cmp dword [ebp + 0x218], edi
jne 0x44a968
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44a968
push str.GetSystemWindowsDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4da894], eax
test eax, eax
je 0x44a968
push 0x104
lea ecx, [ebp]
push ecx
call eax
test eax, eax
je 0x44a968
push 0
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x4b4eb8
mov dword [ebp - 0x1c], 0x4b4eb0
call fcn.00408f08
and dword [ebp - 4], 0
push edi
push 0x4b21a4
lea ecx, [ebp - 0x48]
call fcn.00449f71
push eax
mov ecx, esi
call fcn.00437289
lea ecx, [ebp - 0x48]
jmp 0x44a9cd
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x44a991
lea ecx, [ebp - 0x30]
call fcn.00435c7f
push 0x4d1f50
lea eax, [ebp - 0x30]
push eax
call fcn.004675aa
push 0
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x4b4eb8
mov dword [ebp - 0x50], 0x4b4eb0
call fcn.00408f08
push edi
push 0x4b21a4
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], edi
call fcn.00449f71
push eax
mov ecx, esi
call fcn.00437289
lea ecx, [ebp - 0x7c]
call fcn.00401680
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00467491
add ebp, 0x20c
leave
ret

Function at 0x44ab15
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4ab17d
call fcn.004674a0
and dword [ebp - 4], 0
cmp byte [ebp + 0x3c], 0
je 0x44ab4e
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x44ab37
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x44ab4e
lea ecx, [ebp + 8]
call fcn.00401680
xor al, al
jmp 0x44ab93
push 0x80
sub esp, 0x34
mov ecx, esp
mov dword [ebp + 0x3c], esp
push 1
lea eax, [ebp + 8]
push eax
call fcn.00408fa4
call fcn.00449a99
pop ecx
mov ecx, esp
mov dword [ebp + 0x3c], esp
push 1
lea eax, [ebp + 8]
push eax
call fcn.00408fa4
call fcn.00449b12
add esp, 0x34
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401680
test esi, esi
setne al
call fcn.00467578
ret

Function at 0x44cd08
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4ab697
call fcn.004674a0
mov esi, ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x44cd26
mov dword [ebp + 0xc], 1
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44cd73
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x40]
call fcn.004372c5
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x94]
call fcn.00437301
push 0x4cee5c
lea eax, [ebp - 0x94]
push eax
call fcn.004675aa
mov eax, dword [ebp + 0xc]
call fcn.00467578
ret 8
Function at 0x44cdf4
Capabilities:
Read file on windows

Disassembly:
push 0x118
mov eax, 0x4ab6eb
call fcn.004674a0
mov esi, ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x10], 0
xor edi, edi
inc edi
cmp eax, 0xffffffff
jne 0x44ce16
mov eax, edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44ce60
lea edx, [ebp - 0x10]
push edx
push eax
push dword [ebp + 8]
call fcn.0045cc36
test al, al
jne 0x44cea4
push edi
add esi, 0xc
push esi
lea ecx, [ebp - 0x78]
call fcn.004372c5
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x124]
call fcn.004373ec
push 0x4cee6c
lea eax, [ebp - 0x124]
push eax
call fcn.004675aa
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44cea4
push edi
add esi, 0xc
push esi
lea ecx, [ebp - 0x44]
call fcn.004372c5
push edi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], edi
call fcn.00437301
push 0x4cee5c
lea eax, [ebp - 0xcc]
jmp 0x44ce5a
mov eax, dword [ebp - 0x10]
call fcn.00467578
ret 8

Function at 0x44da03
Capabilities:
Get common file path

Disassembly:
push 0x84
mov eax, 0x4ab97e
call fcn.00467509
mov eax, dword [ebp + 8]
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], eax
push 1
lea eax, [ebp - 0x45]
push eax
lea ecx, [ebp - 0x44]
call fcn.00436d54
and dword [ebp - 4], 0
mov esi, 0x104
lea eax, [ebp - 0x58]
push esi
lea ecx, [ebp - 0x44]
push eax
call fcn.0044d9e8
cmp dword [ebp + 0xc], 1
jne 0x44daa9
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.00407812
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x58]
inc bl
mov byte [ebp - 4], 0
call fcn.0040a4ef
test bl, bl
je 0x44da8d
lea ecx, [ebp - 0x78]
call fcn.00435c7f
push 0x4d1f50
lea eax, [ebp - 0x78]
push eax
call fcn.004675aa
push 1
lea eax, [ebp - 0x45]
push eax
push str.sysnative
lea ecx, [ebp - 0x90]
call fcn.00409071
mov byte [ebp - 4], 2
jmp 0x44dafa
cmp dword [ebp + 0xc], 2
jne 0x44db1a
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00407812
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x58]
inc bl
mov byte [ebp - 4], 0
call fcn.0040a4ef
test bl, bl
jne 0x44da77
push 1
lea eax, [ebp - 0x45]
push eax
push str.syswow64
lea ecx, [ebp - 0x90]
call fcn.00409071
mov byte [ebp - 4], 4
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x44]
call fcn.004229b8
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.00401680
jmp 0x44db4f
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.00407812
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x58]
inc bl
mov byte [ebp - 4], 0
call fcn.0040a4ef
test bl, bl
jne 0x44da77
push 1
push 0x4b21a4
lea ecx, [ebp - 0x44]
call fcn.00449f1c
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.0044a72a
lea ecx, [ebp - 0x44]
call fcn.00401680
mov eax, dword [ebp - 0x4c]
call fcn.0046758c
ret
Function at 0x44f09b
Capabilities:
Check if file exists

Disassembly:
push 0xd4
mov eax, 0x4abd92
call fcn.00467509
and dword [ebp - 4], 0
mov bl, 0x10
test byte [ebp + 0x3c], bl
je 0x44f0f3
lea ecx, [ebp + 8]
call fcn.0043d57a
test al, al
je 0x44f0f3
push dword [ebp + 0x3c]
lea eax, [ebp + 8]
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 1
push eax
call fcn.00408fa4
call fcn.0044debd
add esp, 0x38
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401680
mov al, bl
jmp 0x44f255
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 1
lea eax, [ebp + 8]
push eax
call fcn.00408fa4
call fcn.00449a26
add esp, 0x34
cmp eax, 0xffffffff
je 0x44f132
test byte [ebp + 0x3c], 4
je 0x44f120
test bl, al
je 0x44f12a
test byte [ebp + 0x3c], 8
je 0x44f12e
test bl, al
je 0x44f12e
mov bl, 1
jmp 0x44f0e4
xor bl, bl
jmp 0x44f0e4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
cmp edi, 2
je 0x44f24b
cmp edi, 3
je 0x44f24b
cmp edi, 5
jne 0x44f20c
lea ecx, [ebp - 0xa4]
call fcn.004492d2
or dword [ebp - 0xa8], 0xffffffff
lea eax, [ebp - 0xa4]
push eax
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xac], esp
push 1
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00408fa4
call fcn.0044e758
add esp, 0x38
push eax
lea ecx, [ebp - 0xa8]
call fcn.00420586
cmp dword [ebp - 0xa8], 0xffffffff
je 0x44f1e9
test byte [ebp + 0x3c], 4
je 0x44f1b5
test byte [ebp - 0xa4], bl
je 0x44f1c3
test byte [ebp + 0x3c], 8
je 0x44f1c7
test byte [ebp - 0xa4], bl
je 0x44f1c7
mov bl, 1
jmp 0x44f1c9
xor bl, bl
lea ecx, [ebp - 0xa8]
call fcn.0041fd66
lea ecx, [ebp - 0x44]
call fcn.00401680
lea ecx, [ebp - 0x78]
call fcn.00401680
jmp 0x44f0e4
call esi
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.0041fd66
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00401680
lea ecx, [ebp - 0x78]
call fcn.00401680
test byte [ebp + 0x3c], 0x20
je 0x44f12e
push 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004372c5
push 1
push edi
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0043738e
push 0x4cee5c
lea eax, [ebp - 0x64]
push eax
call fcn.004675aa
lea ecx, [ebp + 8]
call fcn.00401680
xor al, al
call fcn.0046758c
ret
Function at 0x454bc1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x1c], 8
jb 0x454bcc
mov ecx, dword [ecx + 8]
jmp 0x454bcf
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x455193
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4acebc
call fcn.004674a0
mov esi, ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4551b1
mov dword [ebp + 0xc], 4
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4551fe
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x40]
call fcn.004372c5
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x94]
call fcn.00437301
push 0x4cee5c
lea eax, [ebp - 0x94]
push eax
call fcn.004675aa
mov eax, dword [ebp + 0xc]
call fcn.00467578
ret 8

Function at 0x455209
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4acee2
call fcn.004674a0
mov esi, ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x455227
mov dword [ebp + 0xc], 1
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x455274
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x40]
call fcn.004372c5
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x94]
call fcn.00437301
push 0x4cee5c
lea eax, [ebp - 0x94]
push eax
call fcn.004675aa
mov eax, dword [ebp + 0xc]
call fcn.00467578
ret 8
Function at 0x4554d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x138
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x138], eax
push 0xc
mov eax, 0x4acf46
call fcn.004674a0
mov esi, dword [ebp + 0x144]
xor ebx, ebx
push 0x103
lea eax, [ebp + 0x35]
push ebx
mov dword [ebp - 0x18], ebx
push eax
mov byte [ebp + 0x34], bl
call fcn.00468830
add esp, 0xc
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4555a3
cmp dword [ebp + 0x148], 1
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x455550
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 0x34]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
mov dword [ebp], 0x4b4eb8
mov dword [ebp + 0x2c], 0x4b4eb0
call fcn.0041c8de
push 0x4b21a4
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00449f71
lea ecx, [ebp]
call fcn.004553ec
push 1
lea eax, [ebp]
jmp 0x4555d5
push ebx
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
mov dword [ebp], 0x4b4eb8
mov dword [ebp + 0x2c], 0x4b4eb0
call fcn.0041c8de
push 1
push 0x4b21a4
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00449f71
push eax
mov ecx, esi
call fcn.00437289
lea ecx, [ebp]
call fcn.00401680
lea ecx, [ebp - 0x14]
call fcn.00447890
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x138]
xor ecx, ebp
call fcn.00467491
add ebp, 0x13c
leave
ret
Function at 0x45bba1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 8
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45bc1e
call esi
cmp eax, 0x3f0
jne 0x45bc04
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x45bc17
push 1
push dword [ebp - 0x10]
call fcn.0045bb80
pop ecx
pop ecx
jmp 0x45bc49
cmp eax, ebx
jne 0x45bc1e
push ebx
jmp 0x45bc0b
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x45bc3d
call esi
cmp eax, 0x7a
je 0x45bc57
push ebx
push dword [ebp - 0x10]
call fcn.0045bb80
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00467491
leave
ret
push dword [ebp - 0x18]
call fcn.00468747
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x45bc8d
push ebx
push dword [ebp - 0x10]
call fcn.0045bb80
pop ecx
pop ecx
push esi
mov bl, al
call fcn.00466cfb
pop ecx
mov al, bl
jmp 0x45bc48
lea eax, [ebp - 0x20]
push eax
xor eax, eax
cmp byte [ebp + 8], bl
push ebx
push ebx
sete al
push ebx
push ebx
push ebx
push ebx
dec eax
and eax, 0xfffffffd
add eax, 0x223
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x45bc75
xor edi, edi
mov byte [ebp - 0x1c], bl
cmp dword [esi], ebx
jbe 0x45bcfa
lea eax, [esi + 4]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x45bce7
add dword [ebp - 0x14], 8
inc edi
cmp edi, dword [esi]
jb 0x45bcca
jmp 0x45bcfa
cmp byte [ebp + 0xc], bl
je 0x45bcf6
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x1c], bl
jne 0x45bcfa
mov byte [ebp - 0x1c], 1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x1c]
jmp 0x45bc76
Function at 0x45bdf5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x45be2d
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
xor eax, eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov ecx, dword [esi + 0x64]
test ecx, ecx
jne 0x45be39
mov eax, dword [esi + 0x5c]
jmp 0x45be80
push ebx
push ebp
push 0xa
xor eax, eax
pop edi
xor ebp, ebp
test eax, eax
jne 0x45be7e
or eax, 0xffffffff
xor edx, edx
div edi
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x45be5e
shr ebx, 1
shr ecx, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ecx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
imul eax, edi
xor edx, edx
div ecx
xor edx, edx
imul eax, eax, 0x3e8
div edi
imul edi, edi, 0xa
inc ebp
cmp ebp, 3
jb 0x45be42
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x45ceb9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x7b4], eax
mov eax, dword [ebp + 0x7cc]
push ebx
mov ebx, dword [ebp + 0x7c8]
push esi
push edi
mov edi, dword [ebp + 0x7c0]
mov esi, ecx
mov dword [ebp - 0x80], eax
call fcn.004140a5
cmp eax, 1
jne 0x45cf6e
and dword [ebp - 0x74], 0
lea eax, [ebp - 0x74]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45cf66
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45cf3d
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push str.AutoConfigURL
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x824
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45cf66
mov byte [ebp - 0x70], 0
lea ecx, [ebp - 0x74]
call fcn.00447890
push dword [ebp + 0x7d0]
push dword [ebp - 0x80]
push ebx
push dword [ebp + 0x7c4]
push edi
call fcn.0045bf6c
add esp, 0x14
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 4], eax
mov al, cl
mov ecx, dword [ebp + 0x7b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467491
add ebp, 0x7b8
leave
ret 0x14

Function at 0x45ebf7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x45ec18
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi], eax
lea edi, [esi + 0x70]
push edi
push ebx
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.0045ddfd
add esp, 0x18
test eax, eax
jne 0x45ec40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x78], eax
xor al, al
jmp 0x45ecd1
push dword [edi]
call fcn.00468747
pop ecx
lea ecx, [esi + 0x6c]
push eax
call fcn.0044772c
push ebx
call fcn.00466cfb
mov eax, dword [esi + 0x6c]
push edi
push eax
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.0045ddfd
add esp, 0x1c
test eax, eax
je 0x45ec30
push ebx
lea eax, [ebp - 4]
push eax
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
push dword [edi]
push dword [esi + 0x6c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
jne 0x45ecb7
mov eax, dword [esi + 0xc]
push ebx
push dword [ebp + 8]
push 1
push 1
push 0x10001
push eax
call fcn.0045e04d
add esp, 0x18
test eax, eax
je 0x45ec30
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x45eccf
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc