joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c3ee
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
or dword [ebp - 0xc], 0xffffffff
push esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
push edi
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 1
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0x80000000
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x100c4bf
cmp dword [ebp - 0xc], ebx
jne 0x100c4bf
cmp dword [ebp - 8], 1
jne 0x100c4bf
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
cmp edi, ebx
je 0x100c4b8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x100c4aa
mov esi, dword [ebp - 4]
push 2
pop ecx
mov edx, edi
cmp esi, ecx
jb 0x100c4a3
movzx eax, word [edx]
test ax, ax
je 0x100c48f
movzx eax, ax
mov ebx, esi
sub ebx, ecx
cmp eax, ebx
ja 0x100c48f
add ecx, eax
add edx, eax
cmp ecx, esi
jbe 0x100c474
cmp ecx, esi
ja 0x100c4a3
xor eax, eax
cmp ax, word [edx]
jne 0x100c4a3
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor esi, esi
jmp 0x100c4c4
mov esi, 0x80070057
jmp 0x100c4c4
push edi
mov esi, 0x8000ffff
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x100c4c4
mov esi, 0x8007000e
jmp 0x100c4c4
mov esi, 0x8000ffff
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x100c577
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push 0x1007634
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c5df
cmp dword [ebp + 8], 1
je 0x100c5b7
cmp dword [ebp + 8], 2
je 0x100c5b7
push 0xd
pop eax
jmp 0x100c5df
mov eax, dword [ebp - 4]
test edi, edi
je 0x100c5d9
test eax, eax
je 0x100c5d4
test al, 1
jne 0x100c5b2
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x100c5d9
jmp 0x100c5b2
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4

Function at 0x100ceae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100cf07
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100cef9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x100cef5
cmp edi, eax
jae 0x100cef9
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x100cee7
cmp edi, eax
jb 0x100cefd
xor eax, eax
jmp 0x100cf06
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x100d2a7
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x102c62c], ebx
jne 0x100d2e7
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x100d2dd
push 0x10077d0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x10077e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x102c628], eax
mov dword [0x102c62c], 1
mov eax, dword [0x102c628]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x100d302
push dword [ebp + 0xc]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x100d333
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x100d32b
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x100d31d
push dword [edi + 0xc]
call dword [edi + 8]
jmp 0x100d322
push dword [edi + 4]
call dword [edi]
test eax, eax
je 0x100d333
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push dword [ebp + 0xc]
push eax
call esi
mov ebx, eax
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x1010268
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x102b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x68], eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5a]
mov edi, ecx
and dword [edi], 0
push eax
mov byte [ebp - 0x5d], 0
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add esp, 0xc
push 0x20
lea eax, [ebp - 0x5c]
push eax
push 0x1014
mov ebx, 0x400
push ebx
call esi
test eax, eax
je 0x101038f
and dword [ebp - 0x6c], 0
push 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
add esp, 0xc
dec eax
je 0x1010389
dec eax
jne 0x101038f
push 0x1007d60
push dword [ebp - 0x64]
mov dword [edi], 1
call dword [sym.imp.msvcrt.dll_wcspbrk]
pop ecx
pop ecx
test eax, eax
je 0x101038f
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xb
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push 0x13
push ebx
call esi
test eax, eax
je 0x101038f
mov eax, dword [ebp - 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101032e
mov esi, dword [ebp - 0x68]
sub eax, edx
sar eax, 1
mov edi, eax
push edi
call fcn.0100c869
test edi, edi
jle 0x1010379
mov esi, dword [ebp - 0x64]
mov ecx, eax
sub esi, eax
mov ebx, edi
movzx eax, word [esi + ecx]
lea edx, [eax - 0x30]
cmp dx, 9
ja 0x1010371
movzx edx, ax
movzx edx, word [ebp + edx*2 - 0x7c]
test dx, dx
je 0x1010371
movzx eax, dx
mov word [ecx], ax
inc ecx
inc ecx
dec ebx
jne 0x1010354
mov edx, dword [ebp - 0x68]
mov eax, edi
call fcn.0100c8bb
mov byte [ebp - 0x5d], 1
jmp 0x101038f
mov dword [edi], 1
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x5d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102047c
leave
ret 8
Function at 0x1010604
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x102b004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x102c640], 0
jne 0x101068f
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x102c644], ax
test ax, ax
je 0x101067a
push 0x10
lea ecx, [ebp - 0x24]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101067a
test dword [ebp - 0x16], 0x800
je 0x101067a
push edi
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
mov ax, word [0x102c644]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x1010597
call dword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
pop edi
cmp dword [ebp - 0x28], esi
je 0x101067a
inc esi
xor eax, eax
test esi, esi
sete al
inc eax
push eax
push 0x102c640
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x102c640], 1
sete al
xor ecx, ebp
call fcn.0102047c
leave
ret

Function at 0x1013a7c
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, eax
cmp dword [ebp + 0xc], edi
jne 0x1013a94
mov eax, 0x80004003
jmp 0x1013af7
push ebx
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1014144
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x1013acf
call fcn.01014b3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
jmp 0x1013af6
push dword [ebp + 8]
mov edi, 0x800705b4
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1013aed
mov al, byte [esi + 0xc]
mov ecx, dword [ebp + 0xc]
mov edi, dword [esi + 8]
mov byte [ecx], al
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x101b888
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push esi
push 0xfffffffffffffff0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x20
push 0x12
or esi, 0x2000
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
cmp cx, ax
jg 0x101b8c0
or esi, 0x80
mov eax, esi
pop esi
ret
Function at 0x101e0c2
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push esi
mov esi, 0x100
push edi
mov dword [ebp + 8], eax
cmp eax, esi
jb 0x101e0de
mov dword [ebp + 8], esi
mov eax, dword [ebp + 0x18]
sub esi, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
mov edi, eax
shr edi, 2
and eax, 3
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
test edx, edx
jbe 0x101e206
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov edx, 0xff00ff
push ebx
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x1c], ecx
test edi, edi
jbe 0x101e1a8
mov dword [ebp + 0xc], edi
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
mov edi, eax
shr edi, 8
mov ebx, ecx
shr ebx, 8
and edi, 0xffff00ff
imul edi, dword [ebp + 8]
and ebx, 0xffff00ff
imul ebx, esi
add edi, ebx
mov esi, eax
and esi, edx
imul esi, dword [ebp + 8]
mov ebx, ecx
and ebx, edx
imul ebx, dword [ebp - 4]
add dword [ebp + 0x18], 4
shr eax, 8
add esi, ebx
shr esi, 8
xor edi, esi
mov esi, dword [ebp - 4]
mov edx, 0xff00ff
and eax, edx
imul eax, dword [ebp + 8]
shr ecx, 8
and ecx, edx
imul ecx, esi
add eax, ecx
and edi, edx
xor edi, eax
mov eax, dword [ebp + 0x1c]
add dword [ebp + 0x1c], 4
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
add eax, 4
dec dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jne 0x101e12e
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jbe 0x101e1e4
mov ecx, dword [ebp + 0x18]
sub ecx, eax
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x1c]
sub ecx, eax
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x18], ebx
mov ecx, dword [ebp + 0x10]
movzx ecx, byte [ecx + eax]
movzx ebx, byte [eax]
imul ecx, esi
imul ebx, dword [ebp + 8]
add ecx, ebx
mov ebx, dword [ebp + 0x1c]
shr ecx, 8
mov byte [ebx + eax], cl
inc eax
dec dword [ebp + 0x18]
jne 0x101e1c2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add eax, dword [ebp + 0x20]
add ecx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x28]
add dword [ebp + 0x14], ebx
dec dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jne 0x101e11b
pop ebx
pop edi
pop esi
leave
ret 0x24
Function at 0x101edc1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 4
mov eax, 0x1023542
call fcn.01022ca1
push 0x10084d0
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x101edf3
mov eax, 0x80004005
jmp 0x101ee77
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x101ede9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x101ede9
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
je 0x101ede9
mov dword [ebp + 8], ebx
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov edx, edi
mov byte [ebp - 4], 1
call fcn.0101f9da
test eax, eax
jge 0x101ee49
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x101ede9
add eax, 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x101ede9
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add esi, 8
mov eax, dword [esi]
push 0x1001e14
push esi
call dword [eax]
mov edi, eax
mov byte [ebp - 4], bl
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp edi, ebx
jge 0x101ee75
mov eax, edi
jmp 0x101ee77
xor eax, eax
call fcn.01022d55
ret 0xc

Function at 0x102005c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x102b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0101ff9d
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x10200cf
cmp dword [ebp - 0x94], 5
jb 0x10200f0
jmp 0x10200ec
cmp dword [ebp - 0x88], 1
jne 0x10200f0
cmp dword [ebp - 0x94], 4
ja 0x10200ec
jne 0x10200f0
cmp dword [ebp - 0x90], 0
jbe 0x10200f0
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10016a0
call fcn.0100a197
test eax, eax
jge 0x1020111
mov byte [0x102c5d0], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0102047c
leave
ret
Function at 0x1020feb
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [0x102ba68], ebx
jne 0x10210c3
cmp dword [0x102ba64], ebx
jne 0x10210c3
push esi
cmp dword [0x102ba70], ebx
je 0x10210b1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x102ba88]
cmp esi, ebx
je 0x1021039
mov edx, dword [0x102ba8c]
mov ecx, eax
sub ecx, edx
cmp ecx, esi
jb 0x10210b1
mov ecx, dword [0x102b0a8]
cmp ecx, 0xffffffff
je 0x102104d
sub eax, ecx
cmp eax, 0xc8
jb 0x10210bb
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 3
mov esi, 0x113
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov dword [0x102ba68], 1
call edi
push 3
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call edi
push ebx
push ebx
push 0x8000
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x102ba64], eax
mov dword [0x102ba68], ebx
pop edi
cmp eax, ebx
jne 0x10210a4
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x102b0a8], eax
jmp 0x10210bb
mov dword [0x102ba64], 1
mov eax, dword [0x102ba64]
pop esi
jmp 0x10210c5
xor eax, eax
pop ebx
leave
ret 4
Function at 0x102110d
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [0x102ba60], esi
jne 0x1021197
cmp dword [0x102ba64], esi
jne 0x1021197
cmp edi, 0x10
je 0x102127d
cmp edi, 0x8000
je 0x102125a
cmp dword [0x102ba68], esi
jne 0x1021197
mov eax, 0x104
cmp edi, eax
ja 0x10211ac
je 0x10211ef
cmp edi, 0x18
je 0x102118c
cmp edi, 0x1c
je 0x1021188
cmp edi, 0x20
je 0x102117c
cmp edi, 0x48
je 0x1021177
cmp edi, 0x100
jmp 0x10211ed
cmp ebx, 3
jmp 0x10211ed
push esi
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
inc eax
jmp 0x10211a5
cmp ebx, esi
jmp 0x10211ed
cmp ebx, esi
je 0x1021197
push esi
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp + 0x14]
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, edi
sub eax, 0x200
je 0x10211fe
dec eax
je 0x10211ef
sub eax, 3
je 0x10211ef
sub eax, 3
je 0x10211ef
sub eax, 0x11
jne 0x1021197
cmp ebx, esi
je 0x1021183
cmp ebx, 5
jbe 0x10211ef
cmp ebx, 8
jbe 0x10211e9
cmp ebx, 0xa
je 0x1021197
cmp ebx, 0x12
je 0x10211e9
cmp ebx, 0x8013
jne 0x10211ef
jmp 0x1021197
test byte [ebp + 0x14], 1
jne 0x1021197
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1021197
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x102c6a8]
je 0x1021219
cmp ecx, esi
jge 0x1021219
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x102c6ac]
je 0x102122a
cmp eax, esi
jge 0x102122a
neg eax
add eax, ecx
cmp eax, dword [0x102b0a4]
jbe 0x1021197
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 8]
mov dword [0x102c6a8], eax
mov eax, dword [ebp - 4]
mov dword [0x102c6ac], eax
jmp 0x1021197
cmp dword [0x102ba84], esi
je 0x1021197
mov eax, dword [0x102ba70]
cmp eax, esi
je 0x1021183
push dword [ebp + 8]
call eax
jmp 0x10211a5
cmp dword [0x102ba84], esi
je 0x1021197
push dword [ebp + 8]
call fcn.01020feb
test eax, eax
jne 0x1021197
push 0x102c6a8
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x10211a5
Function at 0x10212b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x102ba84], esi
je 0x1021357
cmp dword [0x102ba6c], esi
je 0x10212d4
call fcn.010210cf
lea eax, [ebp - 4]
push eax
push 1
push esi
push 0x1001790
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1021357
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.ScreenSaveUsePassword
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102134e
cmp dword [ebp - 0xc], esi
je 0x102134e
push str.PASSWORD.CPL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x102ba6c], eax
cmp eax, esi
je 0x102134e
push str.VerifyScreenSavePwd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x102ba70], eax
cmp eax, esi
je 0x1021349
push 1
call fcn.01020d5d
jmp 0x102134e
call fcn.010210cf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x1021c01
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x102ba94], 0
push esi
jne 0x1021b6f
call fcn.01021a66
test eax, eax
je 0x1021bb2
mov eax, dword [0x102ba94]
cmp eax, 1
jne 0x1021b90
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1021bb2
pop esi
ret
push eax
call dword [0x102ba9c]
test eax, eax
jne 0x1021bfa
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1021bb6
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x102ba94]
call dword [0x102ba9c]
mov edi, eax
test edi, edi
je 0x1021bdb
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1021bf7
mov edi, esi
add esi, 0xff0
push edi
push dword [0x102ba94]
call dword [0x102ba98]
add edi, 0x10
cmp edi, esi
jb 0x1021be3
mov eax, edi
pop edi
pop esi
ret
jmp 0x1021b5c
Function at 0x10220a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x102b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
push dword [0x102b0b8]
xor edi, edi
push 0x80000002
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10221e3
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
jne 0x10221c7
mov dword [ebp - 0x214], esi
cmp dword [ebp - 0x218], esi
jbe 0x10221d5
cmp edi, esi
jl 0x10221d5
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x220], 0x104
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x102219f
mov ecx, dword [ebp - 0x21c]
push 4
lea eax, [ebp - 0x20c]
push eax
call fcn.01021f3f
jmp 0x10221ab
jle 0x10221ab
and eax, 0xffff
or eax, 0x80070000
inc dword [ebp - 0x214]
mov edi, eax
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x218]
jb 0x1022131
jmp 0x10221d5
jle 0x10221d3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10221f3
cmp eax, 2
jne 0x10221ec
xor edi, edi
jmp 0x10221f3
call fcn.0102204d
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0102047c
leave
ret 4

Function at 0x10222de
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x102b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x1001a98
lea eax, [ebp - 0x61c]
push 0x208
push eax
mov byte [ebp - 0x62d], 0
call fcn.0100bf8b
add esp, 0x10
test eax, eax
jl 0x10223be
and dword [ebp - 0x634], 0
lea eax, [ebp - 0x634]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x61c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10223be
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x638]
push eax
push 0
push 0x10075dc
push dword [ebp - 0x634]
mov dword [ebp - 0x638], 1
mov dword [ebp - 0x63c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10223b2
cmp dword [ebp - 0x638], 1
jne 0x10223b2
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x10223b2
mov byte [ebp - 0x62d], 1
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x62d]
xor ecx, ebp
call fcn.0102047c
leave
ret 4
Function at 0x10227b3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
push esi
push ecx
push 0x1022778
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x102280b
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x10227fb
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10227fb
mov esi, dword [ebp - 4]
jmp 0x1022802
call fcn.0102204d
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1022812
call fcn.0102204d
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x100013f3
Capabilities:
Read .ini file

Disassembly:
push dword [0x100067e0]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [0x100067b4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 8