joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eeeb
Capabilities:
Delete registry key

Disassembly:
mov dword [0x41b074], 0
push ebp
mov ecx, dword [esp + 0xc]
mov ebp, esp
sub esp, 0x234
cmp dword [ecx + 0x1c], 0
push ebx
push esi
push edi
mov esi, dword [section..data]
jne 0x40ef18
xor eax, eax
jmp 0x40f104
push 0
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp + 0xc]
push dword [ecx + 0x10]
push esi
call fcn.0040fa48
mov edi, eax
lea ecx, [ebp - 0x134]
lea eax, [ebp - 8]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40ef4f
mov edi, 0x42
jmp 0x40f0a9
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x234]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea ecx, [ebp - 0x234]
push 0
push ecx
call dword [sym.imp.COMCTL32.dll_Ordinal_351]
mov ebx, eax
test ebx, ebx
je 0x40ef7d
inc ebx
jmp 0x40ef83
lea ebx, [ebp - 0x234]
mov ecx, dword [ebp + 0xc]
mov byte [ebx], 0
push dword [ecx + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0xc], eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x100
jl 0x40efbe
mov edi, 0x43
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f0a4
mov ecx, dword [ebp + 0xc]
push dword [ecx + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push ebx
call dword [sym.imp.COMCTL32.dll_Ordinal_350]
test eax, eax
je 0x40efe8
mov edi, 0x45
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f0a4
lea eax, [ebp - 4]
lea ecx, [ebp - 0x234]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40f013
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x44
push dword [ebp - 4]
call ebx
jmp 0x40f0a4
lea eax, [ebp - 4]
lea ecx, [ebp - 0x234]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40f036
mov edi, 0x42
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f0a4
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040e7ff
push dword [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0
push 9
push 0x110a
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x40f088
mov eax, dword [0x41b018]
push eax
call ebx
mov eax, dword [ebp - 4]
push 0
push 0
mov dword [0x41b018], eax
push 0x401
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40f08d
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0x134]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40f0ff
mov edi, 0x42
push dword [ebp - 8]
call ebx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x134]
mov dword [ebp - 0x34], 1
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x100
push ecx
push 0
push 0x110c
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, di
lea ecx, [ebp - 0x134]
push ecx
push 0x10
push 0x40
push eax
push dword [ebp + 8]
push dword [0x41a560]
call sub.SHELL32.dll_ShellMessageBoxA
add esp, 0x18
xor eax, eax
jmp 0x40f104
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f3fd
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [section..data]
push ebx
push edi
call fcn.0040fcbb
test eax, eax
je 0x40f56a
push 0x34
mov esi, dword [ebp + 8]
push 0x31
mov eax, dword [0x41a560]
push 0x30
push esi
push eax
call sub.SHELL32.dll_ShellMessageBoxA
add esp, 0x14
cmp eax, 6
jne 0x40f56a
push 0
push 9
push 0x110a
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
jne 0x40f475
cmp dword [0x41b018], 0
je 0x40f475
mov eax, dword [0x41b018]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x41b018], 0
push 0
lea eax, [ebp - 0x128]
push eax
push ebx
push edi
call fcn.0040fa48
lea ecx, [ebp - 0x128]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40f522
push 0
push 0
push 0xb
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 3
push 0x110a
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
push ebx
push 0
push 0x1101
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
push 4
push 0x110a
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x40f50c
mov dword [ebp - 0x28], 0x48
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x60
push eax
push 0
push 0x110d
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 0xb
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x40f56a
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x24], ebx
push 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x14], 0x100
push 0x110c
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x128]
mov eax, dword [0x41a560]
push ecx
push 0x10
push 0x50
push 0x52
push esi
push eax
call sub.SHELL32.dll_ShellMessageBoxA
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40fb5e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push edi
push 3
push 0x110a
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40fc30
push 0
lea eax, [ebp - 0x108]
push eax
push edi
push esi
call fcn.0040fa48
lea ecx, [ebp - 4]
lea edx, [ebp - 0x108]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40fbb4
xor eax, eax
jmp 0x40fc35
mov ebx, 0xff
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], 1
sub ebx, eax
lea eax, [ebp - 0x108]
push ebx
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40fc27
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call fcn.0040fc3e
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0xffff0003
push edi
push esi
call fcn.0040fb0a
mov eax, dword [ebp - 8]
push ebx
lea ecx, [ebp - 0x108]
inc dword [ebp - 8]
push ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40fbe6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40fc3e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40fc86
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40fc7d
mov esi, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40fd2c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
cmp dword [0x41b018], 0
push ebx
push esi
push edi
je 0x40fe97
mov edi, 1
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov eax, dword [0x41b03c]
push eax
lea ecx, [ebp - 0x128]
push ecx
call esi
add esp, 0xc
lea ecx, [ebp - 4]
lea eax, [ebp - 0x128]
push ecx
push 0
push ecx
push 0
push eax
push dword [0x41b018]
call ebx
test eax, eax
jne 0x40fdc0
inc edi
cmp edi, 0x64
jb 0x40fd56
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
cmp edi, 0x64
jne 0x40fe1f
mov eax, 0xaa
movzx eax, ax
push 0x10
push 0xa8
push eax
push dword [ebp + 8]
push dword [0x41a560]
call sub.SHELL32.dll_ShellMessageBoxA
add esp, 0x14
jmp 0x40fe97
mov esi, dword [ebp + 0xc]
cmp esi, 1
je 0x40fdfc
cmp esi, 3
je 0x40fe0a
cmp esi, 4
je 0x40fe0e
mov ebx, dword [ebp - 4]
push ebx
lea eax, [ebp - 0x128]
push 0x416550
push esi
push 0
push eax
push dword [0x41b018]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40fd91
mov eax, 0xa9
jmp 0x40fd9f
mov byte [0x416550], 0
mov ebx, 1
jmp 0x40fdd5
xor ebx, ebx
jmp 0x40fdd5
mov dword [0x416550], 0
mov ebx, 4
jmp 0x40fdd5
lea eax, [ebp - 0x128]
push 0
push 0
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x1004
mov dword [ebp - 0x14], eax
push dword [0x41b004]
mov dword [ebp - 0x28], 3
call edi
lea ecx, [esi - 1]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
cmp ecx, 1
lea ecx, [ebp - 0x28]
sbb eax, eax
push ecx
add eax, 5
push 0
push 0x1007
mov dword [ebp - 0xc], eax
push dword [0x41b004]
call edi
cmp eax, 0xffffffff
mov edi, eax
je 0x40fe97
push esi
mov eax, dword [0x41b004]
push ebx
push 0x416550
push edi
push eax
call fcn.00410634
push edi
mov eax, dword [0x41b004]
push eax
call fcn.004107b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40febd
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ecx, dword [0x41b004]
mov ebp, esp
sub esp, 0x130
mov dword [0x41b074], 0
push esi
push edi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x20], 0
je 0x40ffbe
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x1c], eax
push dword [esi + 0x10]
push 0x102d
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0x100
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push 0
push ecx
push 0
push dword [esi + 0x20]
push dword [0x41b018]
call edi
cmp eax, 2
je 0x40ff35
mov eax, 0x4a
jmp 0x40ff9a
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0x130]
push 0x416550
mov eax, dword [0x41b018]
mov dword [ebp - 4], 0x4000
push ecx
push 0
push edx
push eax
call edi
test eax, eax
jne 0x40ff95
push dword [ebp - 4]
push 0x416550
push dword [ebp - 8]
push 0
push dword [esi + 0x20]
mov eax, dword [0x41b018]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40ff95
lea eax, [ebp - 0x130]
push eax
push dword [0x41b018]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40ffbe
mov eax, 0x49
movzx eax, ax
lea ecx, [ebp - 0x130]
push ecx
push 0x10
push 0x48
push eax
push dword [ebp + 8]
push dword [0x41a560]
call sub.SHELL32.dll_ShellMessageBoxA
add esp, 0x18
xor eax, eax
jmp 0x40ffc3
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4101a1
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
mov esi, dword [0x41b004]
push 0
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x1032
push esi
call ebx
cmp eax, 1
je 0x4101df
test eax, eax
je 0x410341
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x410341
push 2
push 0xffffffffffffffff
push 0x100c
push esi
call ebx
mov edi, eax
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x134]
push ecx
push edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0x100
push 0x102d
push esi
call ebx
test edi, edi
jne 0x41021c
mov byte [ebp - 0x134], 0
lea eax, [ebp - 0x134]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push 0x416550
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x416550
mov dword [ebp - 8], 0x4000
push edx
push 0
push eax
push dword [0x41b018]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41025d
mov eax, 0x72
jmp 0x4102e7
test edi, edi
jne 0x410275
mov eax, dword [0x41b024]
mov al, byte [eax]
mov dword [ebp - 4], 1
mov byte [ebp - 0x134], al
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x410309
cmp eax, 4
je 0x410318
mov edx, 0x67
mov eax, 0x41087c
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp + 8]
movzx ecx, dx
push ecx
mov eax, dword [0x41a560]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x410341
test edi, edi
jne 0x4102c0
mov byte [ebp - 0x134], 0
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0
lea eax, [ebp - 0x134]
push eax
push dword [0x41b018]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x410331
mov eax, 0x73
movzx eax, ax
lea ecx, [ebp - 0x134]
push ecx
push 0x10
push 0x70
push eax
push dword [ebp + 8]
push dword [0x41a560]
call sub.SHELL32.dll_ShellMessageBoxA
add esp, 0x18
jmp 0x410341
mov edx, 0x66
mov eax, 0x411f58
jmp 0x410294
cmp dword [ebp - 8], 4
jne 0x41028a
mov edx, 0x6f
mov eax, 0x412110
jmp 0x410294
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
push esi
call fcn.00410634
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41034a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
mov esi, dword [0x41b004]
push 0
push 0
push 0x1032
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
dec eax
push 0x34
push 0x33
cmp eax, 1
sbb eax, eax
and eax, 2
add eax, 0x32
movzx ecx, ax
push ecx
mov eax, dword [0x41a560]
push dword [ebp + 8]
push eax
call sub.SHELL32.dll_ShellMessageBoxA
add esp, 0x14
cmp eax, 6
jne 0x41047b
push 0
mov edi, 0xffffffff
push 0
push 0xb
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], 0
push 2
push edi
push 0x100c
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
mov ebx, eax
je 0x410451
test ebx, ebx
je 0x4103fb
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0x100
push ebx
push 0x102d
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x410402
mov byte [ebp - 0x128], 0
lea eax, [ebp - 0x128]
push eax
push dword [0x41b018]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x410443
test ebx, ebx
je 0x41042e
push 0
push ebx
push 0x1008
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4103b3
push 1
xor edi, edi
push 0
push 0
push 0
push esi
call fcn.00410634
jmp 0x4103b3
mov dword [ebp - 4], 1
mov edi, ebx
jmp 0x4103b3
push 0
push 1
push 0xb
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 4], 0
je 0x41047b
push 0x10
push 0x58
push 0x59
push dword [ebp + 8]
push dword [0x41a560]
call sub.SHELL32.dll_ShellMessageBoxA
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4104c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
push 1
mov edi, dword [0x41b004]
call fcn.0040e46f
push 0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0xb
push edi
call esi
push 0
push 0
push 0x1009
push edi
call esi
cmp dword [0x41b018], 0
je 0x41061b
lea eax, [ebp - 0x158]
push 0xfffffffffffffff0
push edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x50], 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
or al, 0x10
xor ebx, ebx
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
mov ecx, ebx
lea eax, [ebp - 4]
inc ebx
push eax
push 0x416550
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push 0
lea edx, [ebp - 0x158]
mov dword [ebp - 0xc], 0x100
mov dword [ebp - 4], 0x4000
push eax
push edx
push ecx
mov eax, dword [0x41b018]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4105b3
cmp dword [ebp - 0xc], 0
jne 0x410582
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x58]
dec eax
push ecx
push 0
cmp eax, 1
sbb eax, eax
push 0x1007
add eax, 5
push edi
mov dword [ebp - 0x3c], eax
call esi
push dword [ebp - 8]
push dword [ebp - 4]
push 0x416550
push eax
push edi
call fcn.00410634
jmp 0x410539
push dword [ebp - 0x34]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [0x41b024]
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x3c], 4
cmp dword [ebp - 0x30], 0
push 0
je 0x4105ec
push 0x1006
push edi
call esi
jmp 0x410602
push 0x1007
push edi
call esi
push 1
push 0
push 0
push 0
push edi
call fcn.00410634
mov eax, 1
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x20], eax
push 0
mov dword [ebp - 0x24], eax
push 0x102b
push edi
call esi
push 0
push 1
push 0xb
push edi
call esi
push 0
call fcn.0040e46f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411542
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, 1
push edi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jl 0x41155e
xor ebx, ebx
push 0x10
call esi
test ax, ax
mov esi, 1
jl 0x41156e
xor esi, esi
mov ecx, dword [0x416428]
mov edi, dword [ebp + 0xc]
lea eax, [edi - 0x21]
cmp eax, 0xd
ja case.0x411583.41
jmp dword [eax*4 + 0x4116cb]
mov ebx, dword [0x416428]
mov eax, dword [0x416418]
shl eax, 3
lea ecx, [edi - 0x21]
sub ebx, eax
push 0
cmp ecx, 1
sbb eax, eax
add eax, 3
push eax
push 0
push dword [ebp + 8]
call fcn.00410ee1
mov edx, dword [0x416418]
cmp edi, 0x21
lea ecx, [ebx + edx*8]
jne 0x411636
jmp 0x411625
test ebx, ebx
jne 0x411673
test byte [0x4163f0], 0x10
jne case.0x411583.41
and cl, 0xf8
add ecx, 8
cmp ecx, dword [0x4163f8]
jg 0x41163e
or byte [0x4163f0], 0x10
jmp 0x411644
test ebx, ebx
je 0x4115f6
xor ecx, ecx
jmp 0x411607
test byte [0x4163f0], 0x10
je 0x411604
sub ecx, 8
jmp 0x411607
and cl, 0xf8
and byte [0x4163f0], 0xef
jmp 0x411644
and byte [0x4163f0], 0xef
dec ecx
jmp 0x411625
test ebx, ebx
jne case.0x411583.41
sub ecx, 8
test ecx, ecx
jge 0x411644
jmp case.0x411583.41
and byte [0x4163f0], 0xef
inc ecx
cmp ecx, dword [0x4163f8]
jle 0x411644
mov ecx, dword [0x4163f8]
push esi
push ecx
push dword [ebp + 8]
call fcn.004119f4
jmp case.0x411583.41
test ebx, ebx
jne case.0x411583.41
add ecx, 8
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, dword [0x416414]
jle 0x411636
test byte [0x4163f0], 0x10
je case.0x411583.41
and byte [0x4163f0], 0xef
jmp 0x41163e
test esi, esi
je 0x411692
test ebx, ebx
jne case.0x411583.41
push 0
push 0x16
push dword [ebp + 8]
call fcn.00411703
jmp case.0x411583.41
test ebx, ebx
je case.0x411583.41
push 0
push 3
push dword [ebp + 8]
call fcn.00411703
jmp case.0x411583.41
test ebx, ebx
jne case.0x411583.41
test esi, esi
je 0x4116ba
push 0
push 0x18
push dword [ebp + 8]
call fcn.00411703
jmp case.0x411583.41
push 0x2e
push dword [ebp + 8]
call fcn.00411bbe
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x411ca7
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
mov esi, dword [0x416430]
push ebp
sub esi, dword [0x41642c]
je 0x411d2d
mov ebx, dword [0x4163f4]
mov ebp, dword [sym.imp.USER32.dll_OpenClipboard]
push dword [esp + 0x14]
add ebx, dword [0x41642c]
call ebp
test eax, eax
je 0x411d2d
lea eax, [esi + 7]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x2002
call ebp
mov edi, eax
test edi, edi
je 0x411d2d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
push esi
push ebx
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
push edi
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
mov eax, dword [0x41643c]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, dword [sym.imp.USER32.dll_CloseClipboard]
call ebp
mov eax, 1
jmp 0x411d2f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x411d36
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor esi, esi
test byte [0x4163f0], 8
push ebp
je 0x411d55
and byte [0x4163f0], 0xf7
inc dword [0x416428]
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x411e0a
mov eax, dword [0x41643c]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x411e0a
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x10], eax
mov eax, dword [eax]
add eax, dword [0x4163f8]
cmp eax, 0x4000
ja 0x411dfd
mov eax, dword [0x416430]
cmp dword [0x41642c], eax
je 0x411dad
push 8
push edi
call fcn.00411bbe
mov esi, dword [0x4163f4]
mov eax, dword [esp + 0x10]
add esi, dword [0x416428]
mov ebp, dword [eax]
mov eax, dword [0x4163f8]
lea ecx, [esi + ebp]
sub eax, dword [0x416428]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
mov eax, dword [esp + 0x10]
push ebp
add eax, 4
push eax
push esi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
push edi
add dword [0x4163f8], ebp
add dword [0x416428], ebp
call fcn.00410e83
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 4

Function at 0x4126a1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push 0x500
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov dword [0x4162b4], eax
test eax, eax
jne 0x412755
push 0x128
push 0x4162c0
push 0x502
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
cmp byte [0x4162c0], 0
jne 0x4126f2
mov dword [0x4162b4], 1
jmp 0x412755
push 0
lea eax, [ebp - 4]
push 0x4162c0
push eax
call fcn.00412bd2
test eax, eax
je 0x41274c
cmp dword [ebp + 0xc], 0
je 0x412715
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x10
lea eax, [ebp - 0x104]
push eax
push 0x94
push esi
push dword [0x41a560]
call sub.SHELL32.dll_ShellMessageBoxA
add esp, 0x14
mov eax, 1
jmp 0x412757
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x412c80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [0x4162ac], 0x80
push ebx
lea eax, [ebp - 0x8c]
push esi
xor ebx, ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [0x416290], eax
cmp eax, 0xffffffff
je 0x412d5c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x64
sub edx, edx
mov esi, 0x412af0
mov dword [0x4162a4], ebx
div ecx
mov dword [0x4162a0], eax
mov dword [0x4162a8], ebx
mov dword [0x416294], 0x200
call fcn.004134f8
cmp byte [0x412af0], bl
je 0x412d06
mov al, byte [esi]
push eax
call fcn.00413625
test eax, eax
je 0x412d06
inc esi
cmp byte [esi], 0
jne 0x412cf4
cmp byte [esi], 0
jne 0x412d44
push 0x34
call fcn.00413625
mov esi, eax
call fcn.004134f8
lea eax, [ebp - 1]
push eax
call fcn.00413560
test eax, eax
je 0x412d4e
push dword [ebp - 1]
call fcn.00413671
test eax, eax
je 0x412d4e
test esi, esi
je 0x412d3d
call fcn.00412f0b
jmp 0x412d4e
call fcn.00412d6e
jmp 0x412d4e
mov dword [0x4162ac], 0x85
mov eax, dword [0x416290]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412d66
mov dword [0x4162ac], 0x81
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4