joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a4b5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00542070
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1008]
push esi
mov esi, dword [ebp + 0xc]
push edi
push edx
lea edx, [ebp - 0x100c]
mov dword [ebp - 0x1008], 1
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x100c], 0x800
push edx
push eax
call fcn.0045a487
test al, al
je 0x45a55c
cmp dword [ebp - 0x1008], 1
jne 0x45a519
lea eax, [ebp - 0x804]
push eax
jmp 0x45a551
cmp dword [ebp - 0x1008], 2
jne 0x45a55c
mov edi, 0x400
lea eax, [ebp - 0x1004]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x45a55c
cmp eax, edi
ja 0x45a55c
lea ecx, [ebp - 0x1004]
push ecx
mov ecx, esi
call fcn.00409240
mov al, 1
jmp 0x45a55e
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00542347
leave
ret 8

Function at 0x45a7e8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0045a7d1
test al, al
je 0x45a826
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xc]
push eax
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x45a826
mov al, 1
jmp 0x45a82e
xor eax, eax
mov word [esi + 0xc], ax
xor al, al
pop esi
leave
ret

Function at 0x45fd6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x45fd79
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x45fe38
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f0990]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f0990]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f0990]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f0990]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f0990]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f0990]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f0990]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f0990]
sub edi, 1
jne 0x45fd91
pop edi
test esi, esi
je 0x45fe54
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5f0990]
inc edx
sub esi, 1
jne 0x45fe3c
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x463137
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x62c788]
push esi
xor esi, esi
push edi
mov edi, 0xfffffc18
cmp eax, 0xffffffff
jne 0x4632b5
push 0x110
lea eax, [ebp - 0x324]
mov dword [0x62c788], edi
push esi
push eax
mov dword [ebp - 0x328], 0x114
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4632ab
cmp dword [ebp - 0x318], 2
jne 0x4632ab
cmp dword [ebp - 0x324], 5
jne 0x463240
mov eax, dword [ebp - 0x320]
test eax, eax
jne 0x4631c5
inc eax
jmp 0x46333b
cmp eax, 1
jne 0x463231
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_1
call fcn.00579d77
add esp, 0xc
test eax, eax
jne 0x4631eb
push 3
jmp 0x46333a
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.00579d77
add esp, 0xc
test eax, eax
jne 0x46320c
push 4
jmp 0x46333a
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_3
call fcn.00579d77
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x46333b
cmp eax, 2
jne 0x4632ab
push 6
pop eax
mov dword [0x62c788], eax
jmp 0x4632b0
cmp dword [ebp - 0x324], 6
jne 0x4632ab
cmp dword [ebp - 0x320], esi
jne 0x463297
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_1
call fcn.00579d77
add esp, 0xc
test eax, eax
jne 0x463272
push 8
jmp 0x46333a
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.00579d77
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
jmp 0x46333b
cmp dword [ebp - 0x320], 1
mov eax, dword [0x62c788]
push 0xa
pop ecx
cmove eax, ecx
jmp 0x463239
mov eax, dword [0x62c788]
cmp eax, 0xffffffff
je 0x4632bd
cmp eax, edi
jne 0x463359
push 0x208
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.kernel32.dll
lea eax, [ebp - 0x210]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x330]
mov dword [ebp - 0x32c], esi
push eax
lea edx, [ebp - 0x32c]
mov dword [ebp - 0x330], esi
lea ecx, [ebp - 0x210]
call fcn.00462e44
pop ecx
test eax, eax
je 0x463354
mov eax, dword [ebp - 0x32c]
cmp eax, 0x60002
jne 0x463331
push 0xb
jmp 0x46333a
cmp eax, 0x60003
jne 0x463342
push 0xc
pop eax
mov dword [0x62c788], eax
jmp 0x463359
cmp eax, 0xa0000
je 0x463350
cmp eax, 0x60004
jne 0x463354
push 0xd
jmp 0x46333a
mov eax, dword [0x62c788]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00542347
leave
ret
Function at 0x4633f1
Capabilities:
Check os version

Disassembly:
push 0x124
mov eax, 0x5c42e7
call fcn.00542a0f
mov edi, ecx
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x130], edi
xor esi, esi
mov dword [ebp - 0x12c], esi
xor eax, eax
mov dword [edi], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 7
mov word [edi], ax
xor ebx, ebx
mov dword [ebp - 4], esi
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x114
inc ebx
push eax
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
sub eax, esi
je 0x4635e6
sub eax, ebx
je 0x46358c
sub eax, ebx
je 0x46346e
push str.Unknown
jmp 0x4635eb
mov eax, dword [ebp - 0x120]
cmp eax, 5
jne 0x4634dc
mov eax, dword [ebp - 0x11c]
cmp eax, 2
jne 0x4634a1
push str.Windows_2003
mov ecx, edi
call fcn.00409240
mov eax, dword [ebp - 0x120]
cmp eax, 5
jne 0x4634dc
mov eax, dword [ebp - 0x11c]
cmp eax, ebx
jne 0x4634c2
push str.Windows_XP
mov ecx, edi
call fcn.00409240
mov eax, dword [ebp - 0x120]
cmp eax, 5
jne 0x4634dc
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x4635f2
push str.Windows_2000
mov ecx, edi
call fcn.00409240
mov eax, dword [ebp - 0x120]
cmp eax, 4
ja 0x4634f3
push str.Windows_NT
mov ecx, edi
call fcn.00409240
mov eax, dword [ebp - 0x120]
push 6
pop esi
cmp eax, esi
jne 0x463580
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x463524
push str.Windows_Vista
mov ecx, edi
call fcn.00409240
mov eax, dword [ebp - 0x120]
cmp eax, esi
jne 0x463580
mov eax, dword [ebp - 0x11c]
cmp eax, ebx
jne 0x463544
push str.Windows_7
mov ecx, edi
call fcn.00409240
mov eax, dword [ebp - 0x120]
cmp eax, esi
jne 0x463580
mov eax, dword [ebp - 0x11c]
cmp eax, 2
jne 0x463565
push str.Windows_8
mov ecx, edi
call fcn.00409240
mov eax, dword [ebp - 0x120]
cmp eax, esi
jne 0x463580
mov eax, dword [ebp - 0x11c]
cmp eax, 3
jne 0x4635f2
push str.Windows_8.1
mov ecx, edi
call fcn.00409240
mov eax, dword [ebp - 0x120]
cmp eax, 0xa
jne 0x4635f2
push str.Windows_10
jmp 0x4635eb
cmp dword [ebp - 0x120], 4
jne 0x4635f2
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x4635ba
push str.Windows_95
mov ecx, edi
call fcn.00409240
cmp dword [ebp - 0x120], 4
jne 0x4635f2
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x4635da
push str.Windows_98
mov ecx, edi
call fcn.00409240
cmp dword [ebp - 0x120], 4
jne 0x4635f2
mov eax, dword [ebp - 0x11c]
cmp eax, 0x5a
jne 0x4635f2
push str.Windows_ME
jmp 0x4635eb
push str.Windows_Win32s
mov ecx, edi
call fcn.00409240
lea ecx, [ebp - 0x128]
call fcn.0040b03f
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x128]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push str.__build_d._d._d_
push eax
call fcn.004230c1
add esp, 0x14
cmp word [ebp - 0x110], 0
je 0x46364a
push 0x601ce8
mov ecx, edi
call fcn.00409b6d
lea eax, [ebp - 0x110]
mov ecx, edi
push eax
call fcn.00409b6d
mov esi, dword [ebp - 0x128]
mov ecx, edi
push esi
call fcn.00409b6d
lea ecx, [esi - 0x10]
call fcn.0040c134
mov eax, edi
call fcn.005429be
ret
Function at 0x46e91b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
xor eax, eax
push esi
mov esi, edx
mov dword [ebp - 4], eax
push edi
mov edx, dword [ebx + 0x3c]
mov dword [ebp - 8], esi
cmp dword [edx], eax
jne 0x46e94b
push dword [ebx + 0x78]
call fcn.0046e4e2
mov dword [ebp - 4], eax
pop ecx
test eax, eax
jne 0x46ea34
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x46e982
mov eax, dword [ebx + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.00541fb0
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x18]
push edx
push 5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 4]
test esi, esi
je 0x46ea34
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x14], edi
cmp edi, dword [ebx + 0x18]
ja 0x46ea26
test byte [esi + 0x18], 0x20
jne 0x46ea26
mov eax, dword [ebx + 0x80]
lea ecx, [edi - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.00541fb0
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
cmp edi, 1
jne 0x46e9cc
mov ecx, esi
call fcn.0046df86
push dword [ebp - 4]
mov ecx, dword [ebx + 0x80]
push dword [ebp - 0xc]
mov eax, dword [esi + 4]
mov edx, eax
push ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x10], eax
call fcn.004656df
add esp, 0xc
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x46ea07
mov esi, dword [ebp - 0x10]
lea edi, [ebx + 0x64]
add esi, 0x18
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebx + 0x20]
jbe 0x46ea0f
mov dword [ebx + 0x20], edi
inc dword [ebx + 0xa8]
mov edx, edi
push dword [esi + 4]
mov ecx, dword [ebx + 0x58]
call fcn.00479ad3
mov eax, dword [ebp - 4]
pop ecx
mov esi, dword [esi + 0xc]
mov dword [ebp - 8], esi
test eax, eax
je 0x46e985
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b5be8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4b5bfa
push 0xd
pop eax
jmp 0x4b5c2c
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4b5c03
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x4b6239
Capabilities:
Get file version info

Disassembly:
push 0xc
mov eax, 0x5c5345
call fcn.005429dc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea esi, [ebx + 0x34]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push 0x34
push eax
mov dword [ebp - 4], eax
push ebx
mov byte [ebx + 0x40], al
call fcn.00548bf0
add esp, 0xc
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4b62c0
push ecx
push edi
mov ecx, esi
call fcn.00409c32
push dword [esi]
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4b62c0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5fb124
push dword [esi]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4b62c0
mov esi, dword [ebp - 0x14]
mov edi, ebx
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x40], 1
mov eax, ebx
call fcn.005429aa
ret 4

Function at 0x4b67c2
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, edx
mov eax, ecx
xor esi, esi
mov dword [ebp - 8], eax
test edi, edi
jne 0x4b67e5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4b687c
push ebx
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4b681c
push 0x104
push edi
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x4b6813
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b6879
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4b6879
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.004b5f57
test eax, eax
jne 0x4b6879
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4b6879
mov eax, ebx
mov ecx, dword [ebp - 8]
cmp dword [eax + 0x44], ecx
jne 0x4b6857
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4b6857
movzx edx, word [eax + 0x38]
test dx, dx
jne 0x4b6863
mov ecx, dword [eax]
test ecx, ecx
je 0x4b6872
add eax, ecx
jne 0x4b683f
jmp 0x4b6872
mov eax, edx
shr eax, 1
push eax
push ecx
mov ecx, edi
call fcn.004b6656
mov esi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4b8dbc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
push 0
push eax
mov esi, edx
mov ebx, ecx
call fcn.00548bf0
xor eax, eax
mov dword [ebp - 0x28], 0x80
lea edi, [ebp - 0x10]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
xor edi, edi
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4b8e3a
test esi, esi
je 0x4b8e25
or eax, 0xffffffff
cmp dword [ebp + 8], edi
cmove eax, dword [ebp + 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
jmp 0x4b8e55
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 4
pop edx
push 0x6f
pop ecx
call fcn.004ca3a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b91e9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00548bf0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b9244
cmp dword [ebp - 0x110], 2
jne 0x4b9244
cmp dword [ebp - 0x11c], 6
jb 0x4b9244
xor eax, eax
inc eax
jmp 0x4b9246
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00542347
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
inc ebx
xor esi, esi
cmp byte [0x63726c], 0
push edi
mov edi, ecx
jne 0x4b96e0
push esi
mov byte [0x63726c], bl
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00548bf0
add esp, 0xc
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x103
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.wdc.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b9773
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4b9773
push str.WdcRunTaskAsInteractiveUser
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b9773
push esi
push 0x5f9b84
push edi
call eax
test eax, eax
cmove esi, ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret
Function at 0x4baae8
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x632f20], 0
push ebx
mov ebx, 0x200
push esi
mov esi, ecx
mov dword [ebp - 0xc14], ebx
je 0x4bab2a
push 0x632f20
push ebx
push esi
call fcn.0057de5f
add esp, 0xc
xor eax, eax
inc eax
jmp 0x4bac42
push edi
mov edi, 0x400
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00548bf0
push edi
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00548bf0
push edi
lea eax, [ebp - 0xc04]
push 0
push eax
call fcn.00548bf0
add esp, 0x24
mov byte [esi], 0
lea eax, [ebp - 0xc08]
mov dword [ebp - 0xc08], ebx
mov dword [ebp - 0xc0c], ebx
mov dword [ebp - 0xc10], ebx
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
pop edi
test eax, eax
jne 0x4bab9e
mov dword [0x632f18], 0x6c
jmp 0x4bac40
lea eax, [ebp - 0x404]
push str.SYSTEM
push eax
call fcn.00577501
pop ecx
pop ecx
test eax, eax
jne 0x4babc1
mov dword [0x632f18], 0x6b
jmp 0x4bac40
lea ecx, [ebp - 0x404]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4babcc
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0xc08], eax
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x4bac36
lea eax, [ebp - 0xc14]
mov edx, esi
push eax
lea ecx, [ebp - 0x804]
call fcn.004ba984
pop ecx
test eax, eax
jne 0x4bab22
mov dword [0x632f18], 0x6d
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret
Function at 0x4bac50
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x804]
push edi
xor esi, esi
mov ebx, ecx
push esi
push eax
call fcn.00548bf0
push edi
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.00548bf0
push edi
lea eax, [ebp - 0xc04]
push esi
push eax
call fcn.00548bf0
mov eax, 0x200
add esp, 0x24
mov dword [ebp - 0xc08], eax
mov dword [ebp - 0xc10], eax
mov dword [ebp - 0xc0c], eax
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4bacda
mov dword [0x632f18], 0x6c
jmp 0x4badb9
lea eax, [ebp - 0x804]
push str.SYSTEM
push eax
call fcn.00577501
pop ecx
pop ecx
test eax, eax
jne 0x4bad00
mov dword [0x632f18], 0x6b
jmp 0x4badb9
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4bad09
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0xc08], eax
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4bad62
mov dword [0x632f18], 0x6d
jmp 0x4badb9
lea eax, [ebp - 0x404]
mov edi, esi
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4badb9
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
test eax, eax
je 0x4bad96
movzx edi, byte [eax]
test edi, edi
je 0x4badb9
push esi
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
test eax, eax
je 0x4badb4
push eax
mov ecx, ebx
call fcn.004badd3
inc esi
cmp esi, edi
jb 0x4bad9a
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret
Function at 0x4bbef2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor edx, edx
mov esi, edx
test edi, edi
jle 0x4bbeea
movzx ecx, byte [esi + ebx]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x5f5f90]
inc esi
cmp esi, edi
jl 0x4bbed2
pop edi
not edx
pop esi
mov eax, edx
pop ebx
ret
mov edx, ecx
push esi
lea esi, [edx + 2]
movzx eax, word [edx]
add edx, 2
test ax, ax
jne 0x4bbef8
sub edx, esi
sar edx, 1
add edx, edx
pop esi
jmp 0x4bbec3
Function at 0x4bbf0f
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ecx], 0xc
lea eax, [esi - 8]
mov dword [ebp - 0x110], esi
mov ebx, edi
mov ecx, edi
test eax, eax
js 0x4bbfc1
mov eax, esi
shr eax, 3
mov dword [ebp - 0x10c], eax
mov esi, eax
shl eax, 3
mov dword [ebp - 0x108], eax
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + ebx*4 - 0x104], ecx
movzx ecx, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 7]
shl eax, 0x18
add edx, 8
or ecx, eax
mov dword [ebp + ebx*4 - 0x100], ecx
add ebx, 2
sub esi, 1
jne 0x4bbf5f
mov esi, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x108]
mov eax, esi
sub eax, ecx
je 0x4bc031
mov eax, esi
mov ecx, edi
and eax, 7
mov esi, edi
add edx, eax
dec eax
cmp eax, 7
ja case.default.0x4bbfd8
jmp dword [eax*4 + 0x4bc107]
dec edx
movzx ecx, byte [edx]
shl ecx, 0x18
dec edx
movzx eax, byte [edx]
shl eax, 0x10
or ecx, eax
dec edx
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
dec edx
movzx eax, byte [edx]
or ecx, eax
dec edx
movzx esi, byte [edx]
shl esi, 0x18
dec edx
movzx eax, byte [edx]
shl eax, 0x10
or esi, eax
dec edx
movzx eax, byte [edx]
shl eax, 8
or esi, eax
movzx eax, byte [edx - 1]
or esi, eax
mov dword [ebp + ebx*4 - 0x104], esi
mov esi, dword [ebp - 0x110]
mov dword [ebp + ebx*4 - 0x100], ecx
mov ebx, dword [ebp - 0x114]
lea eax, [esi + 3]
cdq
xor ecx, ecx
and edx, 3
add edx, eax
push 0x1a
sar edx, 2
inc ecx
mov dword [ebx + 4], 0xb7e15163
pop esi
mov eax, dword [ebx + ecx*4]
sub eax, 0x61c88647
mov dword [ebx + ecx*4 + 4], eax
inc ecx
cmp ecx, esi
jl 0x4bc050
cmp edx, esi
mov dword [ebp - 0x10c], edi
mov eax, edx
mov dword [ebp - 0x108], edi
cmovl eax, esi
mov ecx, edi
imul esi, eax, 3
mov dword [ebp - 0x110], ecx
test esi, esi
jle 0x4bc0f7
mov eax, dword [ebx + ecx*4 + 4]
add eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x108]
rol eax, 3
mov dword [ebx + ecx*4 + 4], eax
mov ecx, eax
add ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x108], eax
and ecx, 0x1f
mov eax, dword [ebp + edi*4 - 0x104]
add eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x108]
rol eax, cl
lea ecx, [edi + 1]
mov dword [ebp + edi*4 - 0x104], eax
xor edi, edi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x110]
inc eax
cmp eax, 0x1a
cmovl edi, eax
mov dword [ebp - 0x110], edi
xor edi, edi
cmp ecx, edx
cmovl edi, ecx
mov ecx, dword [ebp - 0x110]
sub esi, 1
jne 0x4bc083
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret