joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ef50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x40ef72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ef79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ef68
mov eax, 1
add ebx, ebx
jne 0x40ef8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ef80
jne 0x40ef9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ef80
xor ecx, ecx
sub eax, 3
jb 0x40efb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f022
mov ebp, eax
add ebx, ebx
jne 0x40efbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40efc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40efec
inc ecx
add ebx, ebx
jne 0x40efd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40efcd
jne 0x40efe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40efcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f00c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40effd
jmp 0x40ef6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f00c
add edi, ecx
jmp 0x40ef6e
pop esi
mov edi, esi
mov ecx, 0x15
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f02a
cmp byte [edi], 3
jne 0x40f02a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40f02f
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40f09e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13eec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13f6c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f05c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13f74]
or eax, eax
je 0x40f098
mov dword [ebx], eax
add ebx, 4
jmp 0x40f079
call dword [esi + 0x13f70]
mov ebp, dword [esi + 0x13f78]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40f0d2
sub esp, 0xffffff80
jmp 0x40129f

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4046b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b8d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004049f0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], 1
jb 0x404702
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x404772
xor ecx, ecx
mov edx, 2
mul edx
push ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044d7fa
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 8
jb 0x404738
mov esi, dword [esi]
push dword [ebp - 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
inc eax
cmp eax, dword [ebp - 0x10]
jne 0x404768
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404750
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.00404ab0
push ebx
call fcn.0044d7b7
add esp, 4
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4080d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bbea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00438590
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x40815b
push eax
push esi
call fcn.00438a24
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.004383b4
int3
Function at 0x413d70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ca8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov ebx, eax
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [edx]
test edx, edx
je 0x413db4
push edx
call esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x413dc0
push eax
call esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x413dce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x10], 0
je 0x413de6
cmp dword [eax + 0x14], 8
jb 0x413ddf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push 3
lea ecx, [ebp - 0xd4]
call fcn.0041af50
mov byte [ebp - 4], 1
lea eax, [ebp + 0x18]
cmp dword [ebp + 0x2c], 8
push dword [ebp + 0x28]
cmovae eax, dword [ebp + 0x18]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00421160
add esp, 0xc
mov edx, 0x4a6294
mov ecx, eax
push ebx
call fcn.0041f7f0
mov ecx, eax
call fcn.0041b1e0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0041aea0
push 1
push 0x3b0
push eax
push 0xffffffffffffffff
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040c5f0
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x413e85
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413e7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413ef6
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov eax, dword [edi + 0x4e4]
mov ecx, 2
cmp eax, ecx
cmovl eax, ecx
lea ecx, [ebp - 0xd4]
mov dword [edi + 0x4e4], eax
mov eax, dword [ebp + 0x30]
mov esi, dword [eax]
call fcn.0040adc0
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x413ee1
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413ed7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413efb
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x2c
call fcn.00468a1a
call fcn.00468a1a
int3
Function at 0x4268f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4269d6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4269c5
jg 0x426930
test edx, edx
je 0x4269c5
nop dword [eax]
call fcn.0041d1c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x426984
jg 0x426947
test esi, esi
je 0x426984
cmp ebx, eax
jg 0x426957
jl 0x426951
cmp edi, esi
jae 0x426957
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00464de0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4269a9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x4269bf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x426930
jl 0x4269bf
test edi, edi
jne 0x426930
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4269f8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4269fa
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x426a78
jg 0x426a0d
test esi, esi
je 0x426a78
test eax, eax
jl 0x426a52
jg 0x426a17
test ebx, ebx
je 0x426a52
cmp edi, eax
jg 0x426a27
jl 0x426a21
cmp esi, ebx
jae 0x426a27
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00464de0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x426a55
mov edx, dword [ebp + 8]
test edi, edi
jl 0x426a78
jg 0x426a5f
test esi, esi
je 0x426a78
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x426a78
push eax
push esi
push 1
push edx
call fcn.00470f86
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x426fdc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42700e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42700e
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4270e1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x427036
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42705f
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0046cfa8
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4270e1
cmp eax, 1
jle 0x4270b4
cmp eax, 3
jne 0x4270e1
push dword [esi + 0x4c]
movsx eax, byte [ebp - 1]
push eax
call fcn.0046cfa8
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x4270d1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00470f86
add esp, 0x10
cmp edi, eax
jne 0x4270e1
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 8], eax
jne 0x427003
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4287c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bc30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push 8
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044d7bc
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00438924
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebp - 0x18], edx
lea esi, [eax + 0x24]
mov edx, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x10], edx
mov ebx, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x4bb844]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx + 0x40], eax
mov eax, dword [0x4bb848]
mov dword [ecx + 0x44], eax
mov eax, ecx
pop edi
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x38], 0
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42f340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], edx
push esi
mov esi, ecx
test eax, eax
jne 0x42f366
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi], 1
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0042f2d0
test eax, eax
je 0x42f392
mov dword [esi], eax
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp - 4]
lea eax, [edi + 2]
push eax
call fcn.004728b4
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x42f3be
pop edi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
pop ebx
mov dword [esi], 3
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push edi
push 1
push ebx
call fcn.00471608
add esp, 0x10
cmp eax, edi
je 0x42f3f7
push ebx
call fcn.0046ce6a
add esp, 4
mov dword [esi + 8], 0
mov dword [esi], 2
mov eax, esi
mov dword [esi + 4], 0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, ebx
call fcn.0042da50
mov ecx, eax
cmp ecx, 2
je 0x42f40c
cmp ecx, 3
jne 0x42f41a
shr edi, 1
xor edx, edx
lea eax, [edi + edi]
mov word [eax + ebx], dx
lea edi, [eax + 2]
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov edx, eax
sub esp, 8
push ecx
push ecx
push edi
push ebx
push eax
mov ecx, esi
call fcn.0042f1d0
add esp, 0x20
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x431c20
Capabilities:
Acquire debug privileges
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4b6048]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x28]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x30]
push eax
push str.SeShutdownPrivilege
push 0x4a3010
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 1
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea eax, [ebp - 0x30]
push eax
push str.SeDebugPrivilege
push 0x4a3010
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 1
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 1
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test eax, eax
je 0x431cfd
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e054
mov esp, ebp
pop ebp
ret
push 1
push 0x16
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
cmp eax, 1
sete al
xor ecx, ebp
call fcn.0044e054
mov esp, ebp
pop ebp
ret
Function at 0x4340c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f21b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4b6048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x410]
push 0x400
push eax
push 0
mov dword [ebp - 0x42c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0
push eax
lea eax, [ebp - 0x410]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, 1
jge 0x434155
mov dword [esi + 0x10], 0
xor eax, eax
push 7
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x494274
mov word [esi], ax
call fcn.00404ab0
jmp 0x434279
push ebx
call fcn.004728b4
mov edi, eax
add esp, 4
test edi, edi
je 0x43412f
push edi
push ebx
push 0
lea eax, [ebp - 0x410]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x494284
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0x434], 0x34
jae 0x4341b0
push edi
call fcn.0046ce6a
add esp, 4
mov ecx, esi
push 0x494274
call fcn.004049a0
jmp 0x434279
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x410]
push edx
push str.V_i._i._i._i
push eax
call fcn.004334e0
push edi
call fcn.0046ce6a
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x418], 0
add esp, 0x1c
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434210
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0041d5c0
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
push eax
push esi
call fcn.00432590
mov edx, dword [ebp - 0x414]
add esp, 8
cmp edx, 0x10
jb 0x434279
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43426f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434297
push edx
push ecx
call fcn.0044d7ec
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.0044e054
mov esp, ebp
pop ebp
ret
call fcn.00468a1a
int3
Function at 0x435290
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f128
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b6048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x4a3010
xor bl, bl
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404ab0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov ecx, section..data
push eax
mov dword [ebp - 4], 0
call fcn.00404ab0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43533b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435331
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435399
push edx
push ecx
call fcn.0044d7ec
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x435343
mov edi, dword [edi]
lea eax, [ebp - 0x2c]
push eax
push 2
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43537b
cmp dword [esi + 0x14], 8
jb 0x435363
mov esi, dword [esi]
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x2c]
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e054
mov esp, ebp
pop ebp
ret
call fcn.00468a1a
int3
Function at 0x4353a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f3eb
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4b6048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xa8]
mov esi, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x4a3010
mov dword [ebp - 0xb0], 0x7f
xor bl, bl
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
call fcn.00404ab0
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
push dword [ebp - 0x98]
cmovae eax, dword [ebp - 0xa8]
mov ecx, section..data
push eax
mov dword [ebp - 4], 0
call fcn.00404ab0
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x43547a
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435470
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4354ff
push edx
push ecx
call fcn.0044d7ec
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x435482
mov edi, dword [edi]
lea eax, [ebp - 0xac]
push eax
push 1
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4354e1
cmp dword [esi + 0x14], 8
jb 0x4354a5
mov esi, dword [esi]
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push esi
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4354d3
cmp eax, 0xea
je 0x4354d3
xor bl, bl
jmp 0x4354d5
mov bl, 1
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e054
mov esp, ebp
pop ebp
ret
call fcn.00468a1a
int3