joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad164
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406c4c
xor eax, eax
push ebp
push 0x4ad2a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4ad276
xor edx, edx
push ebp
push 0x4ad26f
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 4]
mov eax, esi
test eax, eax
je 0x4ad1b1
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4ad244
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x4ad233
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
test eax, eax
je 0x4ad1f6
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.004076b0
lea ecx, [esi + 2]
mov edx, ebx
call fcn.004046b0
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad23a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x51e61c]
mov dl, 1
mov eax, dword [0x418cd0]
call fcn.0042398c
call fcn.0040629c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad2aa
lea eax, [ebp - 4]
call fcn.00406b68
ret

Function at 0x4d0464
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.004d0514
test eax, eax
je 0x4d049f
push 0x100
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.004d0514
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406cf0
jmp 0x4d04ad
mov ecx, esi
mov edx, 0x4d04cc
mov eax, ebx
call fcn.004d03ac
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00406f48
add esp, 0x200
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00406b68
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x4ecf9e
push 0x100
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x4ecf97
mov eax, esi
mov edx, esp
mov ecx, 0x100
call fcn.00407744
jmp 0x4ecf9e
mov eax, esi
call fcn.00406b68
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4f2740
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f289f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x51e424], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x459dc0]
call fcn.0045af0c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4f2875
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0045aff4
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00407744
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4f28b8
call fcn.004078f4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0045b280
test al, al
je 0x4f285f
lea ecx, [ebp - 4]
mov edx, 0x4f292c
mov eax, dword [ebp - 0xc]
call fcn.0045bb08
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00425fdc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4f285f
xor edx, edx
push ebp
push 0x4f2858
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4f2944
mov eax, dword [ebp - 8]
push eax
call fcn.0040da8c
test eax, eax
je 0x4f2841
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x4f2841
call fcn.004f26cc
test eax, eax
je 0x4f2831
mov eax, dword [ebx + 0x50]
jmp 0x4f2834
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x51e424]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f285f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f287c
mov eax, dword [ebp - 0xc]
call fcn.00404f1c
ret

Function at 0x4f29a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x4f29ef
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f29d2
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f29e3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4f29ef
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4fc9c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4fc9ef
test edi, 0x40000
je 0x4fca09
test bl, bl
jne 0x4fca98
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x4fca98
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4fca3c
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4fca58
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0x40000
or ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
jmp 0x4fca6e
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0xfffbffff
and ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4fca7f
cmp byte [esp + 2], 0
je 0x4fca98
cmp byte [esp + 2], 0
je 0x4fca90
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4fca98
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4fcd4c
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 0x4fcd72
mov eax, esp
push eax
push 0x4fcd14
call sub.user32.dll_EnumWindows
jmp 0x4fcd85
mov eax, esp
push eax
push 0x4fccf4
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 0x4fce48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4fce98]
test bl, 4
je 0x4fce5c
or si, 1
test bl, 8
je 0x4fce65
or si, 4
test bl, 1
je 0x4fce6e
or si, 8
test bl, 2
je 0x4fce77
or si, 0x10
test bl, 0x10
je 0x4fce80
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fce90
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4fce9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4fced8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fceb7
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fcec7
or bx, 4
test esi, 0x20000000
je 0x4fced3
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x505b78
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x505b8a
add esp, 0xfffffff0
call fcn.00405528
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00451198
mov eax, dword [0x51e6cc]
mov dword [eax + 4], ebx
mov dword [eax], 0x505fb8
mov eax, dword [0x51e6dc]
mov dword [eax + 4], ebx
mov dword [eax], 0x505fc4
mov eax, ebx
call fcn.00505fd0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x436978]
call fcn.00404eec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x436978]
call fcn.00404eec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x436978]
call fcn.00404eec
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x436978]
call fcn.00404eec
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x436978]
call fcn.00404eec
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 + 0x48], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x60]
push eax
mov eax, 0x500934
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x45fa7c]
call fcn.00465a7c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x45fa7c]
call fcn.00465a7c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x45fa7c]
call fcn.00465a7c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x45fa7c]
call fcn.00465a7c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x45fa7c]
call fcn.00465a7c
mov dword [ebx + 0x90], eax
mov eax, ebx
call fcn.005065c8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5063e4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5063e4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5063e4
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5063e4
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5063e4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x505d07
call fcn.00405580
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x506184
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50632f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x506310
mov dl, 1
mov eax, dword [0x43a0ec]
call fcn.004485cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00406b68
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5062ff
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.00493c58
test al, al
je 0x5062f2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x506340
lea eax, [ebp - 0x394]
call fcn.0041f370
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5062f2
xor eax, eax
push ebp
push 0x5062eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5063b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5062d4
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00407744
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
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 + 0x44]
jne 0x5062d4
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00407744
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5062f2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5061f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.00448508
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506336
lea eax, [ebp - 0x3a0]
call fcn.00406b68
ret

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

Disassembly:
push ecx
mov eax, dword [0x5242fc]
cmp byte [eax + 0xb1], 0
jne 0x506f5a
cmp dword [0x52431c], 0
jne 0x506f1a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x51e53c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x52431c], eax
cmp dword [0x524318], 0
jne 0x506f35
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x524318], eax
cmp dword [0x524320], 0
jne 0x506f5a
push esp
push 0
push 0
mov eax, dword [0x51e538]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x524320], eax
pop edx
ret
Function at 0x507274
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x50728b
add esp, 0xfffffff0
call fcn.00405528
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00451198
mov eax, dword [0x51e5ac]
cmp byte [eax], 0
jne 0x5072b8
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x184], al
mov eax, dword [0x51e888]
cmp word [eax + 2], 0
jne 0x5072d2
mov eax, dword [0x51e888]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00509468
mov eax, dword [0x51e9ac]
cmp word [eax + 2], 0
jne 0x5072ec
mov eax, dword [0x51e9ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0050966c
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x45fa7c]
call fcn.00465a7c
mov esi, eax
mov dword [ebx + 0x40], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x509be4
mov dl, 1
mov eax, dword [0x436978]
call fcn.00404eec
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x436978]
call fcn.00404eec
mov dword [ebx + 0xb4], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x60], 0xff000018
mov dword [ebx + 0x7c], 0x1f4
mov byte [ebx + 0x80], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x78], 0x9c4
mov byte [ebx + 0x8c], 0
mov byte [ebx + 0xa9], 1
mov byte [ebx + 0xc0], 1
mov dl, 1
mov eax, dword [0x46435c]
call fcn.0046f0c8
mov esi, eax
mov dword [ebx + 0xa4], esi
push 0x5074d0
mov eax, dword [0x51e764]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0046f558
mov eax, dword [ebx + 0xa4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x509ecc
mov dl, 1
mov eax, dword [0x436978]
call fcn.00404eec
mov dword [ebx + 0x9c], eax
push 0x100
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x51e764]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041f184
test eax, eax
je 0x507400
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041ef34
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041f168
test eax, eax
je 0x507418
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x90]
lea edx, [ebp - 0x202]
mov ecx, 0x100
call fcn.00407744
push ebx
push 0x508e40
call fcn.004fce2c
mov dword [ebx + 0x180], eax
mov byte [ebx + 0xd4], 0
mov eax, dword [0x51e5ac]
cmp byte [eax], 0
jne 0x507469
mov eax, ebx
call fcn.00507690
mov byte [ebx + 0x5d], 1
mov byte [ebx + 0x5e], 1
mov byte [ebx + 0x5f], 1
mov byte [ebx + 0xaa], 1
mov byte [ebx + 0xd5], 0
mov byte [ebx + 0xe0], 0
xor eax, eax
mov dword [ebx + 0xd8], eax
mov byte [ebx + 0xd7], 0
xor eax, eax
mov dword [ebx + 0xac], eax
mov eax, ebx
call fcn.0050a114
mov eax, ebx
call fcn.0050ad40
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5074c6
call fcn.00405580
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5079c8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x507a74
cmp dword [ebx + 0x98], 0
jne 0x507a6e
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x507900
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x507a6e
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x507a34
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x507a6e
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.00443fa0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x507a43
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5242fc]
cmp dword [eax + 0x178], 0
je 0x507df9
test bl, bl
jne 0x507d47
cmp dword [esi + 0xa0], 0
jne 0x507d3c
mov eax, esi
call fcn.0050ab90
push eax
push 0x507ba0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x48], 0
je 0x507d0d
mov eax, dword [0x5242fc]
cmp byte [eax + 0xd7], 0
je 0x507d0d
mov eax, dword [esi + 0xdc]
call fcn.00408820
mov edi, eax
cmp edi, 0
jl 0x507d0d
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x507cf6
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x507d3c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00443fa0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x507d1c
inc dword [esi + 0xa0]
jmp 0x507df9
cmp dword [esi + 0xa0], 0
jle 0x507df9
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x507df9
cmp dword [esi + 0x48], 0
je 0x507da4
mov eax, dword [0x5242fc]
cmp byte [eax + 0xd7], 0
je 0x507da4
mov eax, dword [esi + 0xdc]
call fcn.00408820
mov edi, eax
cmp edi, 0
jl 0x507da4
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x507d8d
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x507dd3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00443fa0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x507db3
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x4f9d8c]
call fcn.004089cc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x508a4c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x508ab7
cmp byte [ebx + 0xd7], 0
jne 0x508ab7
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406cf0
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x508aa4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x508ac4
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00406f48
jmp 0x508ac4
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00406f48
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x50a2fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x50a36a
mov eax, esi
call fcn.0048dc80
test al, al
je 0x50a36a
mov eax, dword [ebx + 0x88]
call fcn.0048d8cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50a36a
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x50a35e
push 0
mov eax, dword [ebx + 0x88]
call fcn.0048d8cc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.004846e8
jmp 0x50a36a
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.0050a134
pop esi
pop ebx
ret
Function at 0x10002c4c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edx, ecx
mov edi, dword [ebp + 8]
mov ecx, dword [ecx + 4]
xor eax, eax
sub ecx, edi
jb 0x10002d52
mov ebx, dword [edx]
cmp ebx, ecx
ja 0x10002d52
mov esi, ebx
shr esi, 3
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
cmp eax, esi
jbe 0x10002d5f
mov ecx, ebx
and ecx, 7
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], eax
movzx eax, byte [eax + esi]
cmp edi, 1
jne 0x10002cb0
xor cl, 7
movzx ecx, cl
mov esi, eax
xor eax, eax
bt esi, ecx
setb al
xor edi, edi
inc edi
jmp 0x10002d4e
test ecx, ecx
je 0x10002ce3
mov dword [ebp - 0x10], eax
mov eax, 8
sub eax, ecx
mov dword [ebp - 0x20], eax
sub eax, edi
mov dword [ebp - 0x14], eax
jae 0x10002d3f
xor edi, edi
dec edi
mov eax, dword [ebp - 0x20]
mov ecx, eax
shl edi, cl
mov ecx, dword [ebp + 8]
sub ecx, eax
not edi
mov eax, dword [ebp - 0x10]
and eax, edi
shl eax, cl
inc esi
jmp 0x10002ce7
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edx
cmp ecx, 8
jb 0x10002d1a
xor ebx, ebx
mov edi, dword [ebp - 0x18]
sub edi, esi
cmovb edi, ebx
lea ebx, [ecx - 8]
shr ebx, 3
cmp edi, ebx
jbe 0x10002d5c
add ecx, 0xfffffff8
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx + esi]
shl edx, cl
or eax, edx
inc esi
cmp ecx, 7
ja 0x10002d02
test ecx, ecx
mov edi, dword [ebp + 8]
je 0x10002d37
cmp dword [ebp - 0x18], esi
jbe 0x10002d62
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx + esi]
mov bl, 8
sub bl, cl
mov ecx, ebx
shr edx, cl
or eax, edx
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
jmp 0x10002d4e
mov eax, 0xff
shr eax, cl
and eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add ebx, edi
mov dword [edx], ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
int3
int3

Function at 0x1000436c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [edi + 0x3c]

Function at 0x10004412
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
push edi
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
jmp 0x10004438
push dword [esi + 0x30]
call fcn.10004477
imul eax, eax, 3
pop ecx
cmp dword [esp + 0xc], eax
je 0x10004441
mov esi, dword [esi]
cmp esi, edi
jne 0x10004424
xor eax, eax
pop edi
pop esi
ret
mov eax, dword [esi + 0x18]
jmp 0x1000443e

Function at 0x10005b5c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 8]
push 0xd44
push 1
call fcn.100058be
add esp, 8
mov dword [eax + 4], esi
xor ecx, ecx
inc ecx
mov edx, 2
mov edi, esi
shr edi, 0x1e
xor edi, esi
imul esi, edi, 0x6c078965
lea edi, [edx + esi]
dec edi
add esi, ecx
mov dword [eax + edx*4], edi
inc ecx
inc edx
cmp edx, 0x351
jne 0x10005b7e
mov dword [eax], 0x350
pop esi
pop edi
pop ebp
ret