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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x421045
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x420ff6
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x421008
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x421014
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00420e50
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x421039
push ebp
mov eax, dword [ebp - 4]
call fcn.00420f34
pop ecx
mov ebx, eax
cmp bl, 2
je 0x421014
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422e3c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4336dc
cmp dword [edi], 0
jne 0x422eb8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4336d8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x432758
mov ecx, 2
call fcn.004026a4
mov edx, 0x422e14
lea eax, [esi + 5]
call fcn.00422e34
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422e34
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 0x422e8d
mov dword [0x4336d8], 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 0x422fdc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42302c]
test si, 4
je 0x422ff0
or bl, 1
test si, 8
je 0x422ffa
or bl, 4
test si, 1
je 0x423004
or bl, 8
test si, 2
je 0x42300e
or bl, 0x10
test si, 0x10
je 0x423018
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x423027
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x423030
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x423068]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x423049
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x423058
or bl, 4
test esi, 0x20000000
je 0x423063
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x427120
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 0x4272c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40a390]
call fcn.00402b14
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004035a0
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x42729b
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.0041f374
test al, al
je 0x42728e
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x4272d4
lea eax, [ebp - 0x254]
call fcn.0040720c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42728e
xor eax, eax
push ebp
push 0x427287
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 0x42730c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x427270
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004037cc
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 0x427270
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004037cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42728e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x427191
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040ccbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4272cc
lea eax, [ebp - 0x260]
call fcn.004035a0
ret

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

Disassembly:
push ecx
mov eax, dword [0x4336b0]
cmp byte [eax + 0x85], 0
jne 0x427521
cmp dword [0x4336e8], 0
jne 0x4274e2
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x42746c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4336e8], eax
cmp dword [0x4336e4], 0
jne 0x4274fd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4336e4], eax
cmp dword [0x4336ec], 0
jne 0x427521
push esp
push 0
push 0
push 0x427410
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4336ec], eax
pop edx
ret
Function at 0x427610
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x427627
add esp, 0xfffffff0
call fcn.00402d08
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040f56c
mov dl, 1
mov eax, dword [0x40a0d4]
call fcn.00402b14
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x40a0d4]
call fcn.00402b14
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x410ae0]
call fcn.00417720
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x427780
mov eax, dword [0x432984]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00417ab8
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x428de4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x432984]
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.004086fc
test eax, eax
je 0x427708
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00406c4c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00408724
test eax, eax
je 0x42771c
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004037cc
mov eax, dword [0x4328f4]
cmp byte [eax], 0
jne 0x42774d
mov eax, ebx
call fcn.00427864
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
cmp byte [ebp - 1], 0
je 0x427775
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427ab8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4336b0]
cmp dword [eax + 0x24], 0
je 0x427b48
cmp dword [ebx + 0x74], 0
jne 0x427b45
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x427a4c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x427b45
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 0x427b14
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x427b45
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040b144
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x427b20
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x428430
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x428465
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.00403684
jmp 0x42846f
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403638
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x429054
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x42908c
mov eax, esi
call fcn.0041e284
test al, al
je 0x42908c
mov eax, dword [ebx + 0x64]
call fcn.0041e0ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42908c
push 0
mov eax, dword [ebx + 0x64]
call fcn.0041e0ec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x42d658
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x42d7ad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x2cc], 0
jne 0x42d689
cmp dword [esi + 0x2c8], 0
jne 0x42d689
xor ebx, ebx
jmp 0x42d797
cmp byte [esi + 0x2f8], 0
jne 0x42d6a2
cmp byte [esi + 0x2c0], 0
jne 0x42d6a2
mov bl, 1
jmp 0x42d797
mov eax, dword [esi + 0x2cc]
call fcn.004039e0
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
mov dword [esi + 0x2c8], edi
mov bl, 1
inc edi
jne 0x42d734
mov eax, dword [esi + 0x2cc]
call fcn.004039e0
push eax
call sub.wsock32.dll_gethostbyname
mov edi, eax
mov dword [esi + 0x2d4], edi
test edi, edi
jne 0x42d6e4
xor ebx, ebx
jmp 0x42d797
mov byte [esi + 0x2c0], 0
mov eax, dword [esi + 0x2d4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x2c8], eax
lea eax, [esi + 0x2cc]
mov edx, dword [esi + 0x2d4]
mov edx, dword [edx]
call fcn.00403754
push dword [esi + 0x2c8]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 4]
call fcn.00406dd4
mov edx, dword [ebp - 4]
lea eax, [esi + 0x2d0]
call fcn.004035f4
jmp 0x42d797
push 2
push 4
lea eax, [esi + 0x2c8]
push eax
call sub.wsock32.dll_gethostbyaddr
mov edi, eax
mov dword [esi + 0x2d4], edi
test edi, edi
jne 0x42d762
lea eax, [esi + 0x2cc]
mov edx, 0x42d7c4
call fcn.004035f4
jmp 0x42d76f
lea eax, [esi + 0x2cc]
mov edx, dword [edi]
call fcn.00403754
mov byte [esi + 0x2c0], 0
push dword [esi + 0x2c8]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 4]
call fcn.00406dd4
mov edx, dword [ebp - 4]
lea eax, [esi + 0x2d0]
call fcn.004035f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d7b4
lea eax, [ebp - 4]
call fcn.004035a0
ret

Function at 0x42da94
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x42dacd
mov eax, dword [0x432a10]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x42dac0
push ebx
push 0x42dad4
call fcn.00422ef8
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret
Function at 0x42daf4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042da94
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42db66
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x42db3a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00403754
jmp 0x42db41
mov eax, ebx
call fcn.004035a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42db6d
cmp dword [ebp - 8], 0
je 0x42db5d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.0042da68
ret

Function at 0x42db74
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42dc52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042da94
xor edx, edx
push ebp
push 0x42dc35
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x42dbfe
mov edx, ebx
mov eax, dword [0x410750]
call fcn.004145f4
test al, al
je 0x42dbee
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004144c8
call fcn.0040311c
jmp 0x42dc3c
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x42dbb9
lea edx, [ebp - 8]
mov eax, dword [0x432954]
call fcn.004048a0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x405c74]
call fcn.00407d34
call fcn.0040307c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dc3c
mov eax, dword [ebp - 4]
call fcn.0042da68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dc59
lea eax, [ebp - 8]
call fcn.004035a0
ret

Function at 0x42dc60
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042da94
xor eax, eax
push ebp
push 0x42dcb8
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dcbf
mov eax, dword [ebp - 4]
call fcn.0042da68
ret
Function at 0x42dcc8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042da94
xor edx, edx
push ebp
push 0x42dd1d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dd24
mov eax, dword [ebp - 4]
call fcn.0042da68
ret

Function at 0x42dd94
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042da94
xor eax, eax
push ebp
push 0x42de09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042da4c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004145c8
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x42ddf3
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42de10
mov eax, dword [ebp - 4]
call fcn.0042da68
ret

Function at 0x42de18
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042da94
xor eax, eax
push ebp
push 0x42de8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042da4c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x42de77
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42de94
mov eax, dword [ebp - 4]
call fcn.0042da68
ret
Function at 0x42f8d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42fa6f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0042f3f8
mov eax, dword [ebp - 0x204]
lea edx, [esi + 1]
call fcn.0040855c
cmp al, 2
jne 0x42f91e
dec esi
mov eax, ebx
call fcn.0042f6bc
test al, al
je 0x42fa0f
test esi, esi
jge 0x42f933
xor esi, esi
lea edi, [esi + 1]
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0042f3f8
mov eax, dword [ebp - 0x204]
call fcn.0040381c
cmp edi, eax
jge 0x42f97a
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0042f3f8
mov eax, dword [ebp - 0x204]
mov al, byte [eax + edi - 1]
mov edx, dword [0x432aa8]
and eax, 0xff
bt dword [edx], eax
jae 0x42f97a
inc edi
mov eax, dword [ebx + 0x138]
cmp esi, eax
jl 0x42f988
mov esi, eax
mov edi, esi
mov ecx, edi
mov edx, edi
mov eax, ebx
call fcn.0042f8b4
cmp edi, esi
je 0x42fa07
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x42f9ae
mov byte [ebp - 0x1f0], 0x81
mov byte [ebp - 0x1db], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
push 0x25
push pe_nt_image_headers32
mov eax, ebx
call fcn.0041e0ec
push eax
call sub.user32.dll_SendMessageA
push 1
push 0x25
push 0x101
mov eax, ebx
call fcn.0041e0ec
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [ebx + 0x140], esi
jmp 0x42fa56
test esi, esi
jge 0x42fa15
xor esi, esi
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0042f3f8
mov eax, dword [ebp - 0x204]
call fcn.0040381c
cmp esi, eax
jl 0x42fa4b
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0042f3f8
mov eax, dword [ebp - 0x204]
call fcn.0040381c
mov esi, eax
mov ecx, esi
mov edx, esi
mov eax, ebx
call fcn.0042f8b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fa76
lea eax, [ebp - 0x204]
call fcn.004035a0
ret
Function at 0x4946d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
mov dword [esp + 0x14], 0
lea eax, [edi + 0x114]
push eax
push 0
push 0x70
call ebp
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [edi + 0x10c], eax
mov eax, dword [esp + 0x10]
lea esi, [edi + 8]
mov ecx, eax
inc eax
push ecx
mov dword [esp + 0x14], eax
call ebx
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add esi, 4
cmp eax, 0x1f
jl 0x494713
push 0x65b814
call fcn.00494650
add esp, 4
lea ecx, [edi + 0x110]
push 0
push ecx
push 0
push 0x5e
call ebp
push 0x85b9f8
call fcn.00494650
add esp, 4
lea edx, [edi + 0x178]
push 0
push edx
push 0
push 0x2006
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.Control_PanelAppearanceNew_Schemes
push connect
mov dword [edi + 0x11c], 0
call ebx
test eax, eax
jne 0x494849
call fcn.00494600
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
lea esi, [edi + 0x1188]
push ecx
push esi
push 0
push 0
push str.SelectedStyle
push edx
mov dword [esp + 0x28], 0x28
mov word [esi], 0
call ebp
test eax, eax
jne 0x49483e
cmp dword [esp + 0x10], 2
jbe 0x49483e
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push esi
push ecx
call ebx
test eax, eax
jne 0x49483e
mov ecx, dword [esp + 0x18]
mov word [esp + 0x20], ax
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push str.SelectedSize
push ecx
mov dword [esp + 0x28], 0x28
call ebp
cmp word [esp + 0x20], 0
je 0x49482a
cmp dword [esp + 0x10], 2
jbe 0x49482a
mov eax, 0xfffffffe
jmp 0x49482d
or eax, 0xffffffff
mov edx, dword [esp + 0x18]
mov dword [edi + 0x11b0], eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x5ac11266
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x15521dfd
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x433cb0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402ca6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4017f0
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.00406778
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, eax
call esi
lea ecx, [ebp - 0x28]
push ecx
push 0x28
push edi
call fcn.004067d8
mov edi, eax
call esi
xor edx, edx
cmp edi, ebx
sete dl
neg edx
test dx, dx
jne 0x433dbf
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x30]
push eax
push 0x406990
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push ebx
call fcn.00406828
mov edi, eax
call esi
xor edx, edx
cmp edi, ebx
sete dl
neg edx
lea ecx, [ebp - 0x30]
mov edi, edx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp di, bx
jne 0x433dbf
mov ecx, dword [ebp - 0x28]
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
push ebx
push ecx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
call fcn.00406878
mov edi, eax
call esi
cmp edi, ebx
je 0x433dbf
mov edx, dword [ebp + 8]
push edx
push ebx
push 0x1f0fff
call fcn.004068bc
mov edi, eax
call esi
cmp edi, ebx
je 0x433da9
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00406920
call esi
push edi
call fcn.00405cf4
call esi
mov edx, dword [ebp - 0x28]
push ebx
push ebx
lea ecx, [ebp - 0x24]
push ebx
push ecx
push ebx
push edx
mov dword [ebp - 0x18], ebx
call fcn.00406878
call esi
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x433dce
push eax
call fcn.00405cf4
call esi
mov dword [ebp - 0x2c], 0xffffffff
push 0x433de7
jmp 0x433de6
ret
Function at 0x403e2c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x462008], 0x8088405
inc edx
mov dword [ebx + 0x462008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x421118
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42111e
ret