joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x4020f4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
add dword [ebp + 8], 5
push ebx
lea ebx, [edx - 4]
add ebx, ecx
mov dword [ebp - 0xc], ebx
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x40211a
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x402117
inc eax
cmp eax, ebx
jb 0x402108
mov ecx, dword [ebp - 4]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x40221e
cmp edx, 2
jbe 0x4021a3
xor esi, esi
movzx edx, byte [eax + 4]
lea ecx, [edx + 1]
test cl, 0xfe
jne 0x40220a
movzx ecx, byte [eax + 3]
mov ebx, dword [ebp + 8]
shl edx, 8
add ebx, edi
or edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
add edx, ebx
sub ecx, ebx
cmp dword [ebp + 0x10], 0
cmove edx, ecx
mov dword [ebp - 8], edx
mov ebx, edx
test esi, esi
je 0x4021da
and esi, 6
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x4021d8
mov ebx, pe_nt_image_headers32
shl ebx, cl
mov ecx, dword [ebp + 8]
dec ebx
xor ebx, dword [ebp - 8]
add ecx, edi
cmp dword [ebp + 0x10], 0
je 0x4021d6
add ebx, ecx
jmp 0x4021d8
mov ecx, edx
shr esi, cl
test esi, esi
je 0x402133
cmp esi, 4
ja 0x4021c8
cmp esi, 3
je 0x4021c8
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x402133
mov ecx, dword [ebp - 4]
or esi, 8
shr esi, 1
inc edi
jmp 0x402101
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp - 4]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 0xc]
add edi, eax
jmp 0x402101
mov ecx, dword [ebp - 4]
or esi, 8
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x402101
mov eax, dword [ebp + 0xc]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d760
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x498871], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x40d795
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.0040a910
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov ebx, eax
call fcn.00436a97
add esp, 4
jmp 0x40d79e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d7e9
test bl, 0x10
jne 0x40d7e9
test bl, 1
je 0x40d7e9
and ebx, 0xfffffffe
cmp byte [0x498871], 0
jne 0x40d7dd
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.0040a910
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00436a97
add esp, 4
test esi, esi
jmp 0x40d7e7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40d815
cmp byte [0x498871], 0
jne 0x40d827
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.0040a910
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00436a97
add esp, 4
test esi, esi
jne 0x40d81e
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dde0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480650
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x496004]
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 ebx, ecx
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebx + 4], 0
mov word [eax], cx
cmp byte [0x498871], cl
jne 0x40dedb
lea eax, [ebp - 0x118]
mov byte [ebp - 0x118], cl
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x328], eax
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
xor ecx, ecx
lea edx, [ebp - 0x118]
test eax, eax
sete cl
push ecx
lea ecx, [ebp - 0x334]
call fcn.0040ada0
lea eax, [ebp - 0x334]
mov dword [ebp - 4], 0
cmp eax, ebx
je 0x40dec8
mov edi, dword [ebp - 0x330]
cmp edi, dword [ebx + 8]
jbe 0x40dead
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436c01
push dword [ebx]
mov esi, eax
call fcn.00436a97
add esp, 8
mov dword [ebx], esi
mov dword [ebx + 8], edi
lea eax, [edi*2 + 2]
mov dword [ebx + 4], edi
push eax
push dword [ebp - 0x334]
push dword [ebx]
call fcn.00441f60
add esp, 0xc
push dword [ebp - 0x334]
call fcn.00436a97
add esp, 4
jmp 0x40df67
xor eax, eax
mov word [ebp - 0x324], ax
lea eax, [ebp - 0x324]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor edi, edi
mov dword [ebp - 0x328], eax
cmp word [ebp - 0x324], di
je 0x40df1c
nop word [eax + eax]
inc edi
cmp word [ebp + edi*2 - 0x324], 0
jne 0x40df10
cmp edi, dword [ebx + 8]
jbe 0x40df4b
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436c01
push dword [ebx]
mov esi, eax
call fcn.00436a97
add esp, 8
mov dword [ebx], esi
mov dword [ebx + 8], edi
lea eax, [edi*2 + 2]
mov dword [ebx + 4], edi
push eax
lea eax, [ebp - 0x324]
push eax
push dword [ebx]
call fcn.00441f60
add esp, 0xc
mov eax, dword [ebp - 0x328]
dec eax
cmp eax, 0x103
setbe al
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.00436a89
mov esp, ebp
pop ebp
ret
Function at 0x40e0f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480690
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x496004]
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 ebx, ecx
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebx + 4], 0
mov word [eax], cx
cmp byte [0x498871], cl
jne 0x40e1eb
lea eax, [ebp - 0x118]
mov byte [ebp - 0x118], cl
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x328], eax
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
xor ecx, ecx
lea edx, [ebp - 0x118]
test eax, eax
sete cl
push ecx
lea ecx, [ebp - 0x334]
call fcn.0040ada0
lea eax, [ebp - 0x334]
mov dword [ebp - 4], 0
cmp eax, ebx
je 0x40e1d8
mov edi, dword [ebp - 0x330]
cmp edi, dword [ebx + 8]
jbe 0x40e1bd
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436c01
push dword [ebx]
mov esi, eax
call fcn.00436a97
add esp, 8
mov dword [ebx], esi
mov dword [ebx + 8], edi
lea eax, [edi*2 + 2]
mov dword [ebx + 4], edi
push eax
push dword [ebp - 0x334]
push dword [ebx]
call fcn.00441f60
add esp, 0xc
push dword [ebp - 0x334]
call fcn.00436a97
add esp, 4
jmp 0x40e277
xor eax, eax
mov word [ebp - 0x324], ax
lea eax, [ebp - 0x324]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edi, edi
mov dword [ebp - 0x328], eax
cmp word [ebp - 0x324], di
je 0x40e22c
nop word [eax + eax]
inc edi
cmp word [ebp + edi*2 - 0x324], 0
jne 0x40e220
cmp edi, dword [ebx + 8]
jbe 0x40e25b
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436c01
push dword [ebx]
mov esi, eax
call fcn.00436a97
add esp, 8
mov dword [ebx], esi
mov dword [ebx + 8], edi
lea eax, [edi*2 + 2]
mov dword [ebx + 4], edi
push eax
lea eax, [ebp - 0x324]
push eax
push dword [ebx]
call fcn.00441f60
add esp, 0xc
mov eax, dword [ebp - 0x328]
dec eax
cmp eax, 0x103
setbe al
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.00436a89
mov esp, ebp
pop ebp
ret
Function at 0x418000
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x496004]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov edi, ecx
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x4180a5
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4180a5
xor eax, eax
xor ebx, ebx
xor edi, edi
mov dword [esp + 0xc], eax
xor ecx, ecx
mov edx, 2
mov dword [esp + 0x10], ecx
lea ecx, [edx - 2]
mov eax, esi
shr eax, cl
lea ecx, [edx - 1]
and eax, 1
add ebx, eax
mov eax, esi
shr eax, cl
mov ecx, edx
and eax, 1
add dword [esp + 0x10], eax
mov eax, esi
shr eax, cl
lea ecx, [edx + 1]
and eax, 1
add edx, 4
add dword [esp + 0xc], eax
mov eax, esi
shr eax, cl
and eax, 1
add edi, eax
lea eax, [edx - 2]
cmp eax, 0x20
jb 0x418055
mov eax, dword [esp + 0xc]
add eax, edi
mov edi, dword [esp + 0x18]
add eax, dword [esp + 0x10]
add eax, ebx
jmp 0x4180b4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x30]
push str.GlobalMemoryStatusEx
push 0x48bac8
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0x40000000
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0x40000000
mov dword [edi + 0xc], 0
mov dword [esp + 0x48], 0x40
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418123
lea ecx, [esp + 0x40]
push ecx
call eax
test eax, eax
je 0x418123
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
cmp esi, eax
ja 0x41811d
mov edx, dword [esp + 0x68]
jb 0x418145
cmp edx, ecx
jb 0x418145
mov edx, ecx
mov esi, eax
jmp 0x418145
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x34], edx
cmovb edx, dword [esp + 0x34]
xor esi, esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], edx
shrd edx, esi, 5
shr esi, 5
mov eax, edx
mov ecx, esi
shld ecx, eax, 4
shl eax, 4
add eax, edx
mov dword [edi + 8], eax
adc ecx, esi
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00436a89
mov esp, ebp
pop ebp
ret
Function at 0x41fba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
movzx eax, byte [ebx + 9]
push eax
lea ecx, [edi + 0x44]
call fcn.00420e80
movzx eax, byte [ebx + 8]
lea ecx, [edi + 0x50]
push eax
call fcn.00420e80
push 0x88
call fcn.00436c83
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov byte [esi + 0x4c], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi], vtable.NCoderMixer2::CCoderMT.0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov byte [esi + 0x68], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov ecx, dword [edi + 0x7c]
cmp dword [edi + 0x78], ecx
jne 0x41fcec
mov eax, ecx
mov edx, 4
inc ecx
shr eax, 2
add eax, ecx
xor ecx, ecx
mov dword [ebp - 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436c01
mov ecx, dword [edi + 0x78]
add esp, 4
mov dword [ebp - 4], eax
test ecx, ecx
je 0x41fcd5
shl ecx, 2
push ecx
push dword [edi + 0x74]
push eax
call fcn.00441f60
add esp, 0xc
push dword [edi + 0x74]
call fcn.00436a97
mov eax, dword [ebp - 4]
add esp, 4
mov dword [edi + 0x74], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x7c], eax
mov ecx, dword [edi + 0x78]
mov eax, dword [edi + 0x74]
mov dword [eax + ecx*4], esi
inc dword [edi + 0x78]
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x20], eax
mov ebx, dword [ebx]
test ebx, ebx
je 0x41fd0a
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x41fd17
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x18], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x41fd2a
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x41fd37
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x1c], ebx
mov al, byte [edi + 0x5c]
pop edi
mov byte [esi + 0x68], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4221d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42221d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42221d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42220c
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 8
jle 0x422231
movzx eax, ax
or eax, 0x80070000
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x422410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x400000
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0
nop dword [eax + eax]
cmp esi, 0x400000
mov dword [ebp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add edx, ecx
mov dword [ebp + 0xc], edx
test eax, eax
je 0x422475
test ecx, ecx
je 0x422471
add edi, ecx
sub esi, ecx
mov ecx, 0x400000
jne 0x422430
mov al, 1
jmp 0x422477
xor al, al
add dword [ebx + 0x10], edx
mov ecx, dword [ebp + 0x14]
adc dword [ebx + 0x14], 0
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x42248a
mov dword [ecx], edx
test al, al
je 0x422494
xor eax, eax
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4224a7
mov eax, 0x80004005
pop ebp
ret 0x10
jle 0x4224b1
movzx eax, ax
or eax, 0x80070000
pop ebp
ret 0x10
Function at 0x42bf20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48224b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x496004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], vtable.IArchiveOpenVolumeCallback.0
mov dword [edi + 8], vtable.IArchiveOpenSetSubArchiveName.0
mov dword [edi + 0xc], 0
mov dword [edi], vtable.COpenCallbackImp.2.0
mov dword [edi + 4], vtable.COpenCallbackImp.1.0
mov dword [edi + 8], vtable.COpenCallbackImp.0
push 8
mov dword [edi + 0x10], 0
call fcn.00436c01
xor ecx, ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 3
mov word [eax], cx
lea esi, [edi + 0x20]
mov dword [ebp - 4], ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], ecx
mov word [esi + 0x24], cx
push 8
mov dword [ebp - 0x14], esi
mov dword [esi + 0x28], ecx
call fcn.00436c01
xor ecx, ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 3
mov word [eax], cx
mov byte [ebp - 4], 1
mov byte [edi + 0x58], cl
push 8
mov dword [edi + 0x5c], ecx
call fcn.00436c01
mov dword [edi + 0x5c], eax
add esp, 0xc
xor ecx, ecx
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 3
mov word [eax], cx
mov eax, edi
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x70], ecx
mov dword [edi + 0x74], ecx
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], ecx
mov dword [edi + 0x80], ecx
mov dword [edi + 0x84], ecx
mov dword [edi + 0x88], ecx
mov dword [edi + 0x90], ecx
mov dword [edi + 0x94], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x432330
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x43238c
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x432356
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x4c], 0
sub edi, 1
je 0x43236f
pop edi
mov byte [esi + 0xe0], 1
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 8
push str.Unsupported_Method
lea ecx, [esi + 0xe4]
call fcn.0040a240
pop edi
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x4c], 0
je 0x4323c3
lea eax, [esi + 0x38]
push eax
mov eax, dword [esi + 0x48]
push 0
push 0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x4323c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x432414
mov dword [edi + 8], 0xffffffff
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x4323d7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x4c], 0
cmp byte [esi + 0x34], 0
je 0x43243c
cmp byte [0x498871], 0
mov edi, dword [esi + 0x44]
mov eax, dword [esi + 0x28]
jne 0x432434
mov edx, eax
lea ecx, [ebp - 0xc]
call fcn.0040a910
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
call fcn.00436a97
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43237f
jle 0x43243e
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x433ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4830ab
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x496004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebx + 4], vtable.IOpenCallbackUI.0
mov dword [ebx + 8], 0
mov dword [ebx], vtable.CExtractCallbackImp.1.0
mov dword [ebx + 4], vtable.CExtractCallbackImp.0
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 0
push 8
mov dword [ebx + 0x10], 0
call fcn.00436c01
xor ecx, ecx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 3
mov word [eax], cx
mov byte [ebp - 4], 1
push 8
mov dword [ebx + 0x1c], ecx
call fcn.00436c01
xor ecx, ecx
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 3
mov word [eax], cx
mov byte [ebp - 4], 2
push 8
mov dword [ebx + 0x28], ecx
call fcn.00436c01
xor ecx, ecx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 3
mov word [eax], cx
mov dword [ebx + 0x4c], ecx
mov byte [ebp - 4], 4
push 8
mov dword [ebx + 0x50], ecx
call fcn.00436c01
xor ecx, ecx
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 3
mov word [eax], cx
lea edi, [ebx + 0x68]
mov dword [ebp - 0x18], edi
mov dword [edi + 4], ecx
mov byte [ebp - 4], 6
mov dword [edi], vtable.CProgressDialog.0
mov dword [edi + 8], ecx
push 8
mov dword [edi + 0xc], ecx
call fcn.00436c01
xor ecx, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
add esp, 0x14
mov dword [edi + 0x14], 3
mov word [eax], cx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x3c], ecx
lea esi, [edi + 0x40]
mov byte [ebp - 4], 8
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.004088b0
mov word [esi + 0x18], 0
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 9
mov dword [edi + 0x70], 0xffffffff
push 0
push 0
push 1
push 0
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x433e76
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x433ec1
mov byte [ebp - 4], 0xa
push 8
mov dword [ebx + 0xe4], 0
call fcn.00436c01
add esp, 4
mov dword [ebx + 0xe4], eax
xor ecx, ecx
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 3
mov word [eax], cx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x494508
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x145ecb
push eax
call fcn.00438e3b
int3
Function at 0x436480
Capabilities:
Accept command line arguments
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x496004]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x14]
push eax
call fcn.00434a60
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xbc2
jne 0x436645
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x43653c
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x436535
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
nop word [eax + eax]
push 1
push 0xffffffffffffffff
push dword [eax + esi*4]
push 0xffffffffffffffff
push 0x48cbec
call edi
cmp eax, 2
je 0x436658
mov eax, dword [esp + 0x18]
push 1
push 0xffffffffffffffff
push dword [eax + esi*4]
push 0xffffffffffffffff
push str._suppressReboot
call edi
cmp eax, 2
je 0x436658
mov eax, dword [esp + 0x18]
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4364f0
mov edi, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x43656f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43656f
movzx esi, si
or esi, 0x80070000
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
test esi, esi
js 0x4365b6
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 1
push eax
push str.SeShutdownPrivilege
push 0
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4365b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4365b6
movzx esi, si
or esi, 0x80070000
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
test esi, esi
js 0x43662a
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x34]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x436604
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x436602
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43662a
push 0x40002
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x43662a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43662a
movzx esi, si
or esi, 0x80070000
mov eax, dword [esp + 0x14]
test eax, eax
je 0x436639
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x669
test esi, esi
cmovns edi, eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00436a89
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.00436a89
mov esp, ebp
pop ebp
ret 0x10