joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449b30
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x449b4c
cmp dword [esi + 4], 0
je 0x449b79
test byte [ebx + 0x55], 1
jne 0x449b6b
mov eax, ebx
call fcn.004486d0
test eax, eax
jne 0x449b6b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x449c89
mov edx, esi
mov eax, ebx
call fcn.00449654
jmp 0x449c89
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x449c82
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044b9a0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0044636c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00449b30
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044b9a0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449c89
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4503c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4744ec]
cmp byte [eax + 0xc], 0
je 0x45052d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450526
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x475b70], 0
jne 0x450414
push 0x450534
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45053c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475b70], eax
cmp dword [0x473d04], 0
jne 0x45050f
push 0x45054c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x473d04], eax
cmp dword [0x473d04], 0
je 0x45050f
push 0x450558
mov eax, dword [0x473d04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475b74], eax
push 0x450568
mov eax, dword [0x473d04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475b78], eax
push 0x45057c
mov eax, dword [0x473d04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475b7c], eax
push 0x450594
mov eax, dword [0x473d04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475b80], eax
push 0x4505ac
mov eax, dword [0x473d04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475b84], eax
push 0x4505c0
mov eax, dword [0x473d04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475b88], eax
push 0x4505d8
mov eax, dword [0x473d04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475b8c], eax
push 0x4505f0
mov eax, dword [0x473d04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475b90], eax
push 0x45060c
mov eax, dword [0x473d04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475b94], eax
push 0x450618
mov eax, dword [0x473d04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475b98], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45052d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45488c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404450
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4548db
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004046c0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45c0ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45c0fc]
test si, 4
je 0x45c0c0
or bl, 1
test si, 8
je 0x45c0ca
or bl, 4
test si, 1
je 0x45c0d4
or bl, 8
test si, 2
je 0x45c0de
or bl, 0x10
test si, 0x10
je 0x45c0e8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c0f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45c100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45c138]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c119
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c128
or bl, 4
test esi, 0x20000000
je 0x45c133
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4627fc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46280e
add esp, 0xfffffff0
call fcn.004039fc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041da38
mov eax, dword [0x474154]
mov dword [eax + 4], ebx
mov dword [eax], 0x462ba0
mov eax, dword [0x474160]
mov dword [eax + 4], ebx
mov dword [eax], 0x462bac
mov eax, ebx
call fcn.00462bb8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415b90]
call fcn.00403694
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415b90]
call fcn.00403694
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415b90]
call fcn.00403694
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415b90]
call fcn.00403694
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415b90]
call fcn.00403694
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, 0x45efd0
push eax
push 0
push 0
mov eax, dword [0x4742d8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41f4bc]
call fcn.00420c54
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41f4bc]
call fcn.00420c54
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41f4bc]
call fcn.00420c54
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00463008
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462ed0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462ed0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462ed0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46294b
call fcn.00403a54
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x462cb4
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 0x462e5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x462e40
mov dl, 1
mov eax, dword [0x415fac]
call fcn.00403694
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404450
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x462e2f
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.00450720
test al, al
je 0x462e22
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, 0x462e70
lea eax, [ebp - 0x254]
call fcn.00409aa4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x462e22
xor eax, eax
push ebp
push 0x462e1b
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 0x462ea8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x462e04
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046c0
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 0x462e04
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462e22
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x462d25
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419b7c
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 0x462e66
lea eax, [ebp - 0x260]
call fcn.00404450
ret

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

Disassembly:
push ecx
mov eax, dword [0x475bbc]
cmp byte [eax + 0xa5], 0
jne 0x463819
cmp dword [0x475bd4], 0
jne 0x4637da
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x463764
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x475bd4], eax
cmp dword [0x475bd0], 0
jne 0x4637f5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x475bd0], eax
cmp dword [0x475bd8], 0
jne 0x463819
push esp
push 0
push 0
push 0x463708
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x475bd8], eax
pop edx
ret
Function at 0x463eac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x475bbc]
cmp dword [eax + 0x30], 0
je 0x463f56
cmp dword [ebx + 0x94], 0
jne 0x463f50
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x463e3c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x463f50
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 0x463f16
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x463f50
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.00417ef8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x463f25
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x464ab4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x464ae9
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.00404540
jmp 0x464af6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044a4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x465cc0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x465d01
mov eax, esi
call fcn.0044bca4
test al, al
je 0x465d01
mov eax, dword [ebx + 0x84]
call fcn.0044b9a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x465d01
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b9a0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46798c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x467acd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0
jne 0x4679c8
cmp dword [ebp + 8], 0
jne 0x4679c8
mov dword [ebp + 8], 1
mov dword [ebp + 0xc], 0
cmp byte [ebx + 0x10], 0
je 0x4679e7
push esi
mov eax, dword [ebp + 8]
push eax
push 0
push 2
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebx + 8], eax
jmp 0x4679fe
push esi
mov eax, dword [ebp + 8]
push eax
push 0
push 4
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebx + 8], eax
cmp dword [ebx + 8], 0
jne 0x467a25
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x28]
call fcn.0040be04
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x4077fc]
call fcn.0040c61c
call fcn.00403e64
cmp byte [ebx + 0x10], 0
je 0x467a41
push 0
push 0
push 0
push 4
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebx + 0xc], eax
jmp 0x467a55
push 0
push 0
push 0
push 6
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
je 0x467a6d
test esi, esi
jne 0x467a6d
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x467ab2
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x467a91
test esi, esi
je 0x467a91
push 0x1c
lea edx, [ebp - 0x24]
push edx
push eax
call sub.kernel32.dll_VirtualQuery_1
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x467ab2
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x2c]
call fcn.0040be04
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x4077fc]
call fcn.0040c61c
call fcn.00403e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467ad4
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404474
ret
Function at 0x467bd8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x467bf2
add esp, 0xfffffff0
call fcn.004039fc
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x467d2d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00403694
lea eax, [ebx + 0x28]
mov edx, esi
call fcn.004044a4
movzx esi, di
and esi, 0xffffff8f
test esi, esi
sete al
mov byte [ebx + 0x10], al
cmp di, 0xffff
jne 0x467c37
mov esi, 3
cmp esi, 4
je 0x467c45
mov dword [ebp - 8], 0x80
jmp 0x467c4c
mov dword [ebp - 8], 0x4000000
mov dword [ebp - 0xc], 7
test di, 0x40
jne 0x467c7e
test di, 0x10
je 0x467c68
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x467c7e
test di, 0x30
je 0x467c73
and dword [ebp - 0xc], 0xfffffffe
test di, 0x20
je 0x467c7e
and dword [ebp - 0xc], 0xfffffff9
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [esi*4 + 0x473f7c]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi*4 + 0x473f68]
push eax
mov eax, dword [ebx + 0x28]
call fcn.00404910
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
mov dword [ebx + 4], edi
cmp edi, 0xffffffff
je 0x467cf6
push 0
push edi
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
cmp dword [ebx + 0x24], 0
jne 0x467ccc
cmp dword [ebx + 0x20], 0
je 0x467ce5
push dword [ebx + 0x24]
push dword [ebx + 0x20]
xor edx, edx
mov eax, ebx
call fcn.0046798c
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
jmp 0x467d17
push dword [ebx + 0x24]
push dword [ebx + 0x20]
xor edx, edx
mov eax, ebx
call fcn.0046798c
jmp 0x467d17
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x10]
call fcn.0040be04
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4077fc]
call fcn.0040c61c
call fcn.00403e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467d34
lea eax, [ebp - 0x10]
call fcn.00404450
ret

Function at 0x4680d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, eax
jmp 0x468101
shl dword [ebx + 0x10], 8
mov eax, dword [ebx + 0x14]
shl eax, 8
or eax, 0xff
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.0046800c
and eax, 0xff
mov edx, dword [ebx + 0xc]
shl edx, 8
or eax, edx
mov dword [ebx + 0xc], eax
inc dword [ebx + 0x1c]
mov eax, dword [ebx + 0x10]
xor eax, dword [ebx + 0x14]
test eax, 0xff000000
je 0x4680d5
pop ebx
ret
Function at 0x4685d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, edx
shl esi, 4
test esi, esi
jle 0x46870f
mov edx, 0x10
lea ecx, [eax + 8]
mov ebx, dword [ecx]
add dword [ecx + 0x40], ebx
add ecx, 4
dec edx
jne 0x4685e8
xor edx, edx
lea ecx, [eax + 8]
mov ebx, edx
xor ebx, 8
mov edi, dword [ecx]
mov dword [eax + ebx*4 + 0x88], edi
inc edx
add ecx, 4
cmp edx, 0x10
jne 0x4685f8
mov edx, 0x10
lea ecx, [eax + 0x88]
mov ebx, dword [ecx]
mov edi, ebx
shl edi, 7
shr ebx, 0x19
or edi, ebx
mov dword [ecx - 0x80], edi
add ecx, 4
dec edx
jne 0x46861a
mov edx, 0x10
lea ecx, [eax + 0x48]
mov ebx, dword [ecx]
xor dword [ecx - 0x40], ebx
add ecx, 4
dec edx
jne 0x468637
xor edx, edx
lea ecx, [eax + 0x48]
mov ebx, edx
xor ebx, 2
mov edi, dword [ecx]
mov dword [eax + ebx*4 + 0x88], edi
inc edx
add ecx, 4
cmp edx, 0x10
jne 0x468647
mov edx, 0x10
lea ecx, [eax + 0x88]
mov ebx, dword [ecx]
mov dword [ecx - 0x40], ebx
add ecx, 4
dec edx
jne 0x468669
mov edx, 0x10
lea ecx, [eax + 8]
mov ebx, dword [ecx]
add dword [ecx + 0x40], ebx
add ecx, 4
dec edx
jne 0x46867c
xor edx, edx
lea ecx, [eax + 8]
mov ebx, edx
xor ebx, 4
mov edi, dword [ecx]
mov dword [eax + ebx*4 + 0x88], edi
inc edx
add ecx, 4
cmp edx, 0x10
jne 0x46868c
mov edx, 0x10
lea ecx, [eax + 0x88]
mov ebx, dword [ecx]
mov edi, ebx
shl edi, 0xb
shr ebx, 0x15
or edi, ebx
mov dword [ecx - 0x80], edi
add ecx, 4
dec edx
jne 0x4686ae
mov edx, 0x10
lea ecx, [eax + 0x48]
mov ebx, dword [ecx]
xor dword [ecx - 0x40], ebx
add ecx, 4
dec edx
jne 0x4686cb
xor edx, edx
lea ecx, [eax + 0x48]
mov ebx, edx
xor ebx, 1
mov edi, dword [ecx]
mov dword [eax + ebx*4 + 0x88], edi
inc edx
add ecx, 4
cmp edx, 0x10
jne 0x4686db
mov edx, 0x10
lea ecx, [eax + 0x88]
mov ebx, dword [ecx]
mov dword [ecx - 0x40], ebx
add ecx, 4
dec edx
jne 0x4686fd
dec esi
jne 0x4685e0
pop edi
pop esi
pop ebx
ret

Function at 0x46af68
Capabilities:
Encode data using xor

Disassembly:
push ecx
test edx, edx
jne 0x46af71
xor eax, eax
pop edx
ret
mov dword [esp], eax
or eax, 0xffffffff
test edx, edx
jbe 0x46afaf
mov ecx, dword [esp]
movzx ecx, byte [ecx]
xor eax, ecx
mov ecx, eax
and ecx, 0xf
mov ecx, dword [ecx*4 + 0x474020]
shr eax, 4
xor ecx, eax
mov eax, ecx
mov ecx, eax
and ecx, 0xf
mov ecx, dword [ecx*4 + 0x474020]
shr eax, 4
xor ecx, eax
mov eax, ecx
inc dword [esp]
dec edx
jne 0x46af7b
xor eax, 0xffffffff
pop edx
ret
Function at 0x46b74c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404900
xor eax, eax
push ebp
push 0x46b819
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, 0x104
call fcn.00409638
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0x11
push edi
call sub.shell32.dll_SHGetSpecialFolderLocation
call sub.user32.dll_GetActiveWindow
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
push eax
push 0x11
mov eax, dword [ebp - 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, 0x104
call fcn.00409638
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
call fcn.00404910
mov dword [ebp - 0x24], eax
mov eax, 0x46b728
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
call fcn.00404910
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
call sub.shell32.dll_SHBrowseForFolderA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46b803
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x46b803
mov eax, esi
mov edx, dword [ebp - 0x10]
call fcn.00404648
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b820
lea eax, [ebp - 4]
call fcn.00404450
ret

Function at 0x46b82c
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 0x46b870
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x46b870
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 0x46b907
mov eax, 0x400
call fcn.00402a48
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
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
test ebx, ebx
je 0x46b900
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 0x474060
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x46b8f6
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 0x46b8f2
mov byte [esp], 1
jmp 0x46b8f6
inc edi
dec ebx
jne 0x46b8d9
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402a78
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x46b980
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
mov eax, ebx
call fcn.00404450
push esp
push 0
push 0
push 0x26
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x46b9b0
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004046c0
add esp, 0x108
pop ebx
ret
Function at 0x471974
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4719fb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov ecx, eax
lea edx, [ebp - 0x105]
mov eax, ebx
call fcn.00404540
cmp dword [ebx], 0
jne 0x4719e2
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x10c]
call fcn.0040be04
mov ecx, dword [ebp - 0x10c]
mov dl, 1
mov eax, dword [0x4077fc]
call fcn.0040c61c
call fcn.00403e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471a02
lea eax, [ebp - 0x10c]
call fcn.00404450
ret