joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d620
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405e80
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x40d634
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405e80
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40d656
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x412e04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412e3d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405f30
jmp 0x412e46
mov eax, ebx
mov edx, esi
call fcn.00405df4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412e50
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412e72
movzx eax, word [esp]
jmp 0x412e74
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413748
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41386d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041355c
mov esi, eax
mov eax, dword [0x50a954]
cmp byte [eax], 0
je 0x413815
mov eax, dword [0x50a5b0]
call fcn.00403528
call fcn.004031cc
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x413724]
call fcn.0040780c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x413888
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x413851
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x50a52c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50db50]
call fcn.00407900
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413874
lea eax, [ebp - 4]
mov edx, dword [0x413724]
call fcn.00407818
ret
Function at 0x414498
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41456e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405e48
lea eax, [ebp - 4]
call fcn.00406864
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405e80
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x414558
mov eax, ebx
call fcn.00403064
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x414551
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405e80
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41453b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x414580
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41453b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414558
mov eax, dword [ebp - 0x10]
call fcn.00403080
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414575
lea eax, [ebp - 4]
call fcn.00405de4
ret

Function at 0x415b90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004057cc
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x415b3a
mov eax, edi
add eax, eax
call fcn.00403064
mov esi, eax
jmp 0x415b3c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x415b75
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x415b5f
mov eax, esp
cmp esi, eax
je 0x415b82
mov eax, esi
call fcn.00403080
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x415bbc
cmp bl, 0
je 0x415bb8
cmp bl, 0x41
jl 0x415bb3
cmp bl, 0x5a
jg 0x415bb3
or bl, 0x20
xor al, bl
inc esi
jmp 0x415b97
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x415afc

Function at 0x42fbfc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042f900
dec esi
jne 0x42fc1e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x430ddc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x50fe98
cmp dword [edi], 0
jne 0x430e58
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x50fe94]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ffe34
mov ecx, 2
call fcn.0040321c
mov edx, 0x430db4
lea eax, [esi + 5]
call fcn.00430dd4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00430dd4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x430e2d
mov dword [0x50fe94], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x433684
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405e80
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x4336dc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x50ab20]
mov dl, 1
mov eax, dword [0x432fdc]
call fcn.00413984
call fcn.00404bf0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00433164
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x434f70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x434f76
ret
Function at 0x43e9a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43ec03
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405e48
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.00403618
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.00403618
push 0x43ec10
push 0x43ec38
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.0040924c
test eax, eax
je 0x43ea2a
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x43ea36
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x43ebe3
test bl, bl
je 0x43ea66
call fcn.0043edb0
mov edx, dword [eax]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x43ea81
lea eax, [ebp - 4]
mov edx, 0x43ec60
call fcn.00405e48
cmp dword [ebp - 0x11c], 5
jne 0x43eaa5
cmp dword [ebp - 0x118], 0
jne 0x43eaa5
lea eax, [ebp - 4]
mov edx, 0x43ec84
call fcn.00405e48
jmp 0x43ebe3
cmp dword [ebp - 0x11c], 5
jne 0x43eac9
cmp dword [ebp - 0x118], 1
jne 0x43eac9
lea eax, [ebp - 4]
mov edx, 0x43ecac
call fcn.00405e48
jmp 0x43ebe3
cmp dword [ebp - 0x11c], 5
jne 0x43eb0f
cmp dword [ebp - 0x118], 2
jne 0x43eb0f
cmp byte [ebp - 6], 1
jne 0x43eafd
cmp word [ebp - 0x144], 9
jne 0x43eafd
lea eax, [ebp - 4]
mov edx, 0x43ecac
call fcn.00405e48
jmp 0x43ebe3
lea eax, [ebp - 4]
mov edx, 0x43ecd0
call fcn.00405e48
jmp 0x43ebe3
cmp dword [ebp - 0x11c], 6
jne 0x43eb33
cmp dword [ebp - 0x118], 0
jne 0x43eb33
lea eax, [ebp - 4]
mov edx, 0x43ed04
call fcn.00405e48
jmp 0x43ebe3
cmp dword [ebp - 0x11c], 6
jne 0x43eb57
cmp dword [ebp - 0x118], 1
jne 0x43eb57
lea eax, [ebp - 4]
mov edx, 0x43ed2c
call fcn.00405e48
jmp 0x43ebe3
cmp dword [ebp - 0x11c], 6
jne 0x43eb7d
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x43eb7d
lea eax, [ebp - 4]
mov edx, 0x43ed4c
call fcn.00405e48
jmp 0x43ebe3
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x43eba2
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x43eba2
lea eax, [ebp - 4]
mov edx, 0x43ed6c
call fcn.00405e48
jmp 0x43ebe3
cmp eax, 0xa
jne 0x43ebd1
cmp dword [ebp - 0x114], 0x55f0
jae 0x43ebc2
lea eax, [ebp - 4]
mov edx, 0x43ed6c
call fcn.00405e48
jmp 0x43ebe3
lea eax, [ebp - 4]
mov edx, 0x43ed90
call fcn.00405e48
jmp 0x43ebe3
cmp eax, 0xb
jb 0x43ebe3
lea eax, [ebp - 4]
mov edx, 0x43ed90
call fcn.00405e48
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ec0a
lea eax, [ebp - 4]
call fcn.00405de4
ret
Function at 0x44050c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x440525
add esp, 0xfffffff0
call fcn.0040423c
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405ddc
xor eax, eax
push ebp
push 0x4406a9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x21], 0
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0xffffffff
lea eax, [ebx + 0x18]
xor edx, edx
call fcn.00405df4
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00432568
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00403d58
mov dl, 1
mov eax, dword [0x43fb00]
call fcn.00427c58
mov esi, eax
mov dword [ebx + 0x14], esi
lea eax, [ebx + 0xc]
sub eax, 4
mov dword [eax], esi
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.00405df4
cmp dword [ebx + 0x10], 0
je 0x440678
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.0044015c
mov eax, dword [ebx + 0x10]
call fcn.0040d4a0
test al, al
jne 0x44066e
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.0040d810
mov eax, dword [ebp - 4]
test eax, eax
je 0x4405f0
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4405f0
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405648
test eax, eax
je 0x4405f9
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x440605
mov eax, dword [ebp - 4]
call fcn.00440290
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.00405e80
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x44066e
cmp dword [ebp + 8], 0
je 0x440668
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
call fcn.00407644
test eax, eax
jle 0x440668
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00407644
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebx + 0x24], 0
je 0x440678
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x4403b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4406b0
lea eax, [ebp - 8]
mov edx, dword [0x40aa1c]
call fcn.00407818
lea eax, [ebp - 4]
call fcn.00405de4
ret
Function at 0x4411a0
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
xor eax, eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], eax
xor eax, eax
push ebp
push 0x441329
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.0043e84c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x44130b
xor eax, eax
push ebp
push 0x441304
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x240]
xor ecx, ecx
mov edx, 0x22c
call fcn.00403618
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.0043e86c
mov ebx, eax
jmp 0x4412e5
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.00405ff4
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0040daa8
mov edx, dword [ebp - 0x244]
mov eax, 0x441344
call fcn.0040c4b0
test al, al
je 0x4412d5
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x238]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x4412d5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x500268]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x4412d5
xor eax, eax
push ebp
push 0x4412ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x4412b7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.00404ce4
call fcn.00404ce4
jmp 0x44130b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4412d5
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.0043e88c
mov ebx, eax
test ebx, ebx
jne 0x441223
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44130b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441330
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.00405dec
ret
Function at 0x4412d5
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
xor eax, eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], eax
xor eax, eax
push ebp
push 0x441329
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.0043e84c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x44130b
xor eax, eax
push ebp
push 0x441304
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x240]
xor ecx, ecx
mov edx, 0x22c
call fcn.00403618
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.0043e86c
mov ebx, eax
jmp 0x4412e5
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.00405ff4
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0040daa8
mov edx, dword [ebp - 0x244]
mov eax, 0x441344
call fcn.0040c4b0
test al, al
je 0x4412d5
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x238]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x4412d5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x500268]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x4412d5
xor eax, eax
push ebp
push 0x4412ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x4412b7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.00404ce4
call fcn.00404ce4
jmp 0x44130b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4412d5
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.0043e88c
mov ebx, eax
test ebx, ebx
jne 0x441223
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44130b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441330
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.00405dec
ret

Function at 0x441360
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x50026c], 0
je 0x44137a
call dword [0x50026c]
mov dword [ebp - 4], eax
jmp 0x44137f
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4413ed
cmp dword [ebp - 4], 0xffffffff
je 0x4413ed
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x500268]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x4413e8
xor eax, eax
push ebp
push 0x4413e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x4413c5
call fcn.00404ce4
jmp 0x441401
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4413ed
mov eax, dword [ebp - 8]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4413f9
cmp dword [ebp - 4], 0xffffffff
jne 0x441401
call fcn.004411a0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x44187d
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7dc
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405ddc
xor eax, eax
push ebp
push 0x441985
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405df4
mov edx, dword [ebp - 4]
mov eax, 0x4419a0
call fcn.00441590
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x44187d
xor eax, eax
push ebp
push 0x441876
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.004419bc
test al, al
je 0x441855
call fcn.00404ce4
jmp 0x44196f
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44187d
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov dword [ebp - 0x10], 0x802
lea eax, [ebp - 0x822]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00403618
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x822]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405e80
mov ebx, eax
push ebx
push 0
call sub.advapi32.dll_LookupAccountNameW
cmp dword [ebp - 0x14], 0
jbe 0x44196f
mov eax, dword [ebp - 0x14]
call fcn.00403064
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x441968
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00403618
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x822]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push ebx
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x44192a
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.00403080
xor eax, eax
mov dword [ebp - 0x1c], eax
call fcn.00404ce4
jmp 0x44196f
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_ConvertSidToStringSidW
test eax, eax
je 0x44194f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00405fa0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44196f
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.00403080
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44198c
lea eax, [ebp - 4]
call fcn.00405de4
ret
Function at 0x441cac
Capabilities:
Get session information
Get session user name

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.00405df4
cmp byte [0x51010c], 0
je 0x441ce3
xor eax, eax
call fcn.00441770
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jbe 0x441d52
mov edx, ebx
mov eax, dword [esp + 4]
call fcn.00441d74
jmp 0x441d52
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 5
call fcn.00441360
push eax
mov eax, dword [0x500268]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x441d30
mov eax, ebx
mov edx, dword [esp]
call fcn.00405fa0
mov eax, dword [ebx]
mov edx, 0x441d64
call fcn.0040c4b0
test al, al
je 0x441d27
mov eax, ebx
xor edx, edx
call fcn.00405df4
mov eax, dword [esp]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
cmp dword [ebx], 0
jne 0x441d52
xor eax, eax
call fcn.00441770
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jbe 0x441d52
mov edx, ebx
mov eax, dword [esp + 4]
call fcn.00441d74
pop ecx
pop edx
pop ebx
ret

Function at 0x44225c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
test dl, dl
je 0x44227b
add esp, 0xfffffff0
call fcn.0040423c
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x44231f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, esi
call fcn.004423d4
mov dword [esi + 0x18], 0xf003f
mov byte [esi + 0xc], 1
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x110], 5
jne 0x4422d1
call fcn.0043f93c
test al, al
jne 0x4422ff
cmp dword [ebp - 0x110], 5
ja 0x4422ff
lea edx, [ebp - 0x118]
xor eax, eax
call fcn.0043e9a0
mov eax, dword [ebp - 0x118]
mov edx, 0x442350
call fcn.0040c4b0
test al, al
jne 0x4422ff
xor eax, eax
jmp 0x442301
mov al, 1
mov byte [0x510110], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442326
lea eax, [ebp - 0x118]
call fcn.00405de4
ret