joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10083ba0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b07af
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100d703c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
lea esi, [edi + 0x94]
cmp esi, ebx
je 0x10083c03
push esi
mov ecx, edi
call fcn.10085220
add esi, 0x94
add edi, 0x94
cmp esi, ebx
jne 0x10083be3
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 4]
jmp 0x10083c05
mov edi, eax
lea esi, [ebx - 0x94]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10003a00
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10003a00
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10003a00
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10003a00
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10003a00
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10003a00
mov eax, dword [ebp - 0x14]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
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

Function at 0x10084920
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b09ff
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100d703c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10003a00
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10003a00
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10003a00
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10003a00
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10003a00
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10003a00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10088a60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x100d703c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x10088ae2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x10088ae2
test ecx, ecx
je 0x10088ade
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10088aa0
xor eax, eax
jmp 0x10088ae7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10088af1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1009ea6c
add esp, 0xc
ret 0xc
Function at 0x10089a90
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], 0
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x10089ab3
cmp dword [eax + 0x14], 8
jb 0x10089ab5
mov eax, dword [eax]
jmp 0x10089ab5
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x10089add
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x10089adf
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x10089b40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1568
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100d703c]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10089b83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100144c0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10089bac
lea eax, [esi + 8]
jmp 0x10089bae
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x10089bbe
cmp dword [ebx + 0x14], 8
jb 0x10089bc0
mov ebx, dword [ebx]
jmp 0x10089bc0
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x10089be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10089be1
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10089c0a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10089c1f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1009eaad
add esp, 8
mov dword [ebp - 0x14], 0
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.1009ea6c
mov esp, ebp
pop ebp
ret 4
Function at 0x10089c60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1598
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100d703c]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10089ca3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100145a0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10089ccd
lea ecx, [esi + 8]
jmp 0x10089ccf
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x10089ce4
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x10089ce6
mov eax, dword [ebx]
jmp 0x10089ce6
xor eax, eax
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x10089d31
call ecx
cmp eax, 5
jne 0x10089d2b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x10089d1b
cmp dword [ebx + 0x14], 8
jb 0x10089d1d
mov ebx, dword [ebx]
jmp 0x10089d1d
xor ebx, ebx
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x10089d4f
call ecx
cmp eax, 0xb7
jne 0x10089d44
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.10012ea0
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10089d75
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10089d8a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1009eaad
add esp, 8
mov dword [ebp - 0x14], 0
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.1009ea6c
mov esp, ebp
pop ebp
ret 4
Function at 0x10093050
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b08ef
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100d703c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
mov dword [ebp - 0x10], edi
call fcn.100037e0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.100037e0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.100037e0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.100037e0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.100037e0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.100037e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10094d10
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100d703c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10094d75
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10094d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10094d75
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1009ea6c
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1009ea6c
add esp, 8
ret 4
Function at 0x10094f20
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2d48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100d703c]
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 edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x10094f69
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x100950bb
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x10095086
test eax, eax
je 0x10095086
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x10095089
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x1009500b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10094fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009500b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x10095019
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.100037e0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x10095086
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x10094fc4
jmp 0x10095089
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x100950b2
test edx, edx
je 0x100950ae
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x10094f80
mov al, 1
jmp 0x100950bd
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x100950bb
mov dword [ecx], eax
xor al, al
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.1009ea6c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100989a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x100d703c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x10098a37
cmp dword [esp + 8], 6
jb 0x10098a37
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.1009ea6c
add esp, 0x118
ret

Function at 0x10098a50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3300
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100d703c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.wintrust.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10003a60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.100167f0
mov ecx, eax
call fcn.100168b0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003a00
push 0xb
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push str.crypt32.dll
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10003a60
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.100167f0
mov ecx, eax
call fcn.100168b0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10003a00
test ebx, ebx
je 0x10098bad
test esi, esi
je 0x10098bad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
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 0x1009d010
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x100d703c]
xor eax, esp
mov dword [esp + 0x414], eax
push edi
mov edi, dword [esp + 0x424]
lea eax, [esp + 8]
push 0x410
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x424]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1009d082
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x1009d09a
mov eax, dword [esp + 4]
test eax, eax
je 0x1009d082
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop edi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.1009ea6c
add esp, 0x418
ret
lea edx, [esp + 8]
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1009d0a2
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.10003a60
mov eax, dword [esp + 8]
pop esi
test eax, eax
je 0x1009d0ce
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
xor ecx, esp
call fcn.1009ea6c
add esp, 0x418
ret
Function at 0x1009e630
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x100d703c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x100d7010], 0
jne 0x1009e6b2
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009e693
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, section..data
call fcn.10003a60
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1009ea6c
add esp, 0x214
ret

Function at 0x1009e760
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x100b3c48
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100d703c]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x100d82a0]
test eax, eax
jle 0x1009e7b1
inc eax
mov dword [0x100d82a0], eax
mov al, 1
jmp 0x1009e8a3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.10011d60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.10012a60
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10011de0
test bl, bl
je 0x1009e893
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1009e893
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x1009e88c
inc dword [0x100d82a0]
mov eax, dword [edi]
test eax, eax
je 0x1009e836
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x100d7028], 0
mov dword [ebp - 0x10], 0
jne 0x1009e88c
push 0x20a
lea eax, [ebp]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x100d7018
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.10006b50
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1009e8a1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.1009ea6c
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x1009e8d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x100d703c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1009e937
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x1009e920
jne 0x1009e937
cmp dword [esp + 8], 0
jbe 0x1009e937
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.1009ea6c
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.1009ea6c
add esp, 0x118
ret
Function at 0x401df0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xe0
push ebx
push esi
push edi
mov esi, 1
push ebp
xor ebx, ebx
mov ebp, dword [esp + 0xfc]
mov edi, dword [esp + 0xf8]
xor eax, eax
mov ecx, ebp
shr ecx, 2
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
mov ecx, ebp
push pe_nt_image_headers32
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401e43
xor esi, esi
jmp 0x401e53
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
test esi, esi
je 0x401e70
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x401e74
xor esi, esi
jmp 0x401e74
mov edi, dword [esp + 0x20]
test esi, esi
je 0x401ea4
push edi
call fcn.0040eae0
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x401e89
xor esi, esi
test esi, esi
je 0x401ec3
mov eax, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x24]
push edi
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x401ea4
xor esi, esi
test esi, esi
je 0x401efc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x401ec3
xor esi, esi
test esi, esi
je 0x401f1e
cmp dword [esp + 0x10], 0
je 0x401efc
mov eax, dword [esp + 0x14]
push 0x43824c
mov ecx, dword [eax]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
movzx edx, ax
lea eax, [esp + 0xa4]
push edx
push ecx
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
test esi, esi
je 0x401f44
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xa0]
push eax
push ecx
push edx
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x401f1e
xor esi, esi
test esi, esi
je 0x401f44
cmp ebp, dword [esp + 0x10]
jae 0x401f2c
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xf8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
call fcn.0040eac0
add esp, 4
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe0
ret 0xc
Function at 0x411d90
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
call fcn.00411e20
mov dword [0x439bd4], 1
cmp dword [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
mov byte [0x439bd0], bl
jne 0x411df1
cmp dword [0x43da5c], 0
je 0x411ddf
mov esi, dword [0x43da54]
sub esi, 4
cmp esi, dword [0x43da5c]
jb 0x411ddf
mov eax, dword [esi]
test eax, eax
je 0x411dd4
call eax
sub esi, 4
cmp esi, dword [0x43da5c]
jae 0x411dcc
push 0x438170
push 0x438168
call fcn.00411e40
add esp, 8
push 0x438178
push 0x438174
call fcn.00411e40
add esp, 8
test ebx, ebx
je 0x411e0f
call fcn.00411e30
pop esi
pop ebx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x412b60
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00412c50
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x439bdc], eax
cmp eax, 0xffffffff
jne 0x412b7a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.00415d10
add esp, 8
mov esi, eax
test esi, esi
je 0x412bbc
push esi
mov eax, dword [0x439bdc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x412bbc
push esi
call fcn.00412bc0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x412be0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x439bdc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x412c43
push 0x74
push 1
call fcn.00415d10
add esp, 8
mov edi, eax
test edi, edi
je 0x412c39
push edi
mov eax, dword [0x439bdc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x412c39
push edi
call fcn.00412bc0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x412c43
push 0x10
call fcn.0040edf0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret