joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403690
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push 0x20000013
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x403704
cmp dword [ebp + 8], 0xc8
jne 0x403704
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000005
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
mov dword [esi + 0x2450], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x403710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push 0
push eax
push dword [esi + 0x23c]
lea eax, [esi + 0x24c]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esi + 0x2450]
test eax, eax
jne 0x403771
mov dword [esi + 0x220], 2
test edi, edi
je 0x403757
imul eax, dword [esi + 0x244c], 0x64
xor edx, edx
div edi
push dword [esi + 4]
push eax
mov eax, dword [esi]
push 2
push str.Failed_writing_to_file
call eax
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
add eax, dword [esi + 0x244c]
mov dword [esi + 0x244c], eax
test edi, edi
jne 0x403788
xor eax, eax
jmp 0x40378f
imul eax, eax, 0x64
xor edx, edx
div edi
push dword [esi + 4]
push eax
push dword [esi + 0x220]
mov eax, dword [esi]
push str.RECEIVING...
call eax
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebp
ret 4
Function at 0x403c70
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, ecx
push edi
mov eax, dword [ebx - 0x124]
lea ecx, [ebx - 0x124]
add ecx, dword [eax + 4]
call fcn.004100c0
mov eax, dword [ebx - 0x124]
push dword [ebx - 0x20]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [eax + 4]
push dword [eax + ebx - 0x120]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx - 0x124]
push dword [ebx - 4]
mov eax, dword [eax + 4]
push dword [eax + ebx - 0x120]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx - 0x124]
push dword [ebx - 0x1c]
mov eax, dword [eax + 4]
push dword [eax + ebx - 0x120]
call edi
cmp dword [ebx - 0xc], 0
mov ecx, 0x120
mov edx, 0xa0
cmove edx, ecx
mov ecx, ebx
sub ecx, edx
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
mov dword [ebx - 8], 0
mov eax, 1
pop ebx
ret

Function at 0x405960
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x24]
push 2
push eax
push dword [esi + 0x548]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jl 0x405a72
push ebx
mov bx, word [ebp - 0x24]
mov eax, 0xff
cmp bx, ax
ja 0x405a71
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push dword [esi + 0x1c0]
call edi
cmp eax, 0xffffffff
je 0x405a70
push 0
push eax
push 0x150
push dword [esi + 0x1c0]
call edi
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x128], eax
mov ecx, dword [eax + 0x56e454]
mov dword [ebp - 0x12c], ecx
cmp ecx, 0x14
jge 0x405a06
invalid
invalid

Function at 0x406430
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x24]
push 2
push eax
push dword [edi + 0x548]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jge 0x406485
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 0x1cc]
call esi
push 0
push dword [edi + 0x3fc]
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret
push ebx
push dword [ebp - 0x24]
mov ecx, edi
call fcn.004057e0
xor ecx, ecx
mov ebx, eax
cmp ebx, 0xffffffff
sete cl
push ecx
push dword [edi + 0x1cc]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, 0xffffffff
je 0x4064cd
push 0
push ebx
push 0x186
push dword [edi + 0x1b8]
call eax
mov ecx, edi
call fcn.00406e00
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x188
push dword [edi + 0x1b8]
call eax
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ecx
push dword [edi + 0x3fc]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00424790
mov esp, ebp
pop ebp
ret
Function at 0x4067a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
lea eax, [ebp - 0x24]
push 2
push eax
push dword [edi + 0x548]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jl 0x40690d
push ebx
mov bx, word [ebp - 0x24]
mov eax, 0xff
cmp bx, ax
ja 0x40690c
push esi
movzx esi, bl
push esi
call fcn.004551c8
push esi
mov byte [ebp - 0x125], al
call fcn.00455198
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 8
mov byte [ebp - 0x134], al
push 0
push 0
push 0x147
push dword [edi + 0x1c0]
call esi
cmp eax, 0xffffffff
je 0x40690b
push 0
push eax
push 0x150
push dword [edi + 0x1c0]
call esi
push 0
push 0
push 0x188
push dword [edi + 0x1b8]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x130], eax
mov eax, dword [eax + 0x56e454]
mov dword [ebp - 0x12c], eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x40690b
mov eax, dword [ebp - 0x12c]
cmp eax, 0x14
movzx edx, byte [ebp - 0x125]
mov dword [edi + esi*8 + 0x75c], eax
mov eax, dword [ebp - 0x130]
movzx ecx, bl
cmovge edx, ecx
mov byte [edi + esi*8 + 0x758], dl
push dword [eax + 0x56e458]
movzx eax, dl
push eax
lea eax, [ebp - 0x124]
push str.___c_t_s
push eax
call fcn.00406f60
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x124]
add esp, 0x10
push eax
push esi
push 0x181
push dword [edi + 0x1b8]
call ebx
push 0
lea eax, [esi + 1]
push eax
push 0x182
push dword [edi + 0x1b8]
call ebx
push 0
push esi
push 0x186
push dword [edi + 0x1b8]
call ebx
push dword [ebp - 0x134]
mov ecx, edi
call fcn.004057e0
cmp eax, 0xffffffff
je 0x40690b
cmp eax, esi
je 0x40690b
push eax
mov ecx, edi
call fcn.00405620
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00424790
mov esp, ebp
pop ebp
ret

Function at 0x407190
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x201
push esi
mov esi, ecx
jne 0x4071b9
push 1
push 0
push 0
lea eax, [esi + 0x80]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004071e0
pop esi
pop ebp
ret 0x10
Function at 0x407a50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x828]
mov ebx, ecx
push 0x400
push eax
push dword [ebx + 0x1b8]
call esi
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x3b4]
call esi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x1b4]
call fcn.00407360
add esp, 0xc
cmp eax, 0xffffffff
je 0x407b10
push 0
push eax
push 0x182
push dword [ebx + 0x1b4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [ebx + 0x218]
call esi
push 0
mov ecx, ebx
call fcn.00408470
xor eax, eax
cmp word [ebp - 0x828], ax
setne al
push eax
push dword [ebx + 0x1c8]
call esi
push dword [ebx + 0x3b4]
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push 0
push 0xb1
push dword [ebx + 0x3b4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00424790
mov esp, ebp
pop ebp
ret

Function at 0x407b20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.00424810
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x28]
push edi
mov edi, ecx
push 0x10
push eax
push dword [edi + 0x3b4]
call esi
push 0x400
lea eax, [ebp - 0x828]
push eax
push dword [edi + 0x1b8]
call esi
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x104c]
push str._s_t_s
push eax
call fcn.00406f60
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x1b4]
call fcn.00407360
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x407bb4
push 0
push eax
push 0x182
push dword [edi + 0x1b4]
call ebx
push 0
lea eax, [ebp - 0x104c]
push eax
push 0
push 0x180
push dword [edi + 0x1b4]
call ebx
push eax
push 0x186
push dword [edi + 0x1b4]
call ebx
push 1
mov ecx, edi
call fcn.00408470
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 0x1c8]
call esi
push 1
push dword [edi + 0x218]
call esi
push dword [edi + 0x3b4]
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push 0
push 0xb1
push dword [edi + 0x3b4]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424790
mov esp, ebp
pop ebp
Function at 0x4080b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x828]
push edi
mov edi, ecx
push 0x400
push eax
push dword [edi + 0x1b8]
call esi
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x3b4]
call esi
cmp word [ebp - 0x28], 0
mov eax, dword [edi + 0x1b4]
je 0x40816c
lea ecx, [ebp - 0x82c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.00407360
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40811b
mov ecx, esi
jmp 0x40812b
or ecx, 0xffffffff
cmp dword [ebp - 0x82c], ecx
cmovne ecx, dword [ebp - 0x82c]
push 0
push ecx
push 0x186
push dword [edi + 0x1b4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, 0xffffffff
je 0x40817c
push 1
mov ecx, edi
call fcn.00408470
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
cmp word [ebp - 0x828], ax
setne al
push eax
push dword [edi + 0x1c8]
call esi
push 1
jmp 0x4081b0
push 0
push 0xffffffffffffffff
push 0x186
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov ecx, edi
call fcn.00408470
cmp word [ebp - 0x28], 0
je 0x40819d
cmp word [ebp - 0x828], 0
je 0x40819d
mov eax, 1
jmp 0x40819f
xor eax, eax
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
push dword [edi + 0x1c8]
call esi
push 0
push dword [edi + 0x218]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00424790
mov esp, ebp
pop ebp

Function at 0x408370
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
lea eax, [ebp - 0x824]
push 0x400
push eax
push dword [edi + 0x1b8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x3b4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x824], 0
je 0x4083c8
cmp word [ebp - 0x24], 0
je 0x4083c8
mov eax, 1
jmp 0x4083ca
xor eax, eax
push eax
push dword [edi + 0x1c8]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
invalid
scasb al, byte es:[edi]
Function at 0x408dd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x408e4f
push esi
push str.ChangeWindowMessageFilter
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x408e4e
push 1
push 0x466
call esi
push 1
push 0x467
call esi
push 1
push 0x468
call esi
push 1
push 0x469
call esi
push 1
push 0x46a
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret

Function at 0x409540
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
mov ebx, ecx
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x5826e0
push 0x4b8bf0
push 0x80
call fcn.0040fc70
mov edi, eax
test edi, edi
jne 0x409587
pop edi
pop ebx
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push str.Segoe_UI
mov dword [ebx + 0x650], 0
call fcn.00403d10
add esp, 4
test eax, eax
jne 0x4095bd
mov ecx, ebx
call fcn.004096e0
test eax, eax
je 0x4095c7
mov dword [ebx + 0x650], 1
cmp dword [0x5827c4], 0
je 0x4095e3
cmp dword [ebx + 0x650], 0
jne 0x4095e3
mov dword [0x5827c4], 0
push esi
push 0x5827a8
push edi
push dword [ebp + 8]
lea ecx, [ebx + 0xc]
call fcn.0040d450
lea ecx, [ebx + 0xc]
call fcn.0040d580
push 0x103
xor eax, eax
lea esi, [ebx + 0x444]
push esi
push eax
mov word [0x582a0c], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.0044768a
add esp, 8
test eax, eax
je 0x40962c
xor ecx, ecx
mov word [eax], cx
lea edi, [ebx + 0x34]
mov ecx, 0x16
mov esi, str.https:__www.unikey.org_support_ukmanual.html
lea eax, [ebx + 0x444]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebx + 0x23c]
push str._skeymap.txt
push eax
movsw word es:[edi], word [esi]
call fcn.00406f60
add esp, 0xc
mov ecx, 0x585470
call fcn.0040e920
push 0
mov ecx, 0x585470
call fcn.0040e710
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 4

Function at 0x409940
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
lea eax, [ecx + 0x34]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x4099c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.0041a600
mov ecx, 0x582a28
call fcn.00409680
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
cmp eax, 4
ja 0x409a22
cmp dword [ebp - 0x108], 2
jne 0x409a16
cmp eax, 4
je 0x409a22
mov dword [ebp - 0x124], 0
jmp 0x409a2c
mov dword [ebp - 0x124], 1
push 0x82
push dword [0x5826d0]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x134], esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x11c], eax
call esi
push 0x81
push dword [0x5826d0]
mov dword [ebp - 0x128], eax
call esi
mov dword [ebp - 0x12c], eax
mov eax, dword [0x5827b4]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x138]
push eax
mov dword [ebp - 0x130], 0x401
call fcn.0041bde0
push dword [0x5827ac]
call fcn.0041a0e0
push dword [0x5827b8]
call fcn.0041bc20
push dword [0x5827b0]
call fcn.0041bca0
push 0x5827a8
call fcn.00408d50
add esp, 0x14
mov ecx, 0x582a28
call fcn.00409960
push 0x5826d8
push 0
push 0
push 0x41a430
push 0
push 0
call fcn.0046f84e
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [0x5826d4], eax
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00424790
mov esp, ebp
pop ebp
ret
Function at 0x40a910
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x40a97b
push 0x14
call fcn.004247c8
add esp, 4
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x40a9b0
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
call fcn.0040a010
mov dword [esi + 4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret 8
push 0x70
call fcn.004247c8
add esp, 4
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x40a9b0
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
call fcn.00409fa0
mov dword [esi + 4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [esi + 4], eax
xor ecx, ebp
pop esi
call fcn.00424790
mov esp, ebp
pop ebp
ret 8
Function at 0x40b030
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0e7d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x576f24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.0040aae0
add esp, 4
push eax
push 0x5486a8
push 1
push 0
push 0x54cad8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40b1ce
mov eax, dword [ebp - 0x10]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
js 0x40b1ce
mov eax, dword [ebp - 0x10]
push 0x4b8248
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov esi, eax
test esi, esi
js 0x40b1ce
mov dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x10]
lea edx, [ebp + 0xc]
push edx
push 0x5486b8
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 1
call dword [ecx]
mov esi, eax
test esi, esi
js 0x40b1b6
push 0x26
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ecx, eax
mov esi, 0x8007000e
xor eax, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
cmovne esi, eax
je 0x40b1af
movups xmm0, xmmword [str.longpk.unikey.win8]
lea edx, [ebp - 0x24]
push edx
movups xmmword [ecx], xmm0
push 0x5542d0
movups xmm0, xmmword [0x548288]
movups xmmword [ecx + 0x10], xmm0
mov eax, dword [0x548298]
mov dword [ecx + 0x20], eax
mov ax, word [0x54829c]
mov word [ecx + 0x24], ax
mov eax, 0x1f
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
js 0x40b1a3
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
js 0x40b1a3
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x5486c8
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 2
call dword [ecx]
mov esi, eax
test esi, esi
js 0x40b18b
mov eax, dword [ebp - 0x14]
push 1
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x40b1a3
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
jmp 0x40b1b6
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x40b1ce
mov dword [ebp + 0xc], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40b1e9
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40b610
Capabilities:
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.APPDATA
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
cmp ecx, eax
sbb ecx, ecx
and ecx, 0x7ff8ffa9
test eax, eax
je 0x40b6de
push str.MicrosoftWindowsStart_MenuProgramsUnikeyNT.lnk
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046fe3a
add esp, 0xc
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x80070057
test eax, eax
jne 0x40b6ca
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
jb 0x40b6b3
push edi
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040b030
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret 4
lea eax, [ecx - 0x7ff8ffa9]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00424790
mov esp, ebp
pop ebp
ret 4
Function at 0x40bfa0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x40bfb8
mov dword [ebp + 8], 0
pop ebp
jmp fcn.0040d0d0
cmp eax, 0xd
jne 0x40bfca
mov dword [ebp + 8], 1
pop ebp
jmp fcn.0040d0d0
mov eax, 1
pop ebp
ret
Function at 0x40d0d0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [0x585028]
xor ebx, ebx
push edi
xor edi, edi
test esi, esi
je 0x40d1b5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40d1b5
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 4], ebx
push ecx
push ebx
push eax
call fcn.004240a0
add esp, 0x14
cmp eax, 6
jne 0x40d165
push dword [ebp - 4]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40d19a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x40d19a
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x10]
call fcn.004240a0
add esp, 0x14
test eax, eax
jne 0x40d19a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
push edi
call esi
cmp dword [ebp + 8], 0
mov ecx, 0xd
mov eax, 1
push edi
cmovne eax, ecx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
test ebx, ebx
je 0x40d1aa
push edi
call esi
test edi, edi
je 0x40d1b5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d1c0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
mov edi, ecx
push 0
push 0x147
push dword [edi + 0x1b4]
call esi
mov ecx, dword [edi + 0x4b8]
push 0
push 0
push 0x147
mov dword [ecx + 0x20], eax
push dword [edi + 0x1b8]
call esi
mov ecx, dword [edi + 0x4b8]
push 0
push 0
push 0xf0
mov dword [ecx + 0x24], eax
push dword [edi + 0x1c4]
call esi
mov ecx, dword [edi + 0x4b8]
dec eax
neg eax
push 0
sbb eax, eax
push 0
inc eax
push 0xf0
mov dword [ecx + 0x28], eax
push dword [edi + 0x1c8]
call esi
mov ecx, dword [edi + 0x4b8]
push 0
push 0
push 0xf0
mov dword [ecx + 0x270], eax
push dword [edi + 0x1cc]
call esi
mov ecx, dword [edi + 0x4b8]
push 0
push 0
push 0xf0
mov dword [ecx + 0x274], eax
push dword [edi + 0x1d0]
call esi
mov ecx, dword [edi + 0x4b8]
push 0
push 0
push 0xf0
mov dword [ecx + 0x278], eax
push dword [edi + 0x1d4]
call esi
mov ecx, dword [edi + 0x4b8]
push 0
push 0
push 0xf0
mov dword [ecx + 0x26c], eax
push dword [edi + 0x1d8]
call esi
mov ecx, dword [edi + 0x4b8]
mov dword [ecx + 0x27c], eax
mov ecx, dword [edi + 0x4b8]
pop edi
pop esi
jmp fcn.0040f9f0
Function at 0x40dda7
Capabilities:
Create process on windows

Disassembly:
cmp byte [0x58547d], 0
push esi
mov esi, ecx
je 0x40ddb2
pop esi
jmp fcn.0040da50
mov ecx, 0x585470
call fcn.0040e380
test al, al
je 0x40ddcf
mov byte [esi + 0x1bc], 1
mov ecx, esi
pop esi
jmp fcn.0040de10
mov eax, dword [esi + 4]
push 0x10
push 0x4b6d18
push str.Failed_to_start_downloading_update
mov eax, dword [eax + 4]
push dword [eax + esi + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, esi
pop esi
jmp fcn.0040de10