joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov al, byte [0x405f04]
push ebx
push esi
mov esi, dword [ebp + 8]
test al, al
push edi
je 0x401363
lea eax, [ebp - 0x60]
push eax
call fcn.004023a0
push 0x10
lea ecx, [ebp - 0x60]
push 0x405ed0
push ecx
call fcn.004023d0
lea edx, [ebp + 0x10]
push 4
lea eax, [ebp - 0x60]
push edx
push eax
call fcn.004023d0
mov eax, dword [ebp + 0x14]
add esp, 0x1c
test eax, eax
push 0xb
jne 0x401334
lea ecx, [ebp - 0x60]
push 0x4055e0
push ecx
jmp 0x40133d
lea edx, [ebp - 0x60]
push 0x4055d4
push edx
call fcn.004023d0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
push 0x405dc0
call fcn.00402740
push 0x10
push 0x405dc0
push esi
call fcn.00401200
add esp, 0x14
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], 0
sub esi, edi
mov dword [ebp + 0x14], edi
mov dword [ebp + 0xc], esi
jmp 0x40137d
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
rol eax, cl
mov dword [ebp + 0x10], eax
mov dword [0x469f10], eax
mov dword [0x469f14], eax
call fcn.004011a0
add esi, edi
push esi
call fcn.00401040
add esp, 4
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
pushal
mov eax, dword [ebp - 8]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov edx, 0x46a090
mov ebx, esi
mov eax, esi
ror ebx, 4
xor eax, dword [edx]
xor ebx, dword [edx + 4]
push edx
movzx ecx, al
movzx edx, bl
xor edi, dword [ecx*4 + 0x40df08]
xor edi, dword [edx*4 + 0x40e308]
movzx ecx, ah
movzx edx, bh
shr eax, 0x10
shr ebx, 0x10
xor edi, dword [ecx*4 + 0x40e708]
xor edi, dword [edx*4 + 0x40eb08]
movzx ecx, al
movzx edx, bl
xor edi, dword [ecx*4 + 0x40ef08]
xor edi, dword [edx*4 + 0x40f308]
movzx ecx, ah
movzx edx, bh
xor edi, dword [ecx*4 + 0x40f708]
xor edi, dword [edx*4 + 0x40fb08]
pop edx
xchg edi, esi
add edx, 8
cmp edx, 0x46a110
jne 0x4013b6
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
mov dword [eax], edi
popal
mov esi, dword [ebp + 0x14]
push esi
call fcn.004010c0
mov eax, dword [ebp + 8]
add esp, 4
add eax, 8
add esi, 8
cmp eax, 0x10
mov dword [ebp + 8], eax
mov dword [ebp + 0x14], esi
jl 0x401377
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4023a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x421a23
Capabilities:
Encode data using xor

Disassembly:
out 0x32, eax
repne scasd eax, dword es:[edi]
lcall 0x6d60, 0xd660b9c1
popfd
xchg esp, eax
or al, 0xf0
scasd eax, dword es:[edi]
lcall 0xf840, 0xd41649af
xchg edi, eax
xchg esi, eax
mov ebx, 0x31ad1686
pop ebp
aam 0x54
sub dword [ecx], eax
invalid
ja 0x421994
sbb al, 0x94
inc esp
jns 0x421a74
push edx
sbb eax, 0x431beb0d
mov bh, 0xcf
pop ds
mov edx, 0x7560ee6a
push 0xffffffffffffffee
pushal
jne 0x421a01
out 0x40, eax
adc edi, edi
pushal
jne 0x421a01
out 0x40, eax
adc edi, edi
retf 0x9087
adc dword [edx - 0x6532f245], 0xffffffac
jp 0x421a15
xchg edx, eax
inc esp
and byte [eax - 0x32c230af], dh
xchg esi, eax
pop ss
dec edx
xor ch, byte [ecx - 0x6241d079]
shr byte [eax - 0xdbb6d17], 0xd9
test eax, 0x556d76b7
inc esp
jns 0x421a35
adc dword [edx + 0x77959c86], edi
mov ecx, 0x79442c00
jmp 0xbeaf547b
pop ecx
dec ebx
std
xchg dx, ax
inc esp
jns 0x421a4c
into
pushal
insd dword es:[edi], dx
popfd
cdq
iretd

Function at 0x44015a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x440168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x44014a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x440145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x440145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret
Function at 0x4401d2
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x24]
add edx, ecx
pop ebx
pop ebx
pop ebx
pop ecx
pop eax
pop edi
pop esi
jmp edx
mov ecx, dword [ebx + 0x28]
cmp ecx, 1
je 0x4401c1
mov ecx, ebx
sub ecx, dword [ebx + 4]
xor cx, cx
mov dword [ebx + 0x24], ecx
add ecx, dword [ebx + 8]
mov esi, ecx
mov ecx, dword [ebx + 0xc]
xor edx, edx
mov eax, dword [ebx + 0x10]
xor dword [esi + edx], eax
add edx, 1
add edx, 2
sub edx, 1
sub edx, 1
add edx, 3
push edx
push ecx
pop ecx
pop edx
cmp edx, ecx
jl 0x4401f5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebx + 0x24]
add ecx, dword [ebx + 0x1c]
mov esi, ecx
mov ecx, dword [ebx + 0x20]
xor edx, edx
mov eax, dword [ebx + 0x10]
xor dword [esi + edx], eax
add edx, 1
add edx, 2
sub edx, 1
sub edx, 1
add edx, 3
push edx
push ecx
pop ecx
pop edx
cmp edx, ecx
jl 0x440285
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebx + 0x28], 1
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x24]
add edx, ecx
pop ebx
pop ebx
pop ebx
pop ecx
pop eax
pop edi
pop esi
mov dword [esp + 0x34], edx
jmp edx
Function at 0x402b52
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x482104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
je 0x402bd1
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], edi
je 0x402bd1
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], edi
je 0x402bd1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402bd1
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004399d0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push 0x104
push eax
push dword [esi + 4]
call fcn.00402e22
test eax, eax
je 0x402bd1
push dword [esi + 0xc]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402c4a
neg eax
sbb eax, eax
inc eax
jmp 0x402bd3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b266
leave
ret

Function at 0x402e22
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0041b390
mov eax, dword [0x482104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x402f00
test edi, edi
je 0x402f00
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x104
jl 0x402f00
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.004399d0
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x402f00
cmp eax, 0x3fff
ja 0x402f00
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402f00
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x4663fc
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402f00
push ebx
push 0
push edi
call fcn.004399d0
mov ecx, dword [ebp - 0x4008]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x466434
lea eax, [ebx - 1]
push eax
push edi
call fcn.0040331b
xor eax, eax
add esp, 0x28
inc eax
jmp 0x402f02
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b266
leave
ret 0xc
Function at 0x4052be
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push 0x2c
mov eax, 0x46147b
call fcn.0041b2e2
mov esi, ecx
mov dword [ebp - 0x38], esi
lea eax, [esi + 0x40]
mov dword [esi + 0x28], 2
push 0
push dword [eax]
mov dword [ebp - 0x2c], eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
and dword [ebp - 0x24], 0
lea eax, [esi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0x466924
mov dword [ebp - 0x18], 0x46693c
mov dword [ebp - 0x14], str.NetBridge.dll
mov dword [ebp - 0x28], eax
push 0x466980
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404e41
mov edi, dword [ebp + esi*4 - 0x1c]
and dword [ebp - 4], 0
push edi
call fcn.00402af1
add esp, 0x10
lea ecx, [ebp - 0x20]
push eax
push edi
call fcn.00405232
push edi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
call fcn.00404e41
add esp, 0xc
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4053e6
push edi
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
call fcn.00404e41
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004028e8
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00403258
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4053e6
push str.Utils
push dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
call fcn.00404e41
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004028e8
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00403258
push edi
call fcn.00402af1
pop ecx
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00405232
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4053f0
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call ebx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00403258
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00403258
mov eax, dword [ebp - 0x28]
inc esi
cmp esi, 3
jb 0x405310
mov ecx, dword [ebp - 0x38]
call fcn.004054a2
xor eax, eax
call fcn.0041b28c
ret 4

Function at 0x4054a2
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x482104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004399d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.UltraUninstaller_update.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0041b266
leave
ret
Function at 0x408a64
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x482104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
mov dword [ebp - 0x874], ecx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004399d0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.update_temp
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004399d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.004090b4
push 0x466df0
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.00409075
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408b2b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x408c55
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x408c07
mov esi, dword [ebp - 0x86c]
and esi, 0x10
je 0x408bb9
mov ecx, 0x466df8
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408b72
test dx, dx
je 0x408b6e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408b72
add eax, 4
add ecx, 4
test dx, dx
jne 0x408b4c
xor eax, eax
jmp 0x408b77
sbb eax, eax
or eax, 1
test eax, eax
je 0x408c07
mov ecx, 0x466dfc
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408bb0
test dx, dx
je 0x408bac
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408bb0
add eax, 4
add ecx, 4
test dx, dx
jne 0x408b8a
xor eax, eax
jmp 0x408bb5
sbb eax, eax
or eax, 1
test eax, eax
je 0x408c07
test esi, esi
jne 0x408c07
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004399d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
test eax, eax
jne 0x408b36
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x870]
call fcn.004027d9
lea ecx, [ebp - 0x870]
push ecx
mov ecx, dword [ebp - 0x874]
call fcn.00408ce6
mov ecx, dword [ebp - 0x870]
add ecx, 0xfffffff0
call fcn.00403258
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b266
leave
ret
Function at 0x408ce6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0041b390
mov eax, dword [0x482104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
xor eax, eax
cmp dword [esi - 0xc], eax
je 0x408d73
push edi
push 7
pop ecx
lea edi, [ebp - 0x2024]
rep stosd dword es:[edi], eax
push 0x2000
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2020], 3
call fcn.004399d0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.00440f63
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b266
leave
ret 4

Function at 0x408d82
Capabilities:
Read .ini file

Disassembly:
push 0x20
mov eax, 0x461973
call fcn.0041b2e2
push ecx
push ecx
mov eax, esp
mov dword [eax], str.config.ini
mov dword [eax + 4], 0xa
call fcn.00409aeb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00404335
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.00402f13
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040274f
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
push 0x104
cmovae edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00403133
push 0x104
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040327c
push edi
push 0x104
push esi
push 0x466c70
push str.state
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00406026
mov esi, dword [ebp - 0x2c]
push str.UltraUninstallerUpdate
push esi
call fcn.004090f9
pop ecx
pop ecx
test eax, eax
je 0x408e3b
push str.bigupdate
push esi
call fcn.004090f9
pop ecx
pop ecx
test eax, eax
je 0x408e3b
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.00403258
lea ecx, [ebp - 0x28]
call fcn.0040725d
mov eax, ebx
call fcn.0041b28c
ret

Function at 0x408e8a
Capabilities:
Read .ini file

Disassembly:
push 0x20
mov eax, 0x4619d0
call fcn.0041b2e2
call fcn.00408d82
test eax, eax
je 0x408ea6
mov al, 1
jmp 0x408f4d
push ecx
push ecx
mov eax, esp
mov dword [eax], str.config.ini
mov dword [eax + 4], 0xa
call fcn.00409aeb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00404335
mov dword [ebp - 4], 1
call fcn.00402f13
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040274f
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov ebx, 0x104
mov byte [ebp - 4], 2
cmovae edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00403133
push ebx
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040327c
push edi
push ebx
push esi
push 0x466c70
push str.state
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00406026
mov esi, dword [ebp - 0x2c]
push str.UpdateTaskEnd
push esi
call fcn.004090f9
pop ecx
pop ecx
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.00403258
lea ecx, [ebp - 0x28]
call fcn.0040725d
test edi, edi
sete al
call fcn.0041b28c
ret
Function at 0x4098cb
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x482104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push edi
push 0x210
xor edi, edi
push edi
push eax
call fcn.004399d0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x108
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 1
push 1
push fcn.00413bb0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], edi
push eax
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.004094c0
pop edi
pop esi
test eax, eax
jne 0x409946
push str._n_Adjustprivilege:_CreateProcess_fail.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x409948
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b266
leave
ret
Function at 0x409954
Capabilities:
Compare security identifiers

Disassembly:
push 0x34
push 0x47c108
call fcn.0041b430
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
mov dword [ecx], ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x40999d
cmp dword [ebp - 0x28], ebx
jne 0x4099d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x409aa0
lea eax, [ebp - 0x28]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409aa0
cmp dword [ebp - 0x28], 0
je 0x409aa0
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x409aa0
cmp dword [ebp - 0x2c], eax
jbe 0x409aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409aa0
push dword [ebp - 0x2c]
call fcn.0044106f
pop ecx
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x409aa0
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push esi
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x409aa0
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x409aa0
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x409aa0
cmp dword [ebp - 0x30], 0
je 0x409aa0
mov dword [ebp - 0x3c], ebx
cmp ebx, dword [esi]
jae 0x409aa0
push dword [ebp - 0x30]
push dword [esi + ebx*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x409a8a
inc ebx
jmp 0x409a6f
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [esi + ebx*8 + 8]
shr eax, 2
and eax, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.00409ac1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409c03
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x482104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.004399d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409c78
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00404335
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041b266
leave
ret