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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push esi
push ebx
call dword [ebx + 0xc]
add esp, 0x10
cmp dword [ebp - 4], edi
mov dword [ebp + 8], eax
jne 0x581496a9
cmp esi, dword [ebx + 0x110]
jne 0x5814969b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x5814968c
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call esi
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
call esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x58149650
test eax, eax
je 0x58149650
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x10]
and ecx, 3
mov dword [ebx + 0x10c], eax
rep movsb byte es:[edi], byte [esi]
jmp 0x5814965f
mov eax, 0x7d4
push eax
mov dword [ebp - 4], eax
call fcn.5814eb88
pop ecx
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
je 0x58149670
push dword [ebp + 8]
call esi
cmp dword [ebp - 0xc], 0
je 0x5814969b
push dword [ebp + 0x10]
call esi
cmp dword [ebp - 4], 0
je 0x5814969b
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5814969b
mov eax, 0x7d4
push eax
mov dword [ebp - 4], eax
call fcn.5814eb88
pop ecx
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x581496b5
cmp dword [ebp - 4], 0xb8f
jne 0x581496b5
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x581496c3
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
je 0x58149726
cmp dword [0x581aeb28], esi
jne 0x581496e4
push dword [0x581b2678]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x58149726
inc dword [0x581aeb28]
push esi
call fcn.58149929
pop ecx
push dword [esp + 0xc]
call fcn.58183bd9
pop ecx
push eax
call fcn.58183bb9
pop ecx
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec dword [0x581aeb28]
jne 0x58149726
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
ret
Function at 0x58149a62
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [0x581ae580], edi
mov eax, 0x307
jle 0x58149a84
cmp ecx, eax
jne 0x58149beb
cmp dword [0x581aea28], edi
je 0x58149beb
cmp dword [0x581ae59c], edi
je 0x58149beb
cmp ecx, 0x305
je 0x58149bca
cmp ecx, 0x306
mov esi, 0x581ae59c
je 0x58149b00
cmp ecx, eax
je 0x58149b75
cmp ecx, 0x308
jbe 0x58149be7
cmp ecx, 0x30c
jbe 0x58149add
cmp ecx, 0x30e
jne 0x58149be7
mov eax, dword [0x581ae5a4]
cmp eax, edi
je 0x58149be7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push 0x581ae59c
call eax
add esp, 0x10
jmp 0x58149be5
mov eax, dword [0x581ae6ac]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x58149b75
cmp dword [0x581aeb28], edi
jne 0x58149b24
push dword [0x581b2678]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x58149b75
mov eax, dword [0x581ae6a4]
inc dword [0x581aeb28]
or byte [0x581ae5a1], 0x40
mov ebx, dword [0x581ae6a8]
cmp eax, edi
jbe 0x58149b64
mov edi, 0x581ae5ac
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
cmp eax, dword [ebp + 0xc]
je 0x58149b5a
push ebx
push eax
push esi
call fcn.581495be
add esp, 0xc
add edi, 4
dec dword [ebp + 0x10]
jne 0x58149b48
xor edi, edi
dec dword [0x581aeb28]
jne 0x58149b72
call dword [sym.imp.USER32.dll_CloseClipboard]
push 1
pop ebx
cmp dword [0x581aea24], edi
jne 0x58149be7
mov dword [ebp + 0x14], edi
mov edi, dword [0x581ae6a8]
lea eax, [ebp + 0x14]
or byte [0x581ae5a1], 0x80
push eax
push edi
push dword [0x581ae6ac]
push esi
call dword [0x581ae5a8]
xor esi, esi
add esp, 0x10
cmp edi, esi
mov ebx, eax
je 0x58149bc2
push dword [0x581ae6a8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x581ae6a8], esi
mov dword [0x581ae6ac], esi
mov dword [0x581ae59c], esi
jmp 0x58149be7
cmp dword [ebp + 0x10], edi
je 0x58149be7
push dword [0x581ae6a8]
push dword [ebp + 0x10]
push 0x581ae59c
call fcn.581495be
add esp, 0xc
mov ebx, eax
mov eax, ebx
jmp 0x58149bed
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x58149ff2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x581ae530]
push ebx
mov dword [ebp - 0x1c], eax
push esi
lea eax, [ebp - 0x60]
push edi
xor edi, edi
mov dword [0x581ae530], eax
lea eax, [ebp - 0x60]
push edi
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call fcn.58190d38
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0x20], eax
jne 0x5814a18b
movzx eax, word [ebp + 0xc]
push 2
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x18], esi
jne 0x5814a051
call fcn.5814ec7a
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x5814a067
call fcn.5814ec7a
push edi
push edi
push edi
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
call esi
push eax
push dword [0x581b2680]
call fcn.5817ddc5
mov ebx, eax
add esp, 0x14
cmp ebx, edi
mov dword [ebp - 0x10], ebx
jne 0x5814a093
call fcn.5814ec7a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x5814a0a8
call fcn.5814ec7a
push dword [ebp - 0x18]
push dword [ebp + 8]
call esi
mov esi, dword [ebp - 0xc]
mov ecx, eax
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx]
lea edi, [ebx + 0x28]
add esi, ebx
call fcn.5814ac19
cmp dword [ebx], 0xc
pop ecx
jne 0x5814a0db
lea eax, [eax + eax*2]
jmp 0x5814a0de
shl eax, 2
add edi, eax
mov eax, dword [ebp + 0x10]
cmp dword [esi], eax
je 0x5814a0f0
cmp esi, edi
jae 0x5814a0ff
add esi, 4
jmp 0x5814a0e3
cmp esi, edi
jae 0x5814a0ff
push dword [ebp + 0x14]
call fcn.5814a190
pop ecx
mov dword [esi], eax
xor esi, esi
push esi
push esi
call fcn.5816a6a0
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp - 8], eax
jne 0x5814a116
call fcn.5814ec7a
push esi
push ebx
push edi
push 4
push ebx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x5814a131
call fcn.5814ec7a
xor edi, edi
mov eax, dword [ebp - 0x1c]
cmp ebx, edi
mov dword [0x581ae530], eax
je 0x5814a150
push edi
push edi
push ebx
push dword [0x581b2680]
call fcn.5817dea6
add esp, 0x10
cmp dword [ebp - 4], edi
je 0x5814a15e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 8], edi
je 0x5814a171
push 2
push dword [ebp - 8]
push edi
call fcn.5816a895
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x5814a186
push dword [ebp - 0x20]
call fcn.5817e278
pop ecx
jmp 0x5814a033
pop edi
pop esi
pop ebx
leave
ret
mov ebx, dword [ebp - 0x10]
jmp 0x5814a133
Function at 0x5814b287
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
add eax, 0x101
push 2
movzx eax, ax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x5814b31a
push edi
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x5814b306
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5814b306
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x5814b306
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, edi
mov edi, eax
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp + 0xc], ebx
cmp dword [ebp + 8], 0
je 0x5814b315
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x58151cc2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x581b41d0]
push esi
push 0
mov esi, dword [eax]
push esi
mov dword [ebp - 4], esi
call fcn.5818bcec
pop ecx
pop ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x58151e5f
mov eax, dword [0x581b41d0]
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x20], ecx
push ebx
movzx ecx, di
movzx edx, si
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
shl ecx, 0x10
or ecx, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x80a
mov dword [ebp - 8], edi
push dword [eax]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebx
sub eax, 0x201
je 0x58151d6f
push 2
pop ecx
sub eax, ecx
je 0x58151d6f
dec eax
je 0x58151d63
sub eax, ecx
je 0x58151d63
dec eax
je 0x58151d53
sub eax, ecx
jne 0x58151d7d
mov dword [ebp + 0xc], 4
mov dword [ebp + 0x10], 0x208
jmp 0x58151d7d
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], 0x205
jmp 0x58151d7d
mov dword [ebp + 0xc], 1
mov dword [ebp + 0x10], 0x202
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetCapture]
mov ebx, 0x209
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 4]
jne 0x58151dd8
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x58151dd8
push 3
push ebx
push 0x100
lea eax, [ebp - 0x20]
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x58151d8b
cmp dword [ebp - 0x1c], 0x104
jb 0x58151df2
cmp dword [ebp - 0x1c], 0x106
ja 0x58151df2
mov dword [ebp - 0x1c], 0x202
jmp 0x58151dde
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
movzx eax, di
movzx ecx, si
shl eax, 0x10
or eax, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edi
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x1c], eax
je 0x58151e38
cmp dword [ebp - 0x1c], 0x200
jb 0x58151d8b
cmp dword [ebp - 0x1c], ebx
ja 0x58151d8b
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x581b41d0]
push 0
push 0x80a
push dword [eax]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x14]
movsx esi, ax
shr eax, 0x10
movsx edi, ax
jmp 0x58151d8b
call dword [sym.imp.USER32.dll_ReleaseCapture]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x581b41d0]
push 0
push 0x80a
push dword [eax]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x581569fd
Capabilities:
Get geographical location

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x58156a0b
mov esi, dword [esp + 0xc]
mov eax, dword [0x581ae534]
mov edx, 0x3ff
movzx edi, si
and word [eax + 0x2be4], 0
mov ecx, edi
and ecx, edx
cmp ecx, 0x2e
jbe 0x58156a32
and byte [eax + 0x2c0c], 0
jmp 0x58156a3e
mov cl, byte [ecx + 0x581aa1e0]
mov byte [eax + 0x2c0c], cl
and si, dx
cmp si, 4
jne 0x58156a63
and di, 0xfc00
cmp edi, 0x800
je 0x58156a5c
cmp edi, 0x1000
jne 0x58156a63
mov byte [eax + 0x2c0c], 0x86
mov cl, byte [eax + 0x2c0c]
cmp cl, 0xb2
jne 0x58156a84
push 5
push 0x581aa254
push 1
mov word [eax + 0x2be4], 2
push 1
jmp 0x58156a9d
cmp cl, 0xb1
jne 0x58156aa8
push 5
push 0x581aa254
push 1
mov word [eax + 0x2be4], 1
push 0xd
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [0x581ae534]
movzx eax, byte [eax + 0x2c0c]
pop edi
pop esi
ret

Function at 0x58156ac3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov esi, ecx
test di, di
mov dword [ebp - 4], 1
jne 0x58156ae4
xor eax, eax
jmp 0x58156c21
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
je 0x58156b19
movsx eax, di
cmp ebx, eax
jg 0x58156b19
mov cl, byte [edx]
cmp cl, 0xa
je 0x58156b15
cmp cl, 0xd
je 0x58156b15
mov eax, dword [esi + 0x40]
movzx ecx, cl
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 0x30]
jb 0x58156b12
cmp ecx, dword [eax + 0x34]
jbe 0x58156b15
mov byte [edx], 0x3f
inc edx
inc ebx
jmp 0x58156ae7
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
and dword [esi + 0x20], 0
mov ecx, esi
push edi
push esi
push ebx
call fcn.58156e3f
test eax, eax
je 0x58156b97
push edi
mov ecx, esi
push dword [ebp + 0xc]
push ebx
call fcn.58156f6b
test eax, eax
jne 0x58156c1e
cmp dword [esi + 0x30], eax
jne 0x58156b82
test byte [ebp + 0x1c], 1
jne 0x58156b82
mov al, byte [esi + 0x38]
push eax
mov eax, dword [esi + 0x40]
push dword [esi + 0x2c]
mov eax, dword [eax + 4]
push dword [eax]
push ebx
call fcn.581586aa
pop ecx
pop ecx
push eax
lea eax, [esi + 4]
push dword [esi + 0x3c]
mov ecx, esi
push eax
push 0
movsx eax, di
push eax
push dword [ebp + 0xc]
push ebx
call fcn.581576b7
jmp 0x58156b93
push 0
mov ecx, esi
push dword [ebp + 0x18]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.58156c28
test eax, eax
jne 0x58156bc6
mov eax, dword [esi]
cmp eax, dword [0x581b2544]
jne 0x58156bad
mov dword [0x581aa260], 1
jmp fcn.58156bc0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne fcn.58156bc0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
add byte [eax], al
add bh, bh
adc eax, sym.imp.KERNEL32.dll_HeapCreate
Function at 0x58156bd9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [str.KERNEL32.dll]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
mov ebx, eax
mov dword [esp], 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [0x581ae038]
push edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword [0x581ae038]
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.58156bc0
mov eax, dword [0x581ae01c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edx
push edx
mov edx, dword [0x581ae02c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], edx
call eax
mov edx, dword [str.SpyShelter.exe]
xor eax, eax
sub esp, 0xc
cmp word [esi + eax*2], 0
je 0x58156c9c
inc eax
jmp 0x58156c8b
mov word [esi + eax*2], 0
dec eax
cmp word [esi + eax*2 - 2], 0x5c
jne 0x58156c95
add eax, eax
xor ecx, ecx
add eax, esi
mov di, word [edx + ecx*2]
test di, di
je 0x58156cba
mov word [eax + ecx*2], di
inc ecx
jmp 0x58156caa
lea edx, [ebp - 0x5c]
mov dword [esp + 4], 0x44
mov dword [esp], edx
call fcn.58156bc0
lea ecx, [ebp - 0x6c]
mov dword [esp + 4], 0x10
mov dword [esp], ecx
call fcn.58156bc0
mov eax, dword [0x581ae028]
mov dword [esp], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], eax
call edi
lea ecx, [ebp - 0x6c]
push edx
push edx
lea edx, [ebp - 0x5c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call eax
mov eax, dword [0x581ae020]
sub esp, 0x28
mov dword [esp], ebx
mov dword [esp + 4], eax
call edi
mov edx, dword [ebp - 0x6c]
push ecx
push ecx
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
call eax
push ebx
push ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x58156c28
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [str.KERNEL32.dll]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
mov ebx, eax
mov dword [esp], 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [0x581ae038]
push edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword [0x581ae038]
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.58156bc0
mov eax, dword [0x581ae01c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edx
push edx
mov edx, dword [0x581ae02c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], edx
call eax
mov edx, dword [str.SpyShelter.exe]
xor eax, eax
sub esp, 0xc
cmp word [esi + eax*2], 0
je 0x58156c9c
inc eax
jmp 0x58156c8b
mov word [esi + eax*2], 0
dec eax
cmp word [esi + eax*2 - 2], 0x5c
jne 0x58156c95
add eax, eax
xor ecx, ecx
add eax, esi
mov di, word [edx + ecx*2]
test di, di
je 0x58156cba
mov word [eax + ecx*2], di
inc ecx
jmp 0x58156caa
lea edx, [ebp - 0x5c]
mov dword [esp + 4], 0x44
mov dword [esp], edx
call fcn.58156bc0
lea ecx, [ebp - 0x6c]
mov dword [esp + 4], 0x10
mov dword [esp], ecx
call fcn.58156bc0
mov eax, dword [0x581ae028]
mov dword [esp], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], eax
call edi
lea ecx, [ebp - 0x6c]
push edx
push edx
lea edx, [ebp - 0x5c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call eax
mov eax, dword [0x581ae020]
sub esp, 0x28
mov dword [esp], ebx
mov dword [esp + 4], eax
call edi
mov edx, dword [ebp - 0x6c]
push ecx
push ecx
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
call eax
push ebx
push ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x58157dcd
Capabilities:
Get keyboard layout

Disassembly:
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and eax, 0x3ff
cmp eax, 1
je 0x58157de8
cmp eax, 0xd
je 0x58157de8
push 1
pop eax
ret
push 2
pop eax
ret
Function at 0x58159b2e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call ebx
mov edx, 0x104
cmp eax, edx
jg 0x58159d0e
test eax, eax
je 0x58159d0e
lea ecx, [eax + 1]
lea edi, [ebp - 0x20c]
mov eax, ecx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x20c]
push eax
and ecx, 3
lea eax, [ebp - 0x108]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.58191e40
add esp, 0xc
test eax, eax
jne 0x58159b9b
call fcn.58191e30
mov eax, dword [eax]
neg eax
jmp 0x58159d19
lea eax, [ebp - 0x108]
push eax
call ebx
mov esi, eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 8], esi
cmp esi, eax
mov dword [ebp - 4], esi
jle 0x58159bbe
mov eax, 0xffffff0b
jmp 0x58159d19
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.58191c20
add esp, 0x14
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call ebx
lea esi, [ebp + esi - 0x108]
push 1
sub esi, eax
lea eax, [ebp - 0x20c]
push eax
call fcn.58159a95
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x58159d07
test eax, eax
je 0x58159d00
cmp eax, 2
jne 0x58159c66
mov ebx, dword [ebp + 8]
and byte [esi], 0
lea eax, [ebp - 0x20c]
or bh, 0x80
push eax
lea eax, [ebp - 0x108]
push eax
call edi
jmp 0x58159c69
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58159caf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jl 0x58159b94
cmp eax, 3
jg 0x58159b94
xor ecx, ecx
cmp eax, 2
setne cl
dec ecx
mov eax, 0x80
and ecx, 0x3000
add ecx, 0x1000
or ebx, ecx
and eax, 0x10
shl eax, 9
or ebx, eax
test bh, 0x80
je 0x58159cdf
and byte [esi], 0
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x108]
push eax
call edi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x108]
lea ecx, [eax + 1]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x58159d19
mov eax, 0xffffff01
jmp 0x58159d19
mov eax, 0xffffff04
jmp 0x58159d19
neg eax
sbb eax, eax
and al, 0xfe
add eax, 0xffffff04
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5816f281
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
mov ebx, dword [ebp + 0x28]
push esi
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0x20]
xor esi, esi
push eax
and byte [edi], 0
cmp dword [ebp + 0x10], esi
push 0x20019
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebx], esi
push dword [ebp + 8]
je 0x5816f330
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x5816f306
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x24]
push ebx
push edi
push esi
push 0
push dword [ebp + 0x10]
mov dword [ebx], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x5816f2fb
mov eax, dword [esi]
cmp eax, 1
je 0x5816f2f5
cmp eax, 2
je 0x5816f2f5
cmp eax, 7
je 0x5816f2f5
cmp eax, 3
jne 0x5816f2fb
mov eax, dword [ebx]
and byte [eax + edi], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x5816f313
cmp dword [ebx], esi
jne 0x5816f3e4
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov ecx, eax
mov dword [ebx], 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]
jmp 0x5816f3e4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5816f3e4
lea eax, [ebp + 8]
mov esi, 0x100
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x10]
push 0
push eax
lea eax, [ebp - 0x104]
mov dword [ebp + 0x10], esi
push eax
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], 1
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x5816f3cd
mov eax, dword [ebx]
cmp eax, dword [ebp + 0x24]
jae 0x5816f398
mov ecx, dword [ebp + 0x24]
sub ecx, eax
lea eax, [ebp - 0x104]
push ecx
push edi
push eax
call fcn.5818427c
add esp, 0xc
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp + 0x28]
push ecx
lea edi, [edi + eax + 1]
lea ecx, [ebp + 0x10]
inc eax
add dword [ebx], eax
mov eax, dword [ebp + 0xc]
inc dword [ebp + 0xc]
push 0
push ecx
lea ecx, [ebp - 0x104]
push ecx
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], esi
push eax
jmp 0x5816f36e
mov ebx, dword [ebx]
cmp ebx, dword [ebp + 0x24]
jae 0x5816f3db
mov eax, dword [ebp + 0x20]
and byte [eax + ebx], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret