joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bd35
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042bcb1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42bead
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42bead
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42be5c
jg 0x42bd8e
test eax, eax
je 0x42be52
push 1
push 0x1000
call fcn.0041e0dc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42bdb4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42be49
push 0x8000
push ebx
call fcn.0041ae75
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42bde0
jg 0x42bddb
cmp ecx, 0x1000
jb 0x42bde0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041fb75
add esp, 0x10
cmp eax, 0xffffffff
je 0x42be25
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42bddb
jl 0x42be0c
test ecx, ecx
jne 0x42bdcd
push dword [ebp - 0xc]
push ebx
call fcn.0041ae75
push esi
call fcn.0041c832
add esp, 0xc
xor edi, edi
jmp 0x42bebe
cmp byte [edi + 0x24], 0
je 0x42be3c
cmp dword [edi + 0x20], 5
jne 0x42be3c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42be47
mov edi, dword [edi + 0x18]
jmp 0x42be49
xor edi, edi
push esi
call fcn.0041c832
pop ecx
jmp 0x42bebe
test ecx, ecx
jg 0x42be1e
jl 0x42be5c
test eax, eax
jae 0x42be1e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ff7c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42be7f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42be1e
jmp 0x42beb6
push ebx
call fcn.004258cc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42be1e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42bebe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42bebb
mov edi, dword [edi + 0x18]
jmp 0x42bebe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041ff7c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a500
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000a6c4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x1000a52a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1000a531
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1000a520
mov eax, 1
add ebx, ebx
jne 0x1000a543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1000a538
jne 0x1000a554
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000a538
xor ecx, ecx
sub eax, 3
jb 0x1000a568
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1000a5da
mov ebp, eax
add ebx, ebx
jne 0x1000a573
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1000a580
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1000a5a4
inc ecx
add ebx, ebx
jne 0x1000a590
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1000a585
jne 0x1000a5a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000a585
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1000a5c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1000a5b5
jmp 0x1000a526
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1000a5c4
add edi, ecx
jmp 0x1000a526
pop esi
mov edi, esi
mov ecx, 0x76
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1000a5e2
cmp byte [edi], 1
jne 0x1000a5e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1000a5e7
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x1000a656
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa44c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa474]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1000a614
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa478]
or eax, eax
je 0x1000a650
mov dword [ebx], eax
add ebx, 4
jmp 0x1000a631
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1000a687
cmp al, 0xef
ja 0x1000a67a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1000a65c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1000a669
mov ebp, dword [esi + 0xa47c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1000a6bb
sub esp, 0xffffff80
jmp 0x10001af0
Function at 0x40a31c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040a308
add esp, 0x208
pop ebx
ret

Function at 0x40aa2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x509b6c
push 0xa
push 0x40aac0
mov eax, dword [0x509b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40aa50
call fcn.0041362c
push ebx
mov eax, dword [0x509b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40aa67
call fcn.0041362c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40aa79
call fcn.0041362c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x509b70], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x509b74], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x509b78], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x509b7c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x509b80], ecx
add edx, dword [eax + 0x14]
mov dword [0x509b84], edx
pop esi
pop ebx
ret

Function at 0x40c168
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c211
test eax, edx
je 0x40c214
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c191
push edx
mov edx, eax
mov eax, esp
call fcn.0040665c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c1a7
push eax
lea eax, [esp + 8]
call fcn.0040665c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c1b6
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c1dd
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40c1f7
add ecx, 4
js 0x40c1ce
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c1f4
push eax
mov eax, ecx
mov edx, 2
call fcn.004052a0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c1db
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c1dd
xor eax, eax
ret
test eax, eax
je 0x40c224
test edx, edx
jne 0x40c178
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x411030
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x411069
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406584
jmp 0x411072
mov eax, ebx
mov edx, esi
call fcn.00406448
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41107c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41109e
movzx eax, word [esp]
jmp 0x4110a0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411828
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41194d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041163c
mov esi, eax
mov eax, dword [0x505ef0]
cmp byte [eax], 0
je 0x4118f5
mov eax, dword [0x505b9c]
call fcn.00403450
call fcn.00403180
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x411804]
call fcn.00408024
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x411968
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x411931
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x505b18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x509b50]
call fcn.00408118
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411954
lea eax, [ebp - 4]
mov edx, dword [0x411804]
call fcn.00408030
ret
Function at 0x4125ac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x412682
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040649c
lea eax, [ebp - 4]
call fcn.00406eb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41266c
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x412665
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41264f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x412694
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41264f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41266c
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412689
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x41345b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040565c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41347e
mov eax, edi
add eax, eax
call fcn.00403018
mov esi, eax
jmp 0x413480
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4134b9
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4134a3
mov eax, esp
cmp esi, eax
je 0x4134c6
mov eax, esi
call fcn.00403034
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x413500
cmp bl, 0
je 0x4134fc
cmp bl, 0x41
jl 0x4134f7
cmp bl, 0x5a
jg 0x4134f7
or bl, 0x20
xor al, bl
inc esi
jmp 0x4134db
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x413440

Function at 0x42abb8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042a8bc
dec esi
jne 0x42abda
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42bda0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x50bea4
cmp dword [edi], 0
jne 0x42be1c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x50bea0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x503ecc
mov ecx, 2
call fcn.004031d0
mov edx, 0x42bd78
lea eax, [esi + 5]
call fcn.0042bd98
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042bd98
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 0x42bdf1
mov dword [0x50bea0], 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 0x42ec24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004064d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x42ec7c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x506088]
mov dl, 1
mov eax, dword [0x42e6a4]
call fcn.00411a98
call fcn.00404a74
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042e82c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42fbbc
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 0x42fbc2
ret
Function at 0x44d318
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406448
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x44d35f
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406640
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x452778
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 0x4528b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x42e718]
call fcn.0042e854
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x452887
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0042e8f4
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00406640
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4528cc
call fcn.00406914
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042e958
test al, al
je 0x452871
lea ecx, [ebp - 4]
mov edx, 0x452940
mov eax, dword [ebp - 0xc]
call fcn.0042eba4
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00413ca8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x45286a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x452958
mov eax, dword [ebp - 8]
push eax
call fcn.00409620
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x504aa0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452871
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45288e
mov eax, dword [ebp - 0xc]
call fcn.00404098
ret

Function at 0x4529bc
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 0x452a03
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4529e6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4529f7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x452a03
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x45883c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x50c124], 0
je 0x45897d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x505e5c]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x45897d
mov eax, dword [0x50c128]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x50c124]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x45894c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x50c124]
call fcn.00423584
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x458944
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x458944
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x458944
mov eax, dword [ebp - 0x14]
call fcn.00463aa8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458944
push ebp
call fcn.004587f8
pop ecx
test al, al
jne 0x458944
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004042a8
test al, al
je 0x458944
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.004042a8
cmp byte [ebp - 1], 0
je 0x458944
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.004091b8
test al, al
je 0x458944
mov edx, dword [ebp - 0x14]
mov eax, dword [0x50c128]
call fcn.00457f70
inc edi
dec ebx
jne 0x4588a1
mov eax, dword [0x50c128]
cmp dword [eax + 8], 0
jle 0x458964
mov eax, dword [0x50c128]
call fcn.00458028
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45897d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0045865c
pop ecx
test al, al
jne 0x45897d
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460794
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.004091a0
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0045acb8
test ebx, ebx
jne 0x4607e7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00460628
mov ebx, eax
test ebx, ebx
je 0x4608d2
cmp esi, ebx
je 0x460810
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x460825
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x46085d
add eax, 0xffffff5f
sub eax, 2
jb 0x460875
dec eax
sub eax, 2
jb 0x460889
dec eax
sub eax, 2
jb 0x46087f
jmp 0x460893
add eax, 0xfffffdff
sub eax, 2
jb 0x460875
dec eax
sub eax, 2
jb 0x460889
dec eax
sub eax, 2
jb 0x46087f
jmp 0x460893
mov byte [esp + 0x120], 0
jmp 0x46089b
mov byte [esp + 0x120], 2
jmp 0x46089b
mov byte [esp + 0x120], 1
jmp 0x46089b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00471040
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0045c4f0
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4608d4
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x470b44
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x470b65
test edi, 0x40000
je 0x470b7f
test bl, bl
jne 0x470c00
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x470c00
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 0x470bb2
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x470bc7
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x470bd6
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x470be7
cmp byte [esp + 2], 0
je 0x470c00
cmp byte [esp + 2], 0
je 0x470bf8
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x470c00
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x470eac
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 0x470ed2
mov eax, esp
push eax
push 0x470e74
call sub.user32.dll_EnumWindows
jmp 0x470ee5
mov eax, esp
push eax
push 0x470e54
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 0x470fa8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x470ffc]
test si, 4
je 0x470fbd
or bl, 1
test si, 8
je 0x470fc7
or bl, 4
test si, 1
je 0x470fd1
or bl, 8
test si, 2
je 0x470fdb
or bl, 0x10
test si, 0x10
je 0x470fe5
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x470ff4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x471000
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x47103c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47101a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x471029
or bl, 4
test esi, 0x20000000
je 0x471034
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret