joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014dad0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x1014dae6
lea eax, [esi + 0x28]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1014db15
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
je 0x1014dc0f
mov ecx, dword [ebp - 8]
test ecx, ecx
jg 0x1014dc0f
mov eax, dword [ebp - 0xc]
jl 0x1014db4c
cmp eax, 0x7fffffff
ja 0x1014dc0f
or eax, ecx
je 0x1014dc0f
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x1014dc0f
mov ecx, dword [ebp - 0xc]
push 0
push 0
push 0
push 4
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi], eax
call dword [ebp + 8]
cmp dword [esi], 0
je 0x1014db9d
mov eax, 0x1014dc70
jmp 0x1014dbde
push dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1014dc0f
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 4]
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1014dc00
add edi, dword [ebp - 4]
cmp edi, dword [esi + 4]
jne 0x1014dbb5
mov eax, 0x1014dc40
push ebx
mov dword [esi + 0x18], eax
call dword [ebp + 8]
mov eax, dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [esi + 0x10], eax
xor eax, eax
pop ebx
mov dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [ebp + 8]
pop edi
pop ebx
mov dword [esi], 0
mov eax, 0x51
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1015231e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10152345
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10152348
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.101522fa
pop esi
leave
ret 8
Function at 0x402df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x499104]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x402ed8
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x402ed8
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], 0
je 0x402ed8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ed8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
push 0x104
push eax
push dword [edi + 4]
call fcn.004030f0
test eax, eax
je 0x402ed8
push esi
mov esi, dword [edi + 0xc]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004036f0
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.004036f0
mov ecx, dword [ebp - 0x218]
mov edx, ecx
mov esi, dword [ebp - 0x210]
sub esi, dword [ebp - 0x214]
sub edx, dword [ebp - 0x21c]
cmp ecx, dword [ebp - 0x21c]
cmove edx, esi
xor eax, eax
test edx, edx
pop esi
sete al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0042e446
mov esp, ebp
pop ebp
ret

Function at 0x4030f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.0042e460
mov eax, dword [0x499104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4014], ebx
push edi
test esi, esi
je 0x40320e
test ebx, ebx
je 0x40320e
mov edi, dword [ebp + 0x10]
cmp edi, 0x104
jl 0x40320e
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
lea eax, [ebp - 0x4018]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40320e
cmp eax, 0x3fff
ja 0x40320e
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40320e
lea eax, [ebp - 0x401c]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x47e3fc
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40320e
push edi
push 0
push ebx
call fcn.0044e2e0
mov eax, dword [ebp - 0x400c]
add esp, 0xc
movzx ecx, word [eax + 0xc]
movzx ebx, word [eax + 0xe]
movzx edi, word [eax + 8]
movzx esi, word [eax + 0xa]
mov dword [ebp - 0x4010], ecx
lea ecx, [ebp - 0x4005]
call fcn.00402a30
push dword [ebp - 0x4010]
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0x10]
dec eax
push eax
push dword [ebp - 0x4014]
call fcn.00403660
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e446
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4039d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4039d9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4039ca
cmp esi, edx
jae 0x4039d9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4039b8
cmp esi, edx
jae 0x4039d9
cmp word [esi], 0
je 0x4039d9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4075b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x499104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x49bc18
mov dword [ebp - 0x94], 0x740068
lea esi, [ebp - 0x94]
mov dword [ebp - 0x90], 0x700074
push edi
mov dword [ebp - 0x8c], 0x2f003a
mov edx, 0x48
mov dword [ebp - 0x88], 0x75002f
sub esi, eax
mov dword [ebp - 0x84], 0x640070
mov dword [ebp - 0x80], 0x740061
mov dword [ebp - 0x7c], 0x2e0065
mov dword [ebp - 0x78], 0x75006c
mov dword [ebp - 0x74], 0x690078
mov dword [ebp - 0x70], 0x6f0061
mov dword [ebp - 0x6c], 0x680063
mov dword [ebp - 0x68], 0x2e0065
mov dword [ebp - 0x64], 0x6f0063
mov dword [ebp - 0x60], 0x2f006d
mov dword [ebp - 0x5c], 0x700075
mov dword [ebp - 0x58], 0x610064
mov dword [ebp - 0x54], 0x650074
mov dword [ebp - 0x50], 0x63002f
mov dword [ebp - 0x4c], 0x610068
mov dword [ebp - 0x48], 0x2f0074
mov dword [ebp - 0x44], 0x6d003f
mov dword [ebp - 0x40], 0x640069
mov dword [ebp - 0x3c], 0x25003d
mov dword [ebp - 0x38], 0x260073
mov dword [ebp - 0x34], 0x650076
mov dword [ebp - 0x30], 0x730072
mov dword [ebp - 0x2c], 0x6f0069
mov dword [ebp - 0x28], 0x3d006e
mov dword [ebp - 0x24], 0x730025
mov dword [ebp - 0x20], 0x700026
mov dword [ebp - 0x1c], 0x640069
mov dword [ebp - 0x18], 0x25003d
mov dword [ebp - 0x14], 0x260073
mov dword [ebp - 0x10], 0x32006d
mov dword [ebp - 0xc], 0x25003d
mov dword [ebp - 8], 0x73
lea ecx, [edx + 0x7fffffb6]
test ecx, ecx
je 0x407701
movzx ecx, word [esi + eax]
test cx, cx
je 0x407701
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4076e3
test edx, edx
lea ecx, [eax - 2]
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret
Function at 0x411a70
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0042e460
mov eax, dword [0x499104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
cmp dword [esi - 0xc], 0
jne 0x411aa6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret 4
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.0044e2e0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.0045728f
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]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0042e446
mov esp, ebp
pop ebp
ret 4
Function at 0x411bd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4797c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x499104]
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
sub esp, 8
mov eax, esp
mov dword [eax], str.config.ini
mov dword [eax + 4], 0xa
call fcn.004137b0
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
add esp, 8
xor eax, eax
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411c30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040cca0
mov dword [ebp - 4], 1
call fcn.00403230
mov ecx, eax
test ecx, ecx
je 0x411dad
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x14], 8
lea ebx, [ebp - 0x28]
mov eax, dword [esi - 8]
mov ecx, 1
cmovae ebx, dword [ebp - 0x28]
sub eax, 0x104
sub ecx, dword [esi - 4]
or ecx, eax
mov byte [ebp - 4], 2
jge 0x411c9d
push 0x104
lea ecx, [ebp - 0x30]
call fcn.00403430
mov esi, dword [ebp - 0x30]
cmp dword [esi - 8], 0x104
jl 0x411db7
xor eax, eax
mov dword [esi - 0xc], 0x104
lea ecx, [ebp - 0x29]
mov word [esi + 0x208], ax
call fcn.00410f60
lea ecx, [ebp - 0x29]
mov edi, eax
call fcn.00410cc0
push ebx
push 0x104
push esi
push 0x47e910
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.00456f25
add esp, 8
test eax, eax
js 0x411db7
cmp eax, dword [esi - 8]
jg 0x411db7
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x29]
call fcn.00410940
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f9d0
add esp, 8
test al, al
jne 0x411d3c
lea ecx, [ebp - 0x29]
call fcn.00410860
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f9d0
add esp, 8
test al, al
jne 0x411d3c
xor edi, edi
jmp 0x411d41
mov edi, 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411d59
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x411d8f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411d85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411dc1
push edx
push ecx
call fcn.0042e19e
add esp, 8
mov eax, edi
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.0042e446
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402ca0
push 0x80070057
call fcn.00402ca0
call fcn.0045156a
int3
Function at 0x411dd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4797c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x499104]
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
call fcn.00411bd0
test eax, eax
je 0x411e0b
mov al, 1
jmp 0x411f47
sub esp, 8
mov eax, esp
mov dword [eax], str.config.ini
mov dword [eax + 4], 0xa
call fcn.004137b0
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
add esp, 8
xor eax, eax
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411e40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040cca0
mov dword [ebp - 4], 1
call fcn.00403230
mov ecx, eax
test ecx, ecx
je 0x411f63
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x14], 8
lea ebx, [ebp - 0x28]
mov eax, dword [esi - 8]
mov ecx, 1
cmovae ebx, dword [ebp - 0x28]
sub eax, 0x104
sub ecx, dword [esi - 4]
or ecx, eax
mov byte [ebp - 4], 2
jge 0x411ead
push 0x104
lea ecx, [ebp - 0x30]
call fcn.00403430
mov esi, dword [ebp - 0x30]
cmp dword [esi - 8], 0x104
jl 0x411f6d
xor eax, eax
mov dword [esi - 0xc], 0x104
lea ecx, [ebp - 0x29]
mov word [esi + 0x208], ax
call fcn.00410b00
lea ecx, [ebp - 0x29]
mov edi, eax
call fcn.0040fd00
push ebx
push 0x104
push esi
push 0x47e910
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.00456f25
add esp, 8
test eax, eax
js 0x411f6d
cmp eax, dword [esi - 8]
jg 0x411f6d
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x29]
call fcn.00410320
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f9d0
add esp, 8
mov bl, al
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x411f3d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x28]
call fcn.00406e10
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.0042e446
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402ca0
push 0x80070057
call fcn.00402ca0
int3
Function at 0x413520
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x499104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push 0x210
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x108
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 1
push 1
push fcn.00426f00
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.00412540
pop esi
test eax, eax
jne 0x4135aa
push str._n_Adjustprivilege:_CreateProcess_fail.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret
Function at 0x4135c0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4928b0
push 0x44e7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x499104]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x28], 0
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov dword [eax], edi
mov dword [ecx], edi
lea eax, [ebp - 0x28]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x41363a
cmp dword [ebp - 0x28], edi
je 0x41363a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x413672
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x413754
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 0x413754
cmp dword [ebp - 0x28], 0
je 0x413754
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 2
push dword [ebp - 0x28]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x413754
cmp dword [ebp - 0x2c], eax
jbe 0x413754
call esi
cmp eax, 0x7a
jne 0x413754
push dword [ebp - 0x2c]
call fcn.00457425
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x413754
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push edi
push 2
push dword [ebp - 0x28]
call ebx
test eax, eax
je 0x413754
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x413754
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x413754
cmp dword [ebp - 0x30], 0
je 0x413754
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x413754
lea ebx, [edi + esi*8]
push dword [ebp - 0x30]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41373d
inc esi
jmp 0x413720
mov eax, dword [ebp - 0x40]
mov dword [eax], 1
mov eax, dword [ebx + 8]
shr eax, 2
and eax, 1
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.00413781
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret 8
Function at 0x4137b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x499104]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x49f098], 0
push esi
push edi
jne 0x4138ae
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x225]
call fcn.004130c0
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
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 0x41383a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [ebp - 0x214], 0
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413860
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.0040cca0
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
push edi
cmovae eax, dword [ebp - 0x224]
push eax
push 0x49f098
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x224]
call fcn.00406e10
mov ecx, dword [ebp - 4]
mov eax, 0x49f098
pop edi
xor ecx, ebp
pop esi
call fcn.0042e446
mov esp, ebp
pop ebp
ret
Function at 0x414160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479996
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x499104]
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, dword [ebp + 8]
mov dword [ebp - 0x82c], ebx
cmp word [0x49c688], 0
jne 0x4142af
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
push 0x20219
lea ecx, [ebp - 0x811]
mov dword [ebp - 4], 0
call fcn.00413440
push eax
push 0x80000002
lea ecx, [ebp - 0x828]
call fcn.004144b0
mov edi, dword [ebp - 0x828]
test eax, eax
jne 0x41429d
lea eax, [ebp - 0x818]
mov dword [ebp - 0x818], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x81c]
push eax
push 0
push 0x47ebc0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41429d
mov eax, dword [ebp - 0x81c]
cmp eax, 1
je 0x41423a
cmp eax, 2
jne 0x41429d
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x414257
test al, 1
jne 0x41429d
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x414260
jmp 0x41429d
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x49c688
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x414290
movzx eax, word [esi + ecx]
test ax, ax
je 0x414290
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x414272
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4142af
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x49c688
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4142fb
mov ecx, 0x49c688
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4142ee
movzx eax, word [esi + ecx]
test ax, ax
je 0x4142ee
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4142d0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.00403230
mov ecx, eax
test ecx, ecx
je 0x41436a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x49c688
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00402cc0
test al, al
jne 0x41434c
mov ecx, 0x49c688
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414330
sub ecx, edx
sar ecx, 1
push ecx
push 0x49c688
mov ecx, ebx
call fcn.00403580
mov eax, ebx
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.0042e446
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402ca0
int3
Function at 0x414440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x499104]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4144a0
cmp dword [ebp - 0x114], 6
jb 0x4144a0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret

Function at 0x414590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x492870
push 0x44e7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x499104]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.0044e2e0
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x42c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4146a9
mov dword [ebp - 0x438], eax
push 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0044e2e0
add esp, 0xc
mov dword [ebp - 0x434], 0x210
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push 0
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4146a9
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jle 0x4146a9
push ecx
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.004146db
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret 0xc