joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ccfc
Capabilities:
Get common file path

Disassembly:
mov eax, 0x463933
call fcn.0043c280
sub esp, 0x64
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
lea eax, [ebp - 0xd]
push 0
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x468114
mov dword [ebp - 0x50], 0x46810c
call fcn.0040aeac
push 1
pop edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
jne 0x42ce15
mov esi, 0x104
lea eax, [ebp - 0x20]
push esi
push eax
lea ecx, [ebp - 0x70]
call fcn.0042cf42
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00401e7b
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x20]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
inc bl
call fcn.00401aab
test bl, bl
je 0x42cd94
lea ecx, [ebp - 0x3c]
call fcn.0040475d
lea eax, [ebp - 0x3c]
push 0x46a320
push eax
call fcn.0043c99a
mov eax, str.sysnative
mov dword [ebp - 0x48], 0x467594
mov ecx, eax
mov dword [ebp - 0x28], 0x46758c
test ecx, ecx
jne 0x42cdb2
mov eax, 0x47e390
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401779
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 3
call fcn.00430715
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.0040125c
push edi
push 0x4764a4
lea ecx, [ebp - 0x70]
call fcn.00424828
mov ecx, dword [ebp + 8]
push eax
call 0x42cf18
mov dword [ebp - 0x14], edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
cmp dword [ebp + 0xc], 2
mov esi, 0x104
push esi
jne 0x42cec1
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x70]
push eax
call fcn.0042cf42
mov ecx, dword [eax]
mov byte [ebp - 4], 4
mov byte [eax + 4], 1
call fcn.00401e7b
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x20]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
inc bl
call fcn.00401aab
test bl, bl
je 0x42ce78
lea ecx, [ebp - 0x3c]
call fcn.0040475d
lea eax, [ebp - 0x3c]
push 0x46a320
push eax
call fcn.0043c99a
mov eax, str.syswow64
mov dword [ebp - 0x48], 0x467594
mov ecx, eax
mov dword [ebp - 0x28], 0x46758c
test ecx, ecx
jne 0x42ce96
mov eax, 0x47e390
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401779
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 5
call fcn.00430715
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
jmp 0x42cdd8
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x70]
push eax
call fcn.0042cf42
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov byte [eax + 4], 1
call fcn.00401e7b
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x20]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
inc bl
call fcn.00401aab
test bl, bl
je 0x42cddd
lea ecx, [ebp - 0x3c]
call fcn.0040475d
lea eax, [ebp - 0x3c]
push 0x46a320
push eax
call fcn.0043c99a
cmp dword [esp + 8], 0
push esi
mov esi, ecx
je 0x42cf2f
mov dword [esi], 0x468114
mov dword [esi + 0x20], 0x46810c
push 0
mov ecx, esi
push dword [esp + 0xc]
call fcn.00401cec
mov eax, esi
pop esi
ret 8
Function at 0x42d168
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4639ea
call fcn.0043c280
sub esp, 0xf4
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 0x30]
mov dword [ebp - 4], esi
test bl, 0x10
je 0x42d1ba
lea ecx, [ebp + 8]
call fcn.00419a83
test al, al
je 0x42d1ba
push ebx
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp + 0x30], esp
push 1
push eax
call fcn.00401717
call fcn.0042d41d
add esp, 0x2c
mov bl, al
jmp 0x42d337
sub esp, 0x28
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
push esi
push eax
mov dword [ecx], 0x467594
mov dword [ecx + 0x20], 0x46758c
call fcn.00401cec
call fcn.0042ff7e
add esp, 0x28
cmp eax, 0xffffffff
je 0x42d207
test bl, 4
je 0x42d1ef
test al, 0x10
je 0x42d200
test bl, 8
je 0x42d335
test al, 0x10
je 0x42d335
mov bl, 1
jmp 0x42d337
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 2
je 0x42d347
cmp esi, 3
je 0x42d347
push 1
cmp esi, 5
pop ebx
jne 0x42d2bc
lea ecx, [ebp - 0x100]
call fcn.0042d38e
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
push eax
call fcn.00401717
call fcn.0042feb2
add esp, 0x2c
cmp eax, 0xffffffff
je 0x42d2a9
test byte [ebp + 0x30], 4
je 0x42d277
test byte [ebp - 0x100], 0x10
je 0x42d288
test byte [ebp + 0x30], 8
je 0x42d286
test byte [ebp - 0x100], 0x10
jne 0x42d288
xor bl, bl
mov ecx, dword [sym.imp.KERNEL32.dll_FindClose]
test ecx, ecx
je 0x42d295
push eax
call ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.0042d3e7
jmp 0x42d337
call edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.0042d3e7
test byte [ebp + 0x30], 0x20
je 0x42d335
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x4675b8
mov dword [ebp - 0x1c], 0x4675b0
call fcn.00401cec
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], 0x467fa8
call fcn.00413a81
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.0042d364
mov eax, dword [ebp - 0x84]
push 0x46c538
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x84], vtable.is::file_exception.0
lea eax, [ebp - 0x84]
push eax
call fcn.0043c99a
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040125c
mov al, bl
jmp 0x42d355
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040125c
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42e416
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x114], 0x114
and dword [eax], 0
lea eax, [ebp - 0x114]
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 1
jne 0x42e491
cmp dword [ebp - 0x10c], 0
je 0x42e489
cmp dword [ebp - 0x10c], 0xa
je 0x42e474
cmp dword [ebp - 0x10c], 0x5a
je 0x42e47d
xor al, al
mov dword [esi], 0x80
jmp 0x42e502
call fcn.0042e7cd
test al, al
je 0x42e481
mov al, 1
jmp 0x42e469
mov dword [esi], 0x40
jmp 0x42e4eb
mov dword [esi], 0x10
jmp 0x42e4eb
cmp dword [ebp - 0x104], 2
jne 0x42e500
mov eax, dword [ebp - 0x110]
sub eax, 4
je 0x42e4f8
mov ecx, dword [ebp - 0x10c]
dec eax
je 0x42e4bb
dec eax
je 0x42e4e1
xor al, al
mov dword [esi], 0x2000000
jmp 0x42e502
test ecx, ecx
jne 0x42e4c7
mov dword [esi], 0x100000
jmp 0x42e4eb
cmp ecx, 1
jne 0x42e4d4
mov dword [esi], 0x400000
jmp 0x42e4eb
cmp ecx, 2
jne 0x42e4e1
mov dword [esi], 0x800000
jmp 0x42e4eb
test ecx, ecx
jne 0x42e4ef
mov dword [esi], 0x1000000
mov al, 1
jmp 0x42e502
cmp ecx, 1
jne 0x42e4b1
mov al, cl
jmp 0x42e4b3
mov dword [esi], 0x10000
jmp 0x42e4eb
xor al, al
pop esi
leave
ret

Function at 0x42e6c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x479658
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42e6f1
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42e6f1
call eax
jmp 0x42e7c8
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, VariantInit
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x42e73d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x47e390
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42e79e
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x42e772
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42e786
cmp esi, ebx
je 0x42e786
push dword [ebp - 8]
call esi
cmp edi, ebx
je 0x42e7a6
cmp dword [ebp - 4], ebx
je 0x42e798
cmp esi, ebx
je 0x42e798
push dword [ebp - 4]
call esi
mov ax, 0x409
jmp 0x42e7c8
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0043e108
add esp, 0xc
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x42e7c5
cmp esi, ebx
je 0x42e7c5
push dword [ebp - 4]
call esi
mov ax, di
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f598
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x463de4
call fcn.0043c280
sub esp, 0x214
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.0041c60e
mov edi, eax
cmp edi, esi
je 0x42f5e2
cmp dword [ebp - 0x10], esi
je 0x42f5db
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x42f67f
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x42f653
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042f598
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x42f640
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x42f605
cmp dword [ebp - 0x10], esi
je 0x42f64e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x42f67f
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42f666
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x42f67d
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42f690
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x463e10
call fcn.0043c280
sub esp, 0x3c
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x42f6b6
mov eax, 0x467588
push 0x20019
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0041c60e
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x42f754
push esi
push edi
mov esi, 0x105
lea eax, [ebp + 0xb]
push 0
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x467594
mov dword [ebp - 0x28], 0x46758c
call fcn.00401c77
lea eax, [ebp - 0x20]
push esi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401822
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00401e7b
mov eax, dword [eax]
push esi
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [ebp - 0x20]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.00401aab
test edi, edi
jne 0x42f741
mov ecx, dword [ebp + 0x34]
lea eax, [ebp - 0x48]
push eax
call fcn.00419e3f
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040125c
inc ebx
test edi, edi
je 0x42f6d9
pop edi
pop esi
mov eax, dword [ebp - 0x14]
test eax, eax
sete bl
cmp dword [ebp - 0x10], 0
mov dword [0x47e608], eax
je 0x42f774
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42f78f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x463e63
call fcn.0043c280
sub esp, 0x44
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 3
mov dword [ebp - 0x50], 0x467594
mov dword [ebp - 0x30], 0x46758c
call fcn.00401c77
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x42f7d8
mov eax, 0x467588
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push dword [ebp + 0x88]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x42f802
lea ecx, [ebp - 0x14]
call fcn.00408e7a
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
push edi
cmp eax, ebx
mov edi, eax
jne 0x42f887
mov eax, dword [ebp + 0x40]
cmp eax, ebx
jne 0x42f815
mov eax, 0x467588
lea ecx, [ebp + 0x88]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea ecx, [ebp - 0x18]
push ebx
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call esi
mov edi, eax
cmp edi, ebx
jne 0x42f887
mov edi, dword [ebp + 0x40]
cmp edi, ebx
jne 0x42f840
mov edi, 0x467588
push dword [ebp + 0x88]
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x50]
push eax
call fcn.00401822
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov byte [eax + 4], 1
call fcn.00401e7b
mov eax, dword [eax]
lea ecx, [ebp + 0x88]
push ecx
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push ebx
push edi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 0x28]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00401aab
mov dword [0x47e608], edi
cmp edi, ebx
pop edi
lea eax, [ebp - 0x50]
je 0x42f898
lea eax, [ebp + 0x60]
mov esi, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
mov dword [esi], 0x467594
mov dword [esi + 0x20], 0x46758c
call fcn.00401cec
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], ebx
je 0x42f8c9
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0040125c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040125c
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.0040125c
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], bl
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42f908
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x463e78
call fcn.0043c280
sub esp, 0xc
push esi
push edi
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov esi, 0x467588
jne 0x42f92d
mov eax, esi
push 0x20019
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0041c60e
cmp eax, edi
jne 0x42f96b
cmp dword [ebp + 0x3c], edi
je 0x42f94a
mov esi, dword [ebp + 0x3c]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
mov dword [ebp + 8], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x18]
cmp eax, edi
mov dword [0x47e608], eax
je 0x42f97a
mov esi, dword [ebp + 0x5c]
cmp dword [ebp - 0x10], edi
je 0x42f98b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
lea ecx, [ebp + 0xc]
call fcn.0040125c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x43030e
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.00430387
test al, al
je 0x430373
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 0x430373
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push str.SeShutdownPrivilege
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]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
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 0x431cef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x431d05
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
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 0x431d3a
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413799
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x432c1d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x432c29
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x4330c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x464377
call fcn.0043c280
sub esp, 0x138
and byte [ebp - 0x144], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x10]
pop ebx
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 0x4331a5
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x433132
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x4675b8
mov esi, 0x4675b0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.0043056a
push 0x4764a4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00404b40
lea ecx, [ebp - 0x40]
call fcn.00432d0d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401cec
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
jmp 0x4331f4
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x4675b8
mov esi, 0x4675b0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.0043056a
push 0x4764a4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00404b40
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401cec
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.0040125c
cmp dword [ebp - 0x10], 0
je 0x43320d
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x43320d
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4337e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x4337fb
mov dword [ebp + 0xc], 4
lea eax, [ebp + 0xc]
push 0
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 0x433830
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413799
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x437069
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x437b21
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 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 0x437b88
call esi
cmp eax, 0x3f0
jne 0x437b7b
lea eax, [ebp - 4]
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 0x437b84
push 1
jmp 0x437ba7
cmp eax, ebx
je 0x437ba6
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x437ba6
call esi
cmp eax, 0x7a
je 0x437bb6
push ebx
push dword [ebp - 4]
call fcn.00437b12
pop ecx
pop ecx
jmp 0x437cad
push dword [ebp - 8]
call fcn.0043c844
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x437bfc
push ebx
push dword [ebp - 4]
call fcn.00437b12
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x437bf4
push esi
call fcn.0043ba53
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x437cad
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x437c46
push ebx
push dword [ebp - 4]
call fcn.00437b12
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x437c41
push esi
call fcn.0043ba53
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x437cad
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 0xc], bl
jbe 0x437c85
lea eax, [esi + 4]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x437c72
add dword [ebp + 8], 8
inc edi
cmp edi, dword [esi]
jb 0x437c55
jmp 0x437c85
cmp byte [ebp + 0xc], bl
je 0x437c81
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0xc], bl
jne 0x437c85
mov byte [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00437b12
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x437caa
push esi
call fcn.0043ba53
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4383c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push edi
mov edi, ecx
call fcn.00413338
xor ebx, ebx
cmp eax, 1
jne 0x438463
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x438450
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x438427
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x438450
mov byte [ebp - 0x830], bl
cmp dword [ebp - 4], ebx
je 0x438463
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x438463
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00438072
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 4], eax
setne cl
pop edi
mov al, cl
pop ebx
leave
ret 0x14