joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7250
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 1
call dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x4d7273
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor esi, esi
cmp dword [0x6be344], esi
jne 0x4d7268
push esi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x4d7268
push 1
mov dword [esp + 0x18], esi
mov dword [0x6be344], 1
mov dword [esp + 0x10], esi
call dword [sym.imp.user32.dll_GetClipboardData]
mov ebx, eax
cmp ebx, esi
je 0x4d72ec
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d72b4
sub eax, edx
add eax, 1
push eax
call fcn.005a854a
mov esi, eax
mov edx, esi
add esp, 4
mov dword [esp + 0xc], esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4d72d7
push ebx
call dword [sym.imp.kernel32.dll_GlobalUnlock]
jmp 0x4d72f0
mov esi, dword [esp + 0x14]
call dword [sym.imp.user32.dll_CloseClipboard]
cmp dword [esp + 0xc], 0
je 0x4d73e1
mov edi, dword [ebp + 8]
push 0
push esi
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.004d8d40
test eax, eax
je 0x4d733d
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d7320
sub eax, edx
push 1
push eax
mov edx, esi
mov ecx, edi
call fcn.004d9310
mov dword [esp + 0x10], eax
jmp 0x4d73a3
push str.PD:
push esi
call fcn.005a5af0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4d73a3
push str.EK:
push ebx
call fcn.005a5af0
add esp, 8
test eax, eax
je 0x4d73a3
sub eax, ebx
add eax, 4
mov edi, eax
lea eax, [edi + 0x10]
push 1
push eax
call fcn.005a997a
mov esi, eax
add esp, 8
test esi, esi
je 0x4d73a3
push edi
push ebx
push esi
call fcn.005aad50
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push edi
mov edx, esi
call fcn.004d9310
push esi
mov dword [esp + 0x14], eax
call fcn.005a8a7b
add esp, 4
mov ecx, dword [esp + 0xc]
push ecx
call fcn.005a8a7b
mov esi, dword [esp + 0x14]
add esp, 4
test esi, esi
je 0x4d73e1
push 0
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x4d73d0
call dword [sym.imp.user32.dll_EmptyClipboard]
call dword [sym.imp.user32.dll_CloseClipboard]
mov edx, dword [ebp + 8]
mov dword [edx + 0x100], esi
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [0x6be344], 0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d7880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xac
mov eax, dword [0x69e3d4]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc4]
cmp eax, dword [esi + 0xc0]
push edi
je 0x4d78b8
push eax
mov ebx, str.VerCheckDays
mov edi, str.Vcheck
call fcn.004d63c0
mov eax, dword [esi + 0xbc]
push eax
mov ebx, str.lvAsked
mov edi, str.Vcheck
call fcn.004d63c0
mov ecx, dword [esi + 0xb0]
push ecx
mov ebx, str.lvMajor
call fcn.004d63c0
mov edx, dword [esi + 0xb4]
push edx
mov ebx, str.lvMinor
call fcn.004d63c0
mov eax, dword [esi + 0xb8]
push eax
mov ebx, str.lvFix
call fcn.004d63c0
mov ecx, dword [0x6bd070]
push ecx
mov ebx, str.Ltch
call fcn.004d63c0
mov edx, dword [0x6bd078]
push edx
mov ebx, str.Lvch
call fcn.004d63c0
push edi
mov edi, dword [esi + 0xd8]
mov ebx, str.AdEngine
call fcn.004d62f0
mov edi, dword [esi + 0xcc]
push str.Vcheck
mov ebx, str.NewVerURL
call fcn.004d62f0
mov edi, dword [esi + 0xd0]
push str.Vcheck
mov ebx, str.Message
call fcn.004d62f0
mov edi, dword [esi + 0xd4]
push str.Vcheck
mov ebx, str.MessageURL
call fcn.004d62f0
mov ebp, dword [esi + 0x198]
mov edi, dword [esi + 0xdc]
push str.Vcheck
mov ebx, 0x65bd04
mov dword [esp + 0x14], ebp
mov dword [esi + 0x198], 0
call fcn.004d62f0
mov eax, dword [esi + 0xdc]
push 0x646c30
push eax
call fcn.005a58c6
add esp, 8
test eax, eax
jle 0x4d7ad5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax - 0xc]
add eax, 0x14
push 1
push eax
call fcn.005a997a
mov ecx, dword [esi + 0xdc]
mov edx, dword [ecx - 0xc]
mov ecx, dword [0x6bd078]
mov edi, eax
mov eax, dword [0x6bd070]
add edx, 0x14
push 0
mov dword [edi], edx
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
call fcn.005a671d
lea ebp, [edi + 0x10]
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0xdc]
add esp, 0xc
mov edx, ebp
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x4d7a05
mov edx, dword [esi + 0xdc]
cmp dword [edx - 0xc], 0
lea ecx, [edi + 0xc]
jle 0x4d7a53
mov edx, 0xfffffff0
sub edx, edi
mov eax, ebp
mov dword [esp + 0x14], edx
jmp 0x4d7a35
mov edx, dword [esp + 0x14]
mov bl, byte [ecx]
xor byte [eax], bl
add ecx, 1
cmp ecx, ebp
jb 0x4d7a43
lea ecx, [edi + 0xc]
mov ebx, dword [esi + 0xdc]
add eax, 1
add edx, eax
cmp edx, dword [ebx - 0xc]
jl 0x4d7a31
mov eax, dword [esi + 0x24]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push 0
call fcn.005653fe
add esp, 0xc
cmp eax, 0x4dad36bb
mov ebx, eax
jne 0x4d7a78
mov eax, 0xa10b5339
mov ebx, 0x24e3af87
push eax
lea eax, [esp + 0x1c]
push str.Identities_X_CA39_31BF_B518_527AD6AE017B
push eax
call fcn.005a5a2e
push ebx
lea ecx, [esp + 0x78]
push str.CLSID_X_C9A3_1B3F_B185_D6A527AE017BVERSION
push ecx
call fcn.005a5a2e
mov edx, dword [edi]
push edx
push edi
push 0x65bd64
lea ecx, [esp + 0x3c]
mov edx, 0x80000001
call fcn.004e0f40
mov eax, dword [edi]
push eax
push edi
push 0
lea ecx, [esp + 0x98]
mov edx, 0x80000000
call fcn.004e0f40
mov ecx, dword [esp + 0x40]
add esp, 0x30
mov dword [esi + 0x198], ecx
jmp 0x4d7adb
mov dword [esi + 0x198], ebp
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005a58d9
add esp, 0xac
ret
Function at 0x4da530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60ed86
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 1
call fcn.004dd920
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 0
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
push eax
push edx
call fcn.005d2b12
lea ecx, [esi + 8]
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
push eax
push edx
call fcn.005d2b12
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4e0e00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x69e3d4]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
lea eax, [esp + 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesComDlg32
mov dword [esp + 0x14], ebx
push 0x80000001
mov byte [esp + 0x24], bl
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4e0e7d
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push str.NoPlacesBar
push ecx
mov dword [esp + 0x1c], 0x104
mov byte [esp + 0x28], bl
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x4e0e72
mov byte [esp + 0x10], bl
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00404eb0
mov ecx, dword [esp + 0x118]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.005a58d9
add esp, 0x118
ret

Function at 0x4e0eb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
lea eax, [esp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push edx
mov dword [esp + 0x20], 3
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4e0f29
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExA]
push edi
push eax
lea eax, [esp + 0x18]
push eax
push esi
push ebp
push ecx
mov dword [edi], esi
call ebx
test eax, eax
jne 0x4e0f1d
mov eax, dword [edi]
test eax, eax
jbe 0x4e0f1d
push eax
call fcn.005a854a
mov esi, eax
add esp, 4
test esi, esi
je 0x4e0f1d
mov eax, dword [esp + 0xc]
push edi
push esi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 8
ret

Function at 0x4e0f40
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x4e0f7f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 3
push esi
push edx
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x4e0f90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
mov dword [esp + 0x14], esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4e0fee
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x65bc24
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x4e0fe3
mov dword [esp], esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret
Function at 0x4e1000
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
xor edi, edi
push edi
mov esi, eax
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x4e1074
call dword [sym.imp.user32.dll_EmptyClipboard]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4e1020
sub eax, edx
add eax, 1
push eax
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov cl, byte [esi]
mov byte [eax], cl
add esi, 1
add eax, 1
test cl, cl
jne 0x4e1043
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.user32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x4e13e0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0xc
lea ecx, [esp]
push ecx
push 0x4e1770
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.user32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 0xc
ret

Function at 0x4e1420
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x6bd1bc]
test eax, eax
jne 0x4e1451
mov eax, dword [0x6bd1b4]
test eax, eax
jne 0x4e1433
ret
mov ecx, dword [0x6bd1a0]
mov edx, dword [0x6bd19c]
push ecx
push edx
push 0
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [0x6bd1bc], eax
ret

Function at 0x4e1530
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4e1538
ret
mov ecx, dword [esi + 8]
push ecx
push 0
push 0
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
xor edx, edx
test eax, eax
setne dl
mov dword [esi + 0x24], eax
mov eax, edx
ret

Function at 0x4e2170
Capabilities:
Hash data with md5

Disassembly:
jmp 0x4e23a0
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4e5a70
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x69e3d4]
xor eax, esp
mov dword [esp + 0x25c], eax
push esi
push edi
mov esi, ecx
push 0x65cf30
push esi
xor edi, edi
call fcn.005affb0
add esp, 8
test eax, eax
je 0x4e5ab8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.005a58d9
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4e5aed
mov edi, dword [esp + 8]
push eax
and edi, 0x10
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.005a58d9
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x148]
push ecx
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push esi
mov esi, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
je 0x4e5ad7
lea edx, [esp + 0x148]
push edx
call esi
mov ecx, dword [esp + 0x264]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.005a58d9
mov esp, ebp
pop ebp
ret

Function at 0x4e6e20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
test ecx, ecx
push ebx
mov ebx, eax
je 0x4e6edb
cmp dword [ecx + 0x1c], 0
je 0x4e6edb
movzx eax, word [ebx + 0x2e]
cmp ax, word [ecx + 0x2e]
jne 0x4e6edb
mov edx, dword [ecx + 0x448]
push ebp
mov ebp, dword [ebx + 0x448]
push esi
push edi
movzx edi, ax
mov eax, dword [ebx + 0x24]
push edi
mov dword [esp + 0x18], edx
call fcn.004e6400
mov esi, eax
mov eax, dword [ecx + 0x24]
push edi
mov dword [esp + 0x20], esi
call fcn.004e6400
add esp, 8
cmp esi, eax
jge 0x4e6e83
mov edi, esi
mov dword [esp + 0x10], edi
jmp 0x4e6e89
mov dword [esp + 0x10], eax
mov edi, eax
mov ecx, dword [ecx + 0x28]
mov ebx, dword [ebx + 0x28]
cmp ebx, ecx
jge 0x4e6e95
mov ecx, ebx
test ecx, ecx
jle 0x4e6ece
mov esi, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
test edi, edi
mov ecx, esi
jle 0x4e6ec1
mov edx, ebp
sub edx, esi
lea ecx, [ecx]
mov bl, byte [edx + ecx]
xor byte [ecx], bl
add ecx, 1
sub edi, 1
jne 0x4e6eb0
mov edi, dword [esp + 0x10]
add esi, dword [esp + 0x18]
add ebp, eax
sub dword [esp + 0x14], 1
jne 0x4e6ea3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4eb390
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x24
push ebp
push edi
xor edi, edi
cmp esi, edi
je 0x4eb3b5
push edi
push 2
mov ecx, esi
call fcn.0057941f
test eax, eax
jne 0x4eb3e3
push edi
push 8
mov ecx, esi
call fcn.0057941f
jmp 0x4eb3df
mov ebp, dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
push 2
call ebp
test eax, eax
jne 0x4eb3d8
push 8
call ebp
test eax, eax
jne 0x4eb3d8
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov eax, ebx
pop edi
pop ebp
add esp, 0x24
ret
push edi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x4eb3cb
cmp esi, edi
je 0x4eb3f3
push edi
push 2
mov ecx, esi
call fcn.005794ac
jmp 0x4eb3fb
push 2
call dword [sym.imp.user32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
jne 0x4eb411
test esi, esi
je 0x4eb451
push eax
push 8
mov ecx, esi
call fcn.005794ac
mov edi, eax
test esi, esi
jne 0x4eb41b
call dword [sym.imp.user32.dll_CloseClipboard]
test ebp, ebp
je 0x4eb45d
lea eax, [esp + 0x10]
push eax
push 0x18
push ebp
call dword [sym.imp.gdi32.dll_GetObjectA]
test eax, eax
je 0x4eb495
test esi, esi
je 0x4eb43c
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov eax, ebx
pop edi
pop ebp
add esp, 0x24
ret
push 8
call dword [sym.imp.user32.dll_GetClipboardData]
mov edi, eax
jmp 0x4eb415
test edi, edi
je 0x4eb495
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 8]
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
test esi, esi
je 0x4eb484
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [esp + 0xc]
mov dword [ebx], ebp
mov dword [ebx + 4], ecx
mov eax, ebx
pop edi
pop ebp
add esp, 0x24
ret
pop edi
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov eax, ebx
pop ebp
add esp, 0x24
ret
Function at 0x4ec3b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x69e3d4]
xor eax, esp
mov dword [esp + 0x10c], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.Control_PanelCursors
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ec46c
push ebx
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExA]
push ebp
mov ebp, dword [sym.imp.user32.dll_LoadCursorFromFileA]
push esi
mov esi, 0x6a53e4
jmp 0x4ec400
mov eax, dword [esi]
test eax, eax
je 0x4ec40d
push eax
call dword [sym.imp.user32.dll_DestroyCursor]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esi - 0x18]
push ecx
push edx
mov dword [esi], 0
mov dword [esi - 4], 0
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x4ec45e
lea eax, [esp + 0x18]
push eax
call ebp
test eax, eax
mov dword [esi], eax
je 0x4ec45e
mov ecx, dword [esi - 0x1c]
push ecx
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [esi - 4], eax
add esi, 0x20
cmp esi, 0x6a5584
jl 0x4ec400
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.005a58d9
add esp, 0x110
ret
Function at 0x4ec490
Capabilities:
Check os version
Log keystrokes

Disassembly:
sub esp, 0xc4
mov eax, dword [0x69e3d4]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [0x6adab8]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, 1
jne 0x4ec58f
push str.user32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov esi, eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [esp + 0x40], 2
jne 0x4ec573
cmp dword [esp + 0x34], 5
jae 0x4ec573
mov dword [0x6adab8], edi
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.user32.dll_GetCursorPos]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.user32.dll_WindowFromPoint]
mov edi, dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push 1
mov esi, eax
call edi
mov ebx, dword [sym.imp.user32.dll_GetWindowThreadProcessId]
push eax
push 0
push esi
call ebx
mov ebp, dword [sym.imp.user32.dll_AttachThreadInput]
push eax
call ebp
call dword [sym.imp.user32.dll_GetCursor]
push 0
mov dword [esp + 0x14], eax
call edi
push eax
push 0
push esi
call ebx
push eax
call ebp
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4ec56f
mov eax, 0x6a53e4
cmp edx, dword [eax - 4]
jne 0x4ec565
mov ecx, dword [eax]
test ecx, ecx
je 0x4ec565
mov dword [esp + 0x10], ecx
mov edx, ecx
add eax, 0x20
cmp eax, 0x6a5584
jl 0x4ec554
mov eax, edx
jmp 0x4ec5d1
test esi, esi
je 0x4ec58a
push str.GetCursorInfo
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6adab8], eax
jmp 0x4ec58f
mov eax, dword [0x6adab8]
test eax, eax
je 0x4ec4f4
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x14
call eax
test eax, eax
je 0x4ec5cf
cmp dword [esp + 0x18], edi
je 0x4ec5cf
mov edx, dword [esp + 0x1c]
jmp 0x4ec54b
mov eax, edi
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005a58d9
add esp, 0xc4
ret
Function at 0x4eeab1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4eeb09
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x641d28
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4eeafc
inc esi
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
jmp 0x4eeb0b
xor eax, eax
pop esi
leave
ret 4

Function at 0x4f18c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x114
push esi
push edi
push 0x6bf020
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
call fcn.004f6760
push 0x6bf040
call fcn.004f16f0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.004f1970
mov esi, dword [0x6bf040]
mov edi, dword [esp + 0x14]
mov ecx, 0x41
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x18]
mov ecx, 0x40
mov edi, dword [eax]
add eax, 4
xor edi, 0xfffffffe
dec ecx
mov dword [eax - 4], edi
jne 0x4f190e
push 0x6bf040
call fcn.004f16f0
lea edx, [esp + 0xc]
push edx
call fcn.004f16f0
add esp, 8
push 0x6bf020
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x124]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x120]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x114
ret
Function at 0x4f7fe0
Capabilities:
Create thread
Read file on windows

Disassembly:
mov eax, dword [0x68e418]
sub esp, 0x88
cmp eax, 0xffffffff
je 0x4f804c
push 0xa
push eax
call dword [sym.imp.kernel32.dll_PurgeComm]
mov edx, dword [0x68e418]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push 0x80
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4f804c
cmp dword [esp + 4], 0x80
jne 0x4f804c
lea eax, [esp + 8]
push 0x80
push eax
call fcn.004f17d0
push 0x43
mov dword [0x6bf04c], 0
call fcn.004fe4a0
add esp, 0xc
test eax, eax
jne 0x4f808d
mov eax, dword [0x6adfec]
test eax, eax
jne 0x4f808d
mov eax, dword [0x6bee38]
test eax, eax
je 0x4f806e
lea ecx, [esp]
push ecx
push 0
push 0
push 0x4f7aa0
jmp 0x4f807c
lea edx, [esp]
push edx
push 0
push 0
push 0x4f7d70
push 0
push 0
call fcn.005aa0bf
add esp, 0x18
mov dword [0x6adfec], eax
add esp, 0x88
ret

Function at 0x4f8100
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x80
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x68e418], eax
je 0x4f822f
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetCommState]
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.kernel32.dll_BuildCommDCBA]
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x68e418]
and ch, 0xef
lea edx, [esp + 0x24]
or ch, 0x20
push edx
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.kernel32.dll_SetCommState]
test eax, eax
je 0x4f822a
mov edx, dword [0x68e418]
lea ecx, [esp + 0x40]
push ecx
push edx
mov word [esp + 0x48], 0x40
call dword [sym.imp.kernel32.dll_GetCommProperties]
test byte [esp + 0x5c], 0x80
je 0x4f81d2
mov ecx, dword [0x68e418]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetCommTimeouts]
mov eax, dword [0x68e418]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x20], 0x64
call dword [sym.imp.kernel32.dll_SetCommTimeouts]
mov ecx, dword [0x68e418]
push esi
mov esi, dword [sym.imp.kernel32.dll_PurgeComm]
push 0xa
push ecx
call esi
push 0xfa
call dword [sym.imp.kernel32.dll_Sleep]
mov edx, dword [0x68e418]
push 0xa
push edx
call esi
mov edx, dword [0x68e418]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push 0xa
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
pop esi
je 0x4f822a
cmp dword [esp], 0xa
jne 0x4f822a
xor eax, eax
add esp, 0x80
ret
call fcn.004f8240
or eax, 0xffffffff
add esp, 0x80
ret