joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4947c0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4945c3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00494028
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cedc
cmp al, 1
jne 0x4945c3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00494340
test al, al
je 0x49474f
cmp dword [ebp - 8], 0
jge 0x4945e1
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00494028
mov eax, dword [ebp - 0x210]
call fcn.00404804
cmp ebx, eax
jge 0x49462b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00494028
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4bd30c]
and eax, 0xff
bt dword [edx], eax
jae 0x49462b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x49463f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049453c
cmp ebx, dword [ebp - 8]
je 0x494741
lea eax, [ebp - 0x108]
push eax
call sub.USER32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x49466b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403980
and eax, 0x7f
movzx eax, word [eax*2 + 0x4bc310]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.USER32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x49472e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403980
and eax, 0x7f
movzx eax, word [eax*2 + 0x4bc310]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004714cc
push eax
call sub.USER32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403980
and eax, 0x7f
movzx eax, word [eax*2 + 0x4bc310]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004714cc
push eax
call sub.USER32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494735
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4947a2
cmp dword [ebp - 8], 0
jge 0x49475a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00494028
mov eax, dword [ebp - 0x218]
call fcn.00404804
cmp eax, dword [ebp - 8]
jg 0x494794
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00494028
mov eax, dword [ebp - 0x21c]
call fcn.00404804
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049453c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4947c7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404568
ret
Function at 0x49c7a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
dec eax
test eax, eax
jl 0x49c84b
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
and eax, 0xffff
or eax, 2
mov edx, dword [ebp - 8]
mov dl, byte [edx]
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor dl, bl
mov eax, dword [ebp - 8]
mov byte [eax], dl
mov eax, dword [ecx]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
xor al, dl
and eax, 0xff
mov eax, dword [eax*4 + 0x4bc4a0]
mov edx, dword [ecx]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ecx], eax
mov eax, dword [ecx]
and eax, 0xff
add dword [esi], eax
mov eax, dword [esi]
imul dword [ebp + 8]
inc eax
mov dword [esi], eax
mov eax, dword [edi]
mov edx, dword [esi]
shr edx, 0x18
xor al, dl
and eax, 0xff
mov eax, dword [eax*4 + 0x4bc4a0]
mov edx, dword [edi]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [edi], eax
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x49c7c5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49e19c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004093fc
mov eax, dword [ebx]
call fcn.00404804
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x49e1e2
mov eax, ebx
mov edx, 0x49e1f0
call fcn.0040480c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ae8b4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x7c]
push eax
call sub.USER32.dll_GetWindowTextA
mov edx, esi
mov eax, esp
call fcn.004093fc
add esp, 0x104
pop esi
pop ebx
ret
Function at 0x4b4a48
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b4c14
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x423fd0]
call fcn.00425f38
mov dword [ebp - 4], eax
xor ecx, ecx
push ebp
push 0x4b4bf7
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x34]
mov ebx, eax
push ebx
call sub.USER32.dll_GetDC
test eax, eax
jne 0x4b4aac
call fcn.00404004
jmp 0x4b4bfe
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0042670c
lea edx, [ebp - 0x28]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea eax, [ebp - 0x28]
push eax
mov eax, edi
call fcn.0042abb0
mov ecx, eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00426058
push ebx
call sub.USER32.dll_GetWindowTextLengthW
mov edi, eax
test edi, edi
jle 0x4b4bd2
lea eax, [ebp - 8]
mov edx, edi
call fcn.00404e98
inc edi
push edi
mov eax, dword [ebp - 8]
call fcn.00404dac
push eax
push ebx
call sub.USER32.dll_GetWindowTextW
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.00425f04
cmp dword [ebp + 0xc], 0
je 0x4b4b24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x38]
test al, al
jne 0x4b4b3f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, 0x808080
call fcn.004255fc
test byte [esi + 0xc], 2
je 0x4b4b52
push 1
push 1
lea eax, [ebp - 0x18]
push eax
call sub.USER32.dll_OffsetRect
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x450
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00404dac
push eax
mov eax, dword [ebp - 4]
call fcn.0042668c
push eax
call sub.USER32.dll_DrawTextW
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x28]
sub eax, edx
sar eax, 1
jns 0x4b4b93
adc eax, 0
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
sub edx, ecx
sar edx, 1
jns 0x4b4ba8
adc edx, 0
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call sub.USER32.dll_OffsetRect
push 1
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00404dac
push eax
mov eax, dword [ebp - 4]
call fcn.0042668c
push eax
call sub.USER32.dll_DrawTextW
mov eax, dword [ebp - 4]
call fcn.0042668c
push eax
push ebx
call sub.USER32.dll_ReleaseDC
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4bfe
mov eax, dword [ebp - 4]
call fcn.00403778
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4c1b
lea eax, [ebp - 8]
call fcn.00404c50
ret
Function at 0x4b4f3c
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
push 0x104
lea edx, [esp + 4]
push edx
mov eax, dword [eax + 0x18]
push eax
call sub.USER32.dll_GetWindowTextA
mov edx, ebx
mov eax, esp
call fcn.004093fc
add esp, 0x104
pop ebx
ret

Function at 0x4b654c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004093fc
mov eax, dword [ebx]
call fcn.00404804
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4b6592
mov eax, ebx
mov edx, 0x4b65a0
call fcn.0040480c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b69f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004093fc
mov eax, dword [ebx]
call fcn.00404804
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4b6a3a
mov eax, ebx
mov edx, 0x4b6a48
call fcn.0040480c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b6a4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004093fc
mov eax, dword [ebx]
call fcn.00404804
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4b6a92
mov eax, ebx
mov edx, 0x4b6aa0
call fcn.0040480c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b6f5c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004093fc
mov eax, dword [ebx]
call fcn.00404804
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4b6fa2
mov eax, ebx
mov edx, 0x4b6fb0
call fcn.0040480c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b916c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b92b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.KERNEL32.dll_GetVersionExA
cmp dword [ebp - 0x94], 4
jne 0x4b91c5
cmp dword [ebp - 0x90], 0xa
jne 0x4b91c5
lea eax, [ebp - 4]
mov edx, 0x4b92c8
call fcn.004045dc
jmp 0x4b9293
cmp dword [ebp - 0x94], 4
jne 0x4b91e9
cmp dword [ebp - 0x90], 0x5a
jne 0x4b91e9
lea eax, [ebp - 4]
mov edx, 0x4b92dc
call fcn.004045dc
jmp 0x4b9293
cmp dword [ebp - 0x94], 5
jne 0x4b920d
cmp dword [ebp - 0x90], 0
jne 0x4b920d
lea eax, [ebp - 4]
mov edx, 0x4b92f0
call fcn.004045dc
jmp 0x4b9293
cmp dword [ebp - 0x94], 5
jne 0x4b922e
cmp dword [ebp - 0x90], 1
jne 0x4b922e
lea eax, [ebp - 4]
mov edx, 0x4b9304
call fcn.004045dc
jmp 0x4b9293
cmp dword [ebp - 0x94], 5
jne 0x4b924f
cmp dword [ebp - 0x90], 2
jne 0x4b924f
lea eax, [ebp - 4]
mov edx, 0x4b9318
call fcn.004045dc
jmp 0x4b9293
mov eax, dword [ebp - 0x94]
cmp eax, 6
jne 0x4b9272
cmp dword [ebp - 0x90], 0
jne 0x4b9272
lea eax, [ebp - 4]
mov edx, 0x4b932c
call fcn.004045dc
jmp 0x4b9293
cmp eax, 4
jne 0x4b9286
lea eax, [ebp - 4]
mov edx, 0x4b9344
call fcn.004045dc
jmp 0x4b9293
lea eax, [ebp - 4]
mov edx, 0x4b9358
call fcn.004045dc
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404598
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b92ba
lea eax, [ebp - 4]
call fcn.00404544
ret

Function at 0x4b9378
Capabilities:
Create process on windows
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x4b943c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
call fcn.004b916c
mov eax, dword [ebp - 0x28]
mov edx, 0x4b9450
call fcn.00404950
jne 0x4b93b6
push 0
push 0x4b9460
call sub.KERNEL32.dll_WinExec
jmp 0x4b9426
mov eax, dword [0x4bd318]
cmp dword [eax], 2
jne 0x4b941d
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 4]
push edx
push 0x28
push eax
call sub.ADVAPI32.dll_OpenProcessToken
lea eax, [ebp - 0x14]
push eax
push 0x4b9474
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
mov dword [ebp - 0xc], 2
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push 0
push 8
call sub.USER32.dll_ExitWindowsEx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9443
lea eax, [ebp - 0x28]
call fcn.00404544
ret
Function at 0x1000f6a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10094470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.10089a18
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10012f60
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1000f6f4
jmp dword [ecx*4 + 0x1000f85c]
mov al, byte [esi]
test al, al
je 0x1000f722
cmp al, 0x20
je 0x1000f70e
cmp al, 0xa1
jne 0x1000f722
cmp byte [esi + 1], al
jne 0x1000f722
test al, 0x80
je 0x1000f71a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1000f722
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000f701
test ecx, ecx
je case.default.0x1000f6f4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1000f6f4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1000f768
cmp dl, 0xa1
jne 0x1000f75c
cmp byte [eax + 1], 0xa1
jne 0x1000f75c
test ecx, ecx
jne 0x1000f754
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1000f77c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1000f796
jmp 0x1000f77c
cmp dl, 0x20
jne 0x1000f77a
test ecx, ecx
jne 0x1000f773
mov edi, eax
mov ecx, 1
jmp 0x1000f77c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1000f73c
cmp ecx, 1
jne case.default.0x1000f6f4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1000f6f4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1000f6f4
mov al, byte [esi]
test al, al
je 0x1000f7ee
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1000f7d4
mov cl, byte [esi + 1]
test cl, cl
je 0x1000f7ee
cmp al, 0xa1
jne 0x1000f7c4
cmp cl, al
je 0x1000f7d1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10013230
inc esi
jmp 0x1000f7e6
cmp al, 0x20
je 0x1000f7e6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10013270
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000f7ad
push 0
lea ecx, [esp + 0x14]
call fcn.10013270
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001c3b0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1000f821
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x1009c2a0
call fcn.10013160
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100899aa
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10016e60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009486b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1008971f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10016ee2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10087631
mov eax, dword [eax]
push 0x10179c98
push eax
call fcn.1007a164
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100899aa
test bl, bl
je 0x10016ee2
push 0x10179c98
lea ecx, [esp + 0xc]
call fcn.10089d3a
push 0x10179ca4
lea ecx, [esp + 0xc]
call fcn.10089d3a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10016f1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100899aa
jmp 0x10016fe9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x10016fa2
lea edx, [esp + 0x7c]
push 0x10179ca0
push edx
call fcn.1007a164
add esp, 8
test eax, eax
je 0x10016fa2
lea eax, [esp + 0x7c]
push 0x10179c9c
push eax
call fcn.1007a164
add esp, 8
test eax, eax
je 0x10016fa2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10016f32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.100899aa
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x100177f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10017852
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x10017860
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100948eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x101837c4]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x10017998
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x100178c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100899aa
xor eax, eax
jmp 0x10017a0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.10089ae7
push esi
lea ecx, [esp + 0xc]
call fcn.10089d76
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x100179ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.100177f0
test eax, eax
jne 0x100179ed
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.100177f0
test eax, eax
jne 0x100179ed
lea eax, [esp + 0x14]
push 0x10179cb4
push eax
call fcn.1007b2b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100179cc
lea ecx, [esp + 0x14]
push 0x10179cb0
push ecx
call fcn.1007b230
mov esi, eax
add esp, 8
test esi, esi
jne 0x100179cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x100179cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.10089a97
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x100178de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100899aa
xor eax, eax
jmp 0x10017a0f
mov byte [esi], 0
push 0x10179cac
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.100899aa
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x10026d50
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x10026dbe
cmp si, 0x69
ja 0x10026dbe
add esi, 0xffd0
cmp si, 0x11
je 0x10026d8e
push 0x11
call edi
test ax, ax
jge 0x10026d8e
or esi, 0x2000
cmp si, 0x10
je 0x10026da3
push 0x10
call edi
test ax, ax
jge 0x10026da3
or esi, 0x4000
cmp si, 0x12
je 0x10026db8
push 0x12
call edi
test ax, ax
jge 0x10026db8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x10026dcb
mov esi, 0xbd
jmp 0x10026d7f
cmp si, 0x6e
jne 0x10026dd8
mov esi, 0xbe
jmp 0x10026d7f
cmp si, 0x6f
jne 0x10026d79
mov esi, 0xbf
jmp 0x10026d7f

Function at 0x10028660
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10193f30]
xor edx, edx
cmp eax, edx
jne 0x10028686
xor eax, eax
mov byte [eax + 0x10193e30], al
inc eax
cmp eax, 0x100
jl 0x1002866e
mov dword [0x10193f30], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10193e30
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10028717
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x100286ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x100286b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10028790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x100287e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x100287ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret