joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468074
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4680ac]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46808d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46809c
or bl, 4
test esi, 0x20000000
je 0x4680a7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46e770
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46e782
add esp, 0xfffffff0
call fcn.00403c08
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004269ec
mov eax, dword [0x511d54]
mov dword [eax + 4], ebx
mov dword [eax], 0x46eb14
mov eax, dword [0x511d68]
mov dword [eax + 4], ebx
mov dword [eax], 0x46eb20
mov eax, ebx
call fcn.0046eb2c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b538]
call fcn.00403860
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b538]
call fcn.00403860
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b538]
call fcn.00403860
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b538]
call fcn.00403860
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b538]
call fcn.00403860
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, 0x46af44
push eax
push 0
push 0
mov eax, dword [0x5120f8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4284a8]
call fcn.00429c40
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4284a8]
call fcn.00429c40
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4284a8]
call fcn.00429c40
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046f030
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46eeb0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46eeb0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46eeb0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e8bf
call fcn.00403c60
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46ec94
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 0x46ee3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46ee20
mov dl, 1
mov eax, dword [0x41bbbc]
call fcn.00403860
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404700
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46ee0f
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.0045c8b4
test al, al
je 0x46ee02
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, 0x46ee50
lea eax, [ebp - 0x254]
call fcn.00409fd8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46ee02
xor eax, eax
push ebp
push 0x46edfb
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 0x46ee88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46ede4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404970
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 0x46ede4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404970
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ee02
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46ed05
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420460
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 0x46ee46
lea eax, [ebp - 0x260]
call fcn.00404700
ret

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

Disassembly:
push ecx
mov eax, dword [0x513bec]
cmp byte [eax + 0xa5], 0
jne 0x46f841
cmp dword [0x513c04], 0
jne 0x46f802
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46f78c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x513c04], eax
cmp dword [0x513c00], 0
jne 0x46f81d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x513c00], eax
cmp dword [0x513c08], 0
jne 0x46f841
push esp
push 0
push 0
push 0x46f730
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x513c08], eax
pop edx
ret
Function at 0x46fed4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x513bec]
cmp dword [eax + 0x30], 0
je 0x46ff7e
cmp dword [ebx + 0x94], 0
jne 0x46ff78
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46fe64
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46ff78
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 0x46ff3e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46ff78
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.0041deb4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46ff4d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x470adc
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 0x470b11
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.004047f0
jmp 0x470b1e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404754
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x471cd8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x471d19
mov eax, esi
call fcn.00457e38
test al, al
je 0x471d19
mov eax, dword [ebx + 0x84]
call fcn.00457b34
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x471d19
push 0
mov eax, dword [ebx + 0x84]
call fcn.00457b34
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4745dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47483c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x47463f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004740a4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040dab0
cmp al, 1
jne 0x47463f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004743bc
test al, al
je 0x4747cb
cmp dword [ebp - 8], 0
jge 0x47465d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004740a4
mov eax, dword [ebp - 0x210]
call fcn.004049c0
cmp ebx, eax
jge 0x4746a7
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004740a4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x51261c]
and eax, 0xff
bt dword [edx], eax
jae 0x4746a7
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4746bb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004745b8
cmp ebx, dword [ebp - 8]
je 0x4747bd
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4746e7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a98
and eax, 0x7f
movzx eax, word [eax*2 + 0x50c1a4]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4747aa
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a98
and eax, 0x7f
movzx eax, word [eax*2 + 0x50c1a4]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00457b34
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a98
and eax, 0x7f
movzx eax, word [eax*2 + 0x50c1a4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00457b34
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4747b1
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x47481e
cmp dword [ebp - 8], 0
jge 0x4747d6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004740a4
mov eax, dword [ebp - 0x218]
call fcn.004049c0
cmp eax, dword [ebp - 8]
jg 0x474810
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004740a4
mov eax, dword [ebp - 0x21c]
call fcn.004049c0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004745b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474843
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404724
ret
Function at 0x476d34
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor esi, esi
mov edi, 0x12
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea eax, [esi + 1]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [eax + edx]
shl ebx, 0x10
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
shl eax, 0x18
add ebx, eax
lea eax, [esi + 2]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
shl eax, 8
add ebx, eax
lea eax, [esi + 3]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
add ebx, eax
xor dword [ecx], ebx
lea eax, [esi + 4]
xor edx, edx
div dword [ebp - 8]
mov esi, edx
add ecx, 4
dec edi
jne 0x476d53
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00476974
pop ecx
mov eax, edi
add eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4 - 0x1048], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0x1044], ecx
inc edi
cmp edi, 9
jne 0x476db5
mov edi, 4
mov eax, dword [ebp + 8]
lea ebx, [eax - 0x1000]
xor esi, esi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00476974
pop ecx
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0xc]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x10]
mov dword [ebx + eax*4 + 4], edx
inc esi
cmp esi, 0x80
jne 0x476e04
add ebx, 0x400
dec edi
jne 0x476e02
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476e4c
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffa0
push ebx
push esi
push edi
mov byte [ebp - 0x1049], cl
mov edi, edx
mov ebx, eax
mov eax, dword [ebp + 0x14]
call fcn.00404bb0
lea esi, [ebp - 0x1058]
xor eax, eax
push ebp
push 0x47702d
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov esi, 0x50c560
lea edi, [ebp - 0x1048]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
mov esi, 0x50c5a8
lea edi, [ebp - 0x1000]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push ebp
mov eax, dword [ebp + 0x14]
call fcn.004049c0
push eax
mov eax, dword [ebp + 0x14]
call fcn.00404bc0
pop edx
call fcn.00476d34
pop ecx
cmp byte [ebp - 0x1049], 0
je 0x476ee8
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 1
jmp 0x476efe
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 0xffffffff
shr edi, 3
dec edi
test edi, edi
jl 0x477017
inc edi
mov dword [ebp - 0x1060], edi
cmp dword [ebp + 0x10], 0
jne 0x476f1b
cmp dword [ebp + 0xc], 0
je 0x476f97
mov dword [esi], 7
lea eax, [ebp + 0xc]
add eax, dword [esi]
mov dl, byte [eax]
inc edx
and dl, 0xff
mov byte [eax], dl
lea eax, [ebp + 0xc]
add eax, dword [esi]
cmp byte [eax], 0
jne 0x476f41
dec dword [esi]
cmp dword [esi], 0xffffffff
jne 0x476f23
lea eax, [ebp + 0xc]
mov eax, dword [eax]
call fcn.00476948
mov dword [esi], eax
lea eax, [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
call fcn.00476948
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.00476974
pop ecx
mov eax, dword [esi]
call fcn.00476948
xor dword [ebx], eax
mov eax, dword [ebp - 0x105c]
call fcn.00476948
lea edx, [ebx + 4]
xor dword [edx], eax
jmp 0x477008
cmp byte [ebp + 8], 0
jne 0x476fef
mov edi, ebx
mov eax, dword [edi]
call fcn.00476948
mov dword [esi], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
call fcn.00476948
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.00476974
pop ecx
mov eax, dword [esi]
call fcn.00476948
mov dword [edi], eax
mov eax, dword [ebp - 0x105c]
call fcn.00476948
lea edx, [ebx + 4]
mov dword [edx], eax
jmp 0x477008
push ebp
mov eax, dword [ebp - 0x1054]
push eax
mov edx, ebx
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0x1050]
call fcn.00476974
pop ecx
add ebx, 8
dec dword [ebp - 0x1060]
jne 0x476f11
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477034
lea eax, [ebp + 0x14]
call fcn.00404700
ret
Function at 0x47fce4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x47fd11
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x47fd90
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0047e620
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x47fd5e
mov cx, word [esp]
sub cx, si
jmp 0x47fd60
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x47fd47
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x47fd86
mov cx, word [esp]
sub cx, si
jmp 0x47fd88
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x47fd6f
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x47fded
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0047f9b8
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x47fdd8
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x47fded
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x47fcee
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4830b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x483123
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
add eax, eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404bc0
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 4]
mov edx, 0x64
call fcn.00404d4c
push 0x64
mov eax, dword [ebp - 4]
call fcn.00404bc0
push eax
push ebx
call sub.user32.dll_GetWindowTextA
mov eax, dword [ebp - 4]
call fcn.00404bc0
mov edx, eax
mov eax, esi
call fcn.004048f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48312a
lea eax, [ebp - 4]
call fcn.00404700
ret

Function at 0x4837e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x483874
push 0
mov eax, ebx
call fcn.00404bc0
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x48384f
mov eax, esi
call fcn.004049c0
inc eax
push eax
mov eax, esi
call fcn.00404bc0
push eax
push 1
push 0
mov eax, edi
call fcn.00404bc0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x48386a
mov ecx, dword [0x511e48]
mov dl, 1
mov eax, dword [0x4834f0]
call fcn.0040d160
call fcn.00404070
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4c4063
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x51180a
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4c40bb
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x51182b
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4c40b1
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4c40bf
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4d5f84
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0x14]
shr eax, 1
add eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x4da508
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef0
mov ebx, eax
push esp
push 0x20019
push 0
push 0x4da5d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4da5ca
mov dword [esp + 4], 0x105
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x4da5f8
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4da5c1
mov eax, ebx
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00404970
mov edx, dword [ebx]
mov eax, 0x4da608
call fcn.00404d04
test eax, eax
jle 0x4da595
push ebx
mov edx, dword [ebx]
mov eax, 0x4da608
call fcn.00404d04
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00404c20
mov eax, dword [ebx]
call fcn.004049c0
cmp eax, 2
jle 0x4da5c1
mov eax, dword [ebx]
call fcn.004049c0
mov edx, eax
mov eax, dword [ebx]
call fcn.0040dd70
test al, al
jne 0x4da5c1
mov eax, ebx
mov edx, 0x4da614
call fcn.004049c8
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esp, 0x110
pop ebx
ret

Function at 0x509c00
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.00409b58
add esp, 0x100
pop ebx
ret
Function at 0x4081c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x88]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x50], 0x10
mov dword [ebp - 0x4c], pe_nt_image_headers32
mov dword [ebp - 0x48], 0x20
mov dword [ebp - 0x44], reloc.user32.dll_InSendMessage
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov eax, dword [edx + 0x3c]
lea eax, [ecx + eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0xf8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
lea ebx, [eax - 1]
mov dword [ebp - 0x24], 0
cmp ebx, dword [ebp - 0x24]
jb 0x408390
sub dword [ebp - 0x24], 1
mov esi, esi
add dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
imul edx, eax, 0x28
mov eax, dword [ebp - 0x10]
lea esi, [edx + eax]
lea edi, [ebp - 0x88]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x3c]
or eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x408292
jmp 0x408297
jmp 0x408387
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
and eax, 0x2000000
test eax, 0xffffffff
jne 0x4082ae
jmp 0x4082c4
push 0x4000
push dword [ebp - 0x30]
push dword [ebp - 0x40]
mov eax, dword [ebp - 4]
call dword [eax + 8]
jmp 0x408387
mov eax, dword [ebp - 0x34]
and eax, 0x20000000
test eax, 0xffffffff
jne 0x4082d5
jmp 0x4082de
mov dword [ebp - 0x14], 1
jmp 0x4082e5
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x34]
and eax, 0x40000000
test eax, 0xffffffff
jne 0x4082f6
jmp 0x4082ff
mov dword [ebp - 0x18], 1
jmp 0x408306
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x34]
and eax, 0x80000000
test eax, 0xffffffff
jne 0x408317
jmp 0x408320
mov dword [ebp - 0x1c], 1
jmp 0x408327
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x34]
and eax, 0x4000000
test eax, 0xffffffff
jne 0x408338
jmp 0x408341
mov dword [ebp - 0x20], 1
jmp 0x408348
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + eax - 0x60]
mov edx, dword [ebp - 0x1c]
lea eax, [eax + ecx*8]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], 1
je 0x408369
jmp 0x408374
mov eax, dword [ebp - 0x28]
or eax, 0x200
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push dword [ebp - 0x40]
mov eax, dword [ebp - 4]
call dword [eax + reloc.user32.dll_WaitForInputIdle]
cmp ebx, dword [ebp - 0x24]
ja 0x40825c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408922
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
or esi, ecx
call fcn.00408940
xor dword [edx], edi
and esi, esi
inc edx
mov ecx, esi
cmp edx, ebx
jne fcn.00408922
sub ecx, 0x9b4ce87
ret