joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449440
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x449466
mov eax, esp
push eax
push 0x449408
call sub.user32.dll_EnumWindows
jmp 0x449479
mov eax, esp
push eax
push 0x4493e8
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x449504
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x449558]
test si, 4
je 0x449519
or bl, 1
test si, 8
je 0x449523
or bl, 4
test si, 1
je 0x44952d
or bl, 8
test si, 2
je 0x449537
or bl, 0x10
test si, 0x10
je 0x449541
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449550
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44955c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x449598]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449576
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449585
or bl, 4
test esi, 0x20000000
je 0x449590
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451604
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451616
add esp, 0xfffffff0
call fcn.00403d58
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aba0
mov eax, dword [0x45e3fc]
mov dword [eax + 4], ebx
mov dword [eax], 0x4519a8
mov eax, dword [0x45e408]
mov dword [eax + 4], ebx
mov dword [eax], 0x4519b4
mov eax, ebx
call fcn.004519c0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412388]
call fcn.00403a1c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412388]
call fcn.00403a1c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412388]
call fcn.00403a1c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412388]
call fcn.00403a1c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412388]
call fcn.00403a1c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44ce68
push eax
push 0
push 0
mov eax, dword [0x45e54c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41eb48]
call fcn.00420068
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41eb48]
call fcn.00420068
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41eb48]
call fcn.00420068
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451e38
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451d08
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451d08
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451d08
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451753
call fcn.00403db0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451aec
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451c97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451c78
mov dl, 1
mov eax, dword [0x4127ac]
call fcn.00403a1c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404880
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451c67
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00443284
test al, al
je 0x451c5a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x451ca8
lea eax, [ebp - 0x254]
call fcn.004096dc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451c5a
xor eax, eax
push ebp
push 0x451c53
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x451ce0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451c3c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404af0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x451c3c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404af0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451c5a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451b5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.004168c0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451c9e
lea eax, [ebp - 0x260]
call fcn.00404880
ret

Function at 0x452610
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x463c94]
cmp byte [eax + 0xad], 0
jne 0x452681
cmp dword [0x463cb0], 0
jne 0x452642
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4525cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x463cb0], eax
cmp dword [0x463cac], 0
jne 0x45265d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x463cac], eax
cmp dword [0x463cb4], 0
jne 0x452681
push esp
push 0
push 0
push 0x452570
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x463cb4], eax
pop edx
ret
Function at 0x452884
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45289b
add esp, 0xfffffff0
call fcn.00403d58
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aba0
mov eax, dword [0x45e538]
cmp word [eax + 2], 0
jne 0x4528c3
mov eax, dword [0x45e538]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454334
mov eax, dword [0x45e5dc]
cmp word [eax + 2], 0
jne 0x4528dd
mov eax, dword [0x45e5dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454540
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412388]
call fcn.00403a1c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412388]
call fcn.00403a1c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412388]
call fcn.00403a1c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41f324]
call fcn.004251f0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x452a94
mov eax, dword [0x45e460]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004255c4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454c04
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45e460]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cf6c
test eax, eax
je 0x4529e4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409094
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cfa0
test eax, eax
je 0x4529f8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404af0
mov byte [ebx + 0xd4], 0
push ebx
push 0x454000
call fcn.0041bd1c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45e370]
cmp byte [eax], 0
jne 0x452a49
mov eax, ebx
call fcn.00452bd8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00454e18
mov eax, ebx
call fcn.0045597c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452a89
call fcn.00403db0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452e58
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x452ef7
cmp dword [ebx + 0x94], 0
jne 0x452ef1
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452de0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452ef1
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x452eb7
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452ef1
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004147b4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452ec6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453110
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x463c94]
cmp dword [eax + 0x30], 0
je 0x45326d
test bl, bl
jne 0x4531be
cmp dword [esi + 0x9c], 0
jne 0x4531b3
mov eax, esi
call fcn.004557f8
push eax
push 0x45303c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x453184
mov eax, dword [0x463c94]
call fcn.00455de8
test al, al
je 0x453184
mov eax, dword [0x463cb8]
call fcn.004058a4
mov edi, eax
cmp edi, 0
jl 0x453184
push 0
mov eax, dword [0x463cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45316e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4531b3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004147b4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x453193
inc dword [esi + 0x9c]
jmp 0x45326d
cmp dword [esi + 0x9c], 0
jle 0x45326d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45326d
cmp dword [esi + 0x44], 0
je 0x453219
mov eax, dword [0x463c94]
call fcn.00455de8
test al, al
je 0x453219
mov eax, dword [0x463cb8]
call fcn.004058a4
mov edi, eax
cmp edi, 0
jl 0x453219
push 5
mov eax, dword [0x463cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x453203
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x453248
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004147b4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x453228
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x463cb8
mov ecx, 1
mov edx, dword [0x45301c]
call fcn.00405a58
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x453d54
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x453dbe
mov eax, ebx
call fcn.00455de8
test al, al
jne 0x453dbe
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404970
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x453dab
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x453dcb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048d4
jmp 0x453dcb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048d4
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x454ffc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45506a
mov eax, esi
call fcn.0043e0bc
test al, al
je 0x45506a
mov eax, dword [ebx + 0x84]
call fcn.0043ddc0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45506a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45505e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ddc0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00435e64
jmp 0x45506a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00454e38
pop esi
pop ebx
ret
Function at 0x455f54
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov byte [ebp - 9], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4560e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404880
test ebx, ebx
je 0x455f91
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404918
jmp 0x455f9e
lea edx, [ebp - 4]
mov eax, dword [0x4617f4]
call fcn.0040d60c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d10
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4560c7
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404fa0
mov eax, dword [ebp - 8]
call fcn.00404d10
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4560c7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4560f0
mov eax, dword [ebp - 8]
call fcn.00404d10
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4560c7
movzx eax, byte [ebp - 9]
sub al, 1
jb 0x45601c
je 0x456073
dec al
je 0x4560a9
jmp 0x4560c7
push edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 8]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x4560fc
call fcn.0040975c
jmp 0x4560c7
push edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
lea edx, [ebp - 0x48]
mov ecx, 1
mov eax, 0x456110
call fcn.0040975c
jmp 0x4560c7
push edi
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x456120
call fcn.0040975c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4560e9
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048a4
ret
Function at 0x45818c
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff74
mov byte [esp + 8], cl
mov dword [esp + 4], edx
mov dword [esp], eax
mov ecx, 0x38
mov esi, str.80_
lea eax, [esp + 0x1c]
movzx edi, byte [esi]
mov edx, edi
and edx, 0x80000007
jns 0x4581c1
dec edx
or edx, 0xfffffff8
inc edx
test edi, edi
jns 0x4581c8
add edi, 7
sar edi, 3
mov ebx, dword [esp]
movzx ebx, byte [ebx + edi]
and bl, byte [edx + 0x45daf8]
setne dl
mov byte [eax], dl
inc eax
inc esi
dec ecx
jne 0x4581af
xor eax, eax
mov dword [esp + 0x14], eax
mov esi, 0x45dae8
mov eax, dword [esp + 4]
mov dword [esp + 0x18], eax
xor ecx, ecx
lea eax, [esp + 0x54]
movzx edi, byte [esi]
add edi, ecx
cmp edi, 0x1c
jge 0x458216
movzx edx, byte [esp + edi + 0x1c]
mov byte [eax], dl
movzx edx, byte [esp + edi + 0x38]
mov byte [eax + 0x1c], dl
jmp 0x458224
movzx edx, byte [esp + edi]
mov byte [eax], dl
movzx edx, byte [esp + edi + 0x1c]
mov byte [eax + 0x1c], dl
inc ecx
inc eax
cmp ecx, 0x1c
jne 0x4581fb
lea eax, [esp + 9]
xor ecx, ecx
mov edx, 8
call fcn.00403380
xor ecx, ecx
mov ebp, 0x45dab8
movzx eax, byte [ebp]
cmp byte [esp + eax + 0x54], 0
je 0x458271
mov eax, ecx
mov ebx, 6
cdq
idiv ebx
mov edi, eax
mov eax, ecx
mov ebx, 6
cdq
idiv ebx
movzx eax, byte [edx + 0x45daf8]
shr eax, 2
or byte [esp + edi + 9], al
inc ecx
inc ebp
cmp ecx, 0x30
jne 0x458242
cmp byte [esp + 8], 0
je 0x4582d4
movzx eax, byte [esp + 9]
shl eax, 0x18
movzx edx, byte [esp + 0xb]
shl edx, 0x10
or eax, edx
movzx edx, byte [esp + 0xd]
shl edx, 8
or eax, edx
movzx edx, byte [esp + 0xf]
or eax, edx
mov edx, dword [esp + 0x18]
mov dword [edx], eax
movzx eax, byte [esp + 0xa]
shl eax, 0x18
movzx edx, byte [esp + 0xc]
shl edx, 0x10
or eax, edx
movzx edx, byte [esp + 0xe]
shl edx, 8
or eax, edx
movzx edx, byte [esp + 0x10]
or eax, edx
mov edx, dword [esp + 0x18]
mov dword [edx + 4], eax
jmp 0x45833f
movzx edx, byte [esp + 9]
shl edx, 0x18
movzx ecx, byte [esp + 0xb]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [esp + 0xd]
shl ecx, 8
or edx, ecx
movzx ecx, byte [esp + 0xf]
or edx, ecx
mov eax, dword [esp + 0x14]
add eax, eax
mov ecx, eax
inc ecx
mov ebx, 0x1f
sub ebx, ecx
mov ecx, dword [esp + 4]
mov dword [ecx + ebx*4], edx
movzx edx, byte [esp + 0xa]
shl edx, 0x18
movzx ecx, byte [esp + 0xc]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [esp + 0xe]
shl ecx, 8
or edx, ecx
movzx ecx, byte [esp + 0x10]
or edx, ecx
mov ecx, 0x1f
sub ecx, eax
mov eax, dword [esp + 4]
mov dword [eax + ecx*4], edx
inc dword [esp + 0x14]
add dword [esp + 0x18], 8
inc esi
cmp dword [esp + 0x14], 0x10
jne 0x4581f5
mov eax, dword [esp + 4]
movzx edx, byte [esp + 8]
mov byte [eax + 0x80], dl
add esp, 0x8c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4584bc
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov dword [esp], edx
mov edi, eax
mov ebx, 0x45db00
lea esi, [esp + 4]
lea ecx, [esp + 8]
mov edx, esi
mov eax, dword [esp]
call fcn.00458370
lea edx, [esp + 8]
mov eax, esi
call fcn.004583c0
mov edx, edi
mov ecx, 8
mov eax, dword [esp + 8]
shr eax, 4
mov edi, dword [esp + 8]
shl edi, 0x1c
or eax, edi
xor eax, dword [edx]
add edx, 4
mov edi, eax
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x600]
xor dword [esi], edi
mov edi, eax
shr edi, 8
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x400]
xor dword [esi], edi
mov edi, eax
shr edi, 0x10
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x200]
xor dword [esi], edi
shr eax, 0x18
and eax, 0x3f
mov eax, dword [ebx + eax*4]
xor dword [esi], eax
mov eax, dword [esp + 8]
xor eax, dword [edx]
add edx, 4
mov edi, eax
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x700]
xor dword [esi], edi
mov edi, eax
shr edi, 8
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x500]
xor dword [esi], edi
mov edi, eax
shr edi, 0x10
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x300]
xor dword [esi], edi
shr eax, 0x18
and eax, 0x3f
mov eax, dword [ebx + eax*4 + 0x100]
xor dword [esi], eax
mov eax, dword [esi]
shr eax, 4
mov edi, dword [esi]
shl edi, 0x1c
or eax, edi
xor eax, dword [edx]
add edx, 4
mov edi, eax
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x600]
xor dword [esp + 8], edi
mov edi, eax
shr edi, 8
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x400]
xor dword [esp + 8], edi
mov edi, eax
shr edi, 0x10
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x200]
xor dword [esp + 8], edi
shr eax, 0x18
and eax, 0x3f
mov eax, dword [ebx + eax*4]
xor dword [esp + 8], eax
mov eax, dword [esi]
xor eax, dword [edx]
add edx, 4
mov edi, eax
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x700]
xor dword [esp + 8], edi
mov edi, eax
shr edi, 8
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x500]
xor dword [esp + 8], edi
mov edi, eax
shr edi, 0x10
and edi, 0x3f
mov edi, dword [ebx + edi*4 + 0x300]
xor dword [esp + 8], edi
shr eax, 0x18
and eax, 0x3f
mov eax, dword [ebx + eax*4 + 0x100]
xor dword [esp + 8], eax
dec ecx
jne 0x4584f0
lea edx, [esp + 8]
mov eax, esi
call fcn.0045843c
mov ecx, dword [esp]
mov edx, dword [esp + 8]
mov eax, dword [esi]
call fcn.0045839c
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x45905c
Capabilities:
Hash data with md5

Disassembly:
push ebx
add esp, 0xffffffa8
mov ebx, eax
mov edx, esp
mov eax, ebx
mov ecx, 0x58
call fcn.00403050
xor eax, eax
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
mov edx, ebx
mov eax, esp
mov ecx, 0x58
call fcn.00403050
add esp, 0x58
pop ebx
ret
Function at 0x45a540
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov byte [ebp - 1], 1
mov eax, dword [0x45e720]
cmp dword [eax], 2
jne 0x45a6bd
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 0
xor eax, eax
push ebp
push 0x45a6b6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x45a5be
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
jne 0x45a5be
lea eax, [ebp - 0xc]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x45a67c
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x45e344
call sub.advapi32.dll_AllocateAndInitializeSid
call fcn.0040d6e8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x45a611
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x45a616
call fcn.0040d644
mov eax, dword [ebp - 0x10]
call fcn.00402e48
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
call fcn.0040d6e8
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x45a67c
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x45a678
mov eax, dword [ebp - 0x14]
test byte [eax + ebx*8 + 8], 0x10
sete byte [ebp - 1]
jmp 0x45a67c
inc ebx
dec esi
jne 0x45a64a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a6bd
cmp dword [ebp - 0x14], 0
je 0x45a697
mov eax, dword [ebp - 0x14]
call fcn.00402e7c
cmp byte [ebp - 0x15], 0
je 0x45a6a6
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 8], 0
je 0x45a6b5
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret