joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413730
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a0bb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x250
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x220]
push 0x208
push 0
mov dword [ebp - 0x254], esi
push eax
mov dword [ebp - 0x254], 1
call fcn.004e2580
lea eax, [edi + 0x68]
mov dword [ebp - 0x258], 0x104
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4137b1
mov eax, dword [eax]
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x254]
push ecx
push str.InstallDir
push eax
push dword [edi + 0x64]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x413800
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x5339bc
mov dword [esi + 0x14], 0
call fcn.00405590
jmp 0x41396b
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413810
sub ecx, edx
xorps xmm0, xmm0
sar ecx, 1
je 0x4137dc
push ecx
lea eax, [ebp - 0x220]
mov dword [ebp - 0x240], 0
push eax
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], 0
movups xmmword [ebp - 0x250], xmm0
call fcn.00405590
lea eax, [edi + 0x80]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x238]
call fcn.004140d0
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x23c]
cmp ecx, 8
jb 0x4138b8
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4138ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41398d
push ecx
push edx
call fcn.004bd6ef
add esp, 8
cmp dword [ebp - 0x228], 0
je 0x41390d
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41390d
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x238]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x228]
movq qword [esi + 0x10], xmm0
jmp 0x41396b
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x5339bc
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00405590
mov ecx, dword [ebp - 0x224]
cmp ecx, 8
jb 0x41396b
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413961
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41398d
push ecx
push edx
call fcn.004bd6ef
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004e61e1
int3
Function at 0x414010
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push 0
push 0x104
mov ecx, edi
call fcn.00413eb0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x414069
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x414056
mov eax, dword [edi]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00414690
mov ecx, dword [ebp - 8]
cmp ecx, 8
jb 0x4140a9
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41409f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4140c0
push ecx
push edx
call fcn.004bd6ef
add esp, 8
cmp dword [edi + 0x10], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret
call fcn.004e61e1
int3
Function at 0x414520
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a1fd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x546330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x414669
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41455e
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414669
push ecx
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00414a40
add esp, 4
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x4145ee
nop dword [eax]
cmp dword [esi + 0x10], 0
je 0x4145d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4145a0
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4145d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4145b5
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4145d0
test al, 0x10
je 0x4145d0
mov dl, 1
mov ecx, esi
call fcn.00414520
jmp 0x4145e1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4145da
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x18
cmp esi, ebx
jne 0x414590
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x414642
push ecx
mov edx, ebx
mov ecx, esi
call fcn.0040e100
mov ecx, dword [ebp - 0x10]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x18]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x414638
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41467d
push ecx
push esi
call fcn.004bd6ef
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x41464a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004e61e1
int3
Function at 0x4181c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41821b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41821b
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 0x41820a
cmp esi, edx
jae 0x41821b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4181f8
cmp esi, edx
jae 0x41821b
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4182c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
call fcn.0040e960
test eax, eax
je 0x4184c3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], 1
call fcn.0040e960
test eax, eax
je 0x4184c3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 2
call fcn.0040e960
test eax, eax
je 0x4184c3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x134], eax
mov dword [ebp - 4], 3
call fcn.0040e960
test eax, eax
je 0x4184c3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x130], eax
mov dword [ebp - 4], 4
test esi, esi
jne 0x418395
xor ecx, ecx
jmp 0x4183af
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4183a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x13c]
call fcn.00419e10
push 0x1a
push str.__background___sourcetask
lea ecx, [ebp - 0x134]
call fcn.00419e10
push 0
push 0x5339bc
lea ecx, [ebp - 0x130]
call fcn.00419e10
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], 0x3c
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jb 0x41841f
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
push ebx
call fcn.00418540
mov edi, eax
test edi, edi
jne 0x41842e
lea eax, [ebp - 0x13c]
push eax
push ebx
call fcn.00419950
mov edi, eax
mov edx, dword [ebp - 0x130]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41844e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x134]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41846b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x138]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418488
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x13c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4184a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040e830
int3
Function at 0x419950
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a89b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], edi
push eax
push 0x2001f
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x4199d6
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], eax
xor eax, eax
mov byte [ebp - 4], 0
test ecx, ecx
cmovne eax, ecx
test eax, eax
jne 0x419af3
mov byte [ebp - 4], 2
call fcn.0040e960
mov ecx, eax
test ecx, ecx
je 0x419b20
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x220]
push dword [esi + 8]
push dword [esi]
push str.__s___s
push eax
call fcn.0041a230
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e2580
add esp, 0x1c
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419a89
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x419a77
cmp eax, 2
jne 0x419a89
cmp dword [ebp - 0x21c], 0
jne 0x419a89
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004ecc29
add esp, 8
test eax, eax
je 0x419ad4
test esi, esi
je 0x419ad4
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419ab0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x419aec
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x419af5
xor esi, esi
test edi, edi
je 0x419b00
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040e830
int3
Function at 0x419b30
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a8dd
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x546330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x5507f0], 0
jne 0x419b76
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push eax
push 0x5507f0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.0040e960
mov ecx, eax
test ecx, ecx
je 0x419c00
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x5507f0
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x419bc0
movzx eax, ax
mov ecx, esi
push eax
call fcn.00419c30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x5507f0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419bd0
sub ecx, edx
sar ecx, 1
push ecx
push 0x5507f0
mov ecx, esi
call fcn.00419e10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040e830
int3
Function at 0x419c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x54f398
push 0
call fcn.004bf6cf
mov edi, eax
mov esi, 1
test edi, edi
je 0x419d82
mov ebx, dword [ebp + 8]
mov eax, ebx
shr eax, 4
mov dword [ebp - 4], eax
inc eax
movzx eax, ax
mov dword [ebp + 8], eax
nop dword [eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x419c8f
push ebx
push eax
push edi
call fcn.004181c0
add esp, 0xc
test eax, eax
jne 0x419caa
push esi
mov ecx, 0x54f398
inc esi
call fcn.004bf6cf
mov edi, eax
test edi, edi
je 0x419d82
mov eax, dword [ebp + 8]
jmp 0x419c70
test edi, edi
je 0x419d82
mov eax, dword [ebp - 4]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x419d82
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x419d82
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x419d82
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x419d13
cmp esi, ecx
jae 0x419d82
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x419d01
cmp esi, ecx
jae 0x419d82
cmp word [esi], 0
je 0x419d82
mov ebx, dword [ebp - 8]
mov ecx, 1
movzx edi, word [esi]
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x419d3e
push edi
mov ecx, ebx
call fcn.0041a0c0
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.004ecb29
add esp, 0x10
cmp eax, 0x50
ja case.0x419d5d.1
movzx eax, byte [eax + 0x419dbc]
jmp dword [eax*4 + 0x419dac]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg case.0x419d5d.20
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.0040e830
push 0x80070057
call fcn.0040e830
push 0x80004005
call fcn.0040e830
nop
popfd
inc ecx
add byte [ebp - 0x68ffbe63], cl
popfd
inc ecx
add byte [ecx + 0x419d], ah
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
Function at 0x41aa90
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
mov esi, edx
mov ebx, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x10], 0
je 0x41aae8
lea eax, [ebp - 4]
push eax
push 0x512720
push 1
push 0
push 0x512750
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41aae8
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x512740
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jns 0x41aaf1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
jb 0x41aafe
mov esi, dword [esi]
push esi
push ecx
call dword [eax + 0x50]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x10], 0
je 0x41ab1e
cmp dword [ecx + 0x14], 8
mov edx, dword [ebp - 4]
mov eax, dword [edx]
jb 0x41ab19
mov ecx, dword [ecx]
push ecx
push edx
call dword [eax + 0x24]
mov eax, dword [ebp - 4]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x14], 8
jb 0x41ab3c
mov eax, dword [eax]
push eax
push ecx
call edx
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
jb 0x41ab4d
mov ebx, dword [ebx]
push 0
push ebx
push ecx
call dword [eax + 0x44]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp + 0x20]
cmp dword [eax + 0x14], 8
jb 0x41ab67
mov eax, dword [eax]
push eax
push ecx
call edx
cmp dword [edi + 0x14], 8
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
jb 0x41ab78
mov edi, dword [edi]
push 1
push edi
push ecx
call dword [eax + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
not esi
shr esi, 0x1f
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c1eb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0041c1c7
pop esi
leave
ret 8
Function at 0x41d570
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x41d595
xor eax, eax
jmp 0x41d62d
mov edx, dword [ebp - 8]
cmp dword [edx + 0x14], 0
jne 0x41d5a5
xor eax, eax
jmp 0x41d62d
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004bde60
mov dword [ebp - 0x14], esp
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x41d5d5
xor eax, eax
jmp 0x41d62d
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x14]
add ecx, 0x1d4
call fcn.00429540
push 0
push 0
push 0
push str.textchanged
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x14]
mov eax, dword [edx + 0x20]
call eax
mov ecx, eax
call fcn.00427040
xor eax, eax
lea esp, [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret 0x10

Function at 0x422050
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x422071
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x422089
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x4220a1
mov edx, dword [ebp - 4]
or edx, 2
mov dword [ebp - 4], edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x4220b7
mov ecx, dword [ebp - 4]
or ecx, 4
mov dword [ebp - 4], ecx
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x4220cf
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret