joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d824
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x4222b4
call fcn.00418d7c
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
mov ebx, 0x42dc70
mov dword [0x42dce0], 0x42a178
mov dword [0x42dc30], ebx
push 0x42a030
push ebx
mov dword [0x42dc70], 0x84
mov dword [0x42dcd4], 0x300
call fcn.0040da25
mov eax, 0x423cd0
mov ecx, eax
test ecx, ecx
je 0x40d89a
push 0x10
push eax
push 0x42dc60
call fcn.00419220
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x42a2d4
lea edi, [ebp - 0x14]
movsw word es:[edi], word [esi]
mov dword [0x42dcf4], eax
lea eax, [ebp - 0x14]
movsb byte es:[edi], byte [esi]
push eax
xor esi, esi
push dword [ebp + 0x10]
mov dword [ebp + 8], esi
call fcn.0040d7e3
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 0x10], eax
je 0x40d917
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x40d959
push str.RunSchedule
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x40d971
push str.RegServer
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x40d9ae
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.0040d7e3
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 0x10], eax
jne 0x40d8d0
push 0x40d6cc
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, ebx
call fcn.0040d798
push 1
push 4
push ebx
call fcn.0040daa8
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea eax, [ebp - 0x44]
push esi
push eax
call edi
test eax, eax
je 0x40d9c4
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x44]
push esi
push eax
jmp 0x40d940
push esi
push esi
push 0x64
push ebx
call fcn.0040c331
push esi
push 1
push ebx
call fcn.0040dda2
mov dword [ebp + 8], eax
jmp 0x40d9d5
mov dword [ebp + 0x10], esi
lea eax, [ebp + 0x10]
mov dword [ebp - 4], esi
push eax
push 0x42a2a0
push 0x17
push esi
push 0x423ce0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x40d99e
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x40d9d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40d9d5
push esi
push 1
push 0x64
push ebx
call fcn.0040c331
push esi
push 1
push ebx
call fcn.0040dc29
jmp 0x40d96c
push ebx
call fcn.0040db3d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov dword [ebp - 4], 1
call fcn.0040db79
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x410261
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x42263d
call fcn.00418d7c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x20], ebx
mov dword [esi + 8], 0x423b10
mov dword [esi + 0xc], 0x423af4
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0x424538
mov edi, 0x4232e4
mov dword [esi + 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x24], edi
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 2
call fcn.00410445
mov eax, esi
lea ecx, [esi + 8]
neg eax
sbb eax, eax
mov dword [esi + 0x4c], 0x423ac8
and eax, ecx
mov dword [esi + 0x6c], eax
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x70], edi
lea eax, [esi + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], edi
lea eax, [esi + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], edi
lea eax, [esi + 0xa0]
mov dword [eax + 0xc], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], edi
mov dword [ecx], 0x424534
push 0x42dc34
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
mov dword [esi], 0x424504
mov dword [esi + 4], 0x4244f4
mov dword [esi + 0xc], 0x4244d8
mov dword [esi + 0x10], 0x4244b8
mov dword [esi + 0x1c], 0x4244a4
mov dword [esi + 0xc4], ebx
call fcn.004034fc
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0xc8], 5
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
call edi
mov dword [esi + 0xb8], eax
push ebx
push ebx
push 1
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x429058
push ebx
lea ecx, [esi + 0x4c]
mov dword [esi + 0xc0], eax
call fcn.004103ed
push ebx
lea ecx, [ebp - 0x24]
mov byte [esi + 0xdc], bl
call fcn.0040252e
push str.C:DWUpdateServicecode_srcDownloadManagerCDownloader.h
push str._s_constructed
push 0x40
push eax
call fcn.004026d8
add esp, 0x10
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4165ca
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8
Function at 0x4170dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 8], 1
call fcn.0041722c
push 3
xor ebx, ebx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], ecx
jne 0x41710b
mov dword [ebp - 8], ecx
jmp 0x4171a1
cmp eax, ebx
je 0x4171a1
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x417193
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 0xc], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x417157
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x417180
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0x10], ebx
jne 0x41718d
cmp byte [ebp - 0x838], bl
je 0x417193
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
je 0x4171a1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00416d89
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x4171c6
cmp dword [ebp + 0xc], 4
jne 0x4171e0
cmp dword [ebp - 0x14], ebx
jne 0x4171e0
cmp word [edi + 0x14], 3
mov ecx, edi
jne 0x4171db
call fcn.0041745d
jmp 0x4171e0
call fcn.00417689
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x41722c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x260]
mov edi, 0x80000000
push eax
mov ebx, 0x104
push str..htm
mov dword [ebp - 0xc], ecx
push edi
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x41732c
lea eax, [ebp - 0x260]
push str._shellopencommand
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
push edi
call esi
test eax, eax
jne 0x41732c
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 0x15c]
push str.netscape.exe
push eax
call fcn.00419f00
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
je 0x41732e
lea ecx, [ebp - 0x15c]
sub eax, ecx
add eax, 0xd
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x58]
call fcn.004173a5
lea eax, [ebp - 0x364]
lea ecx, [ebp - 0x58]
push eax
call fcn.004188e9
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
mov edx, ecx
mov dword [ebp - 0x58], 0x424a40
shr edx, 0x10
mov word [eax + 0x16], cx
lea ecx, [ebp - 0x58]
mov word [eax + 0x14], dx
call fcn.00417402
xor eax, eax
jmp 0x4173a0
xor esi, esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41738f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push esi
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41738f
movsx ax, byte [ebp - 0x260]
mov ecx, dword [ebp - 0xc]
sub eax, 0x30
cmp dword [ebp - 4], esi
mov word [ecx + 0x14], ax
je 0x41738b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
jmp 0x41739f
cmp dword [ebp - 4], esi
je 0x41739d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41745d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.004190a0
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41762b
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x41762b
cmp dword [ebp - 0x14], 1
jne 0x41762b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x4175ee
cmp byte [ebp - 0x148], al
je 0x4175ee
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x4175e0
lea eax, [ebp - 0x96c]
push 0x42adb8
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x429d38
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x429b70
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x417544
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.00416f62
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x417639
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4181f6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x41822e
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x41823a
mov eax, dword [esi + 0x5c]
jmp 0x418283
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x418281
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x41825f
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x418243
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x4188e9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x41893b
push eax
call fcn.00418e6d
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41893b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x42b034
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41893f
xor al, al
jmp 0x4189a0
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x41899e
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00418e6d
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x41899e
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x41898c
mov al, 1
pop ebx
leave
ret 4
Function at 0x41dbf4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42d1a0
cmp edx, dword [eax]
je 0x41dc16
add eax, 8
inc ecx
cmp eax, 0x42d230
jl 0x41dc07
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42d1a0]
jne 0x41dd44
mov eax, dword [0x42ddf4]
cmp eax, 1
je 0x41dd1e
test eax, eax
jne 0x41dc47
cmp dword [0x42b094], 1
je 0x41dd1e
cmp edx, 0xfc
je 0x41dd44
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41dc7e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419630
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419720
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41dcc1
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419720
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x424f08
push edi
call fcn.0041faf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419630
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419640
lea eax, [ebp - 0xa0]
push 0x424ee8
push eax
call fcn.00419640
push dword [esi + 0x42d1a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419640
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041fa5a
add esp, 0x2c
pop edi
jmp 0x41dd44
lea eax, [ebp + 8]
lea esi, [esi + 0x42d1a4]
push 0
push eax
push dword [esi]
call fcn.00419720
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40ae40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e3bb
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.00472fac
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40aec2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00470a2d
mov eax, dword [eax]
push 0x4b2c78
push eax
call fcn.004627e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00473237
test bl, bl
je 0x40aec2
push 0x4b2c78
lea ecx, [esp + 0xc]
call fcn.004735c7
push 0x4b2c84
lea ecx, [esp + 0xc]
call fcn.004735c7
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 0x40aefe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00473237
jmp 0x40afc9
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 0x40af82
lea edx, [esp + 0x7c]
push 0x4b2c80
push edx
call fcn.004627e4
add esp, 8
test eax, eax
je 0x40af82
lea eax, [esp + 0x7c]
push 0x4b2c7c
push eax
call fcn.004627e4
add esp, 8
test eax, eax
je 0x40af82
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 0x40af12
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.00473237
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 0x40b7d0
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 0x40b832
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 0x40b840
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e43b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4bb984]
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 0x40b978
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b8a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00473237
xor eax, eax
jmp 0x40b9ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00473374
push esi
lea ecx, [esp + 0xc]
call fcn.00473603
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4b2cb8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b9cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.0040b7d0
test eax, eax
jne 0x40b9cd
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.0040b7d0
test eax, eax
jne 0x40b9cd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.004638b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b9ac
lea ecx, [esp + 0x14]
push 0x4b2c90
push ecx
call fcn.00463830
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b9ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b9af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00473324
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b8be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00473237
xor eax, eax
jmp 0x40b9ef
mov byte [esi], 0
push 0x4b2c8c
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.00473237
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 0x41d1f0
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 0x41d25e
cmp si, 0x69
ja 0x41d25e
add esi, 0xffd0
cmp si, 0x11
je 0x41d22e
push 0x11
call edi
test ax, ax
jge 0x41d22e
or esi, 0x2000
cmp si, 0x10
je 0x41d243
push 0x10
call edi
test ax, ax
jge 0x41d243
or esi, 0x4000
cmp si, 0x12
je 0x41d258
push 0x12
call edi
test ax, ax
jge 0x41d258
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41d26b
mov esi, 0xbd
jmp 0x41d21f
cmp si, 0x6e
jne 0x41d278
mov esi, 0xbe
jmp 0x41d21f
cmp si, 0x6f
jne 0x41d219
mov esi, 0xbf
jmp 0x41d21f

Function at 0x41e980
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4cc0d8]
xor edx, edx
cmp eax, edx
jne 0x41e9a6
xor eax, eax
mov byte [eax + 0x4cbfd8], al
inc eax
cmp eax, 0x100
jl 0x41e98e
mov dword [0x4cc0d8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4cbfd8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41ea37
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 0x41ea0a
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 0x41e9d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41eab0
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 0x41eb03
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 0x41eaea
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