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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.00403b70
lea eax, [ebp - 0xcc]
push eax
push dword [ebp + 0xc]
push esi
call fcn.00403d20
lea eax, [ebp - 0x20c]
mov ecx, 0x28
push eax
push dword [ebp + 0x14]
lea esi, [ebp - 0xcc]
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.00403b90
mov ecx, dword [ebp + 0x20]
mov eax, 0xcccccccd
dec ecx
add esp, 0x1c
mul ecx
mov eax, edx
shr eax, 4
add eax, 1
mov dword [ebp - 0x220], eax
je 0x404c60
mov edx, 1
mov dword [ebp - 0x214], 0
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x218], ebx
mov eax, edx
mov dword [ebp - 0x1c], 0
shr eax, 0x18
lea esi, [ebp - 0x20c]
mov byte [ebp - 0x18], al
lea edi, [ebp - 0x16c]
mov eax, edx
mov byte [ebp - 0x15], dl
shr eax, 0x10
mov ecx, 0x28
mov byte [ebp - 0x17], al
xorps xmm0, xmm0
mov eax, edx
shr eax, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x18]
mov byte [ebp - 0x16], al
mov eax, 4
movups xmmword [ebp - 0x230], xmm0
movups xmmword [ebp - 0x2c], xmm0
test ecx, ecx
je 0x404c0c
mov ebx, ecx
lea ecx, [ebp - 0x16c]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403b90
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.00403c50
movups xmm0, xmmword [ebp - 0x18]
add esp, 0x18
mov eax, 0x10
movups xmm1, xmmword [ebp - 0x230]
pxor xmm1, xmm0
movups xmmword [ebp - 0x2c], xmm1
mov cl, byte [ebp + eax - 0x18]
xor byte [ebp + eax - 0x2c], cl
inc eax
cmp eax, 0x14
jb 0x404bd3
lea esi, [ebp - 0xcc]
mov ecx, 0x28
lea edi, [ebp - 0x16c]
rep movsd dword es:[edi], dword [esi]
sub ebx, 1
je 0x404c06
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [ebp - 0x230], xmm0
jmp 0x404b95
mov ebx, dword [ebp - 0x218]
mov edi, dword [ebp - 0x214]
xor edx, edx
mov esi, dword [ebp - 0x21c]
mov ecx, edi
nop dword [eax]
cmp ecx, dword [ebp + 0x20]
jae 0x404c32
mov al, byte [ebx + ecx]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x404c20
mov edx, dword [ebp - 0x210]
add edi, 0x14
inc edx
mov dword [ebp - 0x214], edi
sub ebx, 0x14
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x218], ebx
lea eax, [edx - 1]
cmp eax, dword [ebp - 0x220]
jb 0x404b44
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428a27
mov esp, ebp
pop ebp
ret

Function at 0x404c80
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret
Function at 0x404cc0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x154], edi
lea esi, [edi + 0x1c]
mov ecx, dword [esi]
lea esi, [esi + 4]
mov eax, ecx
rol ecx, 8
ror eax, 8
and ecx, 0xff00ff
and eax, 0xff00ff00
or eax, ecx
mov dword [ebp + edx*4 - 0x144], eax
inc edx
cmp edx, 0x10
jb 0x404ce4
lea eax, [ebp - 0x13c]
mov edx, 0x40
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x404d16
mov ecx, dword [ebp - 0x154]
mov eax, dword [edi + 8]
mov esi, eax
mov ebx, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
mov dword [ebp - 0x158], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], edx
nop
mov ecx, ebx
mov edx, esi
not ecx
rol esi, 5
and ecx, eax
mov eax, edi
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x150]
add esi, ecx
add eax, 0x5a827999
mov ecx, dword [ebp - 0x14c]
add esi, dword [ebp + ecx*4 - 0x144]
inc ecx
add esi, eax
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x148], eax
ror edi, 2
mov ebx, edx
cmp ecx, 0x14
jb 0x404d60
mov edx, 0x14
nop dword [eax]
xor eax, edi
mov ecx, esi
xor eax, ebx
rol esi, 5
add esi, eax
mov eax, dword [ebp - 0x150]
add esi, dword [ebp + edx*4 - 0x144]
add eax, 0x6ed9eba1
add esi, eax
inc edx
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x148], eax
ror edi, 2
mov ebx, ecx
cmp edx, 0x28
jb 0x404dc0
mov dword [ebp - 0x14c], 0x28
nop word [eax + eax]
mov ecx, edi
mov edx, esi
xor ecx, ebx
rol esi, 5
add esi, dword [ebp - 0x150]
and ecx, eax
mov eax, edi
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, 0x8f1bbcdc
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, edi
mov edi, ebx
add esi, ecx
mov ecx, dword [ebp - 0x148]
mov ebx, edx
mov edx, dword [ebp - 0x14c]
inc edx
ror edi, 2
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
cmp edx, 0x3c
jb 0x404e10
mov edx, 0x3c
nop
xor eax, edi
mov dword [ebp - 0x14c], esi
xor eax, ebx
rol esi, 5
add eax, 0xca62c1d6
add esi, ecx
add eax, dword [ebp + edx*4 - 0x144]
inc edx
mov ecx, dword [ebp - 0x148]
add esi, eax
mov eax, edi
mov edi, ebx
mov ebx, dword [ebp - 0x14c]
ror edi, 2
mov dword [ebp - 0x148], eax
cmp edx, 0x50
jb 0x404e70
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x150], ecx
add eax, esi
mov ecx, dword [ebp - 0x154]
add dword [ecx + 0x10], edi
mov dword [ecx + 8], eax
mov eax, ebx
add dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x148]
add dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x150]
add dword [ecx + 0x18], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428a27
mov esp, ebp
pop ebp
ret
Function at 0x406f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.004065a0
push dword [edi + 0x40]
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.00428a7f
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0x45a514
push esi
push eax
mov dword [edi + 0x40], 0
mov dword [ebp - 4], 0
call fcn.0042f487
mov ebx, dword [ebp - 4]
add esp, 0x10
test ebx, ebx
je 0x4070e9
test eax, eax
jne 0x4070e9
mov ecx, edi
call fcn.004065a0
push dword [edi + 0x40]
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.00428a7f
push 2
push 0
push ebx
mov dword [edi + 0x40], 0
call fcn.00432de1
push ebx
call fcn.00433353
push 0
push 0
push ebx
mov esi, eax
call fcn.00432de1
add esp, 0x20
test esi, esi
je 0x4070bd
lea ecx, [esi + 1]
push ecx
call fcn.00428a76
push ebx
push esi
push 1
push eax
mov dword [edi + 0x40], eax
call fcn.004329f6
add esp, 0x14
cmp eax, esi
je 0x407059
mov dword [edi + 0x30], 5
jmp 0x4070c4
mov eax, dword [edi + 0x40]
mov byte [esi + eax], 0
push dword [edi + 0x40]
call fcn.00408160
mov ecx, eax
mov byte [edi + 0x2c], 0
add esp, 4
cmp byte [ecx], 0xef
jne 0x407089
cmp byte [ecx + 1], 0xbb
jne 0x407089
cmp byte [ecx + 2], 0xbf
jne 0x407089
mov byte [edi + 0x2c], 1
add ecx, 3
test ecx, ecx
je 0x4070bd
cmp byte [ecx], 0
je 0x4070bd
mov eax, dword [edi]
push 0
push ecx
mov esi, dword [eax + 0x3c]
mov ecx, esi
call dword [0x45343c]
mov ecx, edi
call esi
push dword [ebp - 4]
call fcn.004327aa
mov eax, dword [edi + 0x30]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x30], 0xf
push dword [ebp - 4]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
call fcn.004327aa
mov eax, dword [edi + 0x30]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x38], esi
mov eax, 3
mov dword [edi + 0x30], 3
mov dword [edi + 0x3c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c7c0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
jne 0x40c8ab
push 0x45b52c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x40], eax
test eax, eax
jne 0x40c7e1
pop esi
ret
push str.CryptCATAdminAcquireContext
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinVerifyTrust
push dword [esi + 0x40]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTHelperGetProvSignerFromChain
push dword [esi + 0x40]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTHelperProvDataFromStateData
push dword [esi + 0x40]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminReleaseContext
push dword [esi + 0x40]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminReleaseCatalogContext
push dword [esi + 0x40]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATCatalogInfoFromContext
push dword [esi + 0x40]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminEnumCatalogFromHash
push dword [esi + 0x40]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push dword [esi + 0x40]
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsCatalogFile
push dword [esi + 0x40]
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTHelperGetProvCertFromChain
push dword [esi + 0x40]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTHelperCertFindIssuerCertificate
push dword [esi + 0x40]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x38], eax
xor eax, eax
cmp dword [esi + 0x10], eax
pop esi
setne al
ret
Function at 0x40d5c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40d760
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40d760
mov ecx, 0x64
cmp dword [ebp + 0x10], ecx
push edi
cmovae ecx, dword [ebp + 0x10]
xor edi, edi
push 0x38
push edi
push esi
mov dword [ebp - 4], ecx
call fcn.0042b800
add esp, 0xc
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push edi
push edi
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xc], eax
cmp dword [esi + 8], edi
je 0x40d649
test eax, eax
je 0x40d649
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push 1
push edi
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x34], eax
cmp dword [esi + 0x20], edi
je 0x40d642
test eax, eax
jne 0x40d657
mov edi, 0xfffffffd
jmp 0x40d64e
mov edi, 0xfffffffe
push esi
call fcn.0040d440
add esp, 4
test edi, edi
js 0x40d748
xor edi, edi
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
cmp dword [esi + 4], edi
je 0x40d679
push esi
call fcn.0040d4f0
add esp, 4
push esi
call fcn.0040d570
add esp, 4
test eax, eax
jne 0x40d68e
lea edi, [eax - 4]
jmp 0x40d744
cmp dword [ebp - 4], edi
je 0x40d6c1
push ebx
push 0
push 1
push 0
call fcn.00414380
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x40d6c1
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40d6c1
mov edi, 0xffffff9c
jmp 0x40d71a
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x40d709
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x40d702
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x40d6c1
lea edi, [eax - 6]
jmp 0x40d71a
mov edi, 0xfffffffb
jmp 0x40d71a
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov dword [esi], edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x40d728
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
test eax, eax
je 0x40d736
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40d744
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
jns 0x40d757
push esi
call fcn.0040d4f0
push esi
call fcn.0040d440
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4101c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451298
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x47a42c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0xc], 0
call fcn.00428a38
mov esi, eax
add esp, 4
test esi, esi
je 0x41025d
push 1
mov dword [ebp - 4], 0
call fcn.0042a5f4
add esp, 4
mov dword [esi + 4], eax
jmp 0x41025f
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov edi, dword [esi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x45343c]
mov ecx, edi
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 2
push eax
call fcn.0040e090
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x45343c]
mov ecx, edi
call esi
movzx edi, ax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test edi, edi
je 0x4102f5
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x45343c]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x4102f5
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x45343c]
mov ecx, edi
call esi
cmp dword [ebx + 0x38], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov word [ebx + 0x40], ax
jne 0x41031c
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
jne 0x41033f
cmp byte [ebp + 0xc], 0
je 0x41032b
push ebx
call fcn.0042a857
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x41034b
mov esi, str.ios_base::badbit_set
jmp 0x41035b
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.00410390
add esp, 8
lea ecx, [ebp - 0x34]
push eax
push esi
call fcn.0040e7d0
push 0x47598c
lea eax, [ebp - 0x34]
push eax
call fcn.0042c7a3
int3
Function at 0x411a40
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x200
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x411aac
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00428a27
mov esp, ebp
pop ebp
ret

Function at 0x411ac0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x411b2c
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00428a27
mov esp, ebp
pop ebp
ret

Function at 0x411b40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push pe_nt_image_headers32
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0042b800
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jae 0x411ba2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x124]
push esi
mov esi, eax
mov dword [ebp - 0x128], 0
test esi, esi
jne 0x411bd9
lea eax, [ebp - 0x124]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x411c16
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push ecx
push 4
lea ecx, [ebp - 0x128]
push ecx
push 0x12
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
neg eax
sbb eax, eax
and dword [ebp - 0x128], eax
test esi, esi
jne 0x411c16
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
xor ecx, ebp
pop esi
call fcn.00428a27
mov esp, ebp
pop ebp
ret
Function at 0x411c30
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x411c90
lea eax, [ebp - 0x204]
push str.SYSTEM
push eax
call fcn.0043affb
add esp, 8
test eax, eax
jne 0x411c90
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
push 0
call fcn.00411ac0
add esp, 4
test eax, eax
jne 0x411cb9
push eax
call fcn.00411a40
add esp, 4
test eax, eax
jne 0x411cb9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret

Function at 0x411ce0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push eax
lea eax, [ebp - 0x204]
xor edi, edi
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x411d38
lea eax, [ebp - 0x204]
push str.SYSTEM
push eax
call fcn.0043affb
add esp, 8
test eax, eax
jne 0x411d38
lea esi, [edi + 2]
jmp 0x411d58
push 0
call fcn.00411ac0
add esp, 4
test eax, eax
jne 0x411d53
push eax
call fcn.00411a40
add esp, 4
test eax, eax
je 0x411d58
mov esi, 1
call fcn.00411a10
test eax, eax
jne 0x411d6a
call fcn.004119c0
test eax, eax
je 0x411d6f
cmp esi, 1
je 0x411d90
call fcn.004119f0
test eax, eax
je 0x411db4
push 0
call fcn.00411b40
add esp, 4
cmp esi, 1
jne 0x411da5
cmp eax, esi
je 0x411d90
cmp eax, 2
jne 0x411db4
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x411db4
cmp eax, 3
mov ecx, 1
cmove edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00428a27
mov esp, ebp
pop ebp
ret

Function at 0x411dd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp word [esi], 0x5c
jne 0x411e65
push 4
push 0x45b830
push esi
call fcn.0043b1c5
add esp, 0xc
test eax, eax
jne 0x411e0e
push dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
jmp 0x411e69
push 0xc
push str.SystemRoot_
push esi
call fcn.0043b3f6
add esp, 0xc
test eax, eax
jne 0x411e65
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esi + 0x16]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x45ca0c
push dword [ebp + 0x10]
push edi
call fcn.00410d00
add esp, 0x14
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
push esi
push edi
call fcn.0043afb8
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
call fcn.00428a27
mov esp, ebp
pop ebp
ret
Function at 0x411f80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x47bbc0]
mov dword [ebp - 8], ebx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x412039
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0
push eax
push 0
push 0
push edi
mov ecx, esi
call dword [0x45343c]
call esi
test eax, eax
jne 0x4120f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4120f0
mov esi, dword [ebp - 0x420]
lea eax, [esi + esi]
call fcn.004293d0
mov ebx, esp
test ebx, ebx
je 0x4120f0
lea eax, [ebp - 0x420]
push eax
push esi
mov esi, dword [0x47bbc0]
mov ecx, esi
push ebx
push edi
call dword [0x45343c]
call esi
test eax, eax
je 0x4120f0
push dword [ebp + 0x10]
push ebx
push dword [ebp - 8]
call fcn.0043afb8
add esp, 0xc
mov eax, 1
jmp 0x4120f2
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x420], eax
xor esi, esi
mov edx, 1
mov ecx, esi
shl edx, cl
test eax, edx
je 0x4120e6
lea eax, [esi + 0x41]
mov dword [ebp - 0xa], 0x5c003a
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4120e0
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4120e0
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.0043affb
add esp, 8
test eax, eax
je 0x41213d
push 0x208
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0042b800
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
call fcn.004121f0
add esp, 0x1c
test al, al
jne 0x412109
mov eax, dword [ebp - 0x420]
inc esi
cmp esi, 0x20
jb 0x412047
xor eax, eax
lea esp, [ebp - 0x42c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0043afb8
xor ecx, ecx
mov word [ebx + 0x206], cx
lea ecx, [ebp - 0x41c]
push 0x104
push ecx
push ebx
call fcn.0043b180
add esp, 0x18
mov eax, 1
jmp 0x4120f2
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0043afb8
add esp, 0xc
mov eax, 1
jmp 0x4120f2