joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401754
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
lea esi, [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov dword [esp + 8], esi
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._vfprintf
call sym._abort

Function at 0x4017a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
test ecx, ecx
jne 0x4017bc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x3c], ecx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
mov ecx, dword [ebp - 0x3c]
je 0x40186c
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
je 0x401860
cmp eax, 4
je 0x401860
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
cmp eax, 0x40
mov edx, dword [ebp - 0x40]
je 0x4017b1
cmp eax, 4
je 0x4017b1
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call dbg.__report_error
Function at 0x403250
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4050f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40a8e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebp
xor ebp, ebp
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x18], ebp
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x144], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x144], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea eax, [esp + 0x14]
mov byte [esp + 0x144], 3
push eax
push str.SystemCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40522d
push ebx
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ebp
push str.PagingFiles
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405220
cmp dword [esp + 0x14], ebp
jbe 0x405212
lea edx, [esp + ebp + 0x40]
lea ecx, [esp + 0x10]
push edx
call fcn.0040961a
push 0
push 0x20
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
test esi, esi
jle 0x4051f8
lea eax, [esi + 1]
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [eax]
push 0x40e354
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.0040960e
test bl, bl
jne 0x405296
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
lea ebp, [ecx + ebp + 1]
cmp ebp, eax
jb 0x40519e
push 0x40e868
lea ecx, [esp + 0x14]
call fcn.0040961a
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov esi, dword [esp + 0x14c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x144], 2
call fcn.004097dc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 1
call fcn.0040960e
lea ecx, [esp + 8]
mov byte [esp + 0x144], 0
call fcn.0040960e
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x140
ret 4
push esi
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 3
call fcn.0040960e
jmp 0x405220
Function at 0x4054d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x21c
lea eax, [esp + 8]
push ebx
push str..PHYSICALDRIVE0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
lea ecx, [esp + 0xc]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40557e
push esi
mov esi, dword [esp + 0x228]
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, 0x37
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
push eax
push edx
push 0x400
push ebx
mov dword [esp + 0x20], 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
cmp eax, 0xffffffff
pop esi
je 0x40558b
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x28]
push 0x200
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405577
cmp dword [esp + 4], 0x200
je 0x40558b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop ebx
add esp, 0x21c
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
add esp, 0x21c
ret 4

Function at 0x4055a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebx
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40563b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40563b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x40563b
mov edx, dword [esp + 0x18]
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40563b
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405634
cmp dword [esp + 0x10], esi
jne 0x405634
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x405650
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x118
push ebx
push ebp
lea eax, [esp + 8]
push esi
push eax
xor ebx, ebx
push str.SystemCurrentControlSetServicesESudisk
mov esi, ecx
push 0x80000002
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4057f2
mov edx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push ebx
push str.Type
push edx
mov dword [esp + 0x2c], 1
call ebp
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push ebx
push str.ErrorControl
push ecx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push ebx
push str.Start
push eax
mov dword [esp + 0x2c], ebx
call ebp
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0xc]
push edx
push str.SystemCurrentControlSetControlClass4D36E967_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4057f2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push str.UpperFilters
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4057e5
mov ecx, dword [esp + 0x10]
push str.ESudisk
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.00405a70
test eax, eax
jne 0x4057ae
push edi
mov edi, str.ESudisk
or ecx, 0xffffffff
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + edx + 0x23]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ESudisk
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [esp + 0x10]
add edx, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], edx
mov byte [esp + edx + 0x24], bl
inc edx
push edx
mov edx, dword [esp + 0x20]
push ecx
push edx
push ebx
push str.UpperFilters
push eax
call ebp
test eax, eax
pop edi
jne 0x4057ca
mov ecx, dword [esp + 0xc]
mov esi, 1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x118
ret
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x118
ret
Function at 0x405f00
Capabilities:
Delete file
Delete registry key
Get common file path
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40a9db
push eax
mov dword fs:[0], esp
sub esp, 0x218
lea eax, [esp + 8]
push ebx
push esi
push eax
push str.SystemCurrentControlSetControlClass4D36E967_E325_11CE_BFC1_08002BE10318
mov esi, ecx
push 0x80000002
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4060b0
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push str.UpperFilters
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406013
mov edx, dword [esp + 8]
push str.ESudisk
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, esi
call fcn.00405a70
mov edx, eax
test edx, edx
je 0x406013
push ebp
push edi
mov edi, str.ESudisk
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
mov edi, str.ESudisk
not ecx
dec ecx
sub eax, edx
sub eax, ecx
or ecx, 0xffffffff
lea ebp, [esp + eax + 0x1f]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
lea esi, [ecx + edx + 1]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
or edx, 0xffffffff
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ESudisk
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
sub edx, ecx
mov ecx, dword [esp + 0x1c]
add eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
push str.UpperFilters
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebp
test eax, eax
jne 0x406013
mov ebx, 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4060b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.SystemCurrentControlSetServicesESudiskSecurity
push 0x80000002
call esi
push str.SystemCurrentControlSetServicesESudiskEnum
push 0x80000002
call esi
push str.SystemCurrentControlSetServicesESudisk
push 0x80000002
call esi
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x4060b0
lea edx, [esp + 0x11c]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString_1
push str.driversESudisk.sys
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x228], 0xffffffff
call fcn.0040960e
mov ecx, dword [esp + 0x220]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x407c10
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x84c
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov al, byte [esi + 0xc8]
lea ecx, [esp + 0x30]
push eax
push str.._c:
push ecx
call edi
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x30]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push edx
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test ecx, ecx
mov dword [esp + 0x10], ecx
je 0x407c9e
lea ecx, [esp + 0x28]
push 0
push ecx
lea edx, [esp + 0x60]
push 0x800
push edx
push 0
push 0
push 0x560000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407c96
mov eax, dword [esp + 0x60]
mov dword [esi + 0xc4], eax
jmp 0x407c9e
mov dword [esp + 0x10], 0
mov ecx, dword [esi + 0xc4]
lea edx, [esp + 0x44]
push ecx
push str..PHYSICALDRIVE_d
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x44]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
xor edx, edx
mov dword [esi + 0xcc], eax
mov dl, byte [esi + 0xc8]
lea eax, [esp + 0xc]
push edx
push str._c:_
push eax
mov dword [esp + 0x20], ecx
call edi
add esp, 0xc
lea ecx, [esi + 0xc0]
lea edx, [esi + 0xbc]
lea eax, [esi + 0xb8]
push ecx
push edx
lea ecx, [esi + 0xb4]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov dword [esp + 0x1c], eax
xor eax, eax
mov al, byte [esi + 0xc8]
lea ecx, [esp + 0x20]
push eax
push str.._c:
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x20]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edx
call ebx
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
setne bl
test ebx, ebx
je 0x407db4
push ebp
push 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebp, eax
lea eax, [esp + 0x30]
push 0
push eax
push 0x400
push ebp
push 0
push 0
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x407da2
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov edx, dword [ebp + 0x14]
mov dword [esi + 4], edx
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
lea eax, [esi + 0x94]
push 0x20
lea ecx, [esi + 0x90]
push eax
lea edx, [esi + 0x8c]
push ecx
lea eax, [esi + 0x88]
push edx
push eax
add esi, 8
push 0x80
lea ecx, [esp + 0x24]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x407e1d
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x407e1d
test ebx, ebx
je 0x407e1d
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x407e1d
test eax, eax
je 0x407e1d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407e1d
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x84c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x84c
ret
Function at 0x407e60
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 1
mov eax, dword [edi + 0xcc]
cmp eax, 0xffffffff
je 0x407e9c
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push 0
push edx
push ecx
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407ea7
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
mov ecx, dword [edi + 0xb8]
mov eax, dword [esp + 0x24]
xor edx, edx
push 0
div ecx
mov edx, dword [edi + 0xcc]
mov dword [esp + 0x28], 0
mov esi, eax
lea eax, [esp + 0x28]
imul esi, ecx
mov ecx, dword [esp + 0x24]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407ee6
cmp dword [esp + 0x24], esi
je 0x407ef1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 8
ret 0x10
Function at 0x4093c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46572b
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.0045a249
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409442
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00458160
mov eax, dword [eax]
push 0x47b1f0
push eax
call fcn.0044ad54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045a4d4
test bl, bl
je 0x409442
push 0x47b1f0
lea ecx, [esp + 0xc]
call fcn.0045a864
push 0x47ed64
lea ecx, [esp + 0xc]
call fcn.0045a864
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 0x40947e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045a4d4
jmp 0x409549
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 0x409502
lea edx, [esp + 0x7c]
push 0x47ed60
push edx
call fcn.0044ad54
add esp, 8
test eax, eax
je 0x409502
lea eax, [esp + 0x7c]
push 0x47ed5c
push eax
call fcn.0044ad54
add esp, 8
test eax, eax
je 0x409502
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 0x409492
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.0045a4d4
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 0x409d40
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 0x409da2
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 0x409db0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4657ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48542c]
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 0x409ee8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409e16
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a4d4
xor eax, eax
jmp 0x409f5f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045a611
push esi
lea ecx, [esp + 0xc]
call fcn.0045a8a0
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 0x409f3d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409d40
test eax, eax
jne 0x409f3d
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.00409d40
test eax, eax
jne 0x409f3d
lea eax, [esp + 0x14]
push 0x47ed78
push eax
call fcn.0044bd90
mov esi, eax
add esp, 8
test esi, esi
jne 0x409f1c
lea ecx, [esp + 0x14]
push 0x47ed74
push ecx
call fcn.0044bd10
mov esi, eax
add esp, 8
test esi, esi
jne 0x409f1c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409f1f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045a5c1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409e2e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a4d4
xor eax, eax
jmp 0x409f5f
mov byte [esi], 0
push 0x47ed70
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.0045a4d4
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 0x41a4c0
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 0x41a52e
cmp si, 0x69
ja 0x41a52e
add esi, 0xffd0
cmp si, 0x11
je 0x41a4fe
push 0x11
call edi
test ax, ax
jge 0x41a4fe
or esi, 0x2000
cmp si, 0x10
je 0x41a513
push 0x10
call edi
test ax, ax
jge 0x41a513
or esi, 0x4000
cmp si, 0x12
je 0x41a528
push 0x12
call edi
test ax, ax
jge 0x41a528
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a53b
mov esi, 0xbd
jmp 0x41a4ef
cmp si, 0x6e
jne 0x41a548
mov esi, 0xbe
jmp 0x41a4ef
cmp si, 0x6f
jne 0x41a4e9
mov esi, 0xbf
jmp 0x41a4ef

Function at 0x41bba0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x495a98]
xor edx, edx
cmp eax, edx
jne 0x41bbc6
xor eax, eax
mov byte [eax + 0x495998], al
inc eax
cmp eax, 0x100
jl 0x41bbae
mov dword [0x495a98], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x495998
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bc57
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 0x41bc2a
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 0x41bbf8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bcd0
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 0x41bd23
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 0x41bd0a
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