joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100364f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x20], eax
lea eax, [esp]
push eax
push 0x2001f
push 0
push str.SOFTWARE2345Explorer
push 0x80000002
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10036595
push esi
push 5
push str.false
lea esi, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], eax
mov word [esp + 0x14], ax
call fcn.100025e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov esi, 8
add eax, eax
cmp dword [esp + 0x20], esi
jae 0x10036560
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0xc]
push 1
push 0
push 0x1004a214
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x20], esi
pop esi
jb 0x10036595
mov eax, dword [esp + 8]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x24
ret
Function at 0x1003af30
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x10040a2c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebp
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esp + 0x144], edi
mov dword [esi], vtable.RC::RCTrayNotifyIcon.0
mov dword [esi + 0x3e0], edi
mov dword [esi + 0x3e4], edi
mov dword [esi + 0x3e8], edi
mov dword [esi + 0x3ec], edi
mov byte [esp + 0x144], 1
lea ecx, [esp + 0x24]
push ecx
mov dword [esi + 0x3f0], edi
mov dword [esi + 0x3f4], 1
mov dword [esi + 0x3f8], edi
mov dword [esi + 0x3fc], edi
mov dword [esi + 0x400], edi
mov dword [esi + 0x404], edi
mov dword [esi + 0x408], edi
mov dword [esi + 0x40c], edi
mov dword [esp + 0x28], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1003b00e
cmp dword [esp + 0x28], 6
jb 0x1003b00e
mov dword [esi + 0x3f8], 3
jmp 0x1003b064
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x1003b064
push str.DllGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1003b064
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0x14
call eax
test eax, eax
jl 0x1003b064
mov eax, dword [esp + 0x14]
cmp eax, 6
jb 0x1003b055
mov dword [esi + 0x3f8], 2
jmp 0x1003b064
cmp eax, 5
jb 0x1003b064
mov dword [esi + 0x3f8], 1
push 0x3bc
lea ebp, [esi + 0x24]
push edi
push ebp
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0x3f8]
add esp, 0xc
sub eax, 1
mov ecx, 0x98
je 0x1003b0a4
sub eax, 1
je 0x1003b09a
sub eax, 1
jne 0x1003b0ae
mov eax, 0x3bc
mov dword [ebp], eax
jmp 0x1003b0b1
mov eax, 0x3b8
mov dword [ebp], eax
jmp 0x1003b0b1
mov eax, 0x3a8
mov dword [ebp], eax
jmp 0x1003b0b1
mov dword [ebp], ecx
mov eax, esi
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x13c
ret
Function at 0x1003be90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x424]
cmp dword [eax + 0x18], 8
push ebx
push esi
mov esi, dword [esp + 0x430]
push edi
mov edi, edx
jb 0x1003bec2
mov eax, dword [eax + 4]
jmp 0x1003bec5
add eax, 4
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003bf72
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x1003bf72
push 0x410
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], 0x40f
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x1003bf17
mov edi, dword [edi + 4]
jmp 0x1003bf1a
add edi, 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x1003bf5a
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1003bf40
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.100025e0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003bf69
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x1003bf74
xor al, al
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003ec9d
add esp, 0x420
ret 8

Function at 0x1003bf90
Capabilities:
Set registry value

Disassembly:
cmp dword [eax + 0x18], 8
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov esi, ecx
jb 0x1003bfa4
mov eax, dword [eax + 4]
jmp 0x1003bfa7
add eax, 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0x2001f
push 0
push 0x10047a94
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1003c026
mov edi, dword [esp + 0x14]
test edi, edi
je 0x1003c026
mov ecx, dword [esi + 0x14]
add ecx, ecx
cmp dword [esi + 0x18], 8
jb 0x1003bfe9
mov edx, dword [esi + 4]
jmp 0x1003bfec
lea edx, [esi + 4]
cmp dword [ebp + 0x18], 8
jb 0x1003bff7
mov eax, dword [ebp + 4]
jmp 0x1003bffa
lea eax, [ebp + 4]
push ecx
push edx
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003c019
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebp
ret 8
Function at 0x1003c030
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
cmp dword [eax + 0x18], 8
push esi
mov esi, ecx
jb 0x1003c041
mov eax, dword [eax + 4]
jmp 0x1003c044
add eax, 4
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003c0c0
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1003c0c0
cmp dword [esi + 0x18], 8
mov dword [esp + 8], 4
jb 0x1003c077
mov eax, dword [esi + 4]
jmp 0x1003c07a
lea eax, [esi + 4]
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1003c0a3
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x1003c0b2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x10
ret 4
xor al, al
pop esi
add esp, 0x10
ret 4

Function at 0x1003c0d0
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [eax + 0x18], 8
push esi
mov esi, ecx
jb 0x1003c0df
mov eax, dword [eax + 4]
jmp 0x1003c0e2
add eax, 4
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x2001f
push 0
push 0x10047a94
push 0
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1003c152
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1003c152
cmp dword [esi + 0x18], 8
jb 0x1003c11f
mov eax, dword [esi + 4]
jmp 0x1003c122
lea eax, [esi + 4]
mov edx, dword [esp + 0x10]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003c146
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret 8
xor al, al
pop esi
pop ecx
ret 8

Function at 0x1003c160
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [eax + 0x18], 8
push esi
mov esi, ecx
jb 0x1003c16f
mov eax, dword [eax + 4]
jmp 0x1003c172
add eax, 4
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x2001f
push 0
push 0x10047a94
push 0
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1003c1df
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1003c1df
cmp dword [esi + 0x18], 8
jb 0x1003c1af
mov eax, dword [esi + 4]
jmp 0x1003c1b2
lea eax, [esi + 4]
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003c1d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret 4
xor al, al
pop esi
pop ecx
ret 4
Function at 0x1003c1f0
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x10040c88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
xor eax, eax
mov ebx, ecx
mov esi, edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x18]
push eax
push esi
mov edx, edi
mov ecx, ebp
call fcn.1003be90
test al, al
jne 0x1003c273
cmp dword [esp + 0x30], 8
jb 0x1003c26c
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x1003c30e
cmp byte [ebx], 0
je 0x1003c27c
mov byte [ebx + 1], 1
mov ebx, 8
cmp dword [esi + 0x18], ebx
mov dword [esp + 0x14], 0
jb 0x1003c293
mov esi, dword [esi + 4]
jmp 0x1003c296
add esi, 4
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003c2f9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003c2f9
cmp dword [edi + 0x18], ebx
jb 0x1003c2c0
mov edi, dword [edi + 4]
jmp 0x1003c2c3
add edi, 4
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003c2dc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
cmp dword [esp + 0x30], 8
jb 0x1003c2f5
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
jmp 0x1003c30e
cmp dword [esp + 0x30], ebx
jb 0x1003c30c
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x30
ret 8

Function at 0x1003c330
Capabilities:
Delete registry key

Disassembly:
cmp dword [edi + 0x18], 8
push ebp
mov ebp, dword [esp + 8]
push esi
mov dword [esp + 0xc], 0
lea esi, [edi + 4]
jb 0x1003c34b
mov eax, dword [esi]
jmp 0x1003c34d
mov eax, esi
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003c380
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebx], 0
je 0x1003c387
pop esi
mov byte [ebx + 1], 1
xor al, al
pop ebp
ret 4
pop esi
mov al, 1
pop ebp
ret 4
cmp dword [edi + 0x18], 8
jb 0x1003c38f
mov esi, dword [esi]
push esi
push ebp
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
pop esi
sete al
pop ebp
ret 4
Function at 0x1003e100
Capabilities:
Get file version info

Disassembly:
sub esp, 0x28
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [0x100557cc]
test eax, eax
je 0x1003e12a
mov dword [ebx], eax
mov al, 1
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x28
ret
mov eax, dword [str.mshtml.dll]
mov ecx, dword [0x1004ad28]
mov edx, dword [0x1004ad2c]
mov dword [esp + 0xc], eax
mov eax, dword [0x1004ad30]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x1004ad34]
push edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
mov dx, word [0x1004ad38]
push eax
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0x2c], dx
mov dword [esp + 0x14], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x1003e202
push esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1003e1ef
mov edx, dword [esp + 0x10]
push esi
push edi
push edx
lea eax, [esp + 0x20]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1003e1e8
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x100490d8
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1003e1e8
cmp dword [esp + 8], 0
je 0x1003e1e8
mov eax, dword [esp + 0xc]
movzx eax, word [eax + 0xa]
mov dword [0x100557cc], eax
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov al, 1
pop edi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
pop edi
xor ecx, esp
xor al, al
call fcn.1003ec9d
add esp, 0x28
ret

Function at 0x1003e2f0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x100414db
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov edi, dword [esi]
test edi, edi
je 0x1003e339
push edi
call fcn.1003e9f0
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi], 0
cmp dword [esi + 0x18], 0
mov edi, 8
je 0x1003e358
cmp dword [esi + 0x1c], edi
jb 0x1003e34e
mov eax, dword [esi + 8]
jmp 0x1003e351
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x1c], edi
jb 0x1003e369
mov eax, dword [esi + 8]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov word [esi + 8], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x1003ec9d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10054020]
jne 0x1003eca7
repz ret
jmp fcn.1003f231

Function at 0x1003f7aa
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100552d8], 0
push esi
jne 0x1003f71d
call fcn.1003f648
test eax, eax
je 0x1003f760
mov eax, dword [0x100552d8]
cmp eax, 1
jne 0x1003f73e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1003f760
pop esi
ret
push eax
call dword [0x100552e0]
test eax, eax
jne 0x1003f7a8
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1003f764
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100552d8]
call dword [0x100552e0]
mov edi, eax
test edi, edi
je 0x1003f78b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1003f7a7
lea edi, [esi + 0xff0]
push esi
push dword [0x100552d8]
call dword [0x100552dc]
add esi, 0x10
cmp esi, edi
jb 0x1003f791
mov eax, esi
pop edi
pop esi
ret
jmp 0x1003f70a
Function at 0x40a8d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4662eb
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.0045af19
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a952
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00458e30
mov eax, dword [eax]
push 0x4811f0
push eax
call fcn.0044ba64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045b1a4
test bl, bl
je 0x40a952
push 0x4811f0
lea ecx, [esp + 0xc]
call fcn.0045b534
push 0x484d5c
lea ecx, [esp + 0xc]
call fcn.0045b534
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 0x40a98e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045b1a4
jmp 0x40aa59
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 0x40aa12
lea edx, [esp + 0x7c]
push 0x484d58
push edx
call fcn.0044ba64
add esp, 8
test eax, eax
je 0x40aa12
lea eax, [esp + 0x7c]
push 0x484d54
push eax
call fcn.0044ba64
add esp, 8
test eax, eax
je 0x40aa12
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 0x40a9a2
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.0045b1a4
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 0x40b250
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 0x40b2b2
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 0x40b2c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46636b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48b25c]
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 0x40b3f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b326
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b1a4
xor eax, eax
jmp 0x40b46f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045b2e1
push esi
lea ecx, [esp + 0xc]
call fcn.0045b570
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 0x40b44d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.0040b250
test eax, eax
jne 0x40b44d
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 0x80000000
mov ecx, edi
call fcn.0040b250
test eax, eax
jne 0x40b44d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0044caa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b42c
lea ecx, [esp + 0x14]
push 0x484d6c
push ecx
call fcn.0044ca20
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b42c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b42f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045b291
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b33e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b1a4
xor eax, eax
jmp 0x40b46f
mov byte [esi], 0
push 0x484d68
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.0045b1a4
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 0x41bdd0
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 0x41be3e
cmp si, 0x69
ja 0x41be3e
add esi, 0xffd0
cmp si, 0x11
je 0x41be0e
push 0x11
call edi
test ax, ax
jge 0x41be0e
or esi, 0x2000
cmp si, 0x10
je 0x41be23
push 0x10
call edi
test ax, ax
jge 0x41be23
or esi, 0x4000
cmp si, 0x12
je 0x41be38
push 0x12
call edi
test ax, ax
jge 0x41be38
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41be4b
mov esi, 0xbd
jmp 0x41bdff
cmp si, 0x6e
jne 0x41be58
mov esi, 0xbe
jmp 0x41bdff
cmp si, 0x6f
jne 0x41bdf9
mov esi, 0xbf
jmp 0x41bdff

Function at 0x41d580
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49b920]
xor edx, edx
cmp eax, edx
jne 0x41d5a6
xor eax, eax
mov byte [eax + 0x49b820], al
inc eax
cmp eax, 0x100
jl 0x41d58e
mov dword [0x49b920], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49b820
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d637
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 0x41d60a
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 0x41d5d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d6b0
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 0x41d703
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 0x41d6ea
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