joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da80
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov eax, dword [ebx + 0x1c]
mov ebp, dword [ebx + 0x8054]
mov esi, ecx
push edi
cmp dword [eax + 4], 1
jne 0x40da9c
mov ebp, dword [ebx]
mov eax, dword [esi + 0x26e4]
xor edi, edi
cmp eax, edi
je 0x40db72
mov ecx, esi
call fcn.0040d540
mov edi, dword [ebx + 0x8038]
push 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
add ecx, eax
mov eax, dword [edi + 0xc]
adc eax, edx
mov edx, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 8]
sar edx, 0x1f
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40daf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40dbc0
mov eax, dword [esi + 8]
lea edx, [esp + 0x18]
push 0
push edx
add ebx, 0x38
push ebp
push ebx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40dbc0
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x40dbc0
mov ebp, dword [edi + 0x18]
add ebp, eax
mov eax, 0
mov dword [edi + 0x18], ebp
mov ebx, dword [edi + 0x1c]
adc ebx, eax
mov dword [edi + 0x1c], ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x5cf18]
add edx, ecx
mov dword [esi + 0x5cf18], edx
mov ecx, dword [esi + 0x5cf1c]
adc ecx, eax
mov dword [esi + 0x5cf1c], ecx
mov ecx, esi
call fcn.0040d620
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 8]
lea edx, [esp + 0x18]
push edi
push edx
add ebx, 0x38
push ebp
push ebx
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40dbc0
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x40dbc0
mov ecx, dword [esi + 0x5cf18]
add ecx, eax
mov dword [esi + 0x5cf18], ecx
mov eax, dword [esi + 0x5cf1c]
adc eax, edi
pop edi
mov dword [esi + 0x5cf1c], eax
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
Function at 0x40edc0
Capabilities:
Check mutex on windows
Create thread
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebp
push str.___seup__upfavcfg__Mutex__
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebp, eax
test ebp, ebp
je 0x40edea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ee8a
mov eax, dword [0x4d5dd4]
push esi
push eax
call fcn.0040ef10
add esp, 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push SysReAllocString
push 0x4d6e34
push str.SeUpMyClass_
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push esi
push 0x40ebe0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
call esi
test eax, eax
je 0x40ee85
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call esi
test eax, eax
jne 0x40ee64
pop edi
pop ebx
test ebp, ebp
pop esi
je 0x40ee91
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
add esp, 0x1c
ret

Function at 0x40f070
Capabilities:
Get file version info

Disassembly:
mov eax, 0x400c
call fcn.004473e0
push esi
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x4018]
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40f139
cmp eax, 0x3fff
ja 0x40f139
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f139
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x463600
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f139
mov eax, dword [esp + 8]
xor edx, edx
mov esi, dword [esp + 0x4020]
mov edi, dword [esp + 0x401c]
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
push str._d._d._d._d
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
mov word [edi + esi*2 - 2], 0
mov eax, 1
pop edi
pop esi
add esp, 0x400c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x400c
ret
Function at 0x40f150
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4008
call fcn.004473e0
push esi
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x4014]
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40f1cf
cmp eax, 0x3fff
ja 0x40f1cf
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f1cf
mov eax, dword [esp + 0x4018]
lea edx, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x463600
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f1cf
pop edi
mov eax, 1
pop esi
add esp, 0x4008
ret
pop edi
xor eax, eax
pop esi
add esp, 0x4008
ret

Function at 0x40f1e0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x40f206
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 1
je 0x40f208
mov eax, esi
pop esi
ret
Function at 0x40f9d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x70
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea ecx, [esp + 4]
lea edx, [esp + 0x30]
mov dword [esp + 0xc], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x50], 0x44
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40fab5
mov ecx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xa
push ecx
call esi
cmp eax, 0x102
jne 0x40fa7f
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
lea edx, [esp + 0x2c]
push 0
push edx
call edi
test eax, eax
je 0x40fa6d
lea eax, [esp + 0x20]
push eax
call ebx
lea ecx, [esp + 0x20]
push ecx
call ebp
mov edx, dword [esp + 0x10]
push 0xa
push edx
call esi
cmp eax, 0x102
je 0x40fa4c
pop ebp
pop ebx
mov eax, dword [esp + 0x80]
test eax, eax
je 0x40fa96
push eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
pop esi
mov eax, 1
pop edi
add esp, 0x70
ret
xor eax, eax
pop edi
add esp, 0x70
ret

Function at 0x40fc20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
push 0
push 0x1f0fff
xor bl, bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40fc51
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
ret

Function at 0x40fc60
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x22c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebx
push ebx
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40fcdd
mov edi, dword [esp + 0x23c]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea ecx, [esp + 0x34]
push edi
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40fccd
mov edx, dword [esp + 0x18]
push edx
call fcn.0040fc20
add esp, 4
test al, al
je 0x40fccd
mov bl, 1
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40fcab
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x22c
ret
Function at 0x410850
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x2cc
push 0x4dc548
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41086c
add esp, 0x2cc
ret
push esi
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4dc548
lea eax, [esp + 0x10]
push 0x63
push eax
push 0x4d6e34
push 0x465250
push str.DisableUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [0x463290]
mov ecx, 0x4dc340
test ecx, ecx
mov dword [esp + 8], eax
je 0x41098b
mov edx, ecx
shr edx, 0x10
jne 0x41094e
xor edi, edi
mov eax, ecx
lea ecx, [esp + 0xd4]
mov di, ax
push 0x100
push ecx
push edi
call fcn.00402e40
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x410902
lea eax, [esp + 0xd4]
lea ecx, [esp + 8]
push eax
call fcn.00403090
jmp 0x410987
push 0x1ff
lea ecx, [esp + 0xc]
mov esi, 0x200
call fcn.00403130
test eax, eax
je 0x410941
push esi
push eax
push edi
call fcn.00402e40
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x410941
add esi, 0x100
lea ecx, [esp + 8]
lea edx, [esi - 1]
push edx
call fcn.00403130
test eax, eax
jne 0x410919
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004031c0
jmp 0x410987
push 0x4dc340
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x410987
push esi
lea ecx, [esp + 0xc]
call fcn.00402e70
test eax, eax
je 0x410987
mov edi, dword [esp + 8]
lea ecx, [esi + esi]
mov eax, ecx
mov esi, 0x4dc340
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
mov edx, dword [0x463294]
pop edi
pop esi
test ecx, ecx
lea ecx, [eax - 0xc]
jne 0x4109c8
cmp ecx, edx
je 0x4109bf
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4109bf
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
xor eax, eax
add esp, 0x2cc
ret
cmp ecx, edx
je 0x4109ea
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4109ea
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
lea eax, [esp + 4]
push eax
push 0x4dc340
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
xor ecx, ecx
test eax, eax
setle cl
mov eax, ecx
add esp, 0x2cc
ret

Function at 0x410e80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x18]
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp], eax
lea eax, [esp]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret
Function at 0x410ec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x224]
push ecx
mov ecx, dword [esp + 0x224]
push edx
mov edx, dword [esp + 0x224]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x410fd2
cmp word [esp + 0xc], ax
je 0x410fd2
lea eax, [esp + 0xc]
push ebx
test eax, eax
push ebp
jne 0x410f3b
xor ebp, ebp
jmp 0x410f48
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov ebx, dword [esp + 0x22c]
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x410f61
cmp ebp, dword [eax - 4]
jle 0x410f9a
mov edx, dword [0x463294]
add eax, 0xfffffff4
cmp eax, edx
je 0x410f8e
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410f87
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.0044737a
add esp, 4
mov eax, dword [0x463290]
mov dword [ebx], eax
push ebp
mov ecx, ebx
call fcn.00402e70
test eax, eax
je 0x410fc3
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
push esi
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
pop esi
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x210
ret
xor eax, eax
pop edi
add esp, 0x210
ret

Function at 0x410fe0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push 1
push eax
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x411010
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push 4
push eax
mov eax, dword [esp + 0xc]
push 4
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x4112d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x44d40b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x234]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x22c], edi
push ecx
push 0x2001f
push edi
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x411348
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edi
je 0x411338
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
cmp eax, edi
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x41135a
jmp 0x41134c
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x4113f5
push ecx
jmp 0x4113ef
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push edi
push edi
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4113c0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.004112d0
mov ebx, eax
cmp ebx, edi
jne 0x411411
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x411382
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4113d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x234]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4113f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x411420
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4113f7
Function at 0x411770
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push 0x1a
push eax
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebp, dword [esp + 0x424]
mov ecx, dword [0x463290]
lea edx, [esp + 0x18]
test edx, edx
mov dword [ebp], ecx
je 0x411945
lea eax, [esp + 0x18]
shr eax, 0x10
jne 0x411910
mov eax, dword [0x4d5dd4]
xor edi, edi
lea ecx, [esp + 0x18]
lea edx, [esp + 0x220]
mov di, cx
push 0x100
push edx
push edi
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebx
jne 0x411800
mov word [esp + 0x220], bx
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x411846
lea edx, [esp + 0x220]
test edx, edx
jne 0x41181b
xor eax, eax
jmp 0x411829
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x220]
push ecx
push eax
mov ecx, ebp
call fcn.00404f60
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
mov ebx, 0xff
jmp 0x411854
mov ebp, dword [esp + 0x424]
mov eax, dword [ebp]
add ebx, 0x100
mov ecx, ebx
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x41186f
cmp ebx, dword [eax - 4]
jle 0x4118c0
mov esi, dword [eax - 8]
cmp ebx, esi
mov dword [esp + 0x14], esi
jge 0x41187c
mov ecx, esi
mov edi, dword [esp + 0x424]
push ecx
mov ecx, edi
call fcn.00402e70
test eax, eax
je 0x4118fa
mov edi, dword [edi]
lea ecx, [esi + esi + 2]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x424]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push ebp
mov dword [ecx - 8], edx
call fcn.00409a30
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x424]
mov ebp, dword [eax]
test ebp, ebp
je 0x4118f3
mov ecx, dword [0x4d5dd4]
lea esi, [ebx + 1]
push esi
push ebp
push edi
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4118e8
mov word [ebp], ax
sub esi, eax
cmp esi, 1
jle 0x41184d
mov edi, dword [esp + 0x424]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004031c0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x411945
push esi
mov ecx, ebp
call fcn.00402e70
test eax, eax
je 0x411945
mov edi, dword [ebp]
lea ecx, [esi + esi]
mov eax, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x412550
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412564
pop esi
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esi]
mov eax, dword [eax]
push eax
push ecx
call fcn.004052d0
add esp, 8
neg eax
sbb eax, eax
pop esi
neg eax
ret
Function at 0x412d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, 3
mov dword [esp + 0x28], 0x103
mov dword [esp + 0x24], 1
call esi
test eax, eax
jne 0x412e50
cmp word [esp + 0x14], ax
je 0x412e50
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push ebx
lea eax, [esp + 0x18]
push 0x465578
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x412db8
mov ebx, 2
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x210
ret
push 3
lea ecx, [esp + 0x18]
push 0x465570
push ecx
call esi
add esp, 0xc
test eax, eax
jne 0x412dde
mov ebx, 3
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x210
ret
push 3
lea edx, [esp + 0x18]
push 0x465568
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x412e04
mov ebx, 4
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x210
ret
push 3
lea eax, [esp + 0x18]
push 0x465560
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x412e2a
mov ebx, 5
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x210
ret
push 3
lea ecx, [esp + 0x18]
push 0x465558
push ecx
call esi
add esp, 0xc
test eax, eax
jne 0x412e80
mov ebx, 6
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x210
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VersionNumber
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x412e80
cmp word [esp + 0x14], ax
je 0x412e80
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x210
ret
Function at 0x412f50
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x124
push edi
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
jne 0x412f83
add esp, 0x124
ret
cmp dword [esp + 0x14], 5
ja 0x412f93
xor eax, eax
add esp, 0x124
ret
lea ecx, [esp]
mov eax, 4
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412fe4
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x124
ret
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 4]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41301d
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x124
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 1
sete al
add esp, 0x124
ret

Function at 0x413040
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 8]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea ecx, [esp + 0x30]
push 2
push ecx
mov dword [esp + 0x30], 1
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 4], eax
je 0x4130b6
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4130a7
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
pop ebx
add esp, 0x10
ret