joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
call fcn.00404790
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4064b0
mov eax, 1
imul ecx, eax, 9
mov byte [ebp + ecx - 0x1c], 0x54
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x1c], 0x57
mov ecx, 1
imul edx, ecx, 0xe
mov byte [ebp + edx - 0x1c], 0
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x1c], 0x78
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x1c], 0x69
mov eax, 1
imul ecx, eax, 0xc
mov byte [ebp + ecx - 0x1c], 0x74
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x1c], 0x6f
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x1c], 0x77
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x1c], 0x74
mov eax, 1
imul ecx, eax, 0xa
mov byte [ebp + ecx - 0x1c], 0x65
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x1c], 0x6e
mov ecx, 1
imul edx, ecx, 0xd
mov byte [ebp + edx - 0x1c], 0x57
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x1c], 0x65
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x1c], 0x53
mov eax, 1
imul ecx, eax, 6
mov byte [ebp + ecx - 0x1c], 0x64
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4064a6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x407ebf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041cf27
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x407ef6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00407f17
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x417fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x418025
call fcn.0041cf27
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x418025
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x418041
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041fadd
mov ebx, eax
test edi, edi
je 0x41803f
test esi, esi
je 0x41803f
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x487daf
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004fc8e9
call fcn.0041cf7b
cmp dword [eax + 0x14], 0
jne 0x487dca
mov ecx, esi
pop esi
jmp fcn.004871b0
pop esi
ret

Function at 0x487ed0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041c653
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x487f0c
call fcn.004880ef
mov dword [esi + 0xc], 1
jmp 0x487f11
call fcn.004880ef
cmp dword [esi], 0
je 0x487f5a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x487f34
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00418098
jmp 0x487f45
push 0xff
mov ecx, esi
call fcn.0040a232
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040b01d
jmp 0x487f7e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x487f7e
push dword [esi]
push dword [ebp - 4]
call fcn.0041d12a
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x488044
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004880ef
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x48808c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00418098
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040b01d
jmp 0x488097
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041d12a
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4fa609
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0045d8e7
call fcn.0041cf7b
cmp dword [eax + 0x14], 0
jne 0x4fa624
mov ecx, esi
pop esi
jmp fcn.004f9ef2
pop esi
ret
Function at 0x5378dc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59d068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0052c752
mov dword [ebp - 0x14], eax
cmp dword [0x5a86cc], esi
jne 0x5379cf
push 0x800
push esi
push 0x57a5e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x53795c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x537aaf
push esi
push esi
push 0x57a5e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x537aaf
push 0x57a5f8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x537aaf
push eax
call ebx
push 0x57a604
push edi
mov dword [0x5a86cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x57a614
push edi
mov dword [0x5a86d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5a86d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a86dc], eax
test eax, eax
je 0x5379cc
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a86d8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5379f4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5379e7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x537a09
push 4
pop eax
jmp 0x537ab1
cmp dword [ebp - 0x14], esi
je 0x537a09
push dword [0x5a86cc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5379ee
mov eax, dword [0x5a86d8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x537a67
cmp dword [0x5a86dc], edi
je 0x537a67
push eax
call ebx
push dword [0x5a86dc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x537a67
test eax, eax
je 0x537a67
call ecx
test eax, eax
je 0x537a5c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x537a5c
test byte [ebp - 8], 1
jne 0x537a67
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x537a97
mov eax, dword [0x5a86d0]
cmp eax, edi
je 0x537a94
push eax
call ebx
test eax, eax
je 0x537a94
call eax
mov esi, eax
test esi, esi
je 0x537a94
mov eax, dword [0x5a86d4]
cmp eax, edi
je 0x537a94
push eax
call ebx
test eax, eax
je 0x537a94
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5a86cc]
call ebx
test eax, eax
je 0x537aaf
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x537ab1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527a5b
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov dword [ebp - 8], 0x215
mov dword [ebp - 0x21c], 0x3000
mov dword [ebp - 4], 0x40
mov dword [ebp - 0x214], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x449864], eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [0x449864]
mov edx, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x449868], edx
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x44986c], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esp, ebp
pop ebp
ret
Function at 0x1002e6d
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1005108]
push esi
mov dword [ebp - 4], eax
mov eax, dword [0x10051d4]
xor esi, esi
push 0x1c
mov dword [ebp - 0x214], esi
push dword [eax + 8]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], esi
call fcn.01002ca5
cmp dword [ebp + 8], esi
je 0x1002f8b
push 0x103
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x1001398
push 0x80000002
mov word [ebp - 6], si
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002f6d
cmp dword [ebp - 0x210], esi
je 0x1002f01
push dword [ebp - 0x210]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push ebx
push edi
add eax, eax
push eax
push dword [ebp - 0x210]
push 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1001388
push dword [ebp - 0x214]
call esi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
mov ebx, str.http:__www.microsoft.com
push ebx
call edi
pop ecx
shl eax, 1
push eax
push ebx
push 1
push 0
push 0x1001380
push dword [ebp - 0x214]
call esi
lea eax, [ebp - 0x20c]
push eax
call edi
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x1001374
push dword [ebp - 0x214]
call esi
pop edi
pop ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10012f8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x1002f9b
push 0x1001398
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x210]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
pop esi
call fcn.01003c8a
leave
ret 4
Function at 0x1003b2e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x10053e4], esi
jne 0x1003ba6
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x1002b90
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], esi
mov dword [0x10053e4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003ba6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x1002b7c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003b9d
cmp dword [ebp - 8], esi
setne al
mov dword [0x10053e0], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10053e0]
pop esi
leave
ret

Function at 0x1003bb3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xfa4
mov eax, dword [0x1005108]
mov dword [ebp - 4], eax
call fcn.01003b2e
test eax, eax
je 0x1003c05
lea eax, [ebp - 0xfa4]
push 0x1002c00
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xf9a]
push eax
call dword [sym.imp.msvcrt.dll_vswprintf]
add esp, 0x14
lea eax, [ebp - 0xfa4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.01003c8a
leave
ret
Function at 0x1003da2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002c10
call fcn.01003ff8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1003ddf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003ddf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003df7
cmp eax, 0x20b
je 0x1003de4
mov dword [ebp - 0x1c], ebx
jmp 0x1003e0b
cmp dword [ecx + 0x84], 0xe
jbe 0x1003ddf
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1003e05
cmp dword [ecx + 0x74], 0xe
jbe 0x1003ddf
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10053f8], 0xffffffff
or dword [0x10053fc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10053f4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10053f0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005400], eax
call fcn.01003ff0
cmp dword [0x1005110], ebx
jne 0x1003e66
push fcn.01003ff0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003fd9
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10053ec]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10053e8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1003efc
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1003ed0
cmp al, 0x22
jne 0x1003ec2
cmp byte [esi], 0x22
jne 0x1003ed9
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1003ee3
cmp al, 0x20
jbe 0x1003ed5
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1003f07
movzx eax, word [ebp - 0x50]
jmp 0x1003f0a
cmp byte [esi], 0x20
jbe 0x1003ed9
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1003efc
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1003f27
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1003f5c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01004033
ret
Function at 0x408ed0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a59db
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.0049a6e3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408f52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004985f5
mov eax, dword [eax]
push 0x715cdc
push eax
call fcn.0048a2a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049a96e
test bl, bl
je 0x408f52
push 0x715cdc
lea ecx, [esp + 0xc]
call fcn.0049acfe
push 0x715ce8
lea ecx, [esp + 0xc]
call fcn.0049acfe
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 0x408f8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049a96e
jmp 0x409059
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 0x409012
lea edx, [esp + 0x7c]
push 0x715ce4
push edx
call fcn.0048a2a4
add esp, 8
test eax, eax
je 0x409012
lea eax, [esp + 0x7c]
push 0x715ce0
push eax
call fcn.0048a2a4
add esp, 8
test eax, eax
je 0x409012
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 0x408fa2
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.0049a96e
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 0x409850
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 0x4098b2
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 0x4098c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a5a5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x72efe8]
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 0x4099f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409926
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049a96e
xor eax, eax
jmp 0x409a6f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0049aaab
push esi
lea ecx, [esp + 0xc]
call fcn.0049ad3a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x715d1c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x409a4d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409850
test eax, eax
jne 0x409a4d
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.00409850
test eax, eax
jne 0x409a4d
lea eax, [esp + 0x14]
push 0x715cf8
push eax
call fcn.0048b320
mov esi, eax
add esp, 8
test esi, esi
jne 0x409a2c
lea ecx, [esp + 0x14]
push 0x715cf4
push ecx
call fcn.0048b2a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409a2c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409a2f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0049aa5b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40993e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049a96e
xor eax, eax
jmp 0x409a6f
mov byte [esi], 0
push 0x715cf0
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.0049a96e
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 0x41a2b0
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 0x41a31e
cmp si, 0x69
ja 0x41a31e
add esi, 0xffd0
cmp si, 0x11
je 0x41a2ee
push 0x11
call edi
test ax, ax
jge 0x41a2ee
or esi, 0x2000
cmp si, 0x10
je 0x41a303
push 0x10
call edi
test ax, ax
jge 0x41a303
or esi, 0x4000
cmp si, 0x12
je 0x41a318
push 0x12
call edi
test ax, ax
jge 0x41a318
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a32b
mov esi, 0xbd
jmp 0x41a2df
cmp si, 0x6e
jne 0x41a338
mov esi, 0xbe
jmp 0x41a2df
cmp si, 0x6f
jne 0x41a2d9
mov esi, 0xbf
jmp 0x41a2df

Function at 0x41bbc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x73f7f8]
xor edx, edx
cmp eax, edx
jne 0x41bbe6
xor eax, eax
mov byte [eax + 0x73f6f8], al
inc eax
cmp eax, 0x100
jl 0x41bbce
mov dword [0x73f7f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x73f6f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bc77
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 0x41bc4a
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 0x41bc18
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bcf0
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 0x41bd43
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 0x41bd2a
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