joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e3d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*4]
push edx
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x1000e41d
push str._nERROR:_Not_enough_memory_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
call fcn.1000e230
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x1000e440
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2]
push edx
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x1000e48d
push str._nERROR:_Not_enough_memory_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
call fcn.1000e1c0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x1000e4b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
shl eax, 6
mov ecx, dword [ebp + 0xc]
add ecx, eax
push ecx
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000e4ff
push str._nERROR:_Not_enough_memory_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.1000e590
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x1000e520
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*4]
push edx
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x1000e56d
push str._nERROR:_Not_enough_memory_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
call fcn.1000e300
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x10012dc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015ce8
push 0x10014aca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x10012e26
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x10012eaf
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x10012e4d
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x10012eaf
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x10012e88
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x10012e88
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x10012eaf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x10012eaf
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012f50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1001d0b0]
mov dword [ebp - 4], eax
jmp 0x10012f69
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10012f86
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10012f60
mov esp, ebp
pop ebp
ret
Function at 0x10012f90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001d0c0], eax
je 0x10012fae
mov eax, 0x10dd
jmp 0x10013090
mov eax, dword [0x1001d0d0]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001302d
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x1001300b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x1001300b
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.10013100
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x10012fb6
mov dword [0x1001d0d0], 0
call fcn.100130a0
mov ecx, dword [0x1001d0cc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1001307a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x10013045
mov dword [0x1001d0cc], 0
mov dword [0x1001d0c0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10013600
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10013615
xor eax, eax
jmp 0x1001368a
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x10000
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x10013642
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x38d
jae 0x10013685
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x40], 0
je 0x10013683
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x1001367f
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x10013683
xor eax, eax
jmp 0x1001368a
jmp 0x10013639
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10013740
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1001d0c4], 0
je 0x10013759
mov eax, dword [0x1001d0c4]
jmp 0x100137f9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1001376b
xor eax, eax
jmp 0x100137f9
push 8
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100137c1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100137aa
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1001d0c4], eax
mov dword [0x1001d0c8], 0
mov eax, dword [ebp - 8]
jmp 0x100137f9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100137db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1001378b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1001d0cc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1001d0cc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10014030
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10014100
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100140ec
cmp dword [ebp - 4], 0x50000000
jb 0x1001406c
cmp dword [ebp - 4], 0x80000000
ja 0x1001406c
mov dword [ebp - 4], 0x80010000
jmp 0x10014045
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10014092
jmp 0x100140ec
cmp dword [ebp - 0x10], 0x10000
jne 0x100140d5
cmp dword [ebp - 0x14], 0x10000
jb 0x100140d5
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100140c8
mov eax, dword [ebp - 0x24]
jmp 0x100140ee
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100140e7
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10014100
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10014045
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10014140
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10014210
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10014204
cmp dword [ebp - 4], 0x50000000
jb 0x10014181
cmp dword [ebp - 4], 0x80000000
ja 0x10014181
mov dword [ebp - 4], 0x4fff0000
jmp 0x1001415a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100141a7
jmp 0x10014204
cmp dword [ebp - 0x10], 0x10000
jne 0x100141ea
cmp dword [ebp - 0x14], 0x10000
jb 0x100141ea
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100141dd
mov eax, dword [ebp - 0x24]
jmp 0x10014206
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100141ff
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10014210
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001415a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401030
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 4], 0
pop esi
ret

Function at 0x401070
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoft.NETFramework_v2.0.50727
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
push 5
je 0x4010a9
push str.VMDotNet_v2.0.50727ShangliVM.exe_ShangliForms.exe
jmp 0x4010ae
push str.ShangliForms.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, 0x40bd6c
call fcn.00401030
xor eax, eax
pop ecx
ret 0x10

Function at 0x401161
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b018]
jne 0x40116b
repz ret
jmp fcn.004029fa

Function at 0x4067dd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040216f
and dword [ebp - 4], 0
cmp dword [0x40c73c], 0
mov ebx, eax
jne 0x40688e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40693f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40693f
push eax
call fcn.004020fd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40c73c], eax
call esi
push eax
call fcn.004020fd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40c740], eax
call esi
push eax
call fcn.004020fd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40c744], eax
call esi
push eax
call fcn.004020fd
pop ecx
mov dword [0x40c74c], eax
test eax, eax
je 0x40688e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004020fd
pop ecx
mov dword [0x40c748], eax
mov eax, dword [0x40c748]
cmp eax, ebx
je 0x4068e6
cmp dword [0x40c74c], ebx
je 0x4068e6
push eax
call fcn.00402178
push dword [0x40c74c]
mov esi, eax
call fcn.00402178
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4068e6
test edi, edi
je 0x4068e6
call esi
test eax, eax
je 0x4068dd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4068dd
test byte [ebp - 0xc], 1
jne 0x4068e6
or dword [ebp + 0x10], 0x200000
jmp 0x40691f
mov eax, dword [0x40c740]
cmp eax, ebx
je 0x40691f
push eax
call fcn.00402178
pop ecx
test eax, eax
je 0x40691f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40691f
mov eax, dword [0x40c744]
cmp eax, ebx
je 0x40691f
push eax
call fcn.00402178
pop ecx
test eax, eax
je 0x40691f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40c73c]
call fcn.00402178
pop ecx
test eax, eax
je 0x40693f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406941
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c6a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x492c7b
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.004851c9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c722
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00482a20
mov eax, dword [eax]
push 0x57a210
push eax
call fcn.00473f54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00485454
test bl, bl
je 0x40c722
push 0x57a210
lea ecx, [esp + 0xc]
call fcn.00485830
push 0x57dda4
lea ecx, [esp + 0xc]
call fcn.00485830
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 0x40c75e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00485454
jmp 0x40c829
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 0x40c7e2
lea edx, [esp + 0x7c]
push 0x57dda0
push edx
call fcn.00473f54
add esp, 8
test eax, eax
je 0x40c7e2
lea eax, [esp + 0x7c]
push 0x57dd9c
push eax
call fcn.00473f54
add esp, 8
test eax, eax
je 0x40c7e2
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 0x40c772
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.00485454
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 0x40da80
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 0x40dae2
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 0x40daf0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x492ddb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x58aa50]
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 0x40dc28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40db56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00485454
xor eax, eax
jmp 0x40dc9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004855dd
push esi
lea ecx, [esp + 0xc]
call fcn.0048586c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x57dddc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40dc7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040da80
test eax, eax
jne 0x40dc7d
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.0040da80
test eax, eax
jne 0x40dc7d
lea eax, [esp + 0x14]
push 0x57ddb8
push eax
call fcn.00475030
mov esi, eax
add esp, 8
test esi, esi
jne 0x40dc5c
lea ecx, [esp + 0x14]
push 0x57ddb4
push ecx
call fcn.00474fb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40dc5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40dc5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048558d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40db6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00485454
xor eax, eax
jmp 0x40dc9f
mov byte [esi], 0
push 0x57ddb0
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.00485454
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 0x420110
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 0x42017e
cmp si, 0x69
ja 0x42017e
add esi, 0xffd0
cmp si, 0x11
je 0x42014e
push 0x11
call edi
test ax, ax
jge 0x42014e
or esi, 0x2000
cmp si, 0x10
je 0x420163
push 0x10
call edi
test ax, ax
jge 0x420163
or esi, 0x4000
cmp si, 0x12
je 0x420178
push 0x12
call edi
test ax, ax
jge 0x420178
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42018b
mov esi, 0xbd
jmp 0x42013f
cmp si, 0x6e
jne 0x420198
mov esi, 0xbe
jmp 0x42013f
cmp si, 0x6f
jne 0x420139
mov esi, 0xbf
jmp 0x42013f

Function at 0x421830
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x59b8a0]
xor edx, edx
cmp eax, edx
jne 0x421856
xor eax, eax
mov byte [eax + 0x59b7a0], al
inc eax
cmp eax, 0x100
jl 0x42183e
mov dword [0x59b8a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x59b7a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4218e7
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 0x4218ba
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 0x421888
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4218f0
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 0x421943
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 0x42192a
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