joyce8/EMBER2024-capa huggingface dataset:
Function at 0x557cd0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x557d19
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x558190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57c1c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00557d40
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00557dc0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00557dc0
lea ecx, [esi + 0xc]
call fcn.0056c0a3
lea ecx, [esi + 0x10]
call fcn.0056c0a3
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00559350
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00559350
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00559350
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0056c118
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0056c118
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x56e4e6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x56e51e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0056c573
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0056c54b
jmp 0x56e52a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x56fbdb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x56fc1d
call fcn.00575ca0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x56fc1d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x56fc14
xor eax, eax
jmp 0x56fc25
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0056fc2b
pop edi
pop esi
pop ebx
ret 4

Function at 0x5761d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5761fe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x57621c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00576136
jmp 0x57621c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x57621c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00576136
test edi, edi
mov eax, edi
jne 0x576206
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80e004]
jne 0x401010
repz ret
jmp fcn.004016af

Function at 0x408875
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405eef
and dword [ebp - 4], 0
cmp dword [0x810d98], 0
mov ebx, eax
jne 0x408926
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4089d7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4089d7
push eax
call fcn.00405e7d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x810d98], eax
call esi
push eax
call fcn.00405e7d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x810d9c], eax
call esi
push eax
call fcn.00405e7d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x810da0], eax
call esi
push eax
call fcn.00405e7d
pop ecx
mov dword [0x810da8], eax
test eax, eax
je 0x408926
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405e7d
pop ecx
mov dword [0x810da4], eax
mov eax, dword [0x810da4]
cmp eax, ebx
je 0x40897e
cmp dword [0x810da8], ebx
je 0x40897e
push eax
call fcn.00405ef8
push dword [0x810da8]
mov esi, eax
call fcn.00405ef8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40897e
test edi, edi
je 0x40897e
call esi
test eax, eax
je 0x408975
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408975
test byte [ebp - 0xc], 1
jne 0x40897e
or dword [ebp + 0x10], 0x200000
jmp 0x4089b7
mov eax, dword [0x810d9c]
cmp eax, ebx
je 0x4089b7
push eax
call fcn.00405ef8
pop ecx
test eax, eax
je 0x4089b7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4089b7
mov eax, dword [0x810da0]
cmp eax, ebx
je 0x4089b7
push eax
call fcn.00405ef8
pop ecx
test eax, eax
je 0x4089b7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x810d98]
call fcn.00405ef8
pop ecx
test eax, eax
je 0x4089d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4089d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b800
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x80e004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x2357bac], 0x930
jne 0x40b82a
push str.Gahaw_tugez_kirapiface_fuya
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x2357bac], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x23579f0], eax
jne 0x40b85d
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0
call sub.KERNEL32.dll_VerLanguageNameA
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
Function at 0x420bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x420bbf
pop dword [ebp - 4]
mov eax, 0xb78e326b
add eax, 0x48b3d954
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x402a6
push 0
mov eax, 0x9b2c164a
add eax, 0x65163bce
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x5040
mov esi, eax
mov edi, 0x9f8bb2e6
add edi, 0x60b7a11a
add edi, dword [ebp - 4]
mov ebx, 0xf828544c
mov edx, dword [edi]
xor edx, ebx
mov dword [esi], edx
add esi, 0x93ae5a11
sub esi, 0x93ae5a0d
add edi, 0x42ac3bee
add edi, 0xbd53c416
loop 0x420c12
add eax, 0x133d3
xor ebx, ebx
add ebx, eax
add eax, 0x43932c9b
sub eax, 0x43932c96
mov ecx, 0xa77506e0
add ecx, 0x58caf920
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x401150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401167
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401198
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401194
cmp esi, eax
jae 0x401198
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401184
cmp esi, eax
jb 0x40119e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x40c470
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
je 0x40c547
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
push ebp
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40c4bd
cmp eax, 2
jne 0x40c547
call fcn.00403730
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x40c4e8
mov eax, esi
call fcn.00403c30
mov edi, dword [esi]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x40c517
mov edx, dword [esp + 0x20]
shr edx, 1
mov word [edi + edx*2], ax
mov dword [esp + 0x14], 1
mov edx, dword [esi]
test edx, edx
jne 0x40c521
xor eax, eax
jmp 0x40c537
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c526
sub eax, edi
sar eax, 1
js 0x40c555
cmp eax, dword [edx - 8]
jg 0x40c555
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0x80070057
call fcn.00401020
int3
Function at 0x40e8b0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4d82c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0xd2
lea eax, [esp + 0x22]
push ebp
push eax
mov word [esp + 0x28], bp
call fcn.004a4620
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebp
jne 0x40e901
xor eax, eax
jmp 0x40ea1d
cdq
and edx, 3
add eax, edx
push 0x208
lea edx, [esp + 0xfa]
mov ebx, eax
push ebp
push edx
sar ebx, 2
mov word [esp + 0x100], bp
call fcn.004a4620
mov esi, dword [esp + 0x324]
add esi, 4
add esp, 0xc
mov eax, esi
lea edi, [esp + 0x1c]
mov word [esp + 0x2fc], bp
call fcn.0040f490
cmp ebx, ebp
jle 0x40ea18
mov dword [esp + 0x10], ebx
push 0x104
lea eax, [esp + 0xf8]
push eax
push edi
mov word [edi + 4], bp
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40ea0a
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xf8]
call fcn.004034e0
lea ebx, [esp + 0x14]
mov dword [esp + 0x310], ebp
call fcn.0040f410
mov dword [esp + 0x310], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e9bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.004034e0
lea ebx, [esp + 0x18]
mov dword [esp + 0x310], 1
call fcn.0040f410
mov dword [esp + 0x310], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ea0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 8
sub dword [esp + 0x10], 1
jne 0x40e953
mov eax, 1
mov ecx, dword [esp + 0x308]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x304
ret 4

Function at 0x40ea70
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x40eaff
push 0x4ea6d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x18], eax
je 0x40eaff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x18]
push str.EnumProcesses
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.GetModuleBaseNameW
push ecx
mov dword [esi], eax
call edi
mov edx, dword [esi + 0x18]
push 0x4ea71c
push edx
mov dword [esi + 4], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
push 0x4ea734
push eax
call edi
cmp dword [esi], 0
mov dword [esi + 0x10], eax
pop edi
je 0x40eafa
cmp dword [esi + 4], 0
je 0x40eafa
cmp dword [esi + 8], 0
je 0x40eafa
cmp dword [esi + 0xc], 0
je 0x40eafa
test eax, eax
je 0x40eafa
mov eax, 1
mov dword [esi + 0x14], eax
ret
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
ret
Function at 0x40ee80
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f85c0
push 0x4d49b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x40ef21
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x40ef21
mov edi, 1
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x40ef21
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xffffffff
call fcn.0040ef43
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fe90
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fefe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40fecf
cmp eax, 2
jne 0x40feea
test esi, esi
mov eax, dword [esp]
je 0x40fef8
test eax, eax
je 0x40fef3
test al, 1
jne 0x40feea
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40fef8
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x40ff60
Capabilities:
Set registry value

Disassembly:
mov edx, dword [eax]
push ebx
xor ebx, ebx
test edx, edx
je 0x40ff9f
mov eax, edi
push esi
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ff70
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push ecx
push edi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
mov eax, 1
je 0x40ffa1
mov eax, ebx
pop ebx
ret 4

Function at 0x40ffe0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
lea edx, [esp + 0xc]
xor edi, edi
push edx
mov dword [eax], edi
push ebp
mov dword [esp + 0x14], edi
mov dword [ecx], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x410083
push ebx
push esi
call fcn.0049f25a
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
push ebx
push esi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41006c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x4ea634
xor esi, esi
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41006c
cmp dword [esp + 0x14], esi
je 0x41006c
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
lea edi, [esi + 1]
test ebx, ebx
je 0x410079
push ebx
call fcn.0049f9d0
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4101a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d770f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push esi
mov esi, dword [esp + 0x224]
push edi
xor edi, edi
mov dword [esp + 0x220], edi
mov dword [esp + 0xc], edi
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x507fec
call edx
add eax, 0x10
mov dword [esi], eax
push 0x206
lea eax, [esp + 0x16]
mov dword [esp + 0x224], edi
push edi
push eax
mov dword [esp + 0x18], 1
mov word [esp + 0x1c], di
call fcn.004a4620
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x410224
sub eax, edx
sar eax, 1
lea edx, [esp + 0x10]
mov ebx, eax
push edx
mov eax, esi
call fcn.00403b90
call fcn.00410090
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret

Function at 0x4103d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
push esi
push edi
push 0x11c
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004a4620
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call edi
test eax, eax
jne 0x41041d
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
je 0x410521
mov eax, dword [esp + 0x18]
mov edx, 1
sub eax, edx
je 0x41050c
sub eax, edx
je 0x41043f
xor esi, esi
pop edi
mov eax, esi
pop esi
add esp, 0x11c
ret
mov eax, dword [esp + 0xc]
cmp eax, 6
mov ecx, dword [esp + 0x10]
jne 0x410489
cmp ecx, edx
jne 0x41046a
xor eax, eax
cmp byte [esp + 0x122], dl
pop edi
setne al
add eax, 8
mov esi, eax
pop esi
add esp, 0x11c
ret
test ecx, ecx
jne 0x4104e9
cmp byte [esp + 0x122], dl
pop edi
setne cl
lea ecx, [ecx + ecx + 7]
mov esi, ecx
mov eax, esi
pop esi
add esp, 0x11c
ret
cmp eax, 5
jne 0x4104cf
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x4104a7
mov esi, 5
pop edi
mov eax, esi
pop esi
add esp, 0x11c
ret
cmp eax, edx
jne 0x4104bb
mov esi, 6
pop edi
mov eax, esi
pop esi
add esp, 0x11c
ret
test eax, eax
jne 0x410521
mov esi, 3
pop edi
mov eax, esi
pop esi
add esp, 0x11c
ret
cmp eax, 4
ja 0x4104e4
mov esi, 4
pop edi
mov eax, esi
pop esi
add esp, 0x11c
ret
cmp eax, 6
jb 0x410521
cmp ecx, 2
jae 0x4104f3
cmp eax, 6
jbe 0x410521
cmp byte [esp + 0x122], dl
jne 0x410521
call fcn.00410260
pop edi
mov esi, eax
pop esi
add esp, 0x11c
ret
mov edx, dword [esp + 0x14]
and edx, 0xffff0000
cmp edx, 0x45a0000
sbb esi, esi
add esi, 2
pop edi
mov eax, esi
pop esi
add esp, 0x11c
ret
Function at 0x411900
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
push 0x208
lea eax, [esp + 0xa]
push 0
push eax
mov dword [esp + 0xc], 0
mov word [esp + 0x10], 0
call fcn.004a4620
mov ecx, dword [esp + 0x220]
add esp, 0xc
push 0
push ecx
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
push esi
lea ecx, [esp + 8]
jge 0x41194e
mov ecx, 0x4e3214
call fcn.004034e0
mov eax, esi
add esp, 0x210
ret

Function at 0x411960
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push esi
call fcn.00413b30
mov esi, dword [eax]
cmp esi, 3
jge 0x411971
xor eax, eax
pop esi
ret
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41196d
cmp esi, 5
jge 0x4119a0
mov eax, dword [edi]
push 0
push 0
push 0
push eax
push str.taskbarunpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop esi
ret
push 0x150b
mov ecx, edi
call fcn.004119c0
add esp, 4
mov eax, 1
pop esi
ret
Function at 0x412c60
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x22c
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x412c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x22c
ret
push ebx
push edi
push 0x228
xor edi, edi
lea eax, [esp + 0x14]
push edi
push eax
mov ebx, 0x490
call fcn.004a4620
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x412cef
jmp 0x412cc0
lea edx, [esp + 0x30]
push str.explorer.exe
push edx
call fcn.004a16c0
add esp, 8
test eax, eax
je 0x412ce7
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x412cc0
jmp 0x412cf7
mov edi, dword [esp + 0x14]
xor ebx, ebx
jmp 0x412cf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x412d26
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop edi
pop ebx
pop esi
add esp, 0x22c
ret
mov ecx, dword [esp + 0x240]
push ecx
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x412d46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call ebp
pop ebp
pop edi
mov eax, ebx
pop ebx
pop esi
add esp, 0x22c
ret

Function at 0x412e30
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
test esi, esi
jne 0x412e44
or eax, 0xffffffff
add esp, 0x114
ret
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.004a4620
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x412e7c
cmp dword [esp + 4], 5
jne 0x412e7c
cmp dword [esp + 8], 0
je 0x412e90
push esi
call fcn.00412d60
add esp, 4
test eax, eax
jne 0x412e90
add esp, 0x114
ret
push esi
call fcn.00412c60
add esp, 4
add esp, 0x114
ret
Function at 0x412ea0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x33], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 0
mov byte [esp + 0x3e], 0
mov byte [esp + 0x3f], 0
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x412f86
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 2
push ebp
call edi
test eax, eax
jne 0x412f24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x412f85
mov eax, dword [esp + 0xc]
push esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
mov esi, eax
push esi
push 2
push ebp
call edi
test eax, eax
je 0x412f79
xor edi, edi
cmp dword [esi], edi
jbe 0x412f79
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [esi + 4]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call ebx
test eax, eax
jne 0x412f73
add edi, 1
add ebp, 8
cmp edi, dword [esi]
jb 0x412f58
jmp 0x412f78
mov byte [esp + 0x13], 1
pop ebx
test esi, esi
je 0x412f84
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
pop ebp
je 0x412f96
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [esp + 3]
add esp, 0x14
ret

Function at 0x412fa0
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
push ebp
mov ebp, dword [esp + 0x124]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 1
push 0
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x413027
push 0x110
push eax
lea edx, [esp + 0x18]
push edx
call fcn.004a4620
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x413016
cmp dword [esp + 0x10], 6
jne 0x413016
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
add esp, 0x11c
ret
mov dword [ebp], 0
xor eax, eax
pop ebp
add esp, 0x11c
ret
mov edx, dword [esp + 8]
push esi
xor eax, eax
test edx, edx
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x490
jbe 0x41306c
lea ecx, [edi + 8]
nop
cmp dword [ecx], 0
je 0x413061
add eax, 1
add ecx, 0xc
cmp eax, edx
jb 0x413040
push edi
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x11c
ret
lea ecx, [eax + eax*2]
mov edx, dword [edi + ecx*4]
mov dword [ebp], edx
xor esi, esi
push edi
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x11c
ret