joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f1d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467fc8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00429ad0
test eax, eax
je 0x42f2d8
lea ecx, [esp + 0xc]
call fcn.00401f10
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00429ad0
mov ecx, eax
call fcn.00427180
test eax, eax
je 0x42f2bf
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42f2bf
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42f2bf
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00402110
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42f2a1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42f2bf
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x496cb0]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x46c548
call fcn.00402110
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42f320
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00429ad0
test eax, eax
je 0x42f40f
mov ecx, edi
call fcn.00429ad0
mov ecx, eax
call fcn.00427030
test eax, eax
jne 0x42f40f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42f40f
mov eax, dword [0x496cb0]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42f382
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00429ad0
mov ecx, eax
call fcn.00427260
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42f40f
cmp ebx, eax
jne 0x42f40f
cmp dword [esp + 0x10], eax
jne 0x42f3f5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x432030
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468258
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x432069
inc eax
mov dword [esi + 0x10], eax
jmp 0x43217c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43207d
mov eax, 0xffffffc7
jmp 0x43217e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43208e
cmp dword [esi + 8], eax
jne 0x43207d
cmp dword [esi + 8], eax
jne 0x4320a7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4320a7
mov eax, 0xffffffc7
jmp 0x43217e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4320bb
push eax
mov ecx, ebx
call fcn.00431860
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401f10
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4320ec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401f30
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00430fd0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43211f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46c548
call fcn.00402110
mov eax, dword [esp + 0x38]
jmp 0x43217e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00431e90
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x432163
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00431eb0
mov esi, eax
test esi, esi
jne 0x432193
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00431e90
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x432135
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46c548
call fcn.00402110
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46c548
call fcn.00402110
mov eax, esi
jmp 0x43217e

Function at 0x4352b0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x435310
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x435310
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x435310
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x435310
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x435350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43b480
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004616b0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043ae20
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004615de
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045dea7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045dea7
push 1
push 0
push 0
mov ecx, esi
call fcn.0045de4f
push 1
push 0
push 1
mov ecx, esi
call fcn.0045de4f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461722
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43b600
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4688a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004616b0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043ae20
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004615de
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43b6c4
cmp dword [esp + 0x40], 1
jne 0x43b6c2
cmp ecx, eax
jge 0x43b6c4
mov eax, ecx
cmp eax, 0xc8
jge 0x43b6d0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043b480
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461722
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43be50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468913
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045c2c2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00461958
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00462e74
test eax, eax
je 0x43bf6c
mov ecx, dword [esp + 0x3c]
call fcn.00461985
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43bf30
push edi
mov ecx, esi
call fcn.0045eff1
mov ecx, esi
call fcn.0043c0d0
cmp dword [esp + 0x38], 1
jne 0x43bf65
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045f12c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43e990
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e9c3
push esi
call fcn.00441a90
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e9bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43ea49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43ea32
mov eax, dword [esi + 8]
test eax, eax
je 0x43e9e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43ea2e
cmp eax, 2
je 0x43ea32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e9da
cmp eax, 3
je 0x43ea0d
cmp eax, 1
jne 0x43e9da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e9da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e9da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043ea70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43ea58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043ea70
add esp, 4
pop esi
ret

Function at 0x45d0b8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45d0f0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045b16c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045b144
jmp 0x45d0fc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45e7ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45e7ed
call fcn.0046425a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45e7ed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45e7e4
xor eax, eax
jmp 0x45e7f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045e7fb
pop edi
pop esi
pop ebx
ret 4

Function at 0x46478a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4647b8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4647d6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004646f0
jmp 0x4647d6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4647d6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004646f0
test edi, edi
mov eax, edi
jne 0x4647c0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40966f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x409758
mov eax, dword [ebp - 0xc]
dec eax
je 0x40973b
dec eax
jne 0x409758
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x4096ce
cmp byte [ebp - 0x1e], 1
jne 0x4096ce
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x409737
dec eax
je 0x409733
dec eax
je 0x409711
dec eax
jne 0x409758
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x409705
dec eax
je 0x4096f9
dec eax
jne 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x409758
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40972f
dec eax
je 0x40972b
dec eax
jne 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x409758
push 0x3c
jmp 0x409757
push 0x32
jmp 0x409757
push 0x14
jmp 0x409757
push 5
jmp 0x409757
cmp dword [ebp - 0x14], 0
je 0x409755
cmp dword [ebp - 0x14], 0xa
je 0x409751
cmp dword [ebp - 0x14], 0x5a
jne 0x409758
push 0x28
jmp 0x409757
push 0x1e
jmp 0x409757
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret

Function at 0x40a6c1
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40a73d
push 9
call esi
test bl, al
je 0x40a73d
push 0x11
call esi
test bl, al
jne 0x40a73d
push 0x10
call esi
test bl, al
jne 0x40a73d
push 0x12
call esi
test bl, al
jne 0x40a73d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40a73d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40a73d
xor eax, eax
jmp 0x40a7bf
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40a766
push 0x11
call esi
test bl, al
jne 0x40a75e
push 0x10
call esi
test bl, al
jne 0x40a75e
push 0x12
call esi
test bl, al
je 0x40a766
push 1
push ebp
call fcn.0040a67a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40a77c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40a7bc
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40a7bc
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40a7bc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40a7bc
dec esi
push esi
push dword [0x411834]
call fcn.0040d53a
test eax, eax
je 0x40a7bc
mov eax, dword [eax + 8]
jmp 0x40a7be
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x45deb1
Capabilities:
Encode data using xor

Disassembly:
add eax, 0x66466126
pop ebp
sub al, 0x2c
popfd
test dword [edx], esi
ja 0x45de45
and dword [ebx], 0xbdb42796
xchg byte [eax - 0x313bb27e], cl
adc ah, 0x11
or byte [esi - 0x5883c3a], cl
arpl word [ebx + 0x25], si
and ebp, dword [ecx - 0x17]
js 0x45deea
arpl word [eax], dx
rcl dword [ecx + 0x2313bb7], cl
test byte [edx - 0x3e1d8333], al
outsd dx, dword [esi]
mov bl, 0xfc
aaa
dec esp
xor dh, byte [ecx + 0x44]
or ebx, dword [ebx + 0x41]
jecxz 0x45dea5
aam 0xf2
ja 0x45de71
sbb al, 0xbc
mov byte [0xf8dccdf0], al
jge 0x45de9e
dec eax
adc dl, byte [ecx - 0x3b]
mov byte [ebp + 0x11114a48], ch
xchg ebx, eax
add dword [eax], esi
mov eax, 0x60c6410
jmp 0xf3907075
xchg esp, eax
invalid

Function at 0x47333f
Capabilities:
Encode data using xor

Disassembly:
push ecx
bnd je 0x473345
test byte [ecx], ah
add al, dl
xchg dword [eax - 0x1e], esp
cmp eax, dword [edi - 0x50]
jle 0x473363
add al, 0x9d
cwde
dec esp
push eax
xchg ecx, eax
xor bh, ch
out dx, eax
push edi
cmp byte [edi], bl
pop ebp
push esi
test eax, 0xa3eddac2
imul byte [eax + 0x1ba0d80e]
loop 0x473311
mov ecx, 0xed44ba38
inc esp
in eax, dx
adc dword [ebx + 0x67], ebp
and al, 0x1d
je 0x47331c
sbb eax, 0xad45d474
inc ebp
lodsd eax, dword [esi]
pushfd
or byte [edi + 0x32], ah
adc dword [edx], esi
push eax
adc cl, 0x21
push esp
sar dword [esi + 0x2b], 1
in eax, dx
add ch, ch
xor dword [ebx], 0xffffffe3
and ebx, dword [ebp + 0x38760273]
xor byte [eax], dh
cmp byte [eax], dh
xor byte [esi - 0x77], cl
inc ebx
dec esi
mov dword [edi + 0x43], esp
cmp byte [edi - 0x36], cl
scasd eax, dword es:[edi]
xchg edi, eax
leave
loope 0x473366
cli
sub byte [esi + edi*4 + 0x40], bh
imul ebx, dword [eax], 0x58
pop eax
cwde
xchg ebp, eax
js 0x473321
add byte cs:[eax], al
add dl, ah
or dword [eax], eax
push cs
pushal
adc al, 0x26
adc eax, dword [eax]
add byte [eax], al
add byte [edi], ah
add dword [eax], eax
add dword [ebp], ecx
add byte [edx], al
cmovno ebx, dword [edx + 0x4b971a0a]
imul eax, dword [esi + eax*2 - 1], 0xfffffff7
jnp 0x4733aa
mov edi, 0xafe16a40
xchg edi, eax
or eax, 0xf1498f1d
invalid
Function at 0x4031e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d88
test esi, esi
jne 0x40321f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404e78
jmp 0x403240
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00403084
mov dword [esp], eax
test esi, esi
je 0x403240
cmp dword [ebx], 0
je 0x403240
dec esi
jmp 0x403227
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b2020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403e58
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403e38
xor eax, eax
push ebp
push 0x403e31
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403e74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4b2020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b2020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404b60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b804c], 0
je 0x404bc1
cmp word [0x4b8220], 0xd7b2
jne 0x404b89
cmp dword [0x4b8228], 0
jbe 0x404b89
mov eax, 0x4b821c
call dword [0x4b8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b2070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404be8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b2030], 0
jne 0x404bdd
push 0
push 0x4b2068
push 0x4b2070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404d3c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402e24
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404d04
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc