joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x613995
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x67f864]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.00589b56
test eax, eax
je 0x4f3b3c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
je 0x4f3b3c
call fcn.00589b56
test eax, eax
je 0x4f3982
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x4f3984
xor eax, eax
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4f3b3c
mov edx, dword [esi + 0x60]
mov ebx, dword [esi + 0x5c]
mov dword [ebp - 0x14], edx
call fcn.0057ee1a
cmp dword [esi + 0x58], 0
mov edi, dword [eax + 0xc]
je 0x4f39cc
call fcn.0057ee1a
mov edi, dword [eax + 0xc]
mov eax, dword [esi + 0x58]
push 5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4f39da
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4f39f5
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00577d98
mov ebx, eax
mov dword [ebp - 0x20], ebx
call fcn.0056ebf6
push ebx
call fcn.0056eb4e
test ebx, ebx
mov dword [ebp - 0x1c], 0
je 0x4f3a27
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x2c]
call fcn.00574d26
mov dword [ebp - 4], 0
push esi
mov byte [ebp - 4], 1
call fcn.00570d84
push ebx
call fcn.0056eb4e
mov ecx, dword [ebp - 0x14]
push edi
push eax
push ecx
mov ecx, esi
call fcn.0057805f
test eax, eax
je 0x4f3ae6
test byte [esi + 0x3c], 0x10
je 0x4f3a9e
mov ecx, esi
mov edi, 4
call fcn.0057221a
test eax, 0x100
je 0x4f3a79
mov edi, 5
push 1
mov ecx, esi
call fcn.0057235f
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
call fcn.004dbed0
add esp, 4
push edi
mov ecx, esi
call fcn.0056e6c0
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f3ae6
cmp dword [esi + 0x20], 0
je 0x4f3ae6
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.0057267b
jmp 0x4f3ae6
mov dword [ebp - 4], 0xffffffff
call fcn.00574d3c
cmp dword [ebp - 0x1c], 0
je 0x4f3b01
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x4f3b17
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4f3b17
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
mov ecx, esi
call edx
mov ecx, esi
call fcn.00577dd2
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f57d0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x60f868
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x67f864]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 4], 0x102
jne 0x4f58d1
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jl 0x4f58d1
push 0x11
call esi
test ax, ax
jl 0x4f58d1
push 0x12
call esi
test ax, ax
jl 0x4f58d1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.005720b1
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4f58d1
lea ecx, [esp + 0x20]
call fcn.0044b580
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x18], edi
call fcn.0057018c
mov eax, dword [esp + 0x20]
mov esi, dword [eax - 0xc]
cmp esi, edi
jle 0x4f589f
push 0x26
push eax
call fcn.005d3af4
add esp, 8
cmp eax, edi
je 0x4f589f
sub eax, dword [esp + 0x20]
sar eax, 1
js 0x4f589f
add esi, 0xffffffff
cmp eax, esi
jge 0x4f589f
add eax, 1
push eax
lea ecx, [esp + 0x24]
call fcn.0044b7d0
mov ecx, eax
call fcn.004c78b0
movzx edi, ax
mov cx, word [ebx + 8]
call fcn.004c78b0
xor edx, edx
cmp di, ax
sete dl
lea ecx, [esp + 0x20]
mov esi, edx
call fcn.0044b670
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x4fb4c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x30
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, eax
lea eax, [ebp*4]
imul eax, esi
push edi
add eax, 0x28
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [esp + 0x38], eax
jne 0x4fb4f4
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x30
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [eax], 0x28
mov dword [eax + 4], ebp
mov dword [eax + 8], esi
mov word [eax + 0xc], 1
mov word [eax + 0xe], 0x20
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], edi
lea ebx, [eax + 0x28]
mov eax, dword [esp + 0x44]
shr eax, 0x10
cmp esi, edi
mov byte [esp + 0x13], al
jle 0x4fb69d
mov eax, dword [esp + 0x4c]
cdq
mov edi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
lea eax, [ebp*4]
lea ecx, [esi - 1]
imul ecx, eax
xor edi, edx
sub edi, edx
mov edx, eax
neg edx
add ecx, ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
jmp 0x4fb580
cmp dword [esp + 0x4c], 0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jl 0x4fb591
mov eax, ecx
test ebp, ebp
jle 0x4fb67d
movzx cx, byte [esp + 0x13]
mov word [esp + 0x28], cx
mov ecx, dword [esp + 0x44]
movzx dx, ch
movzx cx, cl
mov word [esp + 0x2c], dx
mov word [esp + 0x30], cx
mov dword [esp + 0x1c], ebp
mov edi, edi
movzx cx, byte [esi + 3]
movzx di, byte [esi]
mov ebx, dword [esp + 0x28]
imul di, cx
mov ebp, dword [esp + 0x2c]
mov edx, 0xff
sub edx, ecx
imul ebx, edx
imul ebp, edx
add di, bx
movzx ebx, byte [esi + 1]
imul bx, cx
add bx, bp
add bx, 0x80
movzx ebp, bx
movzx ebx, byte [esi + 2]
imul bx, cx
mov ecx, dword [esp + 0x30]
imul ecx, edx
add bx, cx
add bx, 0x80
movzx ecx, bx
movzx ecx, cx
mov ebx, ecx
shr ebx, 8
add ebx, ecx
sar ebx, 8
movzx edx, bp
movzx ecx, bl
mov ebx, edx
shr ebx, 8
add ebx, edx
add di, 0x80
or ecx, 0xffffff00
movzx edi, di
sar ebx, 8
shl ecx, 8
movzx edx, bl
or ecx, edx
movzx edi, di
mov edx, edi
shr edx, 8
add edx, edi
sar edx, 8
movzx edx, dl
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
add esi, 4
add eax, 4
sub dword [esp + 0x1c], 1
jne 0x4fb5c0
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
add dword [esp + 0x14], edi
lea eax, [ebp*4]
add dword [esp + 0x18], eax
add ecx, edx
sub dword [esp + 0x24], 1
mov dword [esp + 0x20], ecx
jne 0x4fb580
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x30
ret
Function at 0x4ff610
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esi]
mov edx, dword [edx + 0x184]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call edx
cmp dword [esi + 0x88], 0
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
je 0x4ff73b
mov eax, dword [esi + 0x84]
cmp eax, dword [esi + 0x5c]
jge 0x4ff6a9
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, eax
sub ecx, dword [esi + 0x60]
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
push ebx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4ff744
cmp dword [esi + 0x88], 0
je 0x4ff73b
mov eax, dword [esi + 0xe0]
mov ecx, dword [esp + 0x2c]
mov edx, eax
sub edx, dword [esi + 0x60]
add eax, 2
add edx, 2
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x40]
push ebx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4ff73b
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4ff710
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
mov eax, ecx
jmp 0x4ff722
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
test ax, ax
setl dl
mov eax, edx
xor ecx, ecx
test eax, eax
setne cl
lea ecx, [ecx*8 + 2]
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push ebx
mov ecx, esi
call fcn.005a3870
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x504550
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push edi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x504569
or byte [ebp + 0xc], 0x23
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x158]
test eax, eax
je 0x50457b
mov eax, dword [eax + 0x48]
jmp 0x50457d
xor eax, eax
lea edx, [esp + 4]
call fcn.00404050
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0xc]
push edi
call fcn.004a8470
mov eax, dword [ebp + 0xc]
add esp, 4
push edi
push eax
call fcn.004a7660
mov eax, dword [esp + 0xc]
xor edx, edx
call fcn.00404050
push 0
call fcn.004f0020
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x158], eax
mov dword [esi + 0x15c], edi
cmp esi, dword [ecx + 0x14c]
je 0x5045df
mov eax, esi
call fcn.004ee2c0
mov eax, esi
call fcn.00505000
push esi
call fcn.00505680
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x504af0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x158]
test eax, eax
push edi
je 0x504b10
mov edi, dword [eax + 0x48]
jmp 0x504b12
xor edi, edi
mov ebx, ecx
and bl, 4
neg bl
sbb bl, bl
push 0x12
and ebx, 0x23
mov byte [esp + 0x13], bl
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x504b36
or bl, 0x10
mov byte [esp + 0xf], bl
cmp dword [0x690ca0], edi
jne 0x504c16
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x158]
test eax, eax
je 0x504b54
mov eax, dword [eax + 0x48]
jmp 0x504b56
xor eax, eax
lea edx, [esp + 0x18]
call fcn.00404050
mov ebx, dword [ebp + 8]
lea edi, [esp + 0x10]
call fcn.00502410
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0xf]
push edi
call fcn.004a8470
add esp, 4
cmp dword [0x6b3664], 0
je 0x504bf7
push 0
mov ebx, esi
call fcn.00504980
test eax, eax
je 0x504b9d
push 0
mov eax, esi
call fcn.00504780
jmp 0x504bf7
movsx ecx, word [esp + 0x12]
movsx eax, di
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
fstp dword [esp + 0x20]
fld dword [0x62d818]
fstp dword [esp + 0x24]
call fcn.0044dfb0
mov eax, dword [ebp + 8]
fild dword [eax]
add dword [0x6908fc], 1
fstp dword [esi + 0x174]
fild dword [eax + 4]
fstp dword [esi + 0x178]
fld dword [0x62d818]
fstp dword [esi + 0x17c]
push 0
call fcn.004f0020
add esp, 4
push 1
call fcn.004dbed0
mov eax, dword [esp + 0x1c]
add esp, 4
xor edx, edx
call fcn.00404050
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x505680
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
call fcn.0057ee1a
cmp dword [0x692570], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x44]
je 0x5056a1
mov eax, 0x7f02
xor esi, esi
jmp 0x5057cf
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x54]
mov eax, dword [ecx + 0x158]
test eax, eax
je 0x5056b7
mov eax, dword [eax + 0x48]
jmp 0x5056b9
xor eax, eax
cmp dword [0x690ca0], eax
jne 0x5057c2
cmp byte [ecx + 0x131], 0
je 0x505708
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x5056ee
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
test ax, ax
setl cl
mov eax, ecx
jmp 0x505700
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
test ax, ax
setl dl
mov eax, edx
test eax, eax
jne 0x5057c2
mov eax, dword [0x6919d4]
cmp eax, 0x21
ja case.default.0x50571d
movzx eax, byte [eax + 0x50583c]
jmp dword [eax*4 + 0x5057ec]
mov eax, 0xa2
jmp 0x5057cf
mov eax, 0x124
jmp 0x5057cf
mov eax, 0xa1
jmp 0x5057cf
mov eax, 0xa3
jmp 0x5057cf
mov eax, 0x95
jmp 0x5057cf
mov eax, 0xa5
jmp 0x5057cf
mov eax, 0xa6
jmp 0x5057cf
mov eax, 0xa4
jmp 0x5057cf
mov eax, 0x7f01
xor esi, esi
jmp 0x5057cf
mov eax, 0xbc
jmp 0x5057cf
mov eax, 0xba
jmp 0x5057cf
mov eax, 0xbd
jmp 0x5057cf
mov eax, 0x7f84
xor esi, esi
jmp 0x5057cf
mov eax, 0x7f85
xor esi, esi
jmp 0x5057cf
mov eax, 0x566
jmp 0x5057cf
mov eax, 0x127
jmp 0x5057cf
mov eax, 0x128
jmp 0x5057cf
mov eax, 0x129
jmp 0x5057cf
mov eax, 0x12a
jmp 0x5057cf
mov eax, 0x12b
jmp 0x5057cf
mov eax, 0x7f00
xor esi, esi
jmp 0x5057cf
mov eax, dword [esp + 8]
movzx ecx, ax
push ecx
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 1
pop esi
ret 4

Function at 0x505fe0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
test esi, esi
mov eax, ecx
je 0x50600d
xor edx, edx
test eax, eax
sete dl
push edi
mov ecx, esi
mov eax, edx
call fcn.00488270
add esp, 4
pop ecx
ret
mov edx, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
sete cl
push edx
push edi
mov eax, ecx
mov ecx, dword [esp + 0x10]
call fcn.00487e80
add esp, 8
pop ecx
ret
Function at 0x506b90
Capabilities:
Create http request

Disassembly:
sub esp, 0x20c
mov eax, dword [0x67f864]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
mov esi, ecx
xor eax, eax
mov ebx, edx
push ebp
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
call fcn.0044d440
add esp, 4
test eax, eax
jne 0x506bda
mov dword [esp + 0xc], eax
push 0x6720b4
lea eax, [esp + 0x10]
push eax
call fcn.005d6638
mov ecx, str.GSP_5.00_Windows
mov eax, ecx
push edi
lea edi, [esp + 0x18]
lea ebx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x506bf0
sub eax, ebx
add eax, 1
cmp eax, 0x100
jle 0x506c16
mov eax, 0xff
mov word [esp + 0x216], 0
jmp 0x506c20
test eax, eax
je 0x506c34
lea ebx, [ebx]
movsx dx, byte [ecx]
sub eax, 1
mov word [edi], dx
add ecx, 1
add edi, 2
test eax, eax
jne 0x506c20
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0x30], eax
pop edi
jne 0x506c62
push 0x6720b4
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], eax
call fcn.005d6638
push 4
lea edx, [esp + 0x14]
push edx
push 2
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ce60a
add esp, 0x20c
ret 4

Function at 0x50b470
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x67f864]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
push 0x10
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
push 0x100
lea edx, [esp + 0x44]
push edx
mov eax, ecx
xor ecx, ecx
test eax, eax
setne cl
add ecx, 0xa1
push ecx
push 1
call fcn.0051a1e0
mov edx, dword [esi + 0x20]
add esp, 0x10
push edx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.0057efe4
mov edi, eax
test edi, edi
je 0x50b562
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push 0x30
lea ecx, [esp + 0x14]
mov ebx, eax
push 0
push ecx
mov dword [esp + 0x18], ebx
call fcn.005d5de0
add esp, 0xc
xor esi, esi
test ebx, ebx
mov dword [esp + 0x10], 0x30
jle 0x50b562
mov ebx, dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov edx, dword [edi + 4]
push esi
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0057efe4
test eax, eax
je 0x50b559
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x44]
push 0
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], 0x805a
mov eax, dword [eax + 4]
push 0x805a
push eax
call ebx
add esi, 1
cmp esi, dword [esp + 0xc]
jl 0x50b512
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005ce60a
mov esp, ebp
pop ebp
ret
Function at 0x50b580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x104c
call fcn.005d9b90
mov eax, dword [0x67f864]
xor eax, esp
mov dword [esp + 0x1048], eax
mov eax, dword [esp + 0x1050]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
mov esi, 1
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
lea ecx, [ecx]
cmp dword [0x6928c0], 0
jne 0x50b5f4
push 0xa
push 0x80
push 0
call ebp
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 2
mov dword [0x690b40], eax
mov dword [0x6928c0], esi
jmp 0x50b5f9
mov eax, dword [0x690b40]
movzx edi, word [esp + 0x10]
movzx eax, word [eax + 0x58]
lea edx, [edi - 1]
movzx esi, dx
add esi, eax
call fcn.0057ee1a
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x44]
push 0x800
lea ecx, [esp + 0x54]
push ecx
push esi
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
cmp word [esp + 0x50], cx
lea eax, [esp + 0x50]
je 0x50b76a
jmp 0x50b640
add eax, 2
add ecx, 1
cmp word [eax], 0
jne 0x50b640
test ecx, ecx
je 0x50b76a
cmp dword [0x6928c0], 0
jne 0x50b68c
push 0xa
push 0x80
push 0
call ebp
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 2
mov dword [0x690b40], eax
mov dword [0x6928c0], 1
jmp 0x50b691
mov eax, dword [0x690b40]
movzx esi, word [eax + 0x58]
movzx eax, di
add esi, eax
call fcn.0057ee1a
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x44]
push 0x800
lea ecx, [esp + 0x54]
push ecx
push esi
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
movzx eax, word [esp + 0x50]
cmp eax, 0x44
jne 0x50b756
xor ecx, ecx
test eax, eax
je 0x50b6f2
movzx eax, word [esp + ecx + 0x52]
movzx edx, word [ecx + 0x634c72]
add ecx, 2
cmp eax, edx
je 0x50b6c7
add dword [esp + 0xc], 1
add dword [esp + 0x10], 2
mov esi, 1
jmp 0x50b5c0
push 0x30
lea eax, [esp + 0x24]
push 0
push eax
call fcn.005d5de0
mov edi, dword [esp + 0x18]
mov ecx, dword [0x69284c]
mov esi, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 1
push edi
push esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push 1
add edi, 0xffffffff
push edi
push esi
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x38], 0
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
add dword [esp + 0xc], 1
add dword [esp + 0x10], 2
mov esi, 1
jmp 0x50b5c0
mov ecx, dword [esp + 0x1054]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005ce60a
add esp, 0x104c
ret
Function at 0x50e5a0
Capabilities:
Open clipboard

Disassembly:
push esi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x50e604
call dword [sym.imp.USER32.dll_EmptyClipboard]
test edi, edi
je 0x50e5ce
mov eax, dword [0x6923a4]
push edi
push eax
call fcn.004d51b0
push edi
call fcn.005ce619
add esp, 0xc
test esi, esi
je 0x50e5f8
mov eax, esi
call fcn.004f1950
mov eax, dword [esi]
test eax, eax
je 0x50e5e8
push eax
call fcn.005ce619
add esp, 4
mov esi, dword [esi + 4]
test esi, esi
je 0x50e5f8
push esi
call fcn.005ce619
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
jmp fcn.0050e180
pop esi
ret

Function at 0x50e610
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov esi, eax
mov dword [esp + 8], 0x65
call fcn.004d5170
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x50e639
mov eax, 0x65
pop esi
add esp, 8
ret
mov eax, esi
sub eax, 1
push edi
je 0x50e680
sub eax, 1
je 0x50e663
sub eax, 1
jne 0x50e70e
mov eax, dword [0x6923a4]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
mov dword [esp + 8], edi
jmp 0x50e68e
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 8], eax
call fcn.004f15c0
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 8]
mov dword [ecx], eax
jmp 0x50e68e
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 8], eax
mov edi, eax
test edi, edi
je 0x50e70e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp esi, 1
mov ebx, eax
jne 0x50e6a8
test bl, 1
je 0x50e6a8
sub ebx, esi
mov esi, dword [esp + 0x1c]
push ebp
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
je 0x50e70c
test ebx, ebx
jbe 0x50e70c
push 0
mov dword [esi], ebx
call fcn.0043ace0
mov edx, dword [esp + 0x20]
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
mov dword [edx], esi
je 0x50e6fd
mov eax, dword [esp + 0x20]
mov edi, dword [eax]
push edi
push ebp
push esi
call fcn.005dffd0
mov byte [edi + esi - 1], bl
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x14], ebx
jmp 0x50e705
mov dword [esp + 0x14], 0x64
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebp
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 8
ret

Function at 0x50f8f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push esi
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x50f914
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
test ax, ax
setl cl
mov esi, ecx
jmp 0x50f926
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
test ax, ax
setl dl
mov esi, edx
test esi, esi
je 0x50f94e
push 0
push 0x202
push 0x202
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x50f94e
xor eax, eax
pop esi
add esp, 0x1c
ret
mov eax, esi
pop esi
add esp, 0x1c
ret