joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcf6b76
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00c6abdf
test al, al
je 0xcf6bea
mov ecx, dword [ebp - 8]
mov eax, dword [0xd31910]
mov esi, dword [ebp + 0xc]
mov edx, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [0xd31924]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax]
mov ecx, dword [edi]
mov dword [ebp + 8], ecx
cmp esi, 0xffffffff
je 0xcf6c3e
movzx eax, byte [edi + 0x90]
dec eax
sub eax, 1
je 0xcf6c05
sub eax, 1
je 0xcf6c08
sub eax, 3
je 0xcf6c00
sub eax, 1
je 0xcf6bfb
sub eax, 3
je 0xcf6bf3
sub eax, 0xc
jne 0xcf6c29
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
or esi, 0x4000000
jmp 0xcf6c29
or esi, 3
jmp 0xcf6c29
or esi, 0xe
jmp 0xcf6c29
or esi, 4
push 0
test esi, 0x800
je 0xcf6c16
push 1
jmp 0xcf6c1e
or esi, 0x10000
push 0
push 0xcf
push ecx
call edx
mov ecx, dword [ebp + 8]
or esi, 0x50000000
push esi
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0xcf6c7b
push esi
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov eax, dword [0xd31924]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
cmp byte [eax + 0x90], 0x13
jne 0xcf6c7b
push esi
push 0
push 0x1036
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov al, byte [edi + 0x93]
mov ecx, dword [ebp - 8]
cmp al, 0xff
je 0xcf6ca0
movzx eax, al
cmp eax, dword [ecx + 0x190]
je 0xcf6ca0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0xcf6ca9
push 1
push edi
push ecx
call fcn.00cf7e14
mov al, byte [edi + 0x90]
cmp al, 2
je 0xcf6cbc
cmp al, 3
je 0xcf6cbc
cmp esi, 0xffffffff
je 0xcf6ccd
push 0x27
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
test ebx, ebx
setne al
jmp 0xcf6bec
Function at 0xcf8172
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x44
push 0
mov ebx, 0xd33018
push ebx
call fcn.00c82340
push 0x10
push 0
mov esi, 0xd3305c
push esi
call fcn.00c82340
add esp, 0x18
mov dword [0xd33018], 0x44
xor eax, eax
inc eax
mov dword [0xd33044], eax
push esi
push ebx
mov word [0xd33048], ax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
pop ebx
test eax, eax
je 0xcf81d7
push dword [0xd3305c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4

Function at 0xcf81db
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 3
pop esi
mov edx, dword [edi + 4]
mov dword [ebp + 8], edx
cmp dword [edi + 0x190], ebx
je 0xcf828d
mov ebx, esi
cmp dword [0xd31934], esi
jl 0xcf8284
mov eax, dword [0xd31924]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0xcf827b
cmp dword [ecx + 4], edx
jne 0xcf827b
mov dl, byte [ecx + 0x90]
cmp dl, 0xb
je 0xcf8278
mov dh, byte [ecx + 0x93]
movzx eax, dh
cmp eax, dword [edi + 0x190]
je 0xcf8248
cmp byte [edi + 0x198], 0
je 0xcf8278
cmp dh, 0xff
je 0xcf8278
cmp dl, 0xa
je 0xcf8278
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xd31924]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0xcf8278
cmp byte [eax + 0x90], 0x1a
jne 0xcf8278
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc ebx
cmp ebx, dword [0xd31934]
jle 0xcf8206
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x190], ebx
cmp dword [0xd31934], esi
jl 0xcf8321
mov eax, dword [0xd31924]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0xcf8311
cmp dword [ecx + 4], edx
jne 0xcf8311
cmp byte [ecx + 0x90], 0xb
je 0xcf8311
movzx eax, byte [ecx + 0x93]
cmp eax, dword [edi + 0x190]
jne 0xcf8311
test byte [ecx + 0x92], 0x20
jne 0xcf8311
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xd31924]
push 4
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xd31924]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0xcf8311
cmp byte [eax + 0x90], 0x1a
jne 0xcf8311
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [0xd31934]
jle 0xcf8299
push 0
push ebx
push 0x130c
push dword [edi + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0xcf856f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0xcf8688
push edi
push edi
push 3
push edi
push edi
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xcf85c0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0xcf85c7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0xcf86b7
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0xcf85c0
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0xcffc38
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0xcf85c0
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx]
test eax, eax
jne 0xcf8665
mov eax, edi
cmp dword [ecx], edi
jne 0xcf8665
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [edx]
push 0x2000
push dword [ecx]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0xcf868d
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0xcf86a2
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0xcf8fc9
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 0xd318b0
push edi
call fcn.00c79ba1
mov ecx, dword [0xd31910]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
cmp dword [ebp + 0xc], edi
jne 0xcf901e
xor esi, esi
cmp dword [ebx + 0x1a0], esi
je 0xcf9080
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push esi
push dword [ebx + 0x1a0]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0xcf909a
push dword [ebp + 0xc]
call fcn.00c79944
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0xcf9080
mov ecx, dword [0xd31924]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
mov cl, byte [eax + 0x90]
cmp cl, 0xe
je 0xcf9080
cmp cl, 0xf
je 0xcf9080
cmp cl, 0x13
je 0xcf9080
cmp cl, 0x10
je 0xcf9080
xor esi, esi
cmp dword [eax + 0xc], esi
je 0xcf9080
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0xd31924]
mov ecx, dword [ebp + 8]
push esi
push dword [ebx]
push dword [ebp - 4]
mov eax, dword [eax + ecx*4]
push dword [ebp - 8]
push esi
mov eax, dword [eax]
push dword [eax + 0xc]
jmp 0xcf9016
movzx ecx, word [ebp + 0x14]
movzx eax, word [ebp + 0x10]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 0xc]
push 0x7b
push edi
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10070b1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc esp
movups xmm1, xmmword [0x5967]
inc ebp
xorps xmm0, xmm0
inc esp
cmp edx, eax
jle 0x10072a3
dec esp
mov ebp, dword [ebp + 0x7f]
inc esp
lea esp, [eax + eax]
inc esp
movups xmm2, xmmword [0x5999]
inc ebx
lea esi, [eax + esi]
inc esp
movups xmm3, xmmword [0x596c]
inc ecx
mov eax, edx
sar eax, 1
inc esp
sub esp, eax
nop dword [eax]
dec esp
mov esp, dword [ebp + 0x7f]
inc ebx
lea esi, [ecx + edi]
inc esp
movups xmm3, xmmword [0x57bc]
inc edi
lea edi, [edx + edx]
inc esp
movups xmm2, xmmword [0x578f]
sar eax, 1
Function at 0x10062f70
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082a0d
mov eax, dword fs:[0]
push eax
mov eax, 0x1870
call fcn.1002b2c1
push ebx
push esi
push edi
lea edi, [ebp - 0x127c]
mov ecx, 0x49c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100981c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, 0x100aa206
call fcn.1002c144
nop
lea eax, [ebp - 0x1020]
push eax
push 0x1000
lea ecx, [ebp - 0x1014]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1002c284
test eax, eax
je 0x100630b0
mov dword [ebp - 0x102c], 0
jmp 0x10063005
mov eax, dword [ebp - 0x102c]
add eax, 1
mov dword [ebp - 0x102c], eax
mov eax, dword [ebp - 0x1020]
shr eax, 2
cmp dword [ebp - 0x102c], eax
jae 0x100630b0
push 0x104
lea eax, [ebp - 0x123c]
push eax
mov ecx, dword [ebp - 0x102c]
mov edx, dword [ebp + ecx*4 - 0x1014]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1002bc71
test eax, eax
je 0x100630ab
lea eax, [ebp - 0x123c]
push eax
lea ecx, [ebp - 0x1260]
call fcn.1002b488
nop
push 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1260]
call fcn.1002b0eb
cmp eax, 0xffffffff
je 0x1006309f
mov eax, dword [ebp - 0x102c]
mov ecx, dword [ebp + eax*4 - 0x1014]
mov dword [ebp - 0x186c], ecx
lea ecx, [ebp - 0x1260]
call fcn.1002bf5a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1002bf5a
mov eax, dword [ebp - 0x186c]
jmp 0x100630cf
lea ecx, [ebp - 0x1260]
call fcn.1002bf5a
nop
jmp 0x10062ff6
mov dword [ebp - 0x1878], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1002bf5a
mov eax, dword [ebp - 0x1878]
push edx
mov ecx, ebp
push eax
lea edx, [0x1006310c]
call fcn.1002ba5a
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002b79e
add esp, 0x187c
cmp ebp, esp
call fcn.1002bc3a
mov esp, ebp
pop ebp
ret
Function at 0x40a4c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x412250], 0
push esi
push edi
jne 0x40a436
call fcn.0040a3a2
test eax, eax
je 0x40a47b
mov eax, dword [0x412250]
cmp eax, 1
jne 0x40a457
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40a47b
jmp 0x40a4bd
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x40a4bd
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40a47f
xor eax, eax
jmp 0x40a4bd
mov eax, dword [esi]
push dword [0x412250]
call edi
mov edi, eax
test edi, edi
je 0x40a4a1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40a4bd
lea edi, [esi + 0xff0]
push esi
push dword [0x412250]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40a4a7
mov eax, esi
pop edi
pop esi
ret
jmp 0x40a422

Function at 0x40a788
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412120]
jne 0x40a792
repz ret
jmp fcn.0040adba

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x35c474bf
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..pdata
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x4d606de6
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x43227f87
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x11d95dd7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x405560
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x477fdb
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.0046cf2e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4055e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046ae40
mov eax, dword [eax]
push 0x492c28
push eax
call fcn.0045db54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046d1b9
test bl, bl
je 0x4055e2
push 0x492c28
lea ecx, [esp + 0xc]
call fcn.0046d549
push 0x492c34
lea ecx, [esp + 0xc]
call fcn.0046d549
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 0x40561e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046d1b9
jmp 0x4056e9
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 0x4056a2
lea edx, [esp + 0x7c]
push 0x492c30
push edx
call fcn.0045db54
add esp, 8
test eax, eax
je 0x4056a2
lea eax, [esp + 0x7c]
push 0x492c2c
push eax
call fcn.0045db54
add esp, 8
test eax, eax
je 0x4056a2
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 0x405632
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.0046d1b9
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 0x405ef0
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 0x405f52
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 0x405f60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47805b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49c584]
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 0x406098
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x405fc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046d1b9
xor eax, eax
jmp 0x40610f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046d2f6
push esi
lea ecx, [esp + 0xc]
call fcn.0046d585
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 0x4060ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00405ef0
test eax, eax
jne 0x4060ed
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.00405ef0
test eax, eax
jne 0x4060ed
lea eax, [esp + 0x14]
push 0x492c44
push eax
call fcn.0045ebd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4060cc
lea ecx, [esp + 0x14]
push 0x492c40
push ecx
call fcn.0045eb50
mov esi, eax
add esp, 8
test esi, esi
jne 0x4060cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4060cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046d2a6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x405fde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046d1b9
xor eax, eax
jmp 0x40610f
mov byte [esi], 0
push 0x492c3c
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.0046d1b9
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 0x416a40
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 0x416aae
cmp si, 0x69
ja 0x416aae
add esi, 0xffd0
cmp si, 0x11
je 0x416a7e
push 0x11
call edi
test ax, ax
jge 0x416a7e
or esi, 0x2000
cmp si, 0x10
je 0x416a93
push 0x10
call edi
test ax, ax
jge 0x416a93
or esi, 0x4000
cmp si, 0x12
je 0x416aa8
push 0x12
call edi
test ax, ax
jge 0x416aa8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x416abb
mov esi, 0xbd
jmp 0x416a6f
cmp si, 0x6e
jne 0x416ac8
mov esi, 0xbe
jmp 0x416a6f
cmp si, 0x6f
jne 0x416a69
mov esi, 0xbf
jmp 0x416a6f

Function at 0x4182c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4accd0]
xor edx, edx
cmp eax, edx
jne 0x4182e6
xor eax, eax
mov byte [eax + 0x4acbd0], al
inc eax
cmp eax, 0x100
jl 0x4182ce
mov dword [0x4accd0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4acbd0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x418377
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 0x41834a
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 0x418318
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4183f0
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 0x418443
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 0x41842a
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