joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462080
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404888
mov edi, dword [ebp + 8]
add edi, 0xfffffffc
xor eax, eax
push ebp
push 0x462260
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00404698
mov edx, dword [ebp + 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 1
jl 0x46223d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x4620ef
lea eax, [ebp - 4]
mov edx, 0x46227c
call fcn.004046a0
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x10]
mov edx, 0x46227c
mov eax, dword [ebp - 4]
call fcn.004622d4
mov eax, dword [ebp - 0x10]
call fcn.00404898
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
xor eax, eax
push ebp
push 0x462236
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x46221f
xor esi, esi
mov eax, edi
mov edx, 0x104
call fcn.00404a24
mov eax, dword [edi]
call fcn.00404698
mov edx, dword [ebp + 8]
mov dword [edx - 8], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
push 0
push 0
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [edi]
call fcn.00404898
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4621ac
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, edi
call fcn.00404a24
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [edi]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004046e4
mov eax, dword [ebp - 0x14]
call fcn.00462080
pop ecx
test al, al
je 0x462216
dec esi
jmp 0x462216
mov eax, dword [ebp + 8]
add eax, 0xffffffe4
mov edx, dword [ebp - 4]
call fcn.00404470
mov eax, dword [0x46b8d0]
cmp dword [eax], 2
je 0x4621f8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x1c]
cmp byte [edx + eax - 1], 0x5c
jne 0x4621f8
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
mov edx, 0x46227c
call fcn.004622d4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, 0xffffffe4
call fcn.00404470
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
call fcn.00404898
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete byte [ebp - 5]
inc esi
test ebx, ebx
je 0x462139
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46223d
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462267
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004043fc
lea eax, [ebp - 4]
call fcn.004043d8
ret
Function at 0x46254c
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x462554
push ecx
push ebx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x46269d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00402dec
lea edx, [ebp - 0x10]
mov eax, 1
call fcn.00402dec
mov eax, dword [ebp - 0x10]
mov edx, 0x4626b4
call fcn.004047e4
sete bl
test bl, bl
je 0x4625c5
mov eax, dword [ebp - 0xc]
call fcn.004626e4
cmp byte [ebp - 1], 0
je 0x462682
lea edx, [ebp - 0x14]
mov eax, 2
call fcn.00402dec
mov eax, dword [ebp - 0x14]
call fcn.004626e4
jmp 0x462682
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00404a24
mov eax, dword [ebp - 8]
call fcn.00404898
push eax
mov eax, dword [ebp - 8]
call fcn.00404698
push eax
call sub.kernel32.dll_GetTempPathA
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404a24
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00408f58
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0040d62c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
pop ecx
call fcn.004046e4
push 0
mov eax, dword [ebp - 8]
call fcn.00404898
push eax
lea edx, [ebp - 0x20]
mov eax, dword [0x46b778]
mov eax, dword [eax]
call fcn.00460c3c
mov eax, dword [ebp - 0x20]
call fcn.00404898
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x462682
push 0x4626c4
push dword [ebp - 8]
push 0x4626d0
push 0x4626e0
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0046245c
push dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 5
call fcn.00404758
push 5
mov eax, dword [ebp - 8]
call fcn.00404898
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4626a4
lea eax, [ebp - 0x24]
mov edx, 8
call fcn.004043fc
ret
Function at 0x4626e4
Capabilities:
Delete file
Move file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4626ec
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4629bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x46b8d0]
cmp dword [eax], 2
jne 0x462728
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00404898
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x462998
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00404a24
mov eax, dword [ebp - 8]
call fcn.00404698
push eax
mov eax, dword [ebp - 8]
call fcn.00404898
push eax
push 0x4629c8
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x462998
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004084c0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00404470
mov dl, 1
mov eax, dword [0x413650]
call fcn.00403634
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x462991
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00408d3c
test al, al
je 0x462886
mov dl, 1
mov eax, dword [0x413650]
call fcn.00403634
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46287f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov edx, 0x4629e8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov ebx, eax
test ebx, ebx
jge 0x4627e6
call fcn.00403e98
call fcn.00403e98
jmp 0x462998
inc ebx
jmp 0x462820
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004084c0
cmp dword [ebp - 0x20], 0
je 0x46281f
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jge 0x462869
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.004084c0
mov eax, dword [ebp - 0x30]
mov ecx, 1
mov edx, 1
call fcn.004048f8
mov eax, dword [ebp - 0x2c]
mov edx, 0x4629fc
call fcn.004047e4
jne 0x4627e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462886
mov eax, dword [ebp - 0x10]
call fcn.00403664
ret
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42ae30]
call fcn.0042aee0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4628da
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x462a08
mov eax, dword [ebp - 0x14]
call fcn.0042af28
test al, al
je 0x4628c4
mov edx, 0x462a08
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4628e1
mov eax, dword [ebp - 0x14]
call fcn.00403664
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4629c2
lea eax, [ebp - 0x3c]
mov edx, 9
call fcn.004043fc
lea eax, [ebp - 8]
call fcn.004043d8
ret
Function at 0x462aec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x462c5a
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00462a4c
mov ebx, eax
test ebx, ebx
je 0x462c37
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.user32.dll_GetWindowRect
push 0
push 0x462c68
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov esi, eax
test esi, esi
je 0x462b66
push 0
push 0
push 0x132f
push esi
call sub.user32.dll_SendMessageA
inc eax
lea edx, [ebp - 0x70]
call fcn.00408784
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 8]
mov edx, 0x462c80
call fcn.004046e4
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x5c]
mov edx, 0x44
call fcn.00406e88
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0x462c11
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 8]
mov edx, 0x462c8c
call fcn.004046e4
mov eax, dword [ebp - 0x74]
call fcn.00404898
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x462be6
call fcn.00403e98
jmp 0x462c37
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
call sub.user32.dll_WaitForInputIdle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462c18
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462c61
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004043fc
lea eax, [ebp - 8]
call fcn.004043d8
ret
Function at 0x462fcc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
mov edi, eax
xor eax, eax
push ebp
push 0x463187
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x46b8b8]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
test eax, eax
jne 0x463001
xor esi, esi
jmp 0x46300e
mov edx, dword [0x46b8b8]
call fcn.00441f18
mov esi, eax
xor ebx, ebx
test byte [ebp - 4], 4
je 0x463023
xor ebx, ebx
test byte [ebp - 4], 8
je 0x463023
mov ebx, 1
mov ax, word [ebp - 4]
not eax
and ax, word [0x46319c]
jne 0x463037
mov ebx, 5
mov ax, word [ebp - 4]
not eax
and ax, word [0x4631a0]
jne 0x46304b
mov ebx, 2
mov ax, word [ebp - 4]
not eax
and ax, word [0x4631a4]
jne 0x46306a
mov ebx, 4
test byte [ebp - 4], 8
je 0x46306a
mov ebx, 3
lea edx, [ebp - 8]
mov eax, dword [0x46b778]
mov eax, dword [eax]
call fcn.0045fe58
mov eax, dword [0x46b4fc]
cmp byte [eax], 0
je 0x4630c9
lea eax, [ebp - 8]
mov edx, pe_nt_image_headers32
call fcn.00404a24
mov eax, dword [ebp - 8]
call fcn.00404698
dec eax
push eax
mov eax, dword [ebp - 8]
call fcn.00404898
push eax
push esi
call sub.user32.dll_GetWindowTextA
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404a24
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004084c0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00404470
or ebx, dword [ebp + 8]
xor eax, eax
mov al, byte [ebp - 1]
or ebx, dword [eax*4 + 0x469e28]
or ebx, 0
or ebx, 0x10000
or ebx, 0x40000
push ebx
mov eax, dword [ebp - 8]
call fcn.00404898
push eax
mov eax, edi
call fcn.00404898
push eax
push esi
call sub.user32.dll_MessageBoxA_1
xor ebx, ebx
cmp eax, 0xb
ja case.0x463106.0
jmp dword [eax*4 + 0x46310d]
mov ebx, 3
jmp case.0x463106.0
mov ebx, 2
jmp case.0x463106.0
mov ebx, 5
jmp case.0x463106.0
mov ebx, 7
jmp case.0x463106.0
mov ebx, 1
jmp case.0x463106.0
mov ebx, 4
jmp case.0x463106.0
mov ebx, 6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46318e
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004043fc
ret
Function at 0x4638ec
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.00463874
mov eax, esi
call fcn.00408d3c
test al, al
je 0x463a07
mov dl, 1
mov eax, dword [0x413940]
call fcn.00403634
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x463a00
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004187d8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4633c0]
call fcn.00463cf0
mov esi, eax
mov dword [ebx + 8], esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x3c]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x463424]
call fcn.00463d70
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00417ebc
mov edi, eax
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x18]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x4639ce
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4634f0]
call fcn.00463e3c
mov esi, eax
mov eax, dword [ebx + 0x10]
mov edx, esi
call fcn.0041583c
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebp - 8]
jae 0x4639c6
mov dword [ebp - 8], eax
add edi, 0x28
dec dword [ebp - 0xc]
jne 0x463999
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 8]
sub eax, edi
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x463488]
call fcn.00463ddc
mov dword [ebx + 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463a07
mov eax, dword [ebp - 4]
call fcn.00403664
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4671a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov ebp, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.0040442c
mov eax, dword [esi]
call fcn.00404698
mov edi, eax
test edi, edi
jle 0x4671e0
mov ebx, 1
mov eax, esi
call fcn.004048f0
mov edx, ebp
mov ecx, dword [esi]
xor dl, byte [ecx + ebx - 1]
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x4671c9
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x45aaab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x45aaab
lcall 0x5de5, 0x8b10c483
jmp int.00a6bdfc
Function at 0x40a2f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x465c9b
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.0045a6b6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a372
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004585cd
mov eax, dword [eax]
push 0x48f1c0
push eax
call fcn.0044b434
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045a941
test bl, bl
je 0x40a372
push 0x48f1c0
lea ecx, [esp + 0xc]
call fcn.0045acd1
push 0x492d3c
lea ecx, [esp + 0xc]
call fcn.0045acd1
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 0x40a3ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045a941
jmp 0x40a479
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 0x40a432
lea edx, [esp + 0x7c]
push 0x492d38
push edx
call fcn.0044b434
add esp, 8
test eax, eax
je 0x40a432
lea eax, [esp + 0x7c]
push 0x492d34
push eax
call fcn.0044b434
add esp, 8
test eax, eax
je 0x40a432
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 0x40a3c2
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.0045a941
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 0x40ac70
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 0x40acd2
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 0x40ace0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x465d1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x499214]
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 0x40ae18
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ad46
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a941
xor eax, eax
jmp 0x40ae8f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045aa7e
push esi
lea ecx, [esp + 0xc]
call fcn.0045ad0d
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 0x40ae6d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040ac70
test eax, eax
jne 0x40ae6d
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.0040ac70
test eax, eax
jne 0x40ae6d
lea eax, [esp + 0x14]
push 0x492d50
push eax
call fcn.0044c470
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ae4c
lea ecx, [esp + 0x14]
push 0x492d4c
push ecx
call fcn.0044c3f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ae4c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ae4f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045aa2e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ad5e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a941
xor eax, eax
jmp 0x40ae8f
mov byte [esi], 0
push 0x492d48
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.0045a941
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 0x41b910
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 0x41b97e
cmp si, 0x69
ja 0x41b97e
add esi, 0xffd0
cmp si, 0x11
je 0x41b94e
push 0x11
call edi
test ax, ax
jge 0x41b94e
or esi, 0x2000
cmp si, 0x10
je 0x41b963
push 0x10
call edi
test ax, ax
jge 0x41b963
or esi, 0x4000
cmp si, 0x12
je 0x41b978
push 0x12
call edi
test ax, ax
jge 0x41b978
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41b98b
mov esi, 0xbd
jmp 0x41b93f
cmp si, 0x6e
jne 0x41b998
mov esi, 0xbe
jmp 0x41b93f
cmp si, 0x6f
jne 0x41b939
mov esi, 0xbf
jmp 0x41b93f

Function at 0x41d030
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a9868]
xor edx, edx
cmp eax, edx
jne 0x41d056
xor eax, eax
mov byte [eax + 0x4a9768], al
inc eax
cmp eax, 0x100
jl 0x41d03e
mov dword [0x4a9868], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a9768
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d0e7
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 0x41d0ba
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 0x41d088
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d160
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 0x41d1b3
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 0x41d19a
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