joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40898c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40a810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x526b64
push 0xa
push 0x40a8a4
mov eax, dword [0x526b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a834
call fcn.0041629c
push ebx
mov eax, dword [0x526b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a84b
call fcn.0041629c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a85d
call fcn.0041629c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x526b68], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x526b6c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x526b70], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x526b74], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x526b78], ecx
add edx, dword [eax + 0x14]
mov dword [0x526b7c], edx
pop esi
pop ebx
ret

Function at 0x40c530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c5d9
test eax, edx
je 0x40c5dc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c559
push edx
mov edx, eax
mov eax, esp
call fcn.0040628c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c56f
push eax
lea eax, [esp + 8]
call fcn.0040628c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c57e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c5a5
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40c5bf
add ecx, 4
js 0x40c596
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c5bc
push eax
mov eax, ecx
mov edx, 2
call fcn.00405510
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c5a3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c5a5
xor eax, eax
ret
test eax, eax
je 0x40c5ec
test edx, edx
jne 0x40c540
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40d7b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004060fc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d7d2
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40d7f3
cmp ebx, 3
je 0x40d7f3
cmp ebx, 0x7b
je 0x40d7f3
mov eax, esi
call fcn.0040d774
test al, al
jne 0x40d7f7
xor eax, eax
jmp 0x40d7f9
mov al, 1
pop esi
pop ebx
ret

Function at 0x40d7fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004060fc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d815
test al, 0x10
jne 0x40d819
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40d934
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004060fc
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x40d948
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.004060fc
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40d96a
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x413388
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 0x4133c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004061ac
jmp 0x4133ca
mov eax, ebx
mov edx, esi
call fcn.00406070
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4133d4
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 0x4133f6
movzx eax, word [esp]
jmp 0x4133f8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413ccc
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 0x413df1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00413ae0
mov esi, eax
mov eax, dword [0x523498]
cmp byte [eax], 0
je 0x413d99
mov eax, dword [0x522f7c]
call fcn.00403540
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 [0x413ca8]
call fcn.00407a88
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 0x413e0c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x413dd5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x522ed4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x526b50]
call fcn.00407b7c
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 0x413df8
lea eax, [ebp - 4]
mov edx, dword [0x413ca8]
call fcn.00407a94
ret
Function at 0x414a1c
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 0x414af2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004060c4
lea eax, [ebp - 4]
call fcn.00406ae0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004060fc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x414adc
mov eax, ebx
call fcn.00403064
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x414ad5
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.004060fc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x414abf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x414b04
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x414abf
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 0x414adc
mov eax, dword [ebp - 0x10]
call fcn.00403080
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414af9
lea eax, [ebp - 4]
call fcn.00406060
ret

Function at 0x416114
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.00405844
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 0x4160be
mov eax, edi
add eax, eax
call fcn.00403064
mov esi, eax
jmp 0x4160c0
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 0x4160f9
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 0x4160e3
mov eax, esp
cmp esi, eax
je 0x416106
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 0x416140
cmp bl, 0
je 0x41613c
cmp bl, 0x41
jl 0x416137
cmp bl, 0x5a
jg 0x416137
or bl, 0x20
xor al, bl
inc esi
jmp 0x41611b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x416080

Function at 0x430180
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.0042fe84
dec esi
jne 0x4301a2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x431360
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x528e98
cmp dword [edi], 0
jne 0x4313dc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x528e94]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x514e3c
mov ecx, 2
call fcn.0040321c
mov edx, 0x431338
lea eax, [esi + 5]
call fcn.00431358
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00431358
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 0x4313b1
mov dword [0x528e94], 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 0x433c08
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.004060fc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x433c60
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x523750]
mov dl, 1
mov eax, dword [0x433560]
call fcn.00413f08
call fcn.00404c44
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004336e8
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 0x4354f4
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 0x4354fa
ret
Function at 0x43ef24
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 0x43f187
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.004060c4
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.0040366c
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.0040366c
push 0x43f194
push 0x43f1bc
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.004094f0
test eax, eax
je 0x43efae
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x43efba
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x43f167
test bl, bl
je 0x43efea
call fcn.0043f334
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 0x43f005
lea eax, [ebp - 4]
mov edx, 0x43f1e4
call fcn.004060c4
cmp dword [ebp - 0x11c], 5
jne 0x43f029
cmp dword [ebp - 0x118], 0
jne 0x43f029
lea eax, [ebp - 4]
mov edx, 0x43f208
call fcn.004060c4
jmp 0x43f167
cmp dword [ebp - 0x11c], 5
jne 0x43f04d
cmp dword [ebp - 0x118], 1
jne 0x43f04d
lea eax, [ebp - 4]
mov edx, 0x43f230
call fcn.004060c4
jmp 0x43f167
cmp dword [ebp - 0x11c], 5
jne 0x43f093
cmp dword [ebp - 0x118], 2
jne 0x43f093
cmp byte [ebp - 6], 1
jne 0x43f081
cmp word [ebp - 0x144], 9
jne 0x43f081
lea eax, [ebp - 4]
mov edx, 0x43f230
call fcn.004060c4
jmp 0x43f167
lea eax, [ebp - 4]
mov edx, 0x43f254
call fcn.004060c4
jmp 0x43f167
cmp dword [ebp - 0x11c], 6
jne 0x43f0b7
cmp dword [ebp - 0x118], 0
jne 0x43f0b7
lea eax, [ebp - 4]
mov edx, 0x43f288
call fcn.004060c4
jmp 0x43f167
cmp dword [ebp - 0x11c], 6
jne 0x43f0db
cmp dword [ebp - 0x118], 1
jne 0x43f0db
lea eax, [ebp - 4]
mov edx, 0x43f2b0
call fcn.004060c4
jmp 0x43f167
cmp dword [ebp - 0x11c], 6
jne 0x43f101
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x43f101
lea eax, [ebp - 4]
mov edx, 0x43f2d0
call fcn.004060c4
jmp 0x43f167
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x43f126
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x43f126
lea eax, [ebp - 4]
mov edx, 0x43f2f0
call fcn.004060c4
jmp 0x43f167
cmp eax, 0xa
jne 0x43f155
cmp dword [ebp - 0x114], 0x55f0
jae 0x43f146
lea eax, [ebp - 4]
mov edx, 0x43f2f0
call fcn.004060c4
jmp 0x43f167
lea eax, [ebp - 4]
mov edx, 0x43f314
call fcn.004060c4
jmp 0x43f167
cmp eax, 0xb
jb 0x43f167
lea eax, [ebp - 4]
mov edx, 0x43f314
call fcn.004060c4
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f18e
lea eax, [ebp - 4]
call fcn.00406060
ret
Function at 0x440a90
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 0x440aa9
add esp, 0xfffffff0
call fcn.00404290
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406058
xor eax, eax
push ebp
push 0x440c2d
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.00406070
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00432aec
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00403dac
mov dl, 1
mov eax, dword [0x440084]
call fcn.004281dc
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.00406070
cmp dword [ebx + 0x10], 0
je 0x440bfc
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.004406e0
mov eax, dword [ebx + 0x10]
call fcn.0040d7b4
test al, al
jne 0x440bf2
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.0040dd0c
mov eax, dword [ebp - 4]
test eax, eax
je 0x440b74
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x440b74
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040569c
test eax, eax
je 0x440b7d
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x440b89
mov eax, dword [ebp - 4]
call fcn.00440814
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.004060fc
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x440bf2
cmp dword [ebp + 8], 0
je 0x440bec
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.004078c0
test eax, eax
jle 0x440bec
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004078c0
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 0x440bfc
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x440938
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440c34
lea eax, [ebp - 8]
mov edx, dword [0x40acd0]
call fcn.00407a94
lea eax, [ebp - 4]
call fcn.00406060
ret
Function at 0x441724
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 0x4418ad
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.0043edd0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x44188f
xor eax, eax
push ebp
push 0x441888
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x240]
xor ecx, ecx
mov edx, 0x22c
call fcn.0040366c
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.0043edf0
mov ebx, eax
jmp 0x441869
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.00406270
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0040dfa4
mov edx, dword [ebp - 0x244]
mov eax, 0x4418c8
call fcn.0040c794
test al, al
je 0x441859
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x238]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x441859
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x515270]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x441859
xor eax, eax
push ebp
push 0x441852
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x44183b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.00404d38
call fcn.00404d38
jmp 0x44188f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441859
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.0043ee10
mov ebx, eax
test ebx, ebx
jne 0x4417a7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44188f
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 0x4418b4
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.00406068
ret
Function at 0x441859
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 0x4418ad
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.0043edd0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x44188f
xor eax, eax
push ebp
push 0x441888
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x240]
xor ecx, ecx
mov edx, 0x22c
call fcn.0040366c
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.0043edf0
mov ebx, eax
jmp 0x441869
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.00406270
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0040dfa4
mov edx, dword [ebp - 0x244]
mov eax, 0x4418c8
call fcn.0040c794
test al, al
je 0x441859
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x238]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x441859
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x515270]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x441859
xor eax, eax
push ebp
push 0x441852
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x44183b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.00404d38
call fcn.00404d38
jmp 0x44188f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441859
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.0043ee10
mov ebx, eax
test ebx, ebx
jne 0x4417a7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44188f
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 0x4418b4
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.00406068
ret

Function at 0x4418e4
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x515274], 0
je 0x4418fe
call dword [0x515274]
mov dword [ebp - 4], eax
jmp 0x441903
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x441971
cmp dword [ebp - 4], 0xffffffff
je 0x441971
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x515270]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x44196c
xor eax, eax
push ebp
push 0x441965
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x441949
call fcn.00404d38
jmp 0x441985
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441971
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 0x44197d
cmp dword [ebp - 4], 0xffffffff
jne 0x441985
call fcn.00441724
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x441e01
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.00406058
xor eax, eax
push ebp
push 0x441f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406070
mov edx, dword [ebp - 4]
mov eax, 0x441f24
call fcn.00441b14
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x441e01
xor eax, eax
push ebp
push 0x441dfa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00441f40
test al, al
je 0x441dd9
call fcn.00404d38
jmp 0x441ef3
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441e01
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.0040366c
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.004060fc
mov ebx, eax
push ebx
push 0
call sub.advapi32.dll_LookupAccountNameW
cmp dword [ebp - 0x14], 0
jbe 0x441ef3
mov eax, dword [ebp - 0x14]
call fcn.00403064
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x441eec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.0040366c
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 0x441eae
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.00403080
xor eax, eax
mov dword [ebp - 0x1c], eax
call fcn.00404d38
jmp 0x441ef3
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_ConvertSidToStringSidW
test eax, eax
je 0x441ed3
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0040621c
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 0x441ef3
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 0x441f10
lea eax, [ebp - 4]
call fcn.00406060
ret