joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47de6c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47de83
add esp, 0xfffffff0
call fcn.004037bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bf4c
mov eax, dword [0x51e704]
cmp word [eax + 2], 0
jne 0x47deab
mov eax, dword [0x51e704]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047f5ec
mov eax, dword [0x51e948]
cmp word [eax + 2], 0
jne 0x47dec5
mov eax, dword [0x51e948]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047f7e4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41276c]
call fcn.00403468
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41276c]
call fcn.00403468
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41e544]
call fcn.00426284
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x47e04c
mov eax, dword [0x51e454]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426654
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x47fd94
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x51e454]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040d0b8
test eax, eax
je 0x47dfba
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409208
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d0e0
test eax, eax
je 0x47dfce
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.004044dc
mov eax, dword [0x51e034]
cmp byte [eax], 0
jne 0x47e002
mov eax, ebx
call fcn.0047e174
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0047ff70
mov eax, ebx
call fcn.00480934
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47e042
call fcn.00403814
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47e3f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x51fbe8]
cmp dword [eax + 0x30], 0
je 0x47e49e
cmp dword [ebx + 0x94], 0
jne 0x47e498
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47e384
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47e498
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 0x47e45e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47e498
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.00414e40
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47e46d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47f000
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 0x47f035
push 0x100
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.0040435c
jmp 0x47f042
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042c0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x48014c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x48018d
mov eax, esi
call fcn.00464e18
test al, al
je 0x48018d
mov eax, dword [ebx + 0x84]
call fcn.00464b14
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48018d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00464b14
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4816e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4817a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x138], 0
je 0x481711
mov dl, 1
mov eax, dword [0x480a68]
call fcn.0048111c
call fcn.00403c24
lea esi, [ebx + 0xe0]
mov dword [esi], 0x58
mov eax, ebx
call fcn.00481688
test al, al
je 0x481738
push ebx
push 0x4812c0
call fcn.0041d0ac
mov dword [esi + 4], eax
jmp 0x481746
push ebx
push 0x481588
call fcn.0041d0ac
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 7
mov eax, dword [0x51a13c]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x70]
call fcn.004263c0
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
lea edx, [ebx + 0x30]
call fcn.004044d0
mov edx, dword [ebp - 4]
lea eax, [esi + 0x18]
call fcn.00409264
lea eax, [ebx + 0xe0]
push eax
push 0
call sub.shell32.dll_Shell_NotifyIconA
mov byte [ebx + 0x138], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4817ad
lea eax, [ebp - 4]
call fcn.0040426c
ret
Function at 0x481b28
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x481bff
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x138], 0
je 0x481b59
mov dl, 1
mov eax, dword [0x480a68]
call fcn.0048111c
call fcn.00403c24
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x164]
mov ecx, dword [eax]
call dword [ecx + 8]
lea esi, [ebx + 0xe0]
mov dword [esi], 0x58
mov eax, ebx
call fcn.00481a18
test al, al
je 0x481b8e
push ebx
push 0x4812c0
call fcn.0041d0ac
mov dword [esi + 4], eax
jmp 0x481b9c
push ebx
push 0x481588
call fcn.0041d0ac
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 7
mov eax, dword [0x51a13c]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x164]
call fcn.004263c0
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
lea edx, [ebx + 0x30]
call fcn.004044d0
mov edx, dword [ebp - 4]
lea eax, [esi + 0x18]
call fcn.00409264
lea eax, [ebx + 0xe0]
push eax
push 0
call sub.shell32.dll_Shell_NotifyIconA
mov byte [ebx + 0x138], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481c06
lea eax, [ebp - 4]
call fcn.0040426c
ret

Function at 0x48a904
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
or ecx, 0xffffffff
cmp edx, 0xfff1
ja 0x48a947
mov ebx, eax
mov eax, edx
test ax, ax
jbe 0x48a945
mov dx, 1
movzx esi, dx
movzx esi, byte [ebx + esi - 1]
mov edi, ecx
and edi, 0xff
xor esi, edi
mov esi, dword [esi*4 + 0x51a7a8]
shr ecx, 8
xor esi, ecx
mov ecx, esi
inc edx
dec ax
jne 0x48a91f
not ecx
mov eax, ecx
pop edi
pop esi
pop ebx
ret
Function at 0x494be8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
mov edi, 0xad6da6ad
mov cl, 0xad
jmp 0x494c00
xor dword [edx], edi
add eax, 4
add edx, 4
lea ebx, [eax + 4]
cmp esi, ebx
jge 0x494bf8
cmp esi, eax
jle 0x494c13
xor byte [edx], cl
inc eax
inc edx
cmp esi, eax
jg 0x494c0b
pop edi
pop esi
pop ebx
ret
Function at 0x4a36ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, eax
mov byte [esp + 4], 0
mov edx, esp
mov eax, edi
call fcn.004a2fc4
mov eax, dword [edi + 0x5c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a3775
mov eax, dword [edi + 0x5c]
mov edx, esi
call fcn.00414e40
mov ebp, eax
mov eax, dword [esp]
mov ebx, dword [eax + 8]
dec ebx
cmp ebx, 0
jl 0x4a374f
mov edx, ebx
mov eax, dword [esp]
call fcn.00414e40
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp + 0x8c]
jne 0x4a3749
cmp byte [ebp + 8], 0
je 0x4a3749
xor ebp, ebp
jmp 0x4a374f
dec ebx
cmp ebx, 0xffffffff
jne 0x4a3727
test ebp, ebp
je 0x4a376f
mov eax, ebp
call fcn.004a2ce4
cmp byte [ebp + 9], 0
jne 0x4a376a
mov eax, dword [edi + 0x5c]
mov edx, esi
call fcn.00414d30
mov byte [esp + 4], 1
dec esi
cmp esi, 0xffffffff
jne 0x4a370f
mov eax, dword [esp]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4a3804
inc eax
mov dword [esp + 8], eax
xor esi, esi
mov eax, dword [edi + 0x5c]
mov ebp, dword [eax + 8]
dec ebp
test ebp, ebp
jl 0x4a37fd
inc ebp
xor ebx, ebx
mov edx, esi
mov eax, dword [esp]
call fcn.00414e40
mov eax, dword [eax + 0x8c]
push eax
mov eax, dword [edi + 0x5c]
mov edx, ebx
call fcn.00414e40
pop edx
cmp edx, dword [eax + 0x8c]
jne 0x4a37f9
mov eax, dword [edi + 0x5c]
mov edx, ebx
call fcn.00414e40
cmp byte [eax + 8], 0
je 0x4a37f9
mov edx, esi
mov eax, dword [esp]
call fcn.00414e40
xor edx, edx
mov dword [eax + 4], edx
mov edx, esi
mov eax, dword [esp]
call fcn.00414e40
call fcn.00403498
xor ecx, ecx
mov edx, esi
mov eax, dword [esp]
call fcn.00414f8c
jmp 0x4a37fd
inc ebx
dec ebp
jne 0x4a3799
inc esi
dec dword [esp + 8]
jne 0x4a378b
mov eax, dword [esp]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4a3844
inc eax
mov dword [esp + 8], eax
xor esi, esi
mov edx, esi
mov eax, dword [esp]
call fcn.00414e40
test eax, eax
je 0x4a383d
mov edx, esi
mov eax, dword [esp]
call fcn.00414e40
mov edx, eax
mov eax, dword [edi + 0x5c]
call fcn.00414ce4
mov byte [esp + 4], 1
inc esi
dec dword [esp + 8]
jne 0x4a3816
mov eax, dword [esp]
call fcn.00403498
xor eax, eax
mov dword [edi + 0x60], eax
xor eax, eax
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4a389e
inc eax
mov dword [esp + 8], eax
xor esi, esi
mov eax, dword [edi + 0x5c]
mov edx, esi
call fcn.00414e40
mov ebp, eax
mov al, byte [ebp + 9]
xor al, 1
and eax, 0x7f
add dword [edi + 0x60], eax
xor eax, eax
mov al, byte [ebp + 9]
add dword [edi + 0x64], eax
mov al, byte [ebp + 8]
xor al, 1
and eax, 0x7f
add dword [edi + 0x68], eax
inc esi
dec dword [esp + 8]
jne 0x4a386d
mov eax, dword [edi + 0x68]
sub dword [edi + 0x64], eax
cmp byte [esp + 4], 0
jne 0x4a38b1
cmp byte [edi + 0x58], 0
jne 0x4a38b8
mov eax, edi
call fcn.004a360c
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a9b24
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4a9b2c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a9d1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4a9d34
mov eax, esi
call fcn.004a79b0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004042c0
lea ecx, [ebp - 0x10]
mov edx, 0x4a9d48
mov eax, esi
call fcn.004a79b0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004042c0
lea ecx, [ebp - 0x14]
mov edx, 0x4a9d60
mov eax, esi
call fcn.004a79b0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004042c0
lea ecx, [ebp - 0x18]
mov edx, 0x4a9d7c
mov eax, esi
call fcn.004a79b0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004042c0
lea ecx, [ebp - 0x1c]
mov edx, 0x4a9d98
mov eax, esi
call fcn.004a79b0
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004042c0
lea ecx, [ebp - 0x24]
mov edx, 0x4a9db0
mov eax, esi
call fcn.004a79b0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408678
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408bc0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4a9dc8
mov eax, esi
call fcn.004a79b0
mov eax, dword [ebp - 0x28]
call fcn.0048856c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4a9dd8
mov eax, esi
call fcn.004a79b0
mov eax, dword [ebp - 0x2c]
call fcn.0048856c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4a9df0
mov eax, esi
call fcn.004a79b0
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408bc0
inc eax
je 0x4a9cc1
lea ecx, [ebp - 0x34]
mov edx, 0x4a9df0
mov eax, esi
call fcn.004a79b0
mov eax, dword [ebp - 0x34]
call fcn.00408b84
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a178
fstp qword [ebp - 0x3c]
wait
call fcn.0040a510
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4a9cdc
lea ecx, [ebp - 0x40]
mov edx, 0x4a9df0
mov eax, esi
call fcn.004a79b0
mov eax, dword [ebp - 0x40]
call fcn.0048856c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4a9e00
mov eax, esi
call fcn.004a79b0
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004042c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9d25
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404290
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404290
ret
Function at 0x4b4da8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4b4e02
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b4d98
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004871d8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00486dd8
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4e09
lea eax, [ebp - 4]
call fcn.0040426c
ret

Function at 0x4bb8e4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4bb912
mov eax, ebx
call fcn.004bc398
cmp dword [ebx + 0x40], 0
je 0x4bb90b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4bb983
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4bb975
cmp dword [ebx + 8], 0
je 0x4bb934
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4bb946
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4bb975
cmp dword [ebx + 8], 0
je 0x4bb927
cmp eax, 3
je 0x4bb959
dec eax
jne 0x4bb927
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4bb927
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4bb927
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4bb9a1
cmp dword [ebx + 0x14], 0xcc
je 0x4bb9a1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004bb9ac
pop ebx
ret

Function at 0x4d33f8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x5221cc
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4d341a
shr eax, 1
xor eax, 0xedb88320
jmp 0x4d341c
shr eax, 1
dec edx
jne 0x4d3408
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4d3401
mov byte [0x5225cc], 1
pop esi
pop ebx
ret

Function at 0x4d3438
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x5225cc], 0
jne 0x4d344f
call fcn.004d33f8
mov eax, edi
dec eax
test eax, eax
jl 0x4d3478
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5221cc]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4d3459
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4d59b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x4d59e1
dec al
je 0x4d5a1d
dec al
je 0x4d5a61
dec al
je 0x4d5acc
jmp 0x4d5b56
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4d5b56
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4d59f1
jmp 0x4d5b56
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d5b56
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4d5a2d
jmp 0x4d5b56
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d5b56
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4d5a8f
xor ebp, ebp
jmp 0x4d5aa0
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4d5aa9
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4d5a71
jmp 0x4d5b56
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d5b56
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4d5b24
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004d3480
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4d5ae0
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d9c48
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 0x4d9ea8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4d9cab
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004d9710
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cbec
cmp al, 1
jne 0x4d9cab
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004d9a28
test al, al
je 0x4d9e37
cmp dword [ebp - 8], 0
jge 0x4d9cc9
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.004d9710
mov eax, dword [ebp - 0x210]
call fcn.00404548
cmp ebx, eax
jge 0x4d9d13
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004d9710
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x51ecfc]
and eax, 0xff
bt dword [edx], eax
jae 0x4d9d13
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4d9d27
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004d9c24
cmp ebx, dword [ebp - 8]
je 0x4d9e29
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4d9d53
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403694
and eax, 0x7f
movzx eax, word [eax*2 + 0x51dfb4]
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 0x4d9e16
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403694
and eax, 0x7f
movzx eax, word [eax*2 + 0x51dfb4]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.00464b14
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403694
and eax, 0x7f
movzx eax, word [eax*2 + 0x51dfb4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00464b14
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9e1d
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 0x4d9e8a
cmp dword [ebp - 8], 0
jge 0x4d9e42
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004d9710
mov eax, dword [ebp - 0x218]
call fcn.00404548
cmp eax, dword [ebp - 8]
jg 0x4d9e7c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004d9710
mov eax, dword [ebp - 0x21c]
call fcn.00404548
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004d9c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9eaf
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404290
ret
Function at 0x4e6ef4
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e70ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x84
call fcn.00402734
mov esi, eax
mov eax, esi
mov ecx, 0x20
mov edx, edi
call fcn.00409230
mov ax, word [ebx]
and ax, 2
cmp ax, 2
jne 0x4e6f4d
lea edx, [ebp - 8]
mov eax, dword [0x51e054]
call fcn.00405f34
jmp 0x4e6f5a
lea edx, [ebp - 8]
mov eax, dword [0x51e8f4]
call fcn.00405f34
mov eax, dword [ebp - 8]
call fcn.00404748
mov edx, eax
lea eax, [esi + 0x20]
mov ecx, 8
call fcn.00409230
mov ax, word [ebx]
and ax, 1
cmp ax, 1
jne 0x4e6f8d
lea edx, [ebp - 8]
mov eax, dword [0x51ea20]
call fcn.00405f34
jmp 0x4e6f9a
lea edx, [ebp - 8]
mov eax, dword [0x51e260]
call fcn.00405f34
mov eax, dword [ebp - 8]
call fcn.00404748
mov edx, eax
lea eax, [esi + 0x28]
mov ecx, 8
call fcn.00409230
lea eax, [ebp - 8]
push eax
movzx eax, word [ebx + 2]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
movzx eax, word [ebx + 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x4e70c4
call fcn.004098a8
mov eax, dword [ebp - 8]
call fcn.00404748
mov edx, eax
lea eax, [esi + 0x30]
mov ecx, 0xc
call fcn.00409230
lea edx, [ebp - 8]
mov ax, word [ebx + 6]
call fcn.004e45b8
mov eax, dword [ebp - 8]
call fcn.00404748
mov edx, eax
lea eax, [esi + 0x3c]
mov ecx, 0x30
call fcn.00409230
lea eax, [ebp - 8]
push eax
mov edi, dword [ebx + 8]
mov eax, edi
shr eax, 0x18
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
mov eax, edi
shr eax, 0x10
and eax, 0xff
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, edi
shr eax, 8
and eax, 0xff
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
and edi, 0xff
mov dword [ebp - 0x28], edi
mov byte [ebp - 0x24], 0
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x40]
mov ecx, 4
mov eax, 0x4e70d4
call fcn.004098a8
mov eax, dword [ebp - 8]
call fcn.00404748
mov edx, eax
lea eax, [esi + 0x6c]
mov ecx, 0x18
call fcn.00409230
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00414ce4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e70b4
lea eax, [ebp - 8]
call fcn.0040426c
ret