joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4348
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4a4350
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a4542
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4a4558
mov eax, esi
call fcn.004a21d4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404b58
lea ecx, [ebp - 0x10]
mov edx, 0x4a456c
mov eax, esi
call fcn.004a21d4
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404b58
lea ecx, [ebp - 0x14]
mov edx, 0x4a4584
mov eax, esi
call fcn.004a21d4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404b58
lea ecx, [ebp - 0x18]
mov edx, 0x4a45a0
mov eax, esi
call fcn.004a21d4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404b58
lea ecx, [ebp - 0x1c]
mov edx, 0x4a45bc
mov eax, esi
call fcn.004a21d4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404b58
lea ecx, [ebp - 0x24]
mov edx, 0x4a45d4
mov eax, esi
call fcn.004a21d4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409230
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004097cc
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4a45ec
mov eax, esi
call fcn.004a21d4
mov eax, dword [ebp - 0x28]
call fcn.0048069c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4a45fc
mov eax, esi
call fcn.004a21d4
mov eax, dword [ebp - 0x2c]
call fcn.0048069c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4a4614
mov eax, esi
call fcn.004a21d4
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004097cc
inc eax
je 0x4a44e5
lea ecx, [ebp - 0x34]
mov edx, 0x4a4614
mov eax, esi
call fcn.004a21d4
mov eax, dword [ebp - 0x34]
call fcn.00409790
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040af5c
fstp qword [ebp - 0x3c]
wait
call fcn.0040b2cc
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4a4500
lea ecx, [ebp - 0x40]
mov edx, 0x4a4614
mov eax, esi
call fcn.004a21d4
mov eax, dword [ebp - 0x40]
call fcn.0048069c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4a4624
mov eax, esi
call fcn.004a21d4
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404b58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4549
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404b28
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404b28
ret
Function at 0x4ab030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4ab08a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004ab020
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047f308
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0047ef08
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab091
lea eax, [ebp - 4]
call fcn.00404b04
ret

Function at 0x4f3318
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.00407c90
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
xor eax, eax
cmp dword [esp + 0x10], 2
jne 0x4f3375
mov edx, dword [esp + 4]
sub edx, 3
je 0x4f3351
dec edx
je 0x4f3355
dec edx
je 0x4f3359
jmp 0x4f33a9
mov al, 4
jmp 0x4f33a9
mov al, 5
jmp 0x4f33a9
mov edx, dword [esp + 8]
sub edx, 1
jb 0x4f3369
je 0x4f336d
dec edx
je 0x4f3371
jmp 0x4f33a9
mov al, 6
jmp 0x4f33a9
mov al, 7
jmp 0x4f33a9
mov al, 8
jmp 0x4f33a9
cmp dword [esp + 4], 4
jne 0x4f3387
cmp dword [esp + 8], 0
jne 0x4f3387
mov al, 1
jmp 0x4f33a9
cmp dword [esp + 4], 4
jne 0x4f3399
cmp dword [esp + 8], 0xa
jne 0x4f3399
mov al, 2
jmp 0x4f33a9
cmp dword [esp + 4], 4
jne 0x4f33a9
cmp dword [esp + 8], 0x5a
jne 0x4f33a9
mov al, 3
add esp, 0x94
ret

Function at 0x4f33b0
Capabilities:
Find taskbar

Disassembly:
push ebx
call fcn.004f3318
mov ebx, eax
push 0
push 0x4f3408
call sub.user32.dll_FindWindowA
push 0
push 0x4f3418
push 0
push eax
call sub.user32.dll_FindWindowExA
mov edx, ebx
add dl, 0xf9
sub dl, 2
jae 0x4f33ec
push 0
push 0x4f3428
push 0
push eax
call sub.user32.dll_FindWindowExA
add bl, 0xfa
sub bl, 3
jae 0x4f3403
push 0
push 0x4f3434
push 0
push eax
call sub.user32.dll_FindWindowExA
pop ebx
ret
Function at 0x4f34ac
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x4f362d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.0046d89c
mov esi, eax
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.0046d8bc
mov ebx, eax
jmp 0x4f35f9
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404d74
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409d8c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408f98
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408f98
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404f10
je 0x4f35d0
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404d74
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408f98
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408f98
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404f10
jne 0x4f35ea
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.0046d8dc
mov ebx, eax
test ebx, ebx
jne 0x4f352b
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3634
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404b28
lea eax, [ebp - 4]
call fcn.00404b04
ret

Function at 0x4f3c08
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, eax
mov bl, 1
xor edx, edx
push ebp
push 0x4f3c77
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
mov edx, eax
sub edx, 5
mov edx, dword [edx]
mov dword [ebp - 8], edx
dec eax
movzx edi, byte [eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualProtect
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00407c88
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, esi
sub eax, 5
call fcn.00402b68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3c83
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4f6264
Capabilities:
Enumerate gui resources

Disassembly:
add esp, 0xfffffff8
push 0x4f629c
push 0x4f62a8
call sub.user32.dll_FindWindowA
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esp], 0
jbe 0x4f6292
mov eax, esp
push eax
push 0x4f6018
call sub.user32.dll_EnumWindows
mov eax, dword [esp + 4]
pop ecx
pop edx
ret
Function at 0x4f65cc
Capabilities:
Enumerate gui resources

Disassembly:
add esp, 0xfffffff4
push 0x4f6620
push 0x4f662c
call sub.user32.dll_FindWindowA
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
cmp dword [esp], 0
jbe 0x4f6600
mov eax, esp
push eax
push 0x4f62b4
call sub.user32.dll_EnumWindows
mov eax, dword [esp + 4]
test eax, eax
jbe 0x4f6616
mov edx, esp
push edx
push 0x4f6500
push eax
call sub.user32.dll_EnumChildWindows
mov eax, dword [esp + 8]
add esp, 0xc
ret

Function at 0x4f9e78
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f9ef3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004f6dd4
call fcn.004f3444
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x308]
call fcn.0044a138
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x4f9f08
call fcn.00404e10
push 6
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404fc4
push eax
push 0x4f9f1c
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9efa
lea eax, [ebp - 8]
call fcn.00404b04
lea eax, [ebp - 4]
call fcn.00404b04
ret
Function at 0x4fa598
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
xor ecx, ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fb4
mov eax, dword [ebp - 8]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x4fa7a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x59a270]
mov eax, dword [eax + 0x500]
mov eax, dword [eax + 0x220]
mov edx, 0x4fa7b8
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x10
call fcn.00403538
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00403538
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x4fa7d0
call fcn.0040a648
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0xb
lea edx, [ebp - 0x7c]
mov ecx, 1
mov eax, 0x4fa7e8
call fcn.0040a648
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 4]
call fcn.00405398
mov eax, dword [ebp - 0x80]
call fcn.004053a8
push eax
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0xc]
call fcn.00405398
mov eax, dword [ebp - 0x84]
call fcn.004053a8
push eax
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0x10]
call fcn.00405398
mov eax, dword [ebp - 0x88]
call fcn.004053a8
push eax
call sub.kernel32.dll_CreateProcessW
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0
lea edx, [ebp - 0x7c]
mov ecx, 1
mov eax, 0x4fa808
call fcn.0040a648
mov edx, dword [ebp - 0x8c]
mov eax, dword [0x59a270]
mov eax, dword [eax + 0x500]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 8]
call fcn.004fa150
test al, al
je 0x4fa746
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [0x59a270]
mov eax, dword [eax + 0x500]
mov eax, dword [eax + 0x220]
mov edx, 0x4fa838
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4fa76c
push 0
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [0x59a270]
mov eax, dword [eax + 0x500]
mov eax, dword [eax + 0x220]
mov edx, 0x4fa850
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa7a9
lea eax, [ebp - 0x8c]
call fcn.00404b04
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.00405264
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404b28
ret
Function at 0x4fa924
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404fb4
mov eax, dword [ebp - 8]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x4faa92
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x500]
mov eax, dword [eax + 0x220]
mov edx, 0x4faaa8
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402efc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409d58
lea eax, [ebp - 0x14]
mov edx, 0x4faac0
call fcn.00404dcc
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4347d8]
call fcn.00434888
mov esi, eax
push 0x4faad4
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4faae8
mov edx, 0x4faafc
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov eax, esi
call fcn.00403cf4
mov eax, dword [ebx + 0x500]
mov eax, dword [eax + 0x220]
mov edx, 0x4fab0c
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x58e944]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x2c2]
dec al
je 0x4fa9f8
sub al, 2
je 0x4faa49
jmp 0x4faa6a
mov eax, dword [ebx + 0x500]
mov eax, dword [eax + 0x220]
mov edx, 0x4fab24
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 1
mov eax, dword [ebp - 0xc]
call fcn.00404fc4
push eax
mov eax, dword [ebp - 8]
call fcn.00404fc4
push eax
lea eax, [ebp - 0x1c]
mov ecx, 0x4fab40
mov edx, dword [ebp - 0xc]
call fcn.00404e10
mov eax, dword [ebp - 0x1c]
call fcn.00404fc4
push eax
push 0x4fab50
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x4faa6a
mov eax, dword [ebx + 0x500]
mov eax, dword [eax + 0x220]
mov edx, 0x4fab60
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.004fa860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4faa99
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404b28
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b28
ret
Function at 0x409b80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46fefb
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.00462b2f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409c02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004605ad
mov eax, dword [eax]
push 0x5a51d0
push eax
call fcn.00453264
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00462dba
test bl, bl
je 0x409c02
push 0x5a51d0
lea ecx, [esp + 0xc]
call fcn.00463196
push 0x5a8d3c
lea ecx, [esp + 0xc]
call fcn.00463196
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 0x409c3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00462dba
jmp 0x409d09
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 0x409cc2
lea edx, [esp + 0x7c]
push 0x5a8d38
push edx
call fcn.00453264
add esp, 8
test eax, eax
je 0x409cc2
lea eax, [esp + 0x7c]
push 0x5a8d34
push eax
call fcn.00453264
add esp, 8
test eax, eax
je 0x409cc2
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 0x409c52
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.00462dba
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 0x40a500
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 0x40a562
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 0x40a570
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ff7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5afc10]
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 0x40a6a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a5d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462dba
xor eax, eax
jmp 0x40a71f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00462f43
push esi
lea ecx, [esp + 0xc]
call fcn.004631d2
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 0x40a6fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.0040a500
test eax, eax
jne 0x40a6fd
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 SysReAllocStringLen
mov ecx, edi
call fcn.0040a500
test eax, eax
jne 0x40a6fd
lea eax, [esp + 0x14]
push 0x5a8d50
push eax
call fcn.00454340
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a6dc
lea ecx, [esp + 0x14]
push 0x5a8d4c
push ecx
call fcn.004542c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a6dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a6df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00462ef3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a5ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462dba
xor eax, eax
jmp 0x40a71f
mov byte [esi], 0
push 0x5a8d48
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.00462dba
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 0x41ad00
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 0x41ad6e
cmp si, 0x69
ja 0x41ad6e
add esi, 0xffd0
cmp si, 0x11
je 0x41ad3e
push 0x11
call edi
test ax, ax
jge 0x41ad3e
or esi, 0x2000
cmp si, 0x10
je 0x41ad53
push 0x10
call edi
test ax, ax
jge 0x41ad53
or esi, 0x4000
cmp si, 0x12
je 0x41ad68
push 0x12
call edi
test ax, ax
jge 0x41ad68
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41ad7b
mov esi, 0xbd
jmp 0x41ad2f
cmp si, 0x6e
jne 0x41ad88
mov esi, 0xbe
jmp 0x41ad2f
cmp si, 0x6f
jne 0x41ad29
mov esi, 0xbf
jmp 0x41ad2f

Function at 0x41c3e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5c09b0]
xor edx, edx
cmp eax, edx
jne 0x41c406
xor eax, eax
mov byte [eax + 0x5c08b0], al
inc eax
cmp eax, 0x100
jl 0x41c3ee
mov dword [0x5c09b0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5c08b0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41c497
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 0x41c46a
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 0x41c438
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41c510
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 0x41c563
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 0x41c54a
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