joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c659
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x591700]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x98]
mov esi, ecx
test edi, edi
je 0x48c6ee
xor eax, eax
inc eax
cmp dword [ebp + 0x9c], eax
jl 0x48c6ee
cmp byte [esi + 0xc], 0
je 0x48c6ee
mov dword [ebp - 0x78], eax
xor ebx, ebx
mov eax, dword [esi + 4]
push 0xfc
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x80], 0x1e
mov dword [ebp - 0x7c], ebx
call fcn.00508bf0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x48c6ee
test eax, eax
je 0x48c6ee
push ebx
push dword [ebp + 0x9c]
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne al
jmp 0x48c6f0
xor al, al
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00504075
lea esp, [ebp + 0x90]
pop ebp
ret 8

Function at 0x48c70a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x591700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x48c741
mov ecx, dword [ebp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x48c727
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x48c745
mov eax, edi
jmp 0x48c75b
add esi, esi
mov eax, esi
call fcn.00509700
mov edx, dword [ebp + 8]
mov ecx, esp
push 3
push esi
call fcn.0048bfda
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x48c771
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x48c771
mov edi, dword [eax]
mov eax, edi
lea esp, [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00504075
mov esp, ebp
pop ebp
ret 4
Function at 0x48d569
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
push esi
mov esi, ecx
inc ebx
test esi, esi
je 0x48d593
cmp esi, 0xffffffff
je 0x48d593
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48d593
push 0
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov al, bl
pop ebx
ret
Function at 0x48e891
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x48e8f7
xor ecx, ecx
cmp dword [esi + 0x24], ecx
jne 0x48e8f7
mov dword [esi + 0x24], eax
lea eax, [ebp + 8]
push eax
push ecx
push esi
push 0x48e831
push 0x500000
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x48e8d2
cmp eax, 0xffffffff
je 0x48e8d2
mov al, 1
jmp 0x48e8f9
cmp dword [0x59835c], 0
je 0x48e8f7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x57219c
push 1
push dword [0x59835c]
call fcn.00481b54
add esp, 0x10
xor al, al
pop esi
pop ebp
ret 4
Function at 0x490334
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x591700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x49036f
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x490355
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x490373
mov eax, edi
jmp 0x490388
add esi, esi
mov eax, esi
call fcn.00509700
mov ecx, esp
mov edx, ebx
push 3
push esi
call fcn.0048bfda
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, dword [ebp + 0xc]
mov ebx, eax
test ebx, ebx
je 0x4903d5
mov ecx, esi
call fcn.004928e8
mov ebx, dword [ebx + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4903d5
mov dword [ebp - 8], edi
mov eax, dword [eax]
mov ecx, esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00492b38
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00492b61
lea ebx, [ebx + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x4903ab
xor eax, eax
cmp dword [esi + 4], edi
setne al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00504075
mov esp, ebp
pop ebp
ret 8
Function at 0x4914da
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi + 0x54]
test eax, eax
je 0x4915dc
cmp dword [edi + 0x60], ebx
je 0x4915dc
cmp byte [eax + 0x6c], bl
je 0x4915dc
lea ebp, [edi + 0x5c]
cmp dword [ebp], ebx
je 0x4915dc
lea eax, [esp + 0x14]
push eax
call fcn.00490fdf
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49154a
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450ce2
jmp 0x4915dc
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4915c5
push 2
lea eax, [esp + 0x2c]
push eax
push 0xffffffffffffffff
push 0xfffffffffffffffc
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4915c5
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push eax
push 4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebp
test eax, eax
je 0x4915c5
imul eax, dword [edi + 0x50], 0x18
push 0xfffffffffffffffc
pop ecx
push 2
sub ecx, eax
mov eax, ecx
lea ecx, [esp + 0x34]
push ecx
cdq
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4915c5
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
push eax
imul eax, dword [edi + 0x50], 0x18
push eax
push dword [edi + 0x60]
push esi
call ebp
test eax, eax
je 0x4915c5
mov bl, 1
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450ce2
test esi, esi
je 0x4915dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x2c
ret
Function at 0x49344f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x536961
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x591700]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591700]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [esp + 0xa4]
lea edi, [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x28], edi
push edi
mov byte [esp + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 7
mov dword [esp + 0xa0], ebx
xor eax, eax
pop ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], ax
push esi
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], 3
call fcn.00450dd2
lea eax, [esp + 0x44]
mov byte [esp + 0x9c], 4
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004932ef
mov bl, al
mov byte [esp + 0x9c], 3
xor eax, eax
lea ecx, [esp + 0x74]
push 0
inc eax
push eax
call fcn.00451108
test bl, bl
je 0x493584
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0049572b
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
cmp eax, esi
je 0x493584
lea ecx, [esp + 0x1c]
inc ebx
call fcn.0044ddff
cmp dword [esp + 0x1c], esi
jne 0x49354d
test ebx, ebx
je 0x493584
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.00495654
mov ecx, dword [esp + 0x18]
push 1
movzx ecx, cl
cmp dword [eax + 4], 0
pop esi
cmovne ecx, esi
mov dword [esp + 0x18], ecx
jmp 0x493587
xor esi, esi
inc esi
push 0
push esi
lea ecx, [esp + 0x4c]
call fcn.00451108
push 0
push esi
lea ecx, [esp + 0x34]
call fcn.00451108
push 0
push esi
lea ecx, [esp + 0x64]
call fcn.00451108
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [esp + 0x18]
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00504075
add esp, 0x8c
ret 4
Function at 0x493f54
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x536b1f
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x591700]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591700]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0xa0]
lea edi, [eax + 8]
mov esi, dword [esp + 0x9c]
xor bh, bh
mov ebp, dword [esp + 0xa4]
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
xor eax, eax
push 7
mov dword [esp + 0x98], edx
pop ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], edx
mov word [esp + 0x3c], ax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov word [esp + 0x24], ax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
mov word [esp + 0x54], ax
push esi
lea ecx, [esp + 0x70]
mov byte [esp + 0x98], 3
call fcn.00450dd2
lea eax, [esp + 0x54]
mov byte [esp + 0x94], 4
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004932ef
xor esi, esi
mov byte [esp + 0x94], 3
push esi
push 1
lea ecx, [esp + 0x74]
mov bl, al
call fcn.00451108
test bl, bl
je 0x4940e7
lea edx, [esp + 0x24]
lea ecx, [esp + 0x6c]
call fcn.00482623
mov ecx, dword [esp + 0x18]
push eax
call fcn.0044d9e5
push esi
push 1
lea ecx, [esp + 0x74]
call fcn.0044ea87
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00495654
mov ecx, ebx
mov esi, dword [eax]
lea eax, [esp + 0x24]
push eax
mov esi, dword [esi]
mov dword [esp + 0x1c], esi
call fcn.00495654
jmp 0x4940db
cmp dword [ebp + 0x10], 0
je 0x4940a7
push 0x57390c
call fcn.0044ea41
pop ecx
push eax
push 0x57390c
mov ecx, ebp
call fcn.0044e558
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
push esi
call fcn.0044ea41
pop ecx
push eax
push esi
mov ecx, ebp
call fcn.0044e558
lea ecx, [esp + 0x18]
call fcn.0044ddff
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.00495654
mov esi, dword [esp + 0x18]
cmp dword [eax], esi
jne 0x494089
xor esi, esi
cmp dword [ebp + 0x10], esi
setne bh
push esi
push 1
lea ecx, [esp + 0x5c]
call fcn.00451108
push esi
push 1
lea ecx, [esp + 0x2c]
call fcn.00451108
push esi
push 1
lea ecx, [esp + 0x44]
call fcn.00451108
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bh
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00504075
add esp, 0x84
ret 0xc
Function at 0x494710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [0x59835c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, ecx
je 0x494758
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call edi
push eax
push str._INFO___d___download:_start_pos__I64d___will_download__I64d___downloaed__I64d_
push 3
push dword [0x59835c]
call fcn.00481b54
add esp, 0x28
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x49476e
mov byte [esi + 0xfc], 1
mov al, 1
jmp 0x494857
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, esi
push dword [ebp + 0x10]
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ebx
call fcn.0049524f
cmp dword [esi + 0x84], 0
jl 0x4947ce
jg 0x49479e
cmp dword [esi + 0x80], 0
jbe 0x4947ce
mov eax, dword [esi + 0x84]
mov ecx, esi
mov ebx, dword [esi + 0x80]
mov dword [esp + 0x10], eax
call fcn.00495295
mov ecx, eax
mov eax, dword [esp + 0x10]
cmp edx, eax
jl 0x4947ce
jg 0x4947c5
cmp ecx, ebx
jbe 0x4947ce
push eax
push ebx
mov ecx, esi
call fcn.0049524f
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esi + 0xd0], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0xd4], eax
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push 0x4945b3
push 0x800000
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x70], eax
test eax, eax
je 0x494834
cmp eax, 0xffffffff
je 0x494834
cmp dword [0x59835c], 0
je 0x494767
call edi
push eax
push str._INFO___d___create_download_thread_success.
push 3
push dword [0x59835c]
call fcn.00481b54
add esp, 0x10
jmp 0x494767
cmp dword [0x59835c], 0
je 0x494855
call edi
push eax
push str._ERROR___d___create_download_thread_failed_
push 1
push dword [0x59835c]
call fcn.00481b54
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x494ebe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x494f2a
mov edi, dword [ebp + 0xc]
test edi, edi
js 0x494f2a
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x494f2a
mov ebx, dword [esi + 0xd4]
mov eax, edi
mov edi, dword [esi + 0xd0]
mov ecx, dword [esi + 0x64]
cdq
add edi, eax
mov dword [esi + 0xd0], edi
adc ebx, edx
mov dword [esi + 0xd4], ebx
test ecx, ecx
je 0x494f24
push dword [esi + 0x68]
push edx
push eax
push ebx
push edi
push dword [esi + 8]
call ecx
add esp, 0x18
mov eax, edi
mov edx, ebx
jmp 0x494f2f
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x499652
Capabilities:
Terminate process

Disassembly:
push 0x364
mov eax, 0x5372d9
call fcn.00509264
mov edi, ecx
call fcn.004c807b
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
push eax
push str._INFO___d___OnCreate_1
push 3
push dword [0x596c04]
call fcn.004c8335
add esp, 0x10
mov ecx, edi
push 0xfffffffffffffff0
call fcn.004bf1f6
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.004bf1f6
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.0049bd79
lea eax, [edi + 0x24]
mov ecx, ebx
push eax
call fcn.0049b27d
lea ecx, [ebp - 0x36c]
call fcn.004c93ca
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
and dword [ebp - 4], 0
push ecx
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0049892f
test al, al
jne 0x49976e
call esi
push eax
push str._INFO___d___OnCreate_2
push 3
push dword [0x596c04]
call fcn.004c8335
mov eax, dword [edi]
lea ecx, [ebp - 0x94]
add esp, 0x10
push ecx
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0049877e
push eax
call fcn.00507aaf
pop ecx
lea ecx, [ebp - 0x94]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.00498187
push 0
lea eax, [edi + 0x28]
push ebx
push eax
lea ecx, [ebp - 0x118]
call fcn.0049877e
push eax
push esi
lea ecx, [ebp - 0x36c]
call fcn.004ca3f0
mov esi, eax
jmp 0x4997c9
call esi
push eax
push str._INFO___d___OnCreate_3
push 3
push dword [0x596c04]
call fcn.004c8335
mov eax, dword [edi]
lea ecx, [ebp - 0x19c]
add esp, 0x10
lea esi, [edi + 0x28]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
push 0
push ebx
push esi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0049877e
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x36c]
call fcn.004ca3f0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.00498187
test esi, esi
jne 0x499832
push 0xffffffffffffffff
push 0x53cb7c
lea ecx, [ebp - 0x94]
call fcn.00498084
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
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.004982cc
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.00498187
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.0049877e
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.0049b313
lea eax, [edi + 0x20]
mov ecx, ebx
push eax
call fcn.0049b1c3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.00498187
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x36c]
call fcn.004c855b
xor eax, eax
call fcn.00509213
ret 0x10
Function at 0x49c098
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x49c0bb
or esi, 1
push 2
call edi
test ax, ax
jns 0x49c0c7
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x49c0d3
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x49c0df
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x49f483
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x4a8]
call fcn.004bf1f6
mov edi, dword [ebp + 8]
test eax, eax
jle 0x49f4d9
push ebx
lea ecx, [esi + 0x4a8]
mov byte [ebp + 0xb], 0
call fcn.0049827c
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x49f537
lea ecx, [esi + 0x4a8]
inc ebx
call fcn.004bf1f6
cmp ebx, eax
jl 0x49f4a2
sub edi, 0x100
je 0x49f59d
sub edi, 4
je 0x49f53b
dec edi
dec edi
jne 0x49f592
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.005098d3
pop ecx
mov ecx, dword [esi + 0x104]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_select
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x4a0da6
call dword [eax + 0x134]
mov esi, eax
test esi, esi
je 0x49f592
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x128]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x49f594
cmp dword [esi + 0x108], 0
je 0x49f592
xor eax, eax
lea edi, [ebp - 0x1c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.0049c098
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x49f592
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x49f5f6
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x49f5f6
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x49f5f6
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0050508e
pop ecx
pop ecx
test eax, eax
je 0x49f5f6
mov ecx, dword [esi + 0x108]
call fcn.004b76e8
test al, al
jne 0x49f592
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x49f63e
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x49f63e
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x49f63e
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0050508e
pop ecx
pop ecx
test eax, eax
jne 0x49f592
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.004a0643
jmp 0x49f537
Function at 0x4a02ce
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0xa8]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x4a02fa
cmp esi, dword [ebx + 0x108]
je 0x4a02fa
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x108]
cmp esi, eax
je 0x4a03d1
push edi
test eax, eax
je 0x4a0359
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x17
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x108]
call fcn.0049ff1b
mov dword [ebx + 0x108], edi
test esi, esi
je 0x4a03d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x4a03d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x4a03d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4a03d0
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x108], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x108]
call fcn.0049ff1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a171a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a174c
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4b2dce
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4b2df2
cmp dword [esi + 8], edi
jge 0x4b2dea
push esi
call fcn.004ae323
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4b2e18
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4b2dfe
mov dword [esi + 8], edx
jmp 0x4b2e2d
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4b2e23
xor dl, dl
jmp 0x4b2e28
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4b2e18
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4b2e65
push str.zlib_corrupt
call fcn.004ae246
pop ecx
jmp 0x4b2ea5
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4b2e75
push str.read_past_buffer
jmp 0x4b2e5d
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4b2e8f
push edi
push ecx
push esi
call fcn.004b6121
add esp, 0xc
test eax, eax
je 0x4b2ea5
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.005085a0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x4b9392
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x69c], edi
je 0x4b93fc
cmp dword [ebp + 8], 0x100
jne 0x4b93eb
cmp word [ebp + 0xc], 0xd
jne 0x4b93eb
cmp byte [esi + 0x6a2], 0
je 0x4b93d2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4b93eb
cmp byte [esi + 0x6a3], 0
jne 0x4b93eb
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4b93e7
push edi
push edi
push edi
push str.return
push esi
call fcn.0049ff1b
xor eax, eax
jmp 0x4b93ff
mov eax, dword [esi + 0x69c]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10