joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50960c
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405b14
xor eax, eax
push ebp
push 0x50972a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5096fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405b24
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5096da
test byte [ebp - 0x14c], 0x10
jne 0x5096bd
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00405904
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.0040a044
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x509680
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x5096e6
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509704
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x50f1bc
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, eax
movzx eax, byte [ebx + 4]
sub al, 1
jb 0x50f1cb
je 0x50f1d0
jmp 0x50f1f4
mov eax, dword [ebx + 8]
pop ebx
ret
cmp dword [ebx + 8], 0
jne 0x50f1ef
lea eax, [ebx + 8]
push eax
movzx eax, byte [ebx + 0xc]
push eax
mov eax, dword [0x555804]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x511510
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x511681
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51165c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.0040587c
lea eax, [ebp - 0x118]
mov edx, 0x511698
call fcn.00405960
mov eax, dword [ebp - 0x118]
call fcn.00405b24
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x5115ce
lea eax, [ebp - 0x111]
call fcn.0040b5f4
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00405784
jmp 0x5115d5
mov eax, esi
call fcn.00405694
cmp bl, 0x61
jae 0x5115f6
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.004104c0
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004056e8
jmp 0x511610
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0041042c
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004056e8
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x5116a4
call fcn.0040c0c0
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004056e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511663
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x517ef0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
test ebx, ebx
je 0x517f84
mov edx, dword [0x51495c]
mov eax, 8
call fcn.004066d4
mov esi, eax
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004056e8
mov byte [esi + 4], 0
mov edx, esi
mov eax, ebx
call fcn.004d03dc
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.004d058c
mov eax, dword [edi + 0x3f4]
cmp eax, dword [ebp + 8]
jne 0x517f54
mov edx, dword [edi + 0x3f0]
mov eax, ebx
call fcn.004d05e8
jmp 0x517f84
push 0x4003
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
call fcn.00405b24
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edx, dword [ebp - 0x160]
mov eax, ebx
call fcn.004d05e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x519ef8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51a020
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x519ffb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.0040587c
lea eax, [ebp - 0x118]
mov edx, 0x51a038
call fcn.00405960
mov eax, dword [ebp - 0x118]
call fcn.00405b24
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x519fa3
lea eax, [ebp - 0x111]
call fcn.0040b5f4
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00405784
jmp 0x519faa
mov eax, esi
call fcn.00405694
mov eax, dword [esi]
call fcn.00405954
test eax, eax
jle 0x519fe4
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0041042c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004056e8
mov eax, dword [esi]
movzx eax, byte [eax]
call fcn.004035b0
mov ebx, eax
mov eax, esi
call fcn.00405b84
mov byte [eax], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a002
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x5328a8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 8]
test byte [eax + 1], 0x80
setne byte [ebp - 0xa]
mov eax, dword [ebp - 8]
movzx eax, word [eax]
add eax, eax
xor edx, edx
mov dl, byte [ebp - 9]
shr edx, 7
or eax, edx
cmp eax, 0xffff
jbe 0x5328e7
call fcn.0040461c
mov edx, dword [ebp - 8]
mov word [edx], ax
cmp byte [ebp - 0xa], 0
je 0x5328fb
mov eax, dword [ebp - 8]
xor word [eax], 0x1021
xor eax, eax
mov al, byte [ebp - 9]
add eax, eax
and eax, 0xff
cmp eax, 0xff
jbe 0x532913
call fcn.0040461c
mov byte [ebp - 9], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 9
jne 0x5328be
mov esp, ebp
pop ebp
ret
Function at 0x547c1c
Capabilities:
Terminate process

Disassembly:
push 0
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
ret

Function at 0x547d6c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x547f39
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x55d138], 0
je 0x547f0e
call sub.user32.dll_GetForegroundWindow
mov esi, eax
mov eax, dword [0x55d110]
call fcn.0045ee80
push eax
call sub.user32.dll_SetForegroundWindow
lea eax, [ebp - 4]
call fcn.004074c8
push eax
lea ecx, [ebp - 8]
mov eax, dword [0x55d110]
mov eax, dword [eax + 0x368]
mov edx, 0xcb
call fcn.00497700
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x1b0]
call fcn.004075d8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xec]
call fcn.004075d8
push 0x547f50
lea edx, [ebp - 0x10]
mov eax, dword [0x55d110]
mov eax, dword [eax + 0x3fc]
mov eax, dword [eax + 0x44]
call fcn.0040a708
push dword [ebp - 0x10]
push 0x547f60
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405a28
mov eax, dword [ebp - 0xc]
call fcn.00405b24
xor edx, edx
call fcn.004ab2b4
mov dl, 1
mov eax, dword [0x448168]
call fcn.00404724
mov ebx, eax
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004483ec
mov edx, dword [ebp - 0x14]
mov eax, 0x55d148
call fcn.004056e8
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, dword [0x55d138]
mov eax, ebx
call fcn.0044846c
mov eax, 0x547f64
xor edx, edx
call fcn.004ab2b4
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, ebx
call fcn.00404754
push 0x547f50
lea edx, [ebp - 0x1c]
mov eax, dword [0x55d110]
mov eax, dword [eax + 0x3fc]
mov eax, dword [eax + 0x48]
call fcn.0040a708
push dword [ebp - 0x1c]
push 0x547f60
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405a28
mov eax, dword [ebp - 0x18]
call fcn.00405b24
xor edx, edx
call fcn.004ab2b4
mov al, 0x20
call fcn.00547d4c
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x547ef8
cmp eax, 0x3e8
jbe 0x547efa
jmp 0x547f08
jg 0x547f08
mov eax, dword [0x555804]
mov eax, dword [eax]
call fcn.00475f08
jmp 0x547ed5
push esi
call sub.user32.dll_SetForegroundWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x547f40
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004056b8
lea eax, [ebp - 8]
call fcn.004074c8
lea eax, [ebp - 4]
call fcn.004074c8
ret
Function at 0x54936c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe2c
push ebx
xor edx, edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x54951e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x55560c]
mov eax, dword [eax]
call fcn.0040ad5c
test al, al
je 0x5493be
mov ebx, dword [0x55560c]
mov ebx, dword [ebx]
mov dword [ebp - 0x1d4], ebx
mov eax, dword [ebp - 0x1d4]
call fcn.00405b24
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [0x55560c]
mov edx, dword [edx]
lea eax, [ebp - 0x1d0]
call fcn.00403970
lea eax, [ebp - 0x1d0]
call fcn.00403700
call fcn.00403130
push 0x549534
mov eax, dword [0x555580]
push dword [eax]
push 0x54957c
push 0x54958c
push 0x549598
push 0x5495a4
push 0x54958c
push 0x549598
push 0x5495c0
push 0x54958c
push 0x549598
push 0x5495d8
push 0x54958c
push 0x549598
push 0x5495f8
push 0x54958c
push 0x549598
push 0x549614
push 0x54958c
push 0x549598
push 0x549634
push 0x54958c
push 0x549598
push 0x549650
push 0x54958c
push 0x549598
push 0x549670
push 0x54958c
push 0x549598
push 0x549690
push 0x54958c
push 0x549598
push 0x5496b0
push 0x54958c
push 0x549598
push 0x5496d4
push 0x54958c
push 0x549598
push 0x5496f0
push 0x54958c
push 0x549598
push 0x549710
push 0x54958c
push 0x549598
push 0x549724
push 0x54958c
push 0x549598
push 0x549778
lea eax, [ebp - 4]
mov edx, 0x30
call fcn.00405a28
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00405e44
call fcn.00404068
call fcn.00403130
lea eax, [ebp - 0x1d0]
call fcn.00403a38
call fcn.00403130
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x549525
lea eax, [ebp - 4]
call fcn.00405694
ret
Function at 0x54980c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x549814
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405b14
xor eax, eax
push ebp
push 0x549a1c
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [0x555284]
cmp byte [eax], 6
je 0x54984f
mov eax, dword [0x555284]
cmp byte [eax], 7
jne 0x549870
lea edx, [ebp - 0x10]
mov eax, dword [0x5552ac]
mov eax, dword [eax]
call fcn.0040b034
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x549a34
call fcn.004059ac
jmp 0x549892
lea eax, [ebp - 0x14]
call fcn.00478754
push dword [ebp - 0x14]
push 0x549a48
push 0x549a34
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405a28
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41d8ac]
call fcn.00423148
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5498d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x374]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004bcd04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5498fe
mov esi, dword [0x555264]
mov esi, dword [esi]
mov edx, dword [0x555264]
mov edx, dword [edx]
lea eax, [ebp - 0x18]
mov ecx, 0x549a7c
call fcn.004059ac
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
call fcn.00405b24
push eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.00405b24
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [0x555264]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc]
call fcn.00549788
test al, al
je 0x549986
mov edx, dword [0x555264]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x549a7c
call fcn.004059ac
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.00405b24
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x5499c9
mov edx, dword [0x555264]
mov edx, dword [edx]
lea eax, [ebp - 0x28]
mov ecx, 0x549a7c
call fcn.004059ac
mov esi, dword [ebp - 0x28]
mov edi, dword [0x555264]
mov edi, dword [edi]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
call fcn.00405b24
push eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.00405b24
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 0xc]
call fcn.00404754
mov eax, dword [ebp - 8]
call fcn.00405b24
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x549a23
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004056b8
lea eax, [ebp - 0x18]
call fcn.00405694
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004056b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004056b8
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x406b50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d7cb
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.00460644
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406bd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045e0fa
mov eax, dword [eax]
push 0x59c200
push eax
call fcn.00450c04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004608cf
test bl, bl
je 0x406bd2
push 0x59c200
lea ecx, [esp + 0xc]
call fcn.00460cab
push 0x59fd58
lea ecx, [esp + 0xc]
call fcn.00460cab
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 0x406c0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004608cf
jmp 0x406cd9
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 0x406c92
lea edx, [esp + 0x7c]
push 0x59fd54
push edx
call fcn.00450c04
add esp, 8
test eax, eax
je 0x406c92
lea eax, [esp + 0x7c]
push 0x59fd50
push eax
call fcn.00450c04
add esp, 8
test eax, eax
je 0x406c92
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 0x406c22
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.004608cf
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 0x4074d0
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 0x407532
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 0x407540
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d84b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5a6cb8]
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 0x407678
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4075a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004608cf
xor eax, eax
jmp 0x4076ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00460a58
push esi
lea ecx, [esp + 0xc]
call fcn.00460ce7
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x59fd90
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4076cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004074d0
test eax, eax
jne 0x4076cd
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.004074d0
test eax, eax
jne 0x4076cd
lea eax, [esp + 0x14]
push 0x59fd6c
push eax
call fcn.00451ce0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4076ac
lea ecx, [esp + 0x14]
push 0x59fd68
push ecx
call fcn.00451c60
mov esi, eax
add esp, 8
test esi, esi
jne 0x4076ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4076af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00460a08
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4075be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004608cf
xor eax, eax
jmp 0x4076ef
mov byte [esi], 0
push 0x59fd64
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.004608cf
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 0x418040
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 0x4180ae
cmp si, 0x69
ja 0x4180ae
add esi, 0xffd0
cmp si, 0x11
je 0x41807e
push 0x11
call edi
test ax, ax
jge 0x41807e
or esi, 0x2000
cmp si, 0x10
je 0x418093
push 0x10
call edi
test ax, ax
jge 0x418093
or esi, 0x4000
cmp si, 0x12
je 0x4180a8
push 0x12
call edi
test ax, ax
jge 0x4180a8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4180bb
mov esi, 0xbd
jmp 0x41806f
cmp si, 0x6e
jne 0x4180c8
mov esi, 0xbe
jmp 0x41806f
cmp si, 0x6f
jne 0x418069
mov esi, 0xbf
jmp 0x41806f

Function at 0x419720
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5b7a50]
xor edx, edx
cmp eax, edx
jne 0x419746
xor eax, eax
mov byte [eax + 0x5b7950], al
inc eax
cmp eax, 0x100
jl 0x41972e
mov dword [0x5b7a50], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5b7950
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4197d7
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 0x4197aa
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 0x419778
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x419850
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 0x4198a3
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 0x41988a
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