joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446776
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x34]
push edi
push 0x498d98
push eax
mov dword [ebp - 4], fcn.00414fbd
call fcn.00414f39
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x4467ca
push eax
push 0xdeadbeef
push 0x1f
push esi
call fcn.00446667
mov bl, al
lea eax, [ebp - 8]
push eax
call fcn.0043572e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 8], 1
jmp 0x4467d6
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x446848
mov eax, dword [ebp + 8]
test eax, eax
je 0x44681c
push edi
push 1
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.004144d6
mov eax, dword [ebp + 8]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x4467d6
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x44686d
push eax
push 0xdeadbeef
push 0x21
push esi
call fcn.00446667
lea ecx, [ebp - 8]
push ecx
mov bl, al
call fcn.0043572e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xdeadbeef
push 0x20
push esi
call fcn.00446667
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.0043572e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
push esi
call fcn.00446667
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.0043572e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x446908
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp ecx, 1
jne 0x446923
movzx eax, word [esi + 0x8c]
jmp 0x446927
movzx eax, word [esi + 0x58]
cmp ecx, 1
movsx edx, ax
lea ecx, [esi + 0xb0]
je 0x446938
lea ecx, [esi + 0x7c]
mov eax, dword [esi + 0xc0]
push 0
cmp edx, 1
jne 0x44694c
push 0
push 0
push edx
jmp 0x446993
cmp edx, 2
jne 0x44698d
mov ecx, dword [ecx]
push str._local_
push ecx
push 3
jmp 0x446993
cmp byte [esi + 0xdc], 0
je 0x446984
push 8
lea eax, [ebp - 8]
push eax
push 0x32
push 0
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
test eax, eax
jne 0x44695d
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x446c22
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x258]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x446cb1
jmp 0x446c52
lea edx, [ebp - 0x22c]
push 0x495738
push edx
call fcn.00413366
add esp, 8
test eax, eax
je 0x446c9f
lea eax, [ebp - 0x22c]
push 0x49b778
push eax
call fcn.00413366
add esp, 8
test eax, eax
je 0x446c9f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.00437a0e
add esp, 0xc
test al, al
je 0x446ccb
mov bl, 1
lea ecx, [ebp - 0x258]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x446c52
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
cmp byte [ebp + 0x14], 0
jne 0x446cdd
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp - 0x258]
push edx
push 0x49b770
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x446d6f
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x446d5d
lea eax, [ebp - 0x22c]
push 0x495738
push eax
call fcn.00413366
add esp, 8
test eax, eax
je 0x446d5d
lea ecx, [ebp - 0x22c]
push 0x49b778
push ecx
call fcn.00413366
add esp, 8
test eax, eax
je 0x446d5d
lea edx, [ebp - 0x22c]
push edx
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push eax
call fcn.00446c22
test al, al
je 0x446d7d
push 0x49b778
call ebx
lea ecx, [ebp - 0x258]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x446cf8
push edi
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4471a5
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4b8ff8], 0
push esi
push edi
mov esi, 0x4b8628
jne 0x4471c5
push 0
call fcn.00414e2a
push eax
call fcn.0043614b
add esp, 8
mov dword [0x4a3104], 0x270
mov dword [0x4b8624], esi
mov edx, 0xe3
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi + 0x634]
add esi, 4
xor edi, eax
dec edx
mov dword [esi - 4], edi
jne 0x4471da
mov edx, 0x18c
lea esp, [esp]
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi - 0x38c]
add esi, 4
xor edi, eax
dec edx
mov dword [esi - 4], edi
jne 0x447215
mov ecx, dword [0x4b8628]
mov dl, cl
and dl, 1
movzx eax, dl
mov edx, dword [esi]
neg eax
sbb eax, eax
xor edx, ecx
and edx, 0x7ffffffe
xor edx, dword [esi]
and eax, 0x9908b0df
shr edx, 1
xor edx, dword [esi - 0x38c]
pop edi
xor edx, eax
mov dword [esi], edx
pop esi
ret

Function at 0x4476b1
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
test al, 0x10
je 0x44778f
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x447701
push 1
push esi
push eax
call fcn.004364aa
mov eax, dword [esi]
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi], 0
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
push 0
lea ecx, [ebp - 0xc]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x44776c
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
test eax, eax
je 0x447742
cmp eax, 0xffffffff
jne 0x4476ec
push 0
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push accept
push 0x498cf4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x447701
test eax, eax
je 0x447701
mov edx, dword [esi]
push 1
lea ecx, [ebp + 0xc]
push ecx
push edx
call fcn.004364aa
push esi
call fcn.004364de
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov dword [esi], eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
test al, 1
je 0x44772f
mov eax, dword [esi]
test eax, eax
je 0x447710
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4477a4
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
test al, 0x10
je 0x447883
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4477f6
push 1
push esi
push eax
call fcn.004364aa
mov eax, dword [esi]
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov dword [esi], 0
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x18]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x447860
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
test eax, eax
je 0x447836
cmp eax, 0xffffffff
jne 0x4477e1
push 0
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x498cf4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4477f6
test eax, eax
je 0x4477f6
mov edx, dword [esi]
push 1
lea ecx, [ebp + 0x14]
push ecx
push edx
call fcn.004364aa
push esi
call fcn.004364de
mov eax, dword [ebp + 0x14]
add esp, 0x10
mov dword [esi], eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
test dword [ebp + 0xc], eax
je 0x447824
mov eax, dword [esi]
test eax, eax
je 0x447805
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4478c3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
xor edx, edx
push ecx
mov dword [ebp + 0x10], edx
call fcn.004364fb
test al, al
je 0x447913
test ebx, ebx
je 0x447913
test edi, edi
je 0x447913
push esi
push edx
lea eax, [ebp + 0x10]
push eax
lea esi, [ecx + 0x18]
mov ecx, dword [esi]
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x447909
push esi
call fcn.004364de
add esp, 4
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
pop edi
mov eax, edx
pop ebx
pop ebp
ret 0xc

Function at 0x447d03
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
jne 0x447d21
push esi
call fcn.00437271
add esp, 4
test al, al
jne 0x447d3a
push 1
jmp 0x447d23
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
pop ebp
ret
Function at 0x447fc6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
mov byte [0x4a85d6], 0
test edi, edi
je 0x44800b
mov byte [0x4a85d7], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x18]
push eax
push esi
lea ecx, [ebp - 8]
push ecx
push 0x447ea0
push esi
push esi
mov dword [ebp - 4], edi
call fcn.00413f9f
add esp, 0x18
mov esi, eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
test esi, esi
je 0x44803e
push 0xffffffffffffffff
push esi
mov byte [0x4a85d7], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4a85d6], 1
jne 0x448050
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4481a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0044818b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
pop ebp
ret 0xc
Function at 0x44876e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0
jne 0x4487a0
cmp byte [edi + 1], 0
jne 0x4487a0
cmp byte [edi + 2], 0
jne 0x4487a0
cmp byte [edi + 3], 0
jne 0x4487a0
cmp byte [edi + 4], 0
je 0x44895e
mov eax, dword [esi + 0x20]
push ebx
test eax, eax
je 0x4488e9
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4488e9
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x44881c
cmp byte [edi], 0
mov al, 0x80
je 0x4487dc
xor byte [ebp - 0xf0], al
xor byte [ebp - 0x60], al
cmp byte [edi + 1], 0
je 0x4487eb
xor byte [ebp - 0xf0], al
xor byte [ebp - 0x5f], al
cmp byte [edi + 2], 0
je 0x4487f7
xor byte [ebp - 0xef], al
cmp byte [edi + 3], 0
je 0x448803
xor byte [ebp - 0xee], al
cmp byte [edi + 4], 0
je 0x44880f
xor byte [ebp - 0xa5], al
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [edi], 0
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x44882d
cmp byte [edi + 1], 0
je 0x448848
movzx edx, byte [esi + 0x26]
mov eax, dword [esi + 0x20]
shl edx, 0x10
or edx, 0xc0000001
push edx
push 0x10
push 0x101
push eax
call ebx
cmp byte [edi + 2], 0
je 0x448869
movzx ecx, byte [esi + 0x24]
mov edx, dword [esi + 0x20]
shl ecx, 0x10
or ecx, 0xc0000001
push ecx
push 0x11
push 0x101
push edx
call ebx
mov al, byte [edi + 3]
test al, al
je 0x4488b5
cmp byte [edi + 2], 0
jne 0x448896
cmp byte [esi + 0x1c], 0
jne 0x448896
movzx eax, byte [esi + 0x25]
mov ecx, dword [esi + 0x20]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
push ecx
jmp 0x4488b3
test al, al
je 0x4488b5
movzx edx, byte [esi + 0x25]
mov eax, dword [esi + 0x20]
shl edx, 0x10
or edx, 0xc0000001
push edx
push 0x12
push 0x101
push eax
call ebx
cmp byte [edi + 4], 0
je 0x448957
movzx ecx, byte [esi + 0x29]
mov edx, dword [esi + 0x20]
shl ecx, 0x10
or ecx, 0xc0000001
push ecx
push 0x5b
push 0x101
push edx
call ebx
push esi
call fcn.004385af
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp byte [edi], 0
je 0x448900
movzx eax, byte [esi + 0x27]
push 2
push eax
push 0xa0
push esi
call fcn.00438523
cmp byte [edi + 1], 0
je 0x448918
movzx ecx, byte [esi + 0x28]
push 2
push ecx
push 0xa1
push esi
call fcn.00438523
cmp byte [edi + 2], 0
je 0x44892d
movzx edx, byte [esi + 0x24]
push 2
push edx
push 0x11
push esi
call fcn.00438523
cmp byte [edi + 3], 0
je 0x448942
movzx eax, byte [esi + 0x25]
push 2
push eax
push 0x12
push esi
call fcn.00438523
cmp byte [edi + 4], 0
je 0x448957
movzx ecx, byte [esi + 0x29]
push 2
push ecx
push 0x5b
push esi
call fcn.00438523
push esi
call fcn.004385af
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x448966
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0
jne 0x448998
cmp byte [edi + 1], 0
jne 0x448998
cmp byte [edi + 2], 0
jne 0x448998
cmp byte [edi + 3], 0
jne 0x448998
cmp byte [edi + 4], 0
je 0x448b4a
mov eax, dword [esi + 0x20]
push ebx
test eax, eax
je 0x448ad5
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x448ad5
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x448a14
cmp byte [edi], 0
mov al, 0x80
je 0x4489d4
or byte [ebp - 0xf0], al
or byte [ebp - 0x60], al
cmp byte [edi + 1], 0
je 0x4489e3
or byte [ebp - 0xf0], al
or byte [ebp - 0x5f], al
cmp byte [edi + 2], 0
je 0x4489ef
or byte [ebp - 0xef], al
cmp byte [edi + 3], 0
je 0x4489fb
or byte [ebp - 0xee], al
cmp byte [edi + 4], 0
je 0x448a07
or byte [ebp - 0xa5], al
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [edi], 0
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x448a25
cmp byte [edi + 1], 0
je 0x448a3d
movzx edx, byte [esi + 0x26]
mov eax, dword [esi + 0x20]
shl edx, 0x10
or edx, 1
push edx
push 0x10
push 0x100
push eax
call ebx
cmp byte [edi + 2], 0
je 0x448a5b
movzx ecx, byte [esi + 0x24]
mov edx, dword [esi + 0x20]
shl ecx, 0x10
or ecx, 1
push ecx
push 0x11
push 0x100
push edx
call ebx
mov al, byte [edi + 3]
test al, al
je 0x448aa4
cmp byte [edi + 2], 0
jne 0x448a88
cmp byte [esi + 0x1c], 0
jne 0x448a88
movzx eax, byte [esi + 0x25]
mov ecx, dword [esi + 0x20]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
push ecx
jmp 0x448aa2
test al, al
je 0x448aa4
movzx edx, byte [esi + 0x25]
mov eax, dword [esi + 0x20]
shl edx, 0x10
or edx, 1
push edx
push 0x12
push 0x100
push eax
call ebx
cmp byte [edi + 4], 0
je 0x448b43
movzx ecx, byte [esi + 0x29]
mov edx, dword [esi + 0x20]
shl ecx, 0x10
or ecx, 1
push ecx
push 0x5b
push 0x100
push edx
call ebx
push esi
call fcn.00438582
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp byte [edi], 0
je 0x448aec
movzx eax, byte [esi + 0x27]
push 0
push eax
push 0xa0
push esi
call fcn.00438523
cmp byte [edi + 1], 0
je 0x448b04
movzx ecx, byte [esi + 0x28]
push 0
push ecx
push 0xa1
push esi
call fcn.00438523
cmp byte [edi + 2], 0
je 0x448b19
movzx edx, byte [esi + 0x24]
push 0
push edx
push 0x11
push esi
call fcn.00438523
cmp byte [edi + 3], 0
je 0x448b2e
movzx eax, byte [esi + 0x25]
push 0
push eax
push 0x12
push esi
call fcn.00438523
cmp byte [edi + 4], 0
je 0x448b43
movzx ecx, byte [esi + 0x29]
push 0
push ecx
push 0x5b
push esi
call fcn.00438523
push esi
call fcn.00438582
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x448b52
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x20], 0
mov dword [esi], 0
mov word [esi + 4], 0
je 0x448bff
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x448bf5
mov al, 0x80
cmp byte [ebp - 0x60], al
je 0x448b99
cmp byte [ebp - 0xf0], al
jne 0x448ba2
cmp byte [edi + 0x1a], 0
jne 0x448ba2
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x448bb1
cmp byte [edi + 0x1b], 0
jne 0x448bb1
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x448bc3
cmp byte [edi + 0x1c], 0
jne 0x448bc3
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x448bd5
cmp byte [edi + 0x1d], 0
jne 0x448bd5
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x448bf5
cmp byte [edi + 0x1e], 0
mov eax, esi
jne 0x448cea
pop edi
mov byte [esi + 4], 1
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x448c2c
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x448c35
cmp byte [edi + 0x1a], 0
jne 0x448c35
mov byte [esi], 1
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x448c5b
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x448c65
cmp byte [edi + 0x1b], 0
jne 0x448c65
mov byte [esi + 1], 1
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x448c85
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x448c8f
cmp byte [edi + 0x1c], 0
jne 0x448c8f
mov byte [esi + 2], 1
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x448caf
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x448cb9
cmp byte [edi + 0x1d], 0
jne 0x448cb9
mov byte [esi + 3], 1
push 0x5b
call ebx
mov ecx, 0x8000
pop ebx
test cx, ax
jne 0x448cde
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x448bf5
cmp byte [edi + 0x1e], 0
mov eax, esi
jne 0x448cea
mov byte [esi + 4], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x448e6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea ecx, [eax + 4]
push edi
mov edi, dword [eax + edx]
mov dword [esi], ecx
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412a89
mov ebx, eax
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
push eax
push ebx
call fcn.004125e0
lea eax, [edi + edi]
add dword [esi], eax
xor ecx, ecx
mov word [eax + ebx], cx
add esp, 0x10
xor eax, eax
test edi, edi
jle 0x448ec8
xor word [ebx + eax*2], di
inc eax
cmp eax, edi
jl 0x448ebf
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x449edf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x449efb
mov eax, dword [ebp + 8]
cmp byte [eax + 5], 1
jne 0x449f56
push 0
push 0
push 0xe
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jne 0x449f13
mov edi, 0x7fff
push ebx
xor ecx, ecx
lea ebx, [edi + 1]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412a89
add esp, 4
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
push ebx
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov word [esi + edi*2], cx
pop ebx
test eax, eax
jg 0x449f61
push esi
call fcn.00411076
add esp, 4
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
mov edi, dword [ebp + 8]
cmp byte [edi + 0xc], cl
jne 0x449f7a
push esi
call fcn.00412941
add esp, 4
push eax
push esi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov eax, dword [edi + 0x24]
push eax
push esi
call fcn.004136e7
add esp, 8
push esi
test eax, eax
je 0x449f4e
mov byte [edi + 0xe8], 1
call fcn.00411076
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x44a4c1
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
push 1
push eax
call fcn.0044a116
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0x25
call ebx
shl eax, 0x10
or eax, 1
cmp dword [ebp + 0xc], 0
push eax
jge 0x44a522
mov ecx, dword [esi]
push 0x25
push 0x100
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
push 0
push 0x25
call ebx
mov edx, dword [esi]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
push 0x101
push edx
jmp 0x44a555
mov eax, dword [esi]
push 0x27
push 0x100
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
push 0
push 0x25
call ebx
mov ecx, dword [esi]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
call edi
mov edx, dword [esi]
push 0
push edx
call fcn.0044a116
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
Function at 0x44bd33
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push 0x4b9720
call fcn.00434ef5
mov ecx, dword [0x4b9780]
mov edx, dword [ecx + eax*4]
mov edi, dword [edx]
cmp ebx, esi
jne 0x44bdb3
cmp dword [edi + 0x1a4], 0
je 0x44bd92
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1a4]
push 0
push esi
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
movzx eax, word [ebp + 0x14]
movzx ecx, word [ebp + 0x10]
shl eax, 0x10
or eax, ecx
push eax
push ebx
push 0x7b
push esi
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
push 0x4b9720
call fcn.00445fad
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x44bd92
mov ecx, dword [0x4b9794]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx]
mov al, byte [ecx + 0x88]
cmp al, 0xe
je 0x44bd92
cmp al, 0xf
je 0x44bd92
cmp al, 0x13
je 0x44bd92
cmp al, 0x10
je 0x44bd92
cmp dword [ecx + 8], 0
je 0x44bd92
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push 0
push ecx
mov ecx, dword [0x4b9794]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push 0
push edx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10