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

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
sub esp, 0x51c
lea edx, [eax + 0x1f]
push ebx
push ebp
lea ebp, [ecx + 0x1f]
push esi
shr edx, 5
shr ebp, 5
cmp edx, ebp
mov ebx, edx
ja 0x1000c795
mov ebx, ebp
mov ecx, dword [esp + 0x53c]
xor esi, esi
xor eax, eax
cmp ecx, esi
setne al
cmp ebx, esi
mov dword [esp + 0xc], eax
je 0x1000c99c
cmp ebx, 0x40
ja 0x1000c99c
lea eax, [esp + 0x324]
mov ecx, ebx
mov dword [eax - 0x204], esi
mov dword [eax], esi
mov dword [eax - 0x104], esi
mov dword [eax + 0x100], esi
add eax, 4
dec ecx
jne 0x1000c7c3
mov ecx, dword [esp + 0x120]
mov esi, dword [esp + 0x52c]
xor ecx, 1
push edi
mov dword [esp + 0x124], ecx
mov ecx, edx
lea edi, [esp + 0x224]
push edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x53c]
lea ecx, [ebp*4]
mov dword [esp + 0x24], ecx
mov eax, ecx
lea edi, [esp + 0x42c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x534]
push ecx
call fcn.1001202f
push ebp
mov edx, dword [esp + 0x53c]
mov dword [esp + 0x328], eax
push edx
call fcn.1001202f
xor edx, edx
mov dword [esp + 0x528], eax
mov eax, edx
mov dword [esp + 0x18], edx
shl eax, 7
add eax, edx
shl eax, 2
mov ecx, eax
neg ecx
mov esi, dword [esp + ecx + 0x528]
test esi, esi
je 0x1000c93e
lea esi, [esp + eax + 0x124]
lea ebp, [esp + ecx + 0x328]
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x200]
mov ecx, dword [ebp + 0x200]
cmp eax, ecx
jb 0x1000c930
sub eax, ecx
push ebx
mov edi, eax
lea eax, [esp + 0x28]
push eax
lea eax, [ebp + 0x100]
push edi
push eax
call fcn.1000b030
lea edx, [esi + 0x100]
lea ecx, [esp + 0x24]
mov eax, edx
mov dword [esp + 0x14], ebx
mov ebp, dword [ecx]
add ecx, 4
xor dword [eax], ebp
mov ebp, dword [esp + 0x14]
add eax, 4
dec ebp
mov dword [esp + 0x14], ebp
jne 0x1000c8c2
push ebx
push edx
call fcn.1001202f
mov dword [esi + 0x200], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c914
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ebx
push ecx
push edi
push ebp
call fcn.1000b030
lea ecx, [esp + 0x24]
mov eax, esi
sub ecx, esi
mov edx, ebx
mov edi, dword [ecx + eax]
xor dword [eax], edi
add eax, 4
dec edx
jne 0x1000c907
jmp 0x1000c918
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0x200]
mov ecx, dword [ebp + 0x200]
cmp eax, ecx
jae 0x1000c89b
mov edx, dword [esp + 0x18]
mov eax, 1
sub eax, edx
mov edx, eax
jmp 0x1000c854
mov edi, dword [esp + 0x544]
test edi, edi
je 0x1000c95b
mov eax, edx
mov ecx, ebx
shl eax, 7
add eax, edx
lea esi, [esp + eax*4 + 0x224]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c98a
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x540]
mov eax, edx
shl eax, 7
add eax, edx
mov edx, ecx
shr ecx, 2
lea esi, [esp + eax*4 + 0x124]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x51c
ret 0x18
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x51c
ret 0x18
Function at 0x1001202f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1001203e
pop dword [ebp - 0x18]
mov eax, 0x16c9cda2
sub eax, 0x6c8ad64
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3afc0
push 0
mov eax, 0x47f519cc
add eax, 0xc80d7740
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xb21c8fdd
add ecx, 0x4de3b9a6
xor esi, esi
add esi, eax
mov edi, 0x48342b20
add edi, 0xc7d040e0
add edi, dword [ebp - 0x18]
mov ebx, 0xc918fcb4
sub ebx, 0x4750215a
add dword [ebp - 4], 0x666aaadb
mov edx, dword [edi]
sub dword [ebp - 0x14], 0x6eb5a7ad
xor edx, ebx
xor dword [ebp - 0x14], 0x9499c991
mov dword [esi], edx
sub dword [ebp - 0xc], eax
add esi, 0xcf13ecbf
sub esi, 0xcf13ecbb
add edi, 4
loop 0x1001209f
add eax, 0xc2a4f4e0
add eax, 0x3d5c23ff
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x1002071b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x10027a30
call fcn.1002584a
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x1002093c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.1001202f
add esp, 0x10
test eax, eax
js 0x10020936
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x100207bf
push edi
call fcn.1001a3e8
pop ecx
test al, al
je 0x100207bf
mov eax, edi
call fcn.100259d0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x100207d1
push edi
lea ecx, [ebp - 0x424]
call fcn.1001202f
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.1001202f
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10020936
push 0x60
push ebx
push eax
call fcn.10021cbd
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x10020829
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.10021cbd
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x10020829
call fcn.100156c1
mov ebx, eax
jmp 0x10020905
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x10020850
call fcn.100156c1
jmp 0x100208f8
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x10020846
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x10020883
mov ebx, 0x8007000e
jmp 0x100208fa
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1001202f
jmp 0x100208a9
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1002087c
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.1001202f
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.1001202f
mov ebx, eax
test edi, edi
je 0x10020905
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1002091e
lea ecx, [ebp - 0x418]
call fcn.1001ff05
or dword [ebp - 4], 0xffffffff
jmp 0x1002092e
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x10020924
mov eax, ebx
jmp 0x1002096a
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x10020951
lea ecx, [ebp - 0x418]
call fcn.1001ff05
or dword [ebp - 4], 0xffffffff
jmp 0x10020961
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x10020957
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.10025797
ret 0x10
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403060], eax
mov dword [0x40301f], eax
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x403023], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x403027], eax
push 0x40300f
call sub.user32.dll_RegisterClassA
push 0
push dword [0x403060]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Test
push str.StdWindow
push 0x200
call sub.user32.dll_CreateWindowExA
mov dword [0x403064], eax
push 1
push dword [0x403064]
call sub.user32.dll_ShowWindow
push dword [0x403064]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x403074
call sub.user32.dll_GetMessageA
or eax, eax
je 0x4010bd
push 0x403074
call sub.user32.dll_TranslateMessage
push 0x403074
call sub.user32.dll_DispatchMessageA
jmp 0x401093
push dword [0x40307c]
call sub.kernel32.dll_ExitProcess
Function at 0x405ce0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484b76
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4b3630]
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]
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x405d1c
xor eax, eax
jmp 0x405d85
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0044a6c0
add esp, 0xc
call fcn.00406690
push 0x48d5e0
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x405da1
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.00407a10
push edi
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
push str.JDeskTray
lea ecx, [ebp - 0x21c]
call fcn.004091f0
lea ecx, [ebp - 0x21c]
mov ebx, eax
call fcn.004086d0
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.00442126
mov esp, ebp
pop ebp
ret
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405d83
call fcn.00406280
mov ecx, eax
test ecx, ecx
je 0x405ebd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x218]
test edi, edi
je 0x405e0f
push edi
push eax
lea eax, [ebp - 0x21c]
push 0x48d66c
push eax
call fcn.00406190
add esp, 0x10
jmp 0x405e24
push eax
lea eax, [ebp - 0x21c]
push str.__s_
push eax
call fcn.00406190
add esp, 0xc
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x405e45
push edi
lea ecx, [ebp - 0x21c]
call fcn.00406110
mov esi, dword [ebp - 0x21c]
lea eax, [edi + edi]
push eax
push esi
push 1
push 0
push str.jdesktray
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.0044dd88
add esp, 8
test eax, eax
js 0x405eb3
cmp eax, dword [esi - 8]
jg 0x405eb3
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405d83
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x405d83
push 0x80070057
call fcn.00405f60
push 0x80004005
call fcn.00405f60
int3
Function at 0x406020
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484ba8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b3630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40605d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
call fcn.00406360
add esp, 8
test eax, eax
jne 0x40608a
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
call fcn.00406690
test al, al
je 0x4060cb
lea ecx, [ebp + 8]
call fcn.00407a10
push 1
push str.JDeskTray
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00409b50
lea ecx, [ebp + 8]
mov esi, eax
call fcn.004086d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060fa
push str.jdesktray
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406b90
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 0x406be9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406be9
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 0x406bda
cmp esi, edx
jae 0x406be9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406bc8
cmp esi, edx
jae 0x406be9
cmp word [esi], 0
je 0x406be9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40e1b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485589
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4b3630]
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, ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], esi
call fcn.00406280
mov ecx, eax
test ecx, ecx
je 0x40e31d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
call fcn.00406280
mov ecx, eax
test ecx, ecx
je 0x40e327
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x40e28b
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0044a6c0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.config.ini
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.00406a30
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0044a6c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.JianDeskData
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e2e2
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.config.ini
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 4]
call fcn.00406a30
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.00442126
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405f60
push 0x80004005
call fcn.00405f60
int3
Function at 0x40e340
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4855c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b3630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], esi
xorps xmm0, xmm0
push dword [ecx]
movups xmmword [ebp - 0x30], xmm0
push 0xf
push eax
push 0x48e1c0
push str.ActiveCreatShortcut
push str.Default
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00406280
mov ecx, eax
test ecx, ecx
je 0x40e3f0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
mov ecx, esi
test eax, 0xffff0000
jne 0x40e3cc
movzx eax, ax
push eax
call fcn.00406740
jmp 0x40e3d2
push eax
call fcn.00406a30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00442126
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00405f60
int3
Function at 0x40fca0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4aaf80
push 0x44aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4b3630]
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 0x40fd1a
cmp dword [ebp - 0x28], edi
je 0x40fd1a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40fd52
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x40fe34
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 0x40fe34
cmp dword [ebp - 0x28], 0
je 0x40fe34
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 0x40fe34
cmp dword [ebp - 0x2c], eax
jbe 0x40fe34
call esi
cmp eax, 0x7a
jne 0x40fe34
push dword [ebp - 0x2c]
call fcn.00450fd4
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x40fe34
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 0x40fe34
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x40fe34
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 0x40fe34
cmp dword [ebp - 0x30], 0
je 0x40fe34
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x40fe34
lea ebx, [edi + esi*8]
push dword [ebp - 0x30]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40fe1d
inc esi
jmp 0x40fe00
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.0040fe61
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.00442126
mov esp, ebp
pop ebp
ret 8
Function at 0x410400
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004423a0
mov eax, dword [0x4b3630]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.0044a6c0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x4104f6
test edi, edi
je 0x4104f6
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4104f6
cmp eax, 0x3fff
ja 0x4104f6
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4104f6
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x48d69c
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4104f6
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.0044a6c0
mov ecx, dword [ebp - 0x400c]
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 str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.004122b0
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442126
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00442126
mov esp, ebp
pop ebp
ret

Function at 0x410a00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4b3630]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0044a6c0
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 0x410a60
cmp dword [ebp - 0x114], 6
jb 0x410a60
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442126
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00442126
mov esp, ebp
pop ebp
ret
Function at 0x4110f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4aaf40
push 0x44aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x4b3630]
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.0044a6c0
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411209
mov dword [ebp - 0x438], eax
push 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0044a6c0
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 0x411209
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jle 0x411209
push ecx
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.0041123b
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.00442126
mov esp, ebp
pop ebp
ret 0xc