joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100344b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x10034528
push 0x101df093
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
jmp 0x100345d7
push 0x104
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.10155d20
add esp, 0xc
mov dword [ebp - 0x10c], 0x104
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push str.MachineGuid
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x11c], 0
je 0x100345b6
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x101df0a3
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0x114]
or edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 8]
jmp 0x100345d7
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret

Function at 0x100345f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftSQMClient
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x10034668
push 0x101df0b6
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
jmp 0x10034717
push 0x104
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.10155d20
add esp, 0xc
mov dword [ebp - 0x10c], 0x104
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push str.MachineId
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x11c], 0
je 0x100346f6
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x101df0b7
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0x114]
or edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 8]
jmp 0x10034717
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x10034bf0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e6a3
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x10034c3b
xor al, al
jmp 0x10034d3c
mov dword [ebp - 0x254], 0x22c
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10034c71
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x10034d3c
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x280]
call fcn.10005180
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x280]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.10028e70
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x280]
call fcn.10009870
push fcn.10162221
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000e870
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x260]
push edx
lea ecx, [ebp - 0x28]
call fcn.100193b0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1000e870
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x268]
push eax
call fcn.10036b30
add esp, 0x14
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1002d9d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
lea edx, [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10034c71
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x10037210
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], 0xefcdab89
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x98badcfe
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x10038730
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017eac8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x4c]
call fcn.100371e0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], 0x10
lea ecx, [ebp - 0x28]
call fcn.10004650
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x40]
shl eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.100073e0
mov byte [ebp - 0x3c], 0x30
mov byte [ebp - 0x3b], 0x31
mov byte [ebp - 0x3a], 0x32
mov byte [ebp - 0x39], 0x33
mov byte [ebp - 0x38], 0x34
mov byte [ebp - 0x37], 0x35
mov byte [ebp - 0x36], 0x36
mov byte [ebp - 0x35], 0x37
mov byte [ebp - 0x34], 0x38
mov byte [ebp - 0x33], 0x39
mov byte [ebp - 0x32], 0x61
mov byte [ebp - 0x31], 0x62
mov byte [ebp - 0x30], 0x63
mov byte [ebp - 0x2f], 0x64
mov byte [ebp - 0x2e], 0x65
mov byte [ebp - 0x2d], 0x66
mov dword [ebp - 0x2c], 0
jmp 0x100387e3
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x40]
jae 0x10038841
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x44]
and edx, reloc.WS2_32.dll_ntohs
jns 0x10038816
dec edx
or edx, 0xfffffff0
inc edx
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x54]
movzx ecx, byte [ebp + eax - 0x3c]
push ecx
push 1
lea ecx, [ebp - 0x28]
call fcn.100093e0
mov edx, dword [ebp - 0x58]
movzx eax, byte [ebp + edx - 0x3c]
push eax
push 1
lea ecx, [ebp - 0x28]
call fcn.100093e0
jmp 0x100387da
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100045d0
mov edx, dword [ebp - 0x48]
or edx, 1
mov dword [ebp - 0x48], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret 4
Function at 0x1003dbe0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x18]
mov esi, ecx
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
neg eax
mov dword [ebp - 0x14], 1
sbb edi, edi
lea eax, [ebp - 0x10]
and edi, 1
neg esi
push eax
sbb esi, esi
push 0x101e95c8
and esi, 2
push 0
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.101534c8
mov esp, ebp
pop ebp
ret

Function at 0x1003dcd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f078
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x44
lea eax, [ebp - 0x64]
mov dword [ebp - 0x10], 0
push 0
push eax
call fcn.10155d20
mov ax, word [ebp + 8]
lea ecx, [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x5c], str.winsta0default
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], ax
push esi
call fcn.1000af00
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.10005590
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1003dd75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x10], esi
jmp 0x1003dd9f
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov esi, dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.10009c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003ddc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f0a8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.10007cc0
push 0xf003f
push str.ServicesActive
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1003de39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.OpenSCManager_failed___d_
push eax
call fcn.10012d00
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.100055d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor esi, esi
jmp 0x1003de8a
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x1003de79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.OpenService_failed___d_
push eax
call fcn.10012d00
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.100055d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x1003de8a
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
mov esi, 1
lea ecx, [ebp - 0x10]
call fcn.10009c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003deb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ecx
push 0
push eax
call fcn.10155d20
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x23c], ebx
cmp ebx, 0xffffffff
jne 0x1003df08
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
push esi
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1003df81
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
lea eax, [ebp - 0x20c]
mov esi, str.EXPLORER.EXE
push eax
call fcn.10166b09
add esp, 4
mov cx, word [eax]
cmp cx, word [esi]
jne 0x1003df6a
test cx, cx
je 0x1003df66
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x1003df6a
add eax, 4
add esi, 4
test cx, cx
jne 0x1003df44
xor eax, eax
jmp 0x1003df6f
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003df9b
lea eax, [ebp - 0x230]
push eax
push ebx
call edi
test eax, eax
jne 0x1003df30
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp - 0x234]
mov edi, eax
push ecx
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
test ebx, ebx
je 0x1003e011
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0
push eax
mov eax, dword [ebp - 0x234]
push 1
push 2
push 0
push 0xf01ff
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebp - 0x234]
push dword [eax]
call esi
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x238]
mov dword [ecx], eax
push edi
call esi
push dword [ebp - 0x23c]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x1003e310
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f130
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1c], esi
mov ebx, ecx
mov dword [ebp - 0x24], ebx
push esi
lea ecx, [ebp - 0x14]
call fcn.1000af00
push str.0.0.0.0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.1000af00
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1000a8b0
test eax, eax
jle 0x1003e41d
lea ecx, [ebp - 0x14]
call fcn.100055d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003e41d
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x1003e41d
lea eax, [edi + 1]
push eax
call fcn.10153b9b
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
test esi, esi
je 0x1003e41d
push esi
push edi
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1003e3d3
push esi
call fcn.10153a98
add esp, 4
jmp 0x1003e41d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x101e95ac
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1003e3c8
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x20]
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
call fcn.10153a98
movzx eax, si
push eax
shr esi, 0x10
push esi
movzx eax, di
push eax
shr edi, 0x10
lea eax, [ebp - 0x10]
push edi
push str._d._d._d._d
push eax
call fcn.10012d00
add esp, 0x1c
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.10009bf0
lea ecx, [ebp - 0x10]
call fcn.10009c10
lea ecx, [ebp - 0x14]
call fcn.10009c10
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003e450
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f15b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x101fd398]
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 eax, edx
mov dword [ebp - 0x214], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x21c], esi
push ecx
push eax
mov dword [ebp - 0x224], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x1003e4c3
push 0x101e95a8
mov ecx, esi
call fcn.1000af00
jmp 0x1003e5ba
push ebx
call fcn.10153b9b
add esp, 4
mov edi, eax
push edi
push ebx
push 0
push dword [ebp - 0x214]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x220], 0
push eax
push str.VarFileInfoTranslation
push edi
call ebx
lea ecx, [ebp - 0x218]
call fcn.10007cc0
mov dword [ebp - 4], 0
test dword [ebp - 0x220], 0xfffffffc
jbe 0x1003e596
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10155d20
mov ecx, dword [ebp - 0x228]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x210]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call ebx
push dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
call fcn.1000aee0
push 1
push edi
call fcn.101534d9
add esp, 8
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10009bf0
lea ecx, [ebp - 0x218]
call fcn.10009c10
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.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x1003e5e0
Capabilities:
Get common file path
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x800
mov edi, ecx
lea eax, [ebp - 0x804]
push 0
mov dword [ebp - 0x814], edi
push eax
mov dword [ebp - 0x814], edi
call fcn.10155d20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x810], 0
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, eax
mov dword [ebp - 0x814], 0
lea eax, [ebp - 0x818]
mov dword [ebp - 0x80c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x80c]
mov word [ebp - 0x808], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1003e6a1
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 0x818]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x814], 0
je 0x1003e6f1
test esi, esi
je 0x1003e6b8
mov eax, dword [ebp - 0x810]
test eax, eax
jne 0x1003e6cd
lea ecx, [ebp - 0x810]
call fcn.1003deb0
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x1003e70c
lea ecx, [ebp - 0x804]
push ecx
push 0
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 0x810]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003e708
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1003e736
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x804]
push eax
call esi
push str.GameShared
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x804]
push eax
call esi
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.1000af00
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x1003ebb0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f2a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003ebf3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x101e988c
lea ecx, [ebp - 0x10]
call fcn.1000af00
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.1001fb50
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x10]
test al, 0x10
je 0x1003ec25
push 0x101e9890
jmp 0x1003ec2a
push str.___grant_Everyone:F
call fcn.1001fb50
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.100055d0
push eax
push str.icacls.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x1003ec8e
lea ecx, [ebp - 0x14]
call fcn.10007cc0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.ShellExecute_failed:_d
push eax
call fcn.10012d00
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.100055d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x14]
call fcn.10009c10
lea ecx, [ebp - 0x10]
call fcn.10009c10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003ed30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x101fd398]
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, edx
mov edi, ecx
mov eax, dword [ebp + 8]
push 0x101e9940
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.101635d0
mov eax, dword [ebp - 0x5c]
add esp, 0xc
test eax, eax
jne 0x1003ed8d
push 0x101e8480
lea ecx, [ebp - 0x58]
call fcn.10004f90
jmp 0x1003edff
push 2
push 0
push eax
call fcn.10163ffa
push dword [ebp - 0x5c]
call fcn.1016711a
push 0
push 0
push dword [ebp - 0x5c]
mov esi, eax
call fcn.10163ffa
add esp, 0x1c
lea ecx, [ebp - 0x40]
call fcn.10004650
push 0
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.10009480
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
push 1
push esi
push 0
call fcn.10004160
push eax
call fcn.101641e1
push dword [ebp - 0x5c]
call fcn.1016391d
add esp, 0x14
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
call fcn.100045d0
lea ecx, [ebp - 0x40]
call fcn.10004780
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 1
call fcn.100044a0
shr eax, 1
lea ecx, [ebp - 0x58]
push eax
call fcn.1000b2d0
push eax
lea ecx, [ebp - 0x28]
call fcn.10036800
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10004970
mov ecx, ebx
mov esi, eax
call fcn.10004970
mov ecx, eax
push dword [eax + 0x10]
call fcn.10008c80
push eax
push 0
push dword [esi + 0x10]
mov ecx, esi
call fcn.10008c80
push eax
call fcn.10036c80
add esp, 0x14
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
je 0x1003eed3
mov ecx, ebx
call fcn.100044a0
mov ecx, dword [ebp - 0x60]
mov esi, eax
call fcn.10004970
mov ecx, eax
push dword [eax + 0x10]
call fcn.10008c80
push eax
push esi
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
call fcn.1003ef70
lea ecx, [ebp - 0x28]
call fcn.100044a0
mov esi, eax
lea ecx, [ebp - 0x28]
add esi, esi
call fcn.100095b0
push 0x101e9944
mov ebx, eax
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.101635d0
mov ecx, dword [ebp - 0x60]
add esp, 0xc
test ecx, ecx
je 0x1003eed3
push ecx
push 1
push esi
push ebx
call fcn.1016384f
push dword [ebp - 0x60]
call fcn.1016391d
add esp, 0x14
mov bl, 1
jmp 0x1003eed5
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.10009870
lea ecx, [ebp - 0x58]
call fcn.10004780
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.101534c8
mov esp, ebp
pop ebp
ret