joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43df3c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4647e4
cmp dword [edi], 0
jne 0x43dfb8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4647e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x462920
mov ecx, 2
call fcn.004027f4
mov edx, 0x43df14
lea eax, [esi + 5]
call fcn.0043df34
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043df34
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 0x43df8d
mov dword [0x4647e0], 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 0x43e0d4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43e124]
test si, 4
je 0x43e0e8
or bl, 1
test si, 8
je 0x43e0f2
or bl, 4
test si, 1
je 0x43e0fc
or bl, 8
test si, 2
je 0x43e106
or bl, 0x10
test si, 0x10
je 0x43e110
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43e11f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43e128
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43e160]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43e141
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43e150
or bl, 4
test esi, 0x20000000
je 0x43e15b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x444390
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4443a2
add esp, 0xfffffff0
call fcn.0040309c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041616c
mov eax, ebx
call fcn.004446dc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40dd84]
call fcn.00402d2c
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40dd84]
call fcn.00402d2c
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40dd84]
call fcn.00402d2c
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40dd84]
call fcn.00402d2c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40dd84]
call fcn.00402d2c
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x440e80
push eax
push 0
push 0
mov eax, dword [0x463120]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x417634]
call fcn.00418b6c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x417634]
call fcn.00418b6c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x417634]
call fcn.00418b6c
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00444abc
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4449d8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4449d8
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4449d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4444b1
call fcn.004030f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4447bc
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 0x444967
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x444948
mov dl, 1
mov eax, dword [0x40e2b0]
call fcn.00402d2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403a24
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x444937
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.004330ec
test al, al
je 0x44492a
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, 0x444978
lea eax, [ebp - 0x254]
call fcn.004090bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44492a
xor eax, eax
push ebp
push 0x444923
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 0x4449b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44490c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c54
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x44490c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44492a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44482d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0041191c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44496e
lea eax, [ebp - 0x260]
call fcn.00403a24
ret

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

Disassembly:
push ecx
mov eax, dword [0x4647d4]
cmp byte [eax + 0x95], 0
jne 0x445225
cmp dword [0x4647f0], 0
jne 0x4451e6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x445170
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4647f0], eax
cmp dword [0x4647ec], 0
jne 0x445201
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4647ec], eax
cmp dword [0x4647f4], 0
jne 0x445225
push esp
push 0
push 0
push 0x445114
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4647f4], eax
pop edx
ret
Function at 0x44531c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x445333
add esp, 0xfffffff0
call fcn.0040309c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041616c
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40dd84]
call fcn.00402d2c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40dd84]
call fcn.00402d2c
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x417fc4]
call fcn.0041f118
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x4454a8
mov eax, dword [0x463030]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041f4e8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x446ea4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x463030]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.0040b340
test eax, eax
je 0x445426
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a5c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b368
test eax, eax
je 0x44543a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403c54
mov eax, dword [0x462f04]
cmp byte [eax], 0
jne 0x44546b
mov eax, ebx
call fcn.00445594
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44549d
call fcn.004030f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x445804
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4647d4]
cmp dword [eax + 0x24], 0
je 0x4458a7
cmp dword [ebx + 0x84], 0
jne 0x4458a1
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x445794
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x4458a1
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 0x44586a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4458a1
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040f8e0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x445879
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4462b4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x4462e9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b0c
jmp 0x4462f3
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403a78
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x447218
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x447250
mov eax, esi
call fcn.0042ee50
test al, al
je 0x447250
mov eax, dword [ebx + 0x74]
call fcn.0042eb54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x447250
push 0
mov eax, dword [ebx + 0x74]
call fcn.0042eb54
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44dd5c
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.00403e68
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x44ddb4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4632f8]
mov dl, 1
mov eax, dword [0x44d920]
call fcn.0040a8e4
call fcn.004034f4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0044da28
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 0x44e308
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, 0x462b6c
mov eax, dword [0x4632e8]
cmp dword [eax], 2
jne 0x44e47e
push 0x44e494
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebx], eax
cmp dword [ebx], 0
sete byte [0x46484c]
cmp dword [ebx], 0
jne 0x44e343
push 0x44e494
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x44e47e
push 0x44e4a0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b78], eax
push 0x44e4b8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b7c], eax
push 0x44e4cc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b70], eax
push 0x44e4dc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b74], eax
push 0x44e4e4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b80], eax
push 0x44e4f4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b84], eax
push 0x44e510
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b88], eax
push 0x44e520
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462bb0], eax
push 0x44e530
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b8c], eax
push 0x44e544
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b90], eax
push 0x44e55c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b98], eax
push 0x44e568
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b94], eax
push 0x44e578
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b9c], eax
push 0x44e588
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462ba0], eax
push 0x44e5a4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462ba4], eax
push 0x44e5c0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462ba8], eax
push 0x44e5d8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462bac], eax
cmp dword [ebx], 0
je 0x44e48c
cmp dword [0x462b9c], 0
jne 0x44e490
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x45078c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x450847
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x104
mov eax, esi
call fcn.00408bf0
mov ebx, eax
push esi
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x104]
mov edx, ebx
call fcn.00402b58
lea edx, [ebp - 0x104]
lea eax, [ebp - 4]
call fcn.00403c48
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, 0x450860
call fcn.00403cf0
push esi
push ebx
call sub.kernel32.dll_GetSystemDirectoryA
push dword [edi]
lea eax, [ebp - 0x108]
mov edx, ebx
call fcn.00403bdc
push dword [ebp - 0x108]
push 0x450860
mov eax, edi
mov edx, 3
call fcn.00403d64
mov eax, ebx
call fcn.00408c3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45084e
lea eax, [ebp - 0x108]
call fcn.00403a24
lea eax, [ebp - 4]
call fcn.00403a24
ret
Function at 0x4513f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45148b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404054
mov eax, 0x104
call fcn.00408bf0
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.shell32.dll_SHGetSpecialFolderLocation
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x45144f
mov eax, esi
mov edx, ebx
call fcn.0040415c
mov eax, ebx
call fcn.00408c3c
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
call fcn.0040ca78
test al, al
je 0x451475
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451492
lea eax, [ebp - 0xc]
call fcn.004057f8
ret

Function at 0x451554
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x451598
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x451598
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x451643
lea eax, [esp + 8]
push eax
push 0
push 0
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [esp + 8]
call fcn.004026dc
mov esi, eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x45163c
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x462ce8
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x451632
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x45162e
mov byte [esp], 1
jmp 0x451632
inc edi
dec ebx
jne 0x451615
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.004026f4
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x451650
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45183d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0
mov eax, edi
mov ecx, 1
mov edx, dword [0x44f158]
call fcn.004051b8
add esp, 4
lea eax, [ebp - 8]
push eax
push 8
push ebx
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x45181f
mov eax, 0x1000
call fcn.004026dc
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x451818
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
push eax
push 0x1000
mov eax, dword [ebp - 0xc]
push eax
push 3
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x451802
mov esi, dword [ebp - 0xc]
add esi, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
test eax, eax
jns 0x4516fb
call fcn.00402c9c
test eax, eax
jl 0x4517f9
inc eax
mov dword [ebp - 0x20], eax
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push 0
call sub.advapi32.dll_LookupPrivilegeNameA
neg eax
sbb eax, eax
neg eax
jmp 0x451743
inc ebx
cmp ebx, 0xa
jg 0x451747
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push 0
call sub.advapi32.dll_LookupPrivilegeNameA
neg eax
sbb eax, eax
neg eax
test al, al
je 0x451724
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x120]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeDisplayNameA
mov eax, dword [edi]
call fcn.00404ffc
inc eax
push eax
mov eax, edi
mov ecx, 1
mov edx, dword [0x44f158]
call fcn.004051b8
add esp, 4
mov eax, dword [edi]
call fcn.00405004
mov edx, eax
shl eax, 7
add eax, edx
mov edx, dword [edi]
lea ebx, [edx + eax*4]
lea eax, [ebp - 0x224]
lea edx, [ebp - 0x120]
mov ecx, pe_nt_image_headers32
call fcn.00403c54
mov edx, dword [ebp - 0x224]
mov eax, ebx
mov ecx, 0xff
call fcn.00403c80
lea eax, [ebp - 0x228]
lea edx, [ebx + 0x100]
call fcn.00403c48
mov edx, dword [ebp - 0x228]
lea eax, [ebx + 0x100]
mov ecx, 0xff
call fcn.00403c80
mov eax, dword [esi + 8]
mov dword [ebx + 0x200], eax
add esi, 0xc
dec dword [ebp - 0x20]
jne 0x451707
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45181f
mov eax, dword [ebp - 0xc]
call fcn.004026f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451844
lea eax, [ebp - 0x228]
mov edx, 2
call fcn.00403a48
ret
Function at 0x451e28
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403e58
mov eax, dword [ebp - 8]
call fcn.00403e58
xor eax, eax
push ebp
push 0x451f55
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
call fcn.00408194
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
call fcn.00408194
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403e68
mov esi, eax
push esi
mov eax, dword [ebp - 4]
call fcn.00403e68
mov ebx, eax
push ebx
call sub.advapi32.dll_LookupAccountNameA
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.0040270c
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.0040270c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
push ebx
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
je 0x451f0d
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.00451d10
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetSidSubAuthorityCount
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetLengthSid
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.00408bdc
jmp 0x451f22
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x451f1b
call fcn.00402c9c
mov edx, edi
call fcn.0044f1d8
mov eax, dword [ebp - 0x10]
call fcn.004026f4
mov eax, dword [ebp - 0xc]
call fcn.004026f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451f5c
lea eax, [ebp - 0x20]
call fcn.00403a24
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403a48
ret
Function at 0x452008
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe2c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4520e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, esi
call fcn.00403a24
push 0x40
lea eax, [ebp - 0x40]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x40]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4520ce
mov edi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4520a1
push dword [esi]
cmp ebx, 0xff
jbe 0x452072
call fcn.00402c9c
mov eax, dword [edi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d4]
call fcn.00403bdc
push dword [ebp - 0x1d4]
push 0x452100
mov eax, esi
mov edx, 3
call fcn.00403d64
inc ebx
cmp ebx, 0xff
jbe 0x4520ae
call fcn.00402c9c
cmp dword [edi + ebx*4], 0
jne 0x452063
mov eax, dword [esi]
call fcn.00403ca4
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.00403eec
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4520ee
lea eax, [ebp - 0x1d4]
call fcn.00403a24
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx