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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468c98
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042a330
test eax, eax
je 0x42fb38
lea ecx, [esp + 0xc]
call fcn.00403850
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.0042a330
mov ecx, eax
call fcn.004279f0
test eax, eax
je 0x42fb1f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42fb1f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42fb1f
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.00403a50
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42fb01
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42fb1f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4b7db0]
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], 0x48de30
call fcn.00403a50
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42fb80
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042a330
test eax, eax
je 0x42fc6f
mov ecx, edi
call fcn.0042a330
mov ecx, eax
call fcn.004278a0
test eax, eax
jne 0x42fc6f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42fc6f
mov eax, dword [0x4b7db0]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42fbe2
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.0042a330
mov ecx, eax
call fcn.00427ad0
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 0x42fc6f
cmp ebx, eax
jne 0x42fc6f
cmp dword [esp + 0x10], eax
jne 0x42fc55
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 0x432890
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468f28
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 0x4328c9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4329dc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4328dd
mov eax, 0xffffffc7
jmp 0x4329de
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4328ee
cmp dword [esi + 8], eax
jne 0x4328dd
cmp dword [esi + 8], eax
jne 0x432907
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x432907
mov eax, 0xffffffc7
jmp 0x4329de
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43291b
push eax
mov ecx, ebx
call fcn.004320c0
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.00403850
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43294c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00403870
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00431830
test eax, eax
mov dword [esp + 0x38], eax
je 0x43297f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x48de30
call fcn.00403a50
mov eax, dword [esp + 0x38]
jmp 0x4329de
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004326f0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4329c3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00432710
mov esi, eax
test esi, esi
jne 0x4329f3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004326f0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x432995
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x48de30
call fcn.00403a50
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], 0x48de30
call fcn.00403a50
mov eax, esi
jmp 0x4329de

Function at 0x435b00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x435b60
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x435b60
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x435b60
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x435b60
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 0x435ba0
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 0x43bac0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469558
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.00462443
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043b460
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.00462371
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.0045ec35
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.0045ec35
push 1
push 0
push 0
mov ecx, esi
call fcn.0045ebdd
push 1
push 0
push 1
mov ecx, esi
call fcn.0045ebdd
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004624b5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43bc40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469578
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.00462443
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043b460
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.00462371
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 0x43bd04
cmp dword [esp + 0x40], 1
jne 0x43bd02
cmp ecx, eax
jge 0x43bd04
mov eax, ecx
cmp eax, 0xc8
jge 0x43bd10
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043bac0
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.004624b5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43c490
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4695e3
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.0045d055
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.004626eb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00463c07
test eax, eax
je 0x43c5ac
mov ecx, dword [esp + 0x3c]
call fcn.00462718
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 0x43c570
push edi
mov ecx, esi
call fcn.0045fd80
mov ecx, esi
call fcn.0043c710
cmp dword [esp + 0x38], 1
jne 0x43c5a5
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.0045febb
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 0x43efd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f003
push esi
call fcn.004420e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43effc
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 0x43f089
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f072
mov eax, dword [esi + 8]
test eax, eax
je 0x43f027
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 0x43f06e
cmp eax, 2
je 0x43f072
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f01a
cmp eax, 3
je 0x43f04d
cmp eax, 1
jne 0x43f01a
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 0x43f01a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f01a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f0b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f098
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f0b0
add esp, 4
pop esi
ret

Function at 0x45de4b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45de83
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.0045beff
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045bed7
jmp 0x45de8f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45f53d
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 0x45f57f
call fcn.00464fed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45f57f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45f576
xor eax, eax
jmp 0x45f587
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045f58d
pop edi
pop esi
pop ebx
ret 4

Function at 0x46551d
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 0x46554b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x465569
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465483
jmp 0x465569
mov eax, dword [esi + 0x14]
test eax, eax
je 0x465569
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465483
test edi, edi
mov eax, edi
jne 0x465553
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408b65
Capabilities:
Encode data using xor

Disassembly:
or bp, 0
jmp 0x408b37
jmp 0x408b3a
or ax, 0
jmp 0x408b41
push eax
pushfd
pop eax
test ah, 1
jne 0x408b47
pop eax
xchg edi, edi
nop
push edx
pushfd
pop edx
test dh, 1
jne 0x408b53
pop edx
nop
call 0x408b65
xchg ebp, ebp
xor dx, 0
cld
nop
cld
pop ebp
add bx, 0
or bx, 0
or bh, 0
nop
cld
cld
nop
sub ebp, 0x401005
jmp 0x408b7e
jmp 0x408b81
xor ebx, 0
sub sp, 0
push ecx
pushfd
pop ecx
test ch, 1
jne 0x408b8e
pop ecx
cld
sub esi, 0
jmp 0x408b98
nop
cld
nop
cld
lea esi, [ebp + 0x401120]
push ecx
pushfd
pop ecx
test ch, 1
jne 0x408ba8
pop ecx
cld
cld
mov ecx, 0x27c
jmp 0x408bb5
mov esp, esp
add di, 0
push eax
pushfd
pop eax
test ah, 1
jne 0x408bc1
pop eax
cld
push ebx
pushfd
pop ebx
test bh, 1
jne 0x408bcb
pop ebx
nop
nop
nop
nop
nop
mov al, byte [esi]
jmp 0x408bd8
mov esi, esi
jmp 0x408bdd
cld
cld
nop
rol al, 0xd0
sub ebp, 0
jmp 0x408be9
xor esp, 0
mov di, di
xchg dx, dx
cld
add al, 0
cld
mov dh, dh
nop
nop
nop
cld
mov byte [esi], al
cld
sub di, 0
push ebx
pushfd
pop ebx
test bh, 1
jne 0x408c09
pop ebx
cld
jmp 0x408c10
push ebx
pushfd
pop ebx
test bh, 1
jne 0x408c16
pop ebx
jmp 0x408c1c
push ebx
pushfd
pop ebx
test bh, 1
jne 0x408c22
pop ebx
dec ecx
cld
or dh, 0
mov si, si
add cl, 0
xchg ebp, ebp
nop
xor si, 0
jmp 0x408c3a
push ebx
pushfd
pop ebx
test bh, 1
jne 0x408c40
pop ebx
jmp 0x408c46
nop
nop
nop
inc esi
cld
cld
xchg edi, edi
jmp 0x408c51
xor ecx, 0
xor di, 0
cld
nop
add sp, 0
push ebx
pushfd
pop ebx
test bh, 1
jne 0x408c64
pop ebx
xor bp, 0
cld
nop
cld
nop
test ecx, ecx
jne 0x408bd3
pushal
mov esi, entry0
mov eax, 0x8b7eecbd
mov dword [esi], eax
mov eax, 0xf73a08c0
mov dword [esi + 4], eax
mov eax, 0x3828cd
mov dword [esi + 8], eax
mov eax, 0xf4a2c8c
mov dword [esi + 0xc], eax
mov eax, 0x81a6807
mov dword [esi + 0x10], eax
mov eax, 0x101a7807
mov dword [esi + 0x14], eax
mov eax, 0x3862e05
mov dword [esi + 0x18], eax
popal
jmp 0x408cb9
pushal
pushfd
mov esi, entry0
mov edi, esi
mov ecx, 0xcba
mov ebx, 0x3e2c8c
lodsd eax, dword [esi]
xor eax, ebx
stosd dword es:[edi], eax
loop 0x408ccc
popfd
popal
jmp 0x408cd8
pushal
pushfd
mov esi, section..data
mov edi, esi
mov ecx, 0x6e8
mov ebx, 0x3e2c8c
lodsd eax, dword [esi]
xor eax, ebx
stosd dword es:[edi], eax
loop 0x408ceb
popfd
popal
mov edx, 0x4011cb
push edx
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40596d
pop dword [ebp - 0xc]
mov eax, 0x3bb62254
add eax, 0xc48a3719
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x560313b0
sub dword [ebp - 0x1c], 0x7b0ce65
mov dword [ebp - 0x18], 0x254903ed
sub dword [ebp - 0x18], 0xf315b7a8
mov dword [ebp - 0x14], 0xee92b977
sub dword [ebp - 0x14], 0xa2467549
mov dword [ebp - 0x10], 0xb000654b
add dword [ebp - 0x10], 0x4fff9ab5
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xa9023620
add eax, 0x573e3a40
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xf1dda4f4
sub dword [ebp - 0x1c], 0x7d6b3b9e
mov dword [ebp - 0x18], 0x9f707df8
add dword [ebp - 0x18], 0xa1fbe37d
mov dword [ebp - 0x14], 0x3d4fbc27
sub dword [ebp - 0x14], 0xd9e04fbb
mov dword [ebp - 0x10], 0xb7d80f29
sub dword [ebp - 0x10], 0xb7d80f29
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xd5f1e658
add eax, 0x2a4e8aa8
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x34663
push 0
call eax
mov ecx, 0x9c513443
sub ecx, 0x9c50f588
mov ebx, eax
mov esi, 0x7e7e1d2b
add esi, 0x81c2e2d5
add esi, dword [ebp - 0xc]
mov edx, 0x6209c20b
sub edx, 0x4269f6bf
add dword [ebp - 4], ebx
mov edi, dword [esi]
add dword [ebp - 4], ecx
xor edi, edx
mov dword [ebp - 4], 0x3ae064d7
mov dword [ebx], edi
sub dword [ebp - 8], 0xf46f91c1
add ebx, 4
add esi, 0x41d7b337
sub esi, 0x41d7b333
loop 0x405a8f
add eax, 0xedbf
mov ebx, eax
add eax, 0xfb0f1762
sub eax, 0xfb0f175d
mov ecx, 0xa48584a0
add ecx, 0x5bba7b60
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x411020]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, 0x411020
cmp eax, edi
mov dword [0x411030], edi
je 0x401025
mov eax, dword [esi + 8]
add esi, 8
cmp eax, edi
jne 0x40101b
mov eax, dword [esi + 4]
test eax, eax
jne 0x401035
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov ebx, dword [esp + 0x10]
and edi, 0xffff
push 5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push edi
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401d70
Capabilities:
Set registry value

Disassembly:
sub esp, 0x250
lea eax, [esp + 0x48]
push str.SoftwareCanonCAP3MonitorsCAP3_Monitor
push eax
call fcn.0040cbb0
mov ecx, dword [esp + 0x260]
add esp, 8
and ecx, 0xffff
lea edx, [esp + 8]
push ecx
push str.LPT_d:
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.0040cb70
add esp, 8
lea edx, [esp + 4]
lea eax, [esp]
lea ecx, [esp + 0x48]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x419d7c
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401e14
mov ecx, dword [esp]
lea edx, [esp + 0x254]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x26c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x250
ret

Function at 0x401e20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x258
lea eax, [esp + 0x50]
push str.SoftwareCanonCAP3MonitorsCAP3_Monitor
push eax
call fcn.0040cbb0
mov ecx, dword [esp + 0x26c]
add esp, 8
and ecx, 0xffff
lea edx, [esp + 0x10]
push ecx
push str.LPT_d:
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.0040cb70
add esp, 8
lea edx, [esp + 8]
lea eax, [esp]
lea ecx, [esp + 0x50]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x419d7c
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401ee2
mov ecx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x260]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push esi
push eax
push 0
push ecx
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401ed6
mov eax, dword [esp + 0x264]
mov dword [esi], eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x258
ret
Function at 0x4025e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
mov dword [esp], 0
test eax, eax
jne 0x4025f7
add esp, 8
ret
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40264d
mov eax, 4
lea ecx, [esp]
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push 0
push str.CAPTCompliant
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40264d
mov dword [esp], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40265c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 8
ret

Function at 0x402670
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebx
push ebp
push esi
lea eax, [esp + 0x30]
push edi
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402777
push eax
push eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x48]
push ecx
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x402777
mov eax, dword [esp + 0x30]
test eax, eax
jbe 0x402777
mov ecx, dword [esp + 0x14]
lea ebx, [ecx + ecx + 4]
push ebx
call fcn.0040b820
mov esi, eax
add esp, 4
test esi, esi
je 0x402777
mov eax, dword [esp + 0x30]
xor edi, edi
test eax, eax
jbe 0x40276a
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, dword [esp + 0x34]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push 0
push edx
push esi
push edi
push eax
mov dword [esp + 0x38], ebx
call ebp
test eax, eax
jne 0x402757
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push esi
push edx
call fcn.00402570
add esp, 0xc
test eax, eax
jne 0x402757
mov eax, dword [esp + 0x34]
push esi
push eax
call fcn.004025e0
add esp, 8
cmp eax, 3
je 0x402762
mov eax, dword [esp + 0x30]
inc edi
cmp edi, eax
jb 0x40270f
jmp 0x40276a
mov dword [esp + 0x10], 1
test esi, esi
je 0x402777
push esi
call fcn.0040b860
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x402786
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret