joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406700
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x4067c1
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x40676b
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x40679f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x40679f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x40672e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4067d0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x406889
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x406827
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40686f
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x43daf8]
je 0x406841
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40685c
test al, 0x40
je 0x406853
mov ecx, dword [ebx + 0x20]
jmp 0x40685a
test al, 0x80
je 0x40686f
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x40686f
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x4067f4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406f10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e5f8
push eax
mov dword fs:[0], esp
sub esp, 0x14
xor edx, edx
xor eax, eax
push esi
mov esi, dword [0x43db18]
cmp esi, edx
push edi
jle 0x406f4f
push ebx
mov cl, 0x5e
mov bl, byte [eax + 0x43db1c]
xor bl, cl
mov byte [eax + 0x43db1c], bl
inc eax
cmp eax, esi
jl 0x406f3b
pop ebx
mov al, byte [esp + 0xb]
mov dword [esp + 0x10], edx
mov byte [esp + 0xc], al
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, edx
mov dword [esp + 0x24], edx
mov byte [esp + 0xb], dl
jbe 0x406f7f
lea ecx, [esp + 0xb]
push ecx
push esi
push edx
lea ecx, [esp + 0x18]
call fcn.00407100
mov edi, dword [esp + 0x10]
mov ecx, esi
mov edx, ecx
mov esi, 0x43db1c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc]
and ecx, 3
push 0x614670
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00406c60
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00422d01
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x20
ret

Function at 0x4171b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x613b40
cmp edx, dword [eax]
je 0x4171db
add eax, 8
inc ecx
cmp eax, 0x613bd0
jl 0x4171cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x613b40]
jne 0x417309
mov eax, dword [0x6167dc]
cmp eax, 1
je 0x4172e3
test eax, eax
jne 0x41720c
cmp dword [0x611064], 1
je 0x4172e3
cmp edx, 0xfc
je 0x417309
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417243
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00415070
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004117d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417286
lea eax, [ebp - 0x1a4]
push eax
call fcn.004117d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43392c
push edi
call fcn.00414f70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00415070
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00415080
lea eax, [ebp - 0xa0]
push 0x43390c
push eax
call fcn.00415080
push dword [esi + 0x613b44]
lea eax, [ebp - 0xa0]
push eax
call fcn.00415080
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041899b
add esp, 0x2c
pop edi
jmp 0x417309
lea eax, [ebp + 8]
lea esi, [esi + 0x613b44]
push 0
push eax
push dword [esi]
call fcn.004117d0
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 0x420490
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00411a20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42055b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42055b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42050e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x420519
or bh, 8
and edi, 0x8000000
je 0x420534
mov eax, dword [0x617ebc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42055b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42095b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42097f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42099a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x423c95
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x423ccd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00422c68
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00422c40
jmp 0x423cd9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x425219
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42525b
call fcn.0042abeb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42525b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x425252
xor eax, eax
jmp 0x425263
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00425269
pop edi
pop esi
pop ebx
ret 4

Function at 0x42b97d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42b9ab
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42b9c9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042b8e3
jmp 0x42b9c9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42b9c9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042b8e3
test edi, edi
mov eax, edi
jne 0x42b9b3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4029e0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push 0x104
push 0x45f65c
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0x45f558
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x45f760
mov dword [0x45f760], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x45f770], 2
jne 0x402a35
push 0x45f17c
lea ecx, [esi + 0x60]
call fcn.0040412c
push ebx
push ebp
add esi, 0x68
push edi
push 0x45f558
mov ecx, esi
call fcn.0040412c
lea eax, [esp + 0x10]
push 1
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x45f178
push eax
call edi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00404042
test bl, bl
je 0x402a86
push 0x45f178
mov ecx, esi
call fcn.0040415c
push str.winscarda.dll
mov ecx, esi
call fcn.0040415c
mov ecx, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
call ebp
push 0x45f558
mov ecx, esi
call fcn.0040412c
lea edx, [esp + 0x10]
push 1
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x45f178
push eax
call edi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00404042
test bl, bl
je 0x402ae2
push 0x45f178
mov ecx, esi
call fcn.0040415c
push str.winscard.dll.tmp
mov ecx, esi
call fcn.0040415c
mov eax, dword [esi]
push eax
call ebp
push 0x45f65c
mov ecx, esi
call fcn.0040412c
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x45f178
push eax
call edi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00404042
pop edi
pop ebp
test bl, bl
pop ebx
je 0x402b3b
push 0x45f178
mov ecx, esi
call fcn.0040415c
push str.inst001.tmp
mov ecx, esi
call fcn.0040415c
mov esi, dword [esp + 8]
push 0
push 0x64
push 1
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
mov ecx, esi
mov dword [0x45f550], eax
call sub.MFC42.DLL_CWnd::UpdateData
pop esi
add esp, 8
ret
Function at 0x4038a0
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4043f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
push 0x45f558
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 1
call fcn.0040412c
push 0x45f65c
lea ecx, [esp + 0x14]
call fcn.0040412c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x403ac7
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x403ac7
lea edx, [esp + 0x1c]
push 1
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x45f178
push eax
call esi
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call fcn.00404042
test bl, bl
je 0x403967
push 0x45f178
lea ecx, [esp + 0x18]
call fcn.0040415c
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x45f178
push eax
call esi
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call fcn.00404042
test bl, bl
je 0x4039a4
push 0x45f178
lea ecx, [esp + 0x14]
call fcn.0040415c
push str.ServicePackFilesi386winscard.dll
lea ecx, [esp + 0x14]
call fcn.0040415c
push str.dllcachewinscard.dll
lea ecx, [esp + 0x18]
call fcn.0040415c
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
lea eax, [esp + 0x20]
push eax
push 0
push 0x45f384
push 0x45f558
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x403a00
push 0x40
push 0x45f3e4
push 0x45f3d4
jmp 0x403ad3
mov ebp, dword [esp + 0x138]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x20]
push 0
push ecx
push ebp
call edi
test eax, eax
jne 0x403a30
mov ecx, dword [esp + 0x18]
push 0x40
push 0x45f3e4
push 0x45f3c0
jmp 0x403ad5
mov esi, dword [esp + 0x134]
mov ecx, dword [esp + 0x18]
push esi
call fcn.00403b20
test eax, eax
jne 0x403a4e
push eax
lea edx, [esp + 0x24]
push esi
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 0x20]
push 1
push eax
push esi
call ebx
test eax, eax
jne 0x403a74
mov ecx, dword [esp + 0x18]
push 0x40
push 0x45f3e4
push 0x45f3ac
jmp 0x403ad5
push 4
lea ecx, [esp + 0x24]
push 0
push ecx
call ebx
test eax, eax
jne 0x403a95
mov ecx, dword [esp + 0x18]
push 0x40
push 0x45f3e4
push 0x45f398
jmp 0x403ad5
push 0
push esi
push ebp
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0
call fcn.00404042
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00404042
mov eax, 1
jmp 0x403b01
push 0x40
push 0x45f3e4
push 0x45f388
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0
call fcn.00404042
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00404042
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret 8
Function at 0x4055b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x477e9b
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.0046cdce
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405632
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046ace0
mov eax, dword [eax]
push 0xc0cc48
push eax
call fcn.0045d9f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046d059
test bl, bl
je 0x405632
push 0xc0cc48
lea ecx, [esp + 0xc]
call fcn.0046d3e9
push 0xc0cc54
lea ecx, [esp + 0xc]
call fcn.0046d3e9
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 0x40566e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046d059
jmp 0x405739
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 0x4056f2
lea edx, [esp + 0x7c]
push 0xc0cc50
push edx
call fcn.0045d9f4
add esp, 8
test eax, eax
je 0x4056f2
lea eax, [esp + 0x7c]
push 0xc0cc4c
push eax
call fcn.0045d9f4
add esp, 8
test eax, eax
je 0x4056f2
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 0x405682
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.0046d059
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 0x405f40
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 0x405fa2
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 0x405fb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x477f1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xc165f0]
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 0x4060e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406016
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046d059
xor eax, eax
jmp 0x40615f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046d196
push esi
lea ecx, [esp + 0xc]
call fcn.0046d425
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 0x40613d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00405f40
test eax, eax
jne 0x40613d
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 accept
mov ecx, edi
call fcn.00405f40
test eax, eax
jne 0x40613d
lea eax, [esp + 0x14]
push 0xc0cc64
push eax
call fcn.0045ea70
mov esi, eax
add esp, 8
test esi, esi
jne 0x40611c
lea ecx, [esp + 0x14]
push 0xc0cc60
push ecx
call fcn.0045e9f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40611c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40611f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046d146
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40602e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046d059
xor eax, eax
jmp 0x40615f
mov byte [esi], 0
push 0xc0cc5c
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.0046d059
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 0x416a70
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 0x416ade
cmp si, 0x69
ja 0x416ade
add esi, 0xffd0
cmp si, 0x11
je 0x416aae
push 0x11
call edi
test ax, ax
jge 0x416aae
or esi, 0x2000
cmp si, 0x10
je 0x416ac3
push 0x10
call edi
test ax, ax
jge 0x416ac3
or esi, 0x4000
cmp si, 0x12
je 0x416ad8
push 0x12
call edi
test ax, ax
jge 0x416ad8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x416aeb
mov esi, 0xbd
jmp 0x416a9f
cmp si, 0x6e
jne 0x416af8
mov esi, 0xbe
jmp 0x416a9f
cmp si, 0x6f
jne 0x416a99
mov esi, 0xbf
jmp 0x416a9f

Function at 0x4182f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xc26d40]
xor edx, edx
cmp eax, edx
jne 0x418316
xor eax, eax
mov byte [eax + 0xc26c40], al
inc eax
cmp eax, 0x100
jl 0x4182fe
mov dword [0xc26d40], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xc26c40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4183a7
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 0x41837a
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 0x418348
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x418420
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 0x418473
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 0x41845a
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