joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425c0d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 4], 1
push edi
mov dword [ebp - 0xc], esi
xorps xmm2, xmm2
mov edi, ecx
jmp 0x425c2e
inc esi
movzx eax, byte [esi]
test byte [eax + 0x5a0f20], 1
jne 0x425c2d
mov al, byte [esi]
cmp al, 0x2d
jne 0x425c46
or dword [ebp - 4], 0xffffffff
jmp 0x425c4a
cmp al, 0x2b
jne 0x425c4b
inc esi
cmp byte [esi], 0x30
je 0x425c4a
movsd xmm4, qword [0x5a6d98]
jmp 0x425c72
movsx eax, dl
sub eax, 0x30
mulsd xmm2, xmm4
inc esi
inc edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm2, xmm0
mov dl, byte [esi]
movzx eax, dl
test byte [eax + 0x5a0f20], 4
jne 0x425c5a
movsd xmm1, qword [0x5a6d80]
cmp dl, 0x2e
jne 0x425cd7
inc esi
movapd xmm3, xmm1
test edi, edi
jne 0x425cc5
jmp 0x425c9d
mulsd xmm3, xmm4
inc esi
cmp byte [esi], 0x30
je 0x425c98
jmp 0x425cc5
cmp edi, 0x12
jge 0x425cc4
movsx eax, dl
sub eax, 0x30
mulsd xmm2, xmm4
inc edi
mulsd xmm3, xmm4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm2, xmm0
inc esi
mov dl, byte [esi]
movzx eax, dl
test byte [eax + 0x5a0f20], 4
jne 0x425ca4
divsd xmm2, xmm3
mov al, byte [esi]
cmp al, 0x65
je 0x425ce5
cmp al, 0x45
jne 0x425d89
xor edi, edi
inc edi
inc esi
mov al, byte [esi]
cmp al, 0x2d
jne 0x425cf4
or edi, 0xffffffff
jmp 0x425cf8
cmp al, 0x2b
jne 0x425cf9
inc esi
mov dl, byte [esi]
movzx eax, dl
test byte [eax + 0x5a0f20], 4
je 0x425d7b
imul ecx, ecx, 0xa
movsx eax, dl
add eax, 0xffffffd0
add ecx, eax
inc esi
mov dl, byte [esi]
movzx eax, dl
test byte [eax + 0x5a0f20], 4
jne 0x425d07
cmp ecx, 0x40
jl 0x425d3b
mov edx, ecx
shr edx, 6
imul eax, edx, 0xffffffc0
add ecx, eax
mulsd xmm1, qword [0x5a6e60]
dec edx
jne 0x425d30
cmp ecx, 0x10
jl 0x425d55
mov edx, ecx
shr edx, 4
imul eax, edx, 0xfffffff0
add ecx, eax
mulsd xmm1, qword [0x5a6e50]
dec edx
jne 0x425d4a
cmp ecx, 4
jl 0x425d6f
mov edx, ecx
shr edx, 2
imul eax, edx, 0xfffffffc
add ecx, eax
mulsd xmm1, qword [0x5a6e00]
dec edx
jne 0x425d64
cmp ecx, 1
jl 0x425d7b
mulsd xmm1, xmm4
dec ecx
jne 0x425d74
test edi, edi
jns 0x425d85
divsd xmm2, xmm1
jmp 0x425d89
mulsd xmm2, xmm1
cmp dword [ebp - 4], 0
jge 0x425d97
xorpd xmm2, xmmword [0x5a6f00]
mov eax, dword [ebp - 8]
sub esi, dword [ebp - 0xc]
pop edi
movsd qword [eax], xmm2
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x426ed6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5e068c]
push ebx
mov ebx, edx
push esi
push edi
test eax, eax
je 0x426f13
push eax
push 0x5a39c4
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.0042513a
add esp, 0x10
jmp 0x426f8b
call fcn.00426705
mov esi, 0xe6
test eax, eax
je 0x426f54
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.004267b9
mov edi, eax
test edi, edi
jne 0x426f6f
push 7
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525878
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.00426872
jmp 0x426f3a
push edi
push 0x5a39c4
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0042513a
push edi
call fcn.0052616f
add esp, 0x14
lea ecx, [ebp - 0x110]
call fcn.00425971
test eax, eax
je 0x426fa4
cmp byte [ecx + eax - 1], 0x5c
jne 0x426fa4
dec eax
jne 0x426f9a
cmp eax, 0x105
jae 0x427006
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push ebx
push 0xe7
call fcn.0042513a
mov ecx, ebx
call fcn.00425971
mov esi, eax
lea ecx, [ebx + esi]
push ecx
push 0x14
pop edi
push edi
call fcn.00425294
add esp, 0x18
movzx eax, byte [ebx + esi]
xor edx, edx
push 0x3e
pop ecx
div ecx
mov al, byte [edx + 0x59e1f0]
mov byte [ebx + esi], al
inc esi
dec edi
jne 0x426fe3
mov byte [ebx + esi], 0
xor eax, eax
jmp 0x426f43
call fcn.0052bb15
int3
Function at 0x43c6bb
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jne 0x43c6d4
xor eax, eax
jmp 0x43c784
push 0x44
pop edx
call fcn.00424049
mov esi, eax
test esi, esi
je 0x43c6cd
mov edx, dword [edi]
mov ecx, ebx
call fcn.0043c41c
mov dword [esi], eax
mov ecx, ebx
mov edx, dword [edi + 8]
call fcn.0043c50f
mov dword [esi + 8], eax
mov ecx, ebx
mov edx, dword [edi + 0xc]
call fcn.0043c335
mov dword [esi + 0xc], eax
mov ecx, ebx
mov edx, dword [edi + 0x10]
call fcn.0043c41c
mov dword [esi + 0x10], eax
mov ecx, ebx
mov edx, dword [edi + 0x14]
call fcn.0043c335
mov dword [esi + 0x14], eax
mov ecx, ebx
mov edx, dword [edi + 0x18]
call fcn.0043c41c
mov dword [esi + 0x18], eax
mov ecx, ebx
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov edx, dword [edi + 0x1c]
call fcn.0043c6bb
mov dword [esi + 0x1c], eax
mov ecx, ebx
mov edx, dword [edi + 0x28]
call fcn.0043c335
mov dword [esi + 0x28], eax
mov ecx, ebx
mov edx, dword [edi + 0x2c]
call fcn.0043c335
mov dword [esi + 0x2c], eax
xor edx, edx
mov dword [esi + 0x30], edx
mov ecx, 0xfff7
mov dword [esi + 0x34], edx
mov ax, word [edi + 6]
and ax, cx
mov dword [esi + 0x24], edx
mov word [esi + 6], ax
mov eax, esi
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
or dword [esi + 0x40], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45aeb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564b58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x2001f
push dword [0x5d67d4]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_accept
call fcn.0045b220
test eax, eax
je 0x45af17
xor edi, edi
jmp 0x45b004
push str.Capability
lea ecx, [ebp - 0x1c]
call fcn.0045aaf0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x45af59
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [0x5d67d4]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push str._sCapability
push eax
call fcn.0045acb0
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
add esp, 0xc
push 0
push 0
push 0x2001f
push 0
push 0
push esi
push reloc.WS2_32.dll_accept
call fcn.0045aa10
mov ebx, dword [ebp - 0x28]
test eax, eax
je 0x45afaa
xor edi, edi
jmp 0x45afdb
xor edi, edi
lea esp, [esp]
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 4
push 0
push dword [edi + 0x5cf048]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add edi, 8
cmp edi, 0x20
jb 0x45afb0
mov edi, 1
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45aff9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x45b004
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45b012
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
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 0x45bc10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x45bc25
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x45bc64
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x45bc60
lea ebx, [ebx]
cmp esi, edx
jae 0x45bc64
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x45bc50
cmp esi, edx
jb 0x45bc69
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x45d730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45d7a1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x45d76f
cmp eax, 2
jne 0x45d78b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x45d79b
test ecx, ecx
je 0x45d796
test cl, 1
jne 0x45d78b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x45d79b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45ded0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push ebx
push esi
push edi
mov ebx, dword [eax]
push 2
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0045b220
mov esi, dword [ebp - 0xc]
mov edi, eax
test edi, edi
jne 0x45df27
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push ebx
push 1
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x45df32
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45df40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x45df55
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x45df60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45df60
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x460430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x460458
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x45f430
push 0
push 0
call fcn.0052762d
add esp, 0x18
mov dword [esi + 0x1c], eax
xor eax, eax
cmp dword [esi + 0x1c], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret

Function at 0x460540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.0046d760
mov esi, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [ebp + 8]
push 5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x46060e
push 0xf0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, eax
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
test ecx, ecx
je 0x460599
push ecx
push ebx
call eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 8]
xor esi, esi
push ebx
call eax
test eax, eax
je 0x4605fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4605fb
push dword [ebp - 4]
push eax
call fcn.0046c520
add esp, 8
mov ebx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov edi, eax
test edi, edi
jne 0x4605e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, dword [ebp - 8]
je 0x460603
test ebx, ebx
je 0x460603
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x460603
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x46060e
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4652c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x5dea40]
push edi
push 0xf0
movzx eax, ax
mov edi, 1
push eax
push esi
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x465450
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x465450
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x465450
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x46543b
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x4653b0
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.004666a0
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x465428
push eax
call fcn.0052616f
add esp, 4
jmp 0x465428
cmp dx, ax
jne 0x46542d
push 3
lea eax, [ebp - 0x104]
mov dword [ebp - 0x134], 1
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.004666a0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x465402
push eax
call fcn.0052616f
add esp, 4
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x465328
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00525878
mov esp, ebp
pop ebp
ret 4
Function at 0x4682b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4682f9
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x420
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp + 8], eax
test eax, eax
je 0x468377
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x468377
mov eax, dword [ebp - 0x10]
lea edi, [ebp - 0x10]
mov edx, 1
or esi, 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x46835a
push 0x104
mov ecx, edi
call fcn.0045b530
mov eax, dword [ebp - 0x10]
push 0x104
push eax
push dword [ebp + 8]
mov ebx, 1
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x46837d
mov byte [ebp + 0xb], bl
jmp 0x468381
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
mov byte [ebp + 0xb], 0
test bl, 1
je 0x4683b9
cmp esi, 0xffffffff
jne 0x4683a3
mov eax, dword [edi]
test eax, eax
jne 0x468395
xor esi, esi
jmp 0x4683a7
push dword [eax - 8]
push eax
call fcn.00526d13
add esp, 8
mov esi, eax
test esi, esi
js 0x468421
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x468421
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + esi*2], cx
cmp byte [ebp + 0xb], 0
je 0x46842b
mov ecx, dword [0x5ddc30]
test ecx, ecx
je 0x46842b
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x46842e
push ecx
push eax
call fcn.00526d32
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x46842b
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x46842e
mov ecx, dword [0x5ddc34]
test ecx, ecx
je 0x46842e
cmp dword [eax - 0xc], 0
jl 0x46842e
push ecx
push eax
call fcn.00526d32
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x46842b
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x46842e
mov esi, 1
jmp 0x468430
push 0x80070057
call fcn.0045a8f0
mov eax, dword [ebp - 0x10]
xor esi, esi
lea edi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x468451
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4685d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x468619
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x421
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp + 8], eax
test eax, eax
je 0x468697
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x468697
mov eax, dword [ebp - 0x10]
lea edi, [ebp - 0x10]
mov edx, 1
or esi, 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x46867a
push 0x104
mov ecx, edi
call fcn.0045b530
mov eax, dword [ebp - 0x10]
push 0x104
push eax
push dword [ebp + 8]
mov ebx, 1
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x46869d
mov byte [ebp + 0xb], bl
jmp 0x4686a1
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
mov byte [ebp + 0xb], 0
test bl, 1
je 0x4686d9
cmp esi, 0xffffffff
jne 0x4686c3
mov eax, dword [edi]
test eax, eax
jne 0x4686b5
xor esi, esi
jmp 0x4686c7
push dword [eax - 8]
push eax
call fcn.00526d13
add esp, 8
mov esi, eax
test esi, esi
js 0x468741
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x468741
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + esi*2], cx
cmp byte [ebp + 0xb], 0
je 0x46874b
mov ecx, dword [0x5ddc30]
test ecx, ecx
je 0x46874b
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x46874e
push ecx
push eax
call fcn.00526d32
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x46874b
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x46874e
mov ecx, dword [0x5ddc34]
test ecx, ecx
je 0x46874e
cmp dword [eax - 0xc], 0
jl 0x46874e
push ecx
push eax
call fcn.00526d32
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x46874b
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x46874e
mov esi, 1
jmp 0x468750
push 0x80070057
call fcn.0045a8f0
mov eax, dword [ebp - 0x10]
xor esi, esi
lea edi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x468771
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4688f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x120], 0x11c
push 0xfe
push eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x10a]
push eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
call fcn.00525ee0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x468995
mov eax, dword [ebp - 0x11c]
cmp eax, 6
ja 0x468982
jne 0x468995
cmp dword [ebp - 0x118], 2
jb 0x468995
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret

Function at 0x468a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x468af7
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x468af6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x468af6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x468aad
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
push eax
call fcn.00525890
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x468ae2
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.004689b0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x468af6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc