joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a5080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623ab2
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xfffffffffffffff0
call fcn.0059dc30
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.0059dc30
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi]
lea ebx, [edi + 0x30]
mov ecx, edi
call dword [eax + 0x30]
push eax
push dword [edi + 4]
mov ecx, ebx
call fcn.00597720
mov ecx, edi
lea eax, [edi + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call fcn.00596710
lea ecx, [ebp - 0x2e8]
call fcn.005bf320
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
push ecx
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0059ee60
lea ecx, [ebp - 0x94]
test al, al
mov eax, dword [edi]
push ecx
mov ecx, edi
jne 0x5a5193
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0059ebe0
push eax
call fcn.0060cc9f
add esp, 4
movzx esi, ax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0059e480
mov ecx, edi
lea eax, [edi + 0x28]
neg ecx
push 0
sbb ecx, ecx
and ecx, eax
push ebx
push ecx
lea ecx, [ebp - 0x118]
call fcn.0059ebe0
push eax
push esi
lea ecx, [ebp - 0x2e8]
call fcn.005c04f0
mov esi, eax
jmp 0x5a51d3
call dword [eax + 0x2c]
mov edx, edi
mov byte [ebp - 4], 3
neg edx
lea ecx, [edi + 0x28]
push 0
sbb edx, edx
push ebx
and edx, ecx
mov ecx, eax
push edx
push 0
call fcn.0059ebe0
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x2e8]
call fcn.005c04f0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.0059e480
test esi, esi
jne 0x5a523c
push 0xffffffffffffffff
push 0x696ac4
lea ecx, [ebp - 0x94]
call fcn.0059e330
mov eax, dword [edi]
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0059e630
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 4
call fcn.0059e480
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.0059ebe0
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.00596800
mov edx, edi
lea eax, [edi + 0x20]
neg edx
mov ecx, ebx
sbb edx, edx
and edx, eax
push edx
call fcn.00596600
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.0059e480
lea ecx, [ebp - 0x2e8]
call fcn.005be100
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045acaa
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5a7160
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5a7194
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5a7194
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x5a727c
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x5a71b1
cmp ax, 0x5c
jne 0x5a71b3
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x5a71a5
cmp edi, ebx
je 0x5a71ff
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.005fcac0
add esp, 0xc
cmp edi, 0x208
jae 0x5a728c
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.005a7160
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x5a7224
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x5a7214
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x5a7226
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x5a7240
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x5a727c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045acaa
mov esp, ebp
pop ebp
ret
call fcn.0045b832
int3

Function at 0x5a79d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x5a7a9d
cmp dword [esi + 4], 0xffffffff
jne 0x5a7a9d
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5a7a01
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x5a7a38
cmp eax, 0x2f
je 0x5a7a38
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x5a7a25
mov eax, dword [0x6b3894]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x5a7a5e
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5a7a5e
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005aa630
add esp, 0x10
test eax, eax
jne 0x5a7a7e
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.005aae90
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x5a8090
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x698328]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x698328]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x5aa760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x5aa79e
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5aa792
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x5aa7af
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.005fcac0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x5aa93e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x5aa9fd
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x698328]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x698328]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x698328]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x698328]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x698328]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x698328]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x698328]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x698328]
sub edi, 1
jne 0x5aa956
pop edi
test esi, esi
je 0x5aaa1b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x698328]
sub esi, 1
jne 0x5aaa01
not eax
pop esi
pop ebp
ret
Function at 0x5b5230
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b5310
Function at 0x5b9860
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x624], 0
je 0x5b98cd
cmp dword [ebp + 8], 0x100
jne 0x5b98bd
cmp word [ebp + 0xc], 0xd
jne 0x5b98bd
cmp byte [esi + 0x62a], 0
je 0x5b989e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x5b98bd
cmp byte [esi + 0x62b], 0
jne 0x5b98bd
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x5b98b6
push 0
push 0
push 0
push str.return
push esi
call fcn.0059c380
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x624]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x5c4a90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
mov eax, dword [eax + 0x108]
call eax
mov ebx, dword [ebp + 8]
test al, al
jne 0x5c4ad7
mov eax, dword [ebx]
cmp eax, 8
jle 0x5c4ad7
cmp eax, 0x16
jge 0x5c4ad7
mov ecx, dword [edi + 0x4f0]
push ebx
test ecx, ecx
je 0x5c4aca
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.005c4670
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [edi + 0x4f0]
push esi
test ecx, ecx
je 0x5c4b35
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [eax + 0x458], 0
je 0x5c4b35
cmp dword [ebx], 0xf
jne 0x5c4b35
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x5c4c79
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x5c4b62
mov eax, dword [edi + 0x4d0]
lea ecx, [edi + 0x4d0]
pop esi
pop edi
pop ebx
mov dword [ebp + 8], 1
pop ebp
jmp dword [eax + 0x14]
mov eax, dword [ebx]
cmp eax, 0xd
jne 0x5c4bb9
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x5c4c79
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x5c4b86
lea esi, [edi + 0x4d0]
mov edi, dword [esi]
mov ecx, esi
mov eax, dword [edi + 0x10]
call eax
test al, al
mov ecx, esi
sete al
movzx eax, al
push eax
call dword [edi + 0x18]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [edi + 0x4d0]
lea ecx, [edi + 0x4d0]
push 1
call dword [eax + 0x14]
mov edx, dword [edi + 0x4d0]
lea eax, [edi + 0x158]
push eax
lea eax, [ebx + 0xc]
push eax
push edi
lea ecx, [edi + 0x4d0]
call dword [edx + 0x28]
pop esi
pop edi
pop ebx
pop ebp
ret 4
cmp eax, 0xe
jne 0x5c4c01
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x5c4c79
mov ecx, dword [edi + 0x44]
push 0
push 0
push 0
push str.itemclick
push edi
call fcn.0059c380
mov edx, dword [edi + 0x4d0]
lea ecx, [edi + 0x4d0]
lea eax, [ebx + 0xc]
push eax
push edi
call dword [edx + 0x30]
pop esi
pop edi
pop ebx
pop ebp
ret 4
cmp eax, 9
jne 0x5c4c21
mov edx, dword [edi + 0x4d0]
lea ecx, [edi + 0x4d0]
lea eax, [ebx + 0xc]
push eax
push edi
call dword [edx + 0x2c]
pop esi
pop edi
pop ebx
pop ebp
ret 4
cmp eax, 0xb
jne 0x5c4c4b
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x5c4c79
or dword [edi + 0x4fc], 8
mov ecx, edi
call fcn.005d0760
pop esi
pop edi
pop ebx
pop ebp
ret 4
cmp eax, 0xa
jne 0x5c4c71
mov eax, dword [edi + 0x4fc]
test al, 8
je 0x5c4c79
and eax, 0xfffffff7
mov ecx, edi
mov dword [edi + 0x4fc], eax
call fcn.005d0760
pop esi
pop edi
pop ebx
pop ebp
ret 4
push ebx
mov ecx, edi
call fcn.005c4670
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x5d2de0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x5d2e69
cmp dword [esi + 0x10], 0
je 0x5d2e69
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0061f040
mov ebx, esp
test ebx, ebx
je 0x5d2e69
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c8
call fcn.0059e540
mov ecx, dword [esi + 0x10]
push 0
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0059c380
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00597a20
test al, al
je 0x5d2e69
mov ecx, dword [esi + 0x10]
call fcn.005a2450
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045acaa
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5d5d80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62542b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x518], 0
cmp dword [edi + 4], 0
jne 0x5d5e2b
lea eax, [ebp - 0xa4]
push eax
call fcn.005d57e0
mov ecx, dword [edi + 0x10]
movups xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00597610
push eax
mov ecx, edi
call fcn.0059db00
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.005a68f0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00597040
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0059ee60
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0059e480
test bl, bl
je 0x5d5e68
mov eax, dword [edi + 0x10]
add eax, 0x508
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x508
push eax
push 0
push 0x1002
movups xmm0, xmmword [eax]
push dword [edi + 4]
movups xmmword [edi + 0x1a], xmm0
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045acaa
mov esp, ebp
pop ebp
ret 4
Function at 0x5d6470
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x5d64a8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045acaa
mov esp, ebp
pop ebp
ret
push 0xff
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.005fd040
add esp, 0xc
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x5d6498
mov eax, dword [eax + 0xc]
push esi
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov eax, ecx
shr eax, 8
mov edx, ecx
movzx esi, al
movzx eax, cl
shl eax, 8
add eax, esi
shr edx, 0x10
shl eax, 8
movzx edx, dl
add eax, edx
shr ecx, 0x18
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045acaa
mov esp, ebp
pop ebp
ret

Function at 0x5d6650
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6254db
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x510], 0
cmp dword [edi + 4], 0
jne 0x5d6726
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 8
push eax
mov dword [ebp - 0x98], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x5d66fe
lea eax, [ebp - 0xac]
mov ecx, edi
push eax
call fcn.005d6100
mov ecx, dword [edi + 0x10]
movups xmm0, xmmword [ebp - 0xac]
push 0
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40030000
push 0
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00597610
push eax
mov ecx, edi
call fcn.0059db00
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.005a68f0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00597040
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0059ee60
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0059e480
test bl, bl
je 0x5d6762
call fcn.005d6470
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x508], eax
mov eax, dword [edi + 0x10]
push dword [eax + 0x508]
push 0
push 0x465
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045acaa
mov esp, ebp
pop ebp
ret 4
Function at 0x5d67f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetFocus]
push esi
push edi
mov edi, ecx
call ebx
mov esi, eax
test esi, esi
je 0x5d681a
call ebx
cmp eax, dword [edi + 4]
je 0x5d687a
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
jne 0x5d6806
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
mov esi, eax
cmp dword [ecx + 0x510], 0
jne 0x5d6866
add ecx, 0x508
push ecx
push 0
push 0x466
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x10]
mov dword [eax + 0x510], 1
mov ecx, dword [edi + 0x10]
call fcn.005d68a0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
mov dword [eax], 1
xor eax, eax
pop ebp
ret 0x10

Function at 0x5dc0d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c4e30

Function at 0x5dc0d9
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x648
jmp method.DuiLib::CMenuUI.virtual_312

Function at 0x5dd490
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x6ec], ecx
mov dword [ebx + 0x6f0], 0
mov dword [ebx + 0x6f4], eax
push edi
mov edi, dword [ebp + 0x1c]
test ecx, ecx
jne 0x5dd4fe
call fcn.005dd1c0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test edi, edi
je 0x5dd4fe
call fcn.005dd1c0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.005dd1c0
mov esi, ebx
lea edx, [ebx + 0x10]
neg esi
mov ecx, eax
mov edi, dword [eax]
sbb esi, esi
and esi, edx
push esi
call dword [edi]
mov ecx, dword [ebx + 0x6ec]
test ecx, ecx
jne 0x5dd524
mov ecx, dword [ebp - 0x18]
jmp 0x5dd52b
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00597610
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0059e2c0
push 0
sub esp, 0x10
mov ecx, esp
movups xmm0, xmmword [eax]
push 0x88
push connect
push 0
movups xmmword [ecx], xmm0
push esi
mov ecx, ebx
call fcn.0059db00
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push esi
call edi
test eax, eax
je 0x5dd57c
nop dword [eax + eax]
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x5dd570
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045acaa
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x5e4350
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
add esi, 0xffffffdf
mov edi, eax
cmp esi, 0xd
ja case.0x5e4399.41
movzx eax, byte [esi + 0x5e4410]
jmp dword [eax*4 + 0x5e4408]
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005fd040
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
or ecx, 0x1000000
cmp dword [ebp + 0x10], 0
push 0x104
cmove ecx, edi
push eax
shl ecx, 0x10
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0059e330
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045acaa
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5e43a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
add esi, 0xffffffdf
mov edi, eax
cmp esi, 0xd
ja case.0x5e4399.41
movzx eax, byte [esi + 0x5e4410]
jmp dword [eax*4 + 0x5e4408]
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005fd040
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
or ecx, 0x1000000
cmp dword [ebp + 0x10], 0
push 0x104
cmove ecx, edi
push eax
shl ecx, 0x10
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0059e330
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045acaa
mov esp, ebp
pop ebp
ret 0xc