joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48153e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x481576
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.0047f5f5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047f5cd
jmp 0x481582
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x482c30
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 0x482c72
call fcn.00488730
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x482c72
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x482c69
xor eax, eax
jmp 0x482c7a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00482c80
pop edi
pop esi
pop ebx
ret 4

Function at 0x488c60
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 0x488c8e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x488cac
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00488bc6
jmp 0x488cac
mov eax, dword [esi + 0x14]
test eax, eax
je 0x488cac
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00488bc6
test edi, edi
mov eax, edi
jne 0x488c96
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40526b
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42c4a0], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40528f
test al, 0x10
jne 0x405292
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42c4a0
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052bd
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405325
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055be
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405359
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f0a8], eax
jmp 0x4054d8
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405377
test eax, eax
je 0x405489
test byte [ebp + 0xc], 2
je 0x405489
mov esi, 0x42b4a0
push edi
push esi
call fcn.004059d1
test ebx, ebx
je 0x405394
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40539a
push edi
call fcn.00405525
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40547f
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405509
cmp byte [eax], 0
je 0x4053eb
cmp byte [ebp - 0x18], 0
je 0x4053eb
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053fb
mov al, byte [esi + 1]
cmp al, 0x2e
je 0x40545e
test al, al
je 0x40545e
push esi
push ebx
call fcn.004059d1
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x405421
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40545e
push dword [ebp + 0xc]
push edi
call fcn.00405325
jmp 0x40545e
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405456
test byte [ebp + 0xc], 4
je 0x40544e
push edi
push 0xfffffffffffffff1
call fcn.00404d8d
push 0
push edi
call fcn.00405719
jmp 0x40545e
inc dword [0x42f0a8]
jmp 0x40545e
push edi
push 0xfffffffffffffff2
call fcn.00404d8d
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053c9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405489
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054d8
cmp dword [ebp - 8], esi
jne 0x40549e
inc dword [0x42f0a8]
jmp 0x4054d8
push edi
call fcn.00405ca6
test eax, eax
je 0x4054d8
push edi
call fcn.004054de
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054d0
test byte [ebp + 0xc], 4
je 0x405496
push edi
push 0xfffffffffffffff1
call fcn.00404d8d
push esi
push edi
call fcn.00405719
jmp 0x4054d8
push edi
push 0xffffffffffffffe5
call fcn.00404d8d
pop edi
pop esi
leave
ret 8
Function at 0x4055be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b8a0
push esi
call fcn.004059d1
push esi
call fcn.00405571
mov edi, eax
test edi, edi
jne 0x4055df
xor eax, eax
jmp 0x405631
push edi
call fcn.00405c0d
test byte [0x42f030], 0x80
je 0x4055f8
mov al, byte [edi]
test al, al
je 0x4055db
cmp al, 0x5c
je 0x4055db
sub edi, esi
jmp 0x405610
call fcn.00405ca6
test eax, eax
je 0x40560a
test byte [eax], 0x10
je 0x4055db
push esi
call fcn.00405525
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055fc
call fcn.004054de
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4056a2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405715
test edi, edi
jne 0x4056dc
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40570f
Function at 0x405719
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405ce4
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405745
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40588b
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c628], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c628
je 0x405789
push 1
push 0
push esi
call fcn.004056a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405891
cmp eax, edi
jg 0x405891
mov esi, 0x42c0a0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405891
cmp eax, edi
jg 0x405891
push esi
push ebp
push str._s_s_r_n
push 0x42bca0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40588b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405884
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405884
cmp edi, dword [esp + 0x18]
jne 0x405884
push str._Rename__r_n
push esi
call fcn.00405636
test eax, eax
jne 0x405898
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059d1
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42bca0
push eax
call fcn.00405682
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42f0b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409300
push eax
call fcn.00405636
test eax, eax
je 0x40584f
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x4058c1
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x4058b4
sub eax, esi
jmp 0x405851
Function at 0x4058c5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405929
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405918
cmp dword [ebp + 0x14], 1
je 0x40591a
cmp dword [ebp + 0x14], 2
je 0x40591a
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4059f3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405a14
mov ecx, dword [0x42e7fc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x42f058]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42dfc0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405be7
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405be7
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405bf4
inc ebx
cmp cl, 0xfc
jbe 0x405bda
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, SHGetFileInfoA
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405b85
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405aa8
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405b20
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405ac7
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058c5
jmp 0x405b1b
cmp eax, 0x26
jne 0x405af7
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058c5
cmp byte [edi], 0
jne 0x405b7d
push str.C:Program_Files
push edi
call fcn.004059d1
jmp 0x405b1b
cmp eax, 0x25
jne 0x405b0a
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405b1b
cmp eax, 0x24
jne 0x405b20
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405b7d
cmp dword [0x42f0a4], 0
jne 0x405b2c
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x42f024]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405b62
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.00405240
cmp dword [ebp - 8], 0
jne 0x405b69
jmp 0x405b65
and byte [edi], 0
test esi, esi
jne 0x405b2c
cmp byte [edi], 0
je 0x405b7d
cmp dword [ebp + 0xc], 0
je 0x405b7d
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405c0d
jmp 0x405bcb
cmp byte [ebp + 0xf], 0xfd
jne 0x405bb9
cmp esi, 0x1b
jne 0x405b9e
push dword [0x42f024]
push edi
call fcn.0040592f
jmp 0x405baf
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004059d1
add esi, 0xffffffeb
cmp esi, 6
jae 0x405bcb
jmp 0x405b7d
cmp byte [ebp + 0xf], 0xff
jne 0x405bcb
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059f3
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42dfc0
jmp 0x405be7
jne 0x405be4
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405be7
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405a3f
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405c09
push eax
push dword [ebp + 8]
call fcn.004059d1
leave
ret 8
Function at 0x405d41
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ca2c], 0
push esi
jne 0x405d78
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 0x405d52
mov dword [ecx*4 + 0x42ca28], eax
inc ecx
cmp ecx, 0x100
jl 0x405d4d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405da9
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 + 0x42ca28]
xor eax, esi
inc ecx
dec edx
jne 0x405d8b
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x40bc10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46703b
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.0045be58
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bc92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00459da7
mov eax, dword [eax]
push 0x59f1c0
push eax
call fcn.0044cca4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045c0e3
test bl, bl
je 0x40bc92
push 0x59f1c0
lea ecx, [esp + 0xc]
call fcn.0045c473
push 0x5a2d20
lea ecx, [esp + 0xc]
call fcn.0045c473
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 0x40bcce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045c0e3
jmp 0x40bd99
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 0x40bd52
lea edx, [esp + 0x7c]
push 0x5a2d1c
push edx
call fcn.0044cca4
add esp, 8
test eax, eax
je 0x40bd52
lea eax, [esp + 0x7c]
push 0x5a2d18
push eax
call fcn.0044cca4
add esp, 8
test eax, eax
je 0x40bd52
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 0x40bce2
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.0045c0e3
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 0x40c590
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 0x40c5f2
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 0x40c600
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4670bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5a91c0]
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 0x40c738
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c666
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c0e3
xor eax, eax
jmp 0x40c7af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045c220
push esi
lea ecx, [esp + 0xc]
call fcn.0045c4af
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 0x40c78d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040c590
test eax, eax
jne 0x40c78d
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.0040c590
test eax, eax
jne 0x40c78d
lea eax, [esp + 0x14]
push 0x5a2d34
push eax
call fcn.0044dce0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c76c
lea ecx, [esp + 0x14]
push 0x5a2d30
push ecx
call fcn.0044dc60
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c76c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c76f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045c1d0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c67e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c0e3
xor eax, eax
jmp 0x40c7af
mov byte [esi], 0
push 0x5a2d2c
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.0045c0e3
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 0x41d380
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 0x41d3ee
cmp si, 0x69
ja 0x41d3ee
add esi, 0xffd0
cmp si, 0x11
je 0x41d3be
push 0x11
call edi
test ax, ax
jge 0x41d3be
or esi, 0x2000
cmp si, 0x10
je 0x41d3d3
push 0x10
call edi
test ax, ax
jge 0x41d3d3
or esi, 0x4000
cmp si, 0x12
je 0x41d3e8
push 0x12
call edi
test ax, ax
jge 0x41d3e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41d3fb
mov esi, 0xbd
jmp 0x41d3af
cmp si, 0x6e
jne 0x41d408
mov esi, 0xbe
jmp 0x41d3af
cmp si, 0x6f
jne 0x41d3a9
mov esi, 0xbf
jmp 0x41d3af

Function at 0x41eb30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5b9860]
xor edx, edx
cmp eax, edx
jne 0x41eb56
xor eax, eax
mov byte [eax + 0x5b9760], al
inc eax
cmp eax, 0x100
jl 0x41eb3e
mov dword [0x5b9860], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5b9760
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41ebe7
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 0x41ebba
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 0x41eb88
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41ec60
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 0x41ecb3
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 0x41ec9a
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
Function at 0x430950
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468fa8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042b250
test eax, eax
je 0x430a58
lea ecx, [esp + 0xc]
call fcn.00406db0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042b250
mov ecx, eax
call fcn.00428a10
test eax, eax
je 0x430a3f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x430a3f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x430a3f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00406fb0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x430a21
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x430a3f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x5b9cb0]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x590498
call fcn.00406fb0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10