joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fdb4
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0045fd28
test bl, bl
je 0x45fe25
movzx eax, si
cmp eax, 4
ja case.default.0x45fe2d
jmp dword [eax*4 + 0x45fdd6]
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
jmp case.default.0x45fe2d
push 0
push 6
call sub.user32.dll_ExitWindowsEx
jmp case.default.0x45fe2d
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_SetSystemPowerState
jmp case.default.0x45fe2d
push 0xffffffffffffffff
push 0xffffffffffffffff
call sub.kernel32.dll_SetSystemPowerState
jmp case.default.0x45fe2d
push 0
push 0xc
call sub.user32.dll_ExitWindowsEx
pop esi
pop ebx
ret
movzx eax, si
cmp eax, 4
ja case.default.0x45fe2d
jmp dword [eax*4 + 0x45fe34]
push 0
push 9
call sub.user32.dll_ExitWindowsEx
jmp case.default.0x45fe2d
push 0
push 2
call sub.user32.dll_ExitWindowsEx
jmp case.default.0x45fe2d
push 0
push 0
call sub.kernel32.dll_SetSystemPowerState
jmp case.default.0x45fe2d
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_SetSystemPowerState
jmp case.default.0x45fe2d
push 0
push 8
call sub.user32.dll_ExitWindowsEx
pop esi
pop ebx
ret

Function at 0x461840
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0x4618ec
call sub.user32.dll_FindWindowA
mov dword [ebp - 8], eax
lea eax, [ebp - 0x26]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetWindowRect
mov dword [ebp - 0x4c], 0x24
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 5
call sub.shell32.dll_SHAppBarMessage
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x26]
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 eax, dword [ebp - 0x1a]
sub eax, dword [ebp - 0x22]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4c]
push eax
push 4
call sub.shell32.dll_SHAppBarMessage
mov dword [ebp - 0xc], eax
test dword [ebp - 0xc], 1
jbe 0x4618b1
mov byte [ebp - 0x15], 1
jmp 0x4618b5
mov byte [ebp - 0x15], 0
cmp dword [ebp - 0x10], 4
je 0x4618c1
cmp dword [ebp - 0x14], 4
jne 0x4618c7
mov byte [ebp - 0x16], 1
jmp 0x4618cb
mov byte [ebp - 0x16], 0
mov al, byte [ebp - 0x15]
or al, byte [ebp - 0x16]
je 0x4618da
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4618e3
mov eax, dword [ebp - 0x10]
sub eax, 2
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46d854
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0046d2d0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004049d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46d8b2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49b2a0]
mov dl, 1
mov eax, dword [0x46d1c8]
call fcn.0040c10c
call fcn.00403f84
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46d8bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004049d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46d914
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49b4c0]
mov dl, 1
mov eax, dword [0x46d1c8]
call fcn.0040c10c
call fcn.00403f84
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046d300
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47b8c0
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 0x47bb20
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x47b923
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0047b388
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c8e0
cmp al, 1
jne 0x47b923
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0047b6a0
test al, al
je 0x47baaf
cmp dword [ebp - 8], 0
jge 0x47b941
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.0047b388
mov eax, dword [ebp - 0x210]
call fcn.004047dc
cmp ebx, eax
jge 0x47b98b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0047b388
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x49b49c]
and eax, 0xff
bt dword [edx], eax
jae 0x47b98b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x47b99f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047b89c
cmp ebx, dword [ebp - 8]
je 0x47baa1
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 0x47b9cb
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x49af28]
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 0x47ba8e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x49af28]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00444eb8
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x49af28]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00444eb8
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ba95
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 0x47bb02
cmp dword [ebp - 8], 0
jge 0x47baba
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0047b388
mov eax, dword [ebp - 0x218]
call fcn.004047dc
cmp eax, dword [ebp - 8]
jg 0x47baf4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0047b388
mov eax, dword [ebp - 0x21c]
call fcn.004047dc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047b89c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bb27
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404548
ret
Function at 0x48b86c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1d8], ecx
mov edi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x48b93a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, edi
call fcn.00404524
push 0x40
lea eax, [ebp - 0x41]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x41]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x48b921
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x48b916
test ebx, ebx
jne 0x48b8e7
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, edi
call fcn.004091d8
cmp byte [ebp - 1], 0
je 0x48b921
jmp 0x48b915
push dword [edi]
push 0x48b950
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x1d8]
call fcn.004091d8
push dword [ebp - 0x1d8]
mov eax, edi
mov edx, 3
call fcn.0040489c
inc ebx
cmp dword [esi + ebx*4], 0
jne 0x48b8ca
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b941
lea eax, [ebp - 0x1d8]
call fcn.00404524
ret
Function at 0x4902e8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4904be
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x4904a5
mov eax, dword [edi + 0x30]
call fcn.004047dc
test eax, eax
jne 0x49033e
mov eax, dword [edi + 0x34]
call fcn.004047dc
test eax, eax
jne 0x49033e
mov eax, edi
call fcn.0049055c
jmp 0x4904a5
cmp dword [edi + 0xa0], 0
jne 0x490375
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.00409078
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49cdf0]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x4903ac
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.00409078
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49cdf0]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.0049059c
mov ebx, eax
test bl, bl
jne 0x49045a
mov eax, dword [edi + 0x30]
call fcn.004047dc
test eax, eax
jne 0x4903e4
mov eax, dword [edi + 0xc0]
call fcn.004047dc
test eax, eax
je 0x49045a
mov eax, dword [edi + 0xc0]
call fcn.004047dc
test eax, eax
je 0x490406
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.00409078
jmp 0x490432
push dword [edi + 0x30]
push 0x4904d8
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.0040489c
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.00409078
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x49045a
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.0049059c
mov ebx, eax
test bl, bl
jne 0x490467
mov eax, edi
call fcn.0049055c
jmp 0x4904a5
mov eax, dword [edi + 0x58]
test eax, eax
je 0x490476
mov dword [edi + 0xa8], eax
jmp 0x490480
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.00490614
test al, al
je 0x4904a5
mov eax, edi
mov si, 0xffee
call fcn.004039b4
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.004907e4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4904c5
lea eax, [ebp - 0x108]
call fcn.00404524
ret

Function at 0x492e1c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049c4
xor eax, eax
push ebp
push 0x492e6c
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004049d4
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492e73
lea eax, [ebp - 4]
call fcn.00404524
ret
Function at 0x493080
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049c4
mov eax, dword [ebp - 8]
call fcn.004049c4
xor eax, eax
push ebp
push 0x49315f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0x493170
mov eax, dword [ebp - 8]
call fcn.004049d4
push eax
mov eax, dword [ebp - 4]
call fcn.004049d4
push eax
push 0x493174
mov eax, dword [0x49b31c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49313a
cmp dword [ebp - 0x14], 2
je 0x49313a
cmp dword [ebp - 0x14], 3
je 0x49313a
cmp dword [ebp - 0x14], 0xb
je 0x49313a
cmp dword [ebp - 0x14], 5
je 0x49313a
cmp dword [ebp - 0x14], 0x1b
je 0x49313a
cmp dword [ebp - 0x14], 0x1e
je 0x49313a
cmp dword [ebp - 0x14], 0x1d
je 0x49313a
cmp dword [ebp - 0x14], 0x1c
je 0x49313a
cmp dword [ebp - 0x14], 0x20
je 0x49313a
cmp dword [ebp - 0x14], 2
je 0x49313a
cmp dword [ebp - 0x14], 0x1f
je 0x49313a
cmp dword [ebp - 0x14], 8
je 0x49313a
cmp dword [ebp - 0x14], 3
je 0x49313a
cmp dword [ebp - 0x14], 0x1a
jne 0x493140
mov byte [ebp - 0xd], 0
jmp 0x493144
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493166
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404548
ret

Function at 0x494404
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.004091d8
add esp, 0x100
pop ebx
ret
Function at 0x495a40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x9c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x495c8d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x94]
mov edx, 0x94
call fcn.004075e4
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, esi
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.0040478c
xor ebx, ebx
cmp dword [ebp - 0x84], 2
jne 0x495b71
mov eax, dword [ebp - 0x90]
sub eax, 3
je 0x495ad9
dec eax
je 0x495add
dec eax
je 0x495ae1
jmp 0x495ae3
mov bl, 1
jmp 0x495ae3
mov bl, 3
jmp 0x495ae3
mov bl, 0xa
cmp dword [ebp - 0x90], 5
jne 0x495af7
cmp dword [ebp - 0x8c], 1
jne 0x495af7
mov bl, 0xb
mov eax, dword [esi]
mov edx, 0x495ca8
call fcn.00404920
jne 0x495c6f
mov dl, 1
mov eax, dword [0x46d228]
call fcn.0046d328
mov edi, eax
mov edx, 0x80000002
mov eax, edi
call fcn.0046d3c8
mov edx, 0x495cc0
mov eax, edi
call fcn.0046d550
test al, al
je 0x495b65
mov edx, 0x495d04
mov eax, edi
call fcn.0046d930
test al, al
je 0x495b5e
mov edx, 0x495d04
mov eax, edi
call fcn.0046d824
dec eax
jne 0x495b5e
mov eax, esi
mov edx, 0x495d18
call fcn.00404578
mov eax, edi
call fcn.0046d398
mov eax, edi
call fcn.004037b8
jmp 0x495c6f
cmp dword [ebp - 0x90], 4
jne 0x495c37
cmp dword [ebp - 0x8c], 0
jne 0x495c37
mov bl, 2
lea eax, [ebp - 0x9c]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.0040478c
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.00408a28
mov eax, dword [ebp - 0x98]
mov edx, 0x495d30
call fcn.00404920
jne 0x495bc5
mov bl, 4
lea eax, [ebp - 0xa4]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.0040478c
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.00408a28
mov eax, dword [ebp - 0xa0]
mov edx, 0x495d3c
call fcn.00404920
jne 0x495bfd
mov bl, 5
lea eax, [ebp - 0xac]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.0040478c
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.00408a28
mov eax, dword [ebp - 0xa8]
mov edx, 0x495d48
call fcn.00404920
jne 0x495c6f
mov bl, 6
jmp 0x495c6f
cmp dword [ebp - 0x90], 4
jne 0x495c5b
cmp dword [ebp - 0x8c], 0xa
jne 0x495c5b
mov bl, 7
cmp dword [ebp - 0x88], 0x8ae
jne 0x495c6f
mov bl, 8
jmp 0x495c6f
cmp dword [ebp - 0x90], 4
jne 0x495c6f
cmp dword [ebp - 0x8c], 0x5a
jne 0x495c6f
mov bl, 9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495c94
lea eax, [ebp - 0xac]
mov edx, 6
call fcn.00404548
ret
Function at 0x4978cc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004049c4
xor eax, eax
push ebp
push 0x497955
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x32
mov eax, 0x49b000
lea edx, [ebp - 0x36]
mov bl, byte [eax]
mov byte [edx], bl
inc edx
inc eax
dec ecx
jne 0x4978fc
mov eax, dword [ebp - 4]
call fcn.004049d4
push eax
call sub.wsock32.dll_inet_addr
mov dword [esi + 0x380], eax
push 0x10
lea eax, [esi + 0x37c]
push eax
push 0
push 0x32
lea eax, [ebp - 0x36]
push eax
mov eax, dword [esi + 0x368]
push eax
call sub.wsock32.dll_sendto
inc eax
je 0x49793d
mov bl, 1
jmp 0x49793f
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49795c
lea eax, [ebp - 4]
call fcn.00404524
ret
Function at 0x410710
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47eb2b
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.00470fa9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x410792
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046e800
mov eax, dword [eax]
push 0x7a0220
push eax
call fcn.00460904
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00471234
test bl, bl
je 0x410792
push 0x7a0220
lea ecx, [esp + 0xc]
call fcn.00471610
push 0x7a3d9c
lea ecx, [esp + 0xc]
call fcn.00471610
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 0x4107ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00471234
jmp 0x410899
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 0x410852
lea edx, [esp + 0x7c]
push 0x7a3d98
push edx
call fcn.00460904
add esp, 8
test eax, eax
je 0x410852
lea eax, [esp + 0x7c]
push 0x7a3d94
push eax
call fcn.00460904
add esp, 8
test eax, eax
je 0x410852
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 0x4107e2
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.00471234
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 0x411090
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 0x4110f2
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 0x411100
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47ebab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x7aafdc]
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 0x411238
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x411166
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00471234
xor eax, eax
jmp 0x4112af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004713bd
push esi
lea ecx, [esp + 0xc]
call fcn.0047164c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x7a3dd4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41128d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00411090
test eax, eax
jne 0x41128d
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.00411090
test eax, eax
jne 0x41128d
lea eax, [esp + 0x14]
push 0x7a3db0
push eax
call fcn.00461ab0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41126c
lea ecx, [esp + 0x14]
push 0x7a3dac
push ecx
call fcn.00461a30
mov esi, eax
add esp, 8
test esi, esi
jne 0x41126c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41126f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047136d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41117e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00471234
xor eax, eax
jmp 0x4112af
mov byte [esi], 0
push 0x7a3da8
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.00471234
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 0x422690
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 0x4226fe
cmp si, 0x69
ja 0x4226fe
add esi, 0xffd0
cmp si, 0x11
je 0x4226ce
push 0x11
call edi
test ax, ax
jge 0x4226ce
or esi, 0x2000
cmp si, 0x10
je 0x4226e3
push 0x10
call edi
test ax, ax
jge 0x4226e3
or esi, 0x4000
cmp si, 0x12
je 0x4226f8
push 0x12
call edi
test ax, ax
jge 0x4226f8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42270b
mov esi, 0xbd
jmp 0x4226bf
cmp si, 0x6e
jne 0x422718
mov esi, 0xbe
jmp 0x4226bf
cmp si, 0x6f
jne 0x4226b9
mov esi, 0xbf
jmp 0x4226bf

Function at 0x423e40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7bbeb8]
xor edx, edx
cmp eax, edx
jne 0x423e66
xor eax, eax
mov byte [eax + 0x7bbdb8], al
inc eax
cmp eax, 0x100
jl 0x423e4e
mov dword [0x7bbeb8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7bbdb8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x423ef7
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 0x423eca
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 0x423e98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x423f70
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 0x423fc3
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 0x423faa
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