joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403551
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
jl 0x40357b
mov ecx, dword [0x472638]
push esi
add eax, ecx
push esi
push eax
push dword [0x40b014]
mov dword [0x42f1e4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004033ea
cmp eax, esi
jl 0x403658
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call fcn.004060db
test eax, eax
jne 0x4035a7
push 0xfffffffffffffffd
pop eax
jmp 0x403658
add dword [0x42f1e4], 4
push ebx
push dword [ebp + 8]
call fcn.004033ea
mov ebx, eax
cmp ebx, esi
jl 0x403655
cmp dword [ebp + 0x10], esi
jne 0x403623
cmp dword [ebp + 8], esi
jle 0x403655
mov esi, 0x42f1e8
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x4035e5
mov eax, 0x4000
push eax
push esi
push dword [0x40b014]
mov dword [ebp - 4], eax
call fcn.004060db
test eax, eax
je 0x403647
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.0040610a
test eax, eax
je 0x40361f
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x42f1e4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4035d4
jmp 0x403655
push 0xfffffffffffffffe
jmp 0x403649
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40362e
mov eax, dword [ebp + 0x14]
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40364c
push 0xfffffffffffffffd
pop eax
jmp 0x403657
mov ebx, dword [ebp - 4]
add dword [0x42f1e4], ebx
mov eax, ebx
pop ebx
pop esi
leave
ret 0x10
Function at 0x405d88
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov eax, 0x409638
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x409628
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405dd8
xor eax, eax
jmp 0x405e05
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405e04
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405e02
xor eax, eax
jmp 0x405e04
call esi
pop esi
leave
ret 4

Function at 0x405e26
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x457280
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x457280], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405e65
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405e69
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
push eax
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406032
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406052
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406058
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
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_CreateFileW]
ret 0xc

Function at 0x406087
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409714]
mov dword [ebp - 8], eax
mov eax, dword [0x409718]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4060d7
test edi, edi
jne 0x406094
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060d1
Function at 0x406292
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x4008
push dword [ebp + 8]
call fcn.00406231
test eax, eax
mov esi, dword [ebp + 0x14]
jne 0x406302
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x4006], 0
test edi, edi
pop edi
jne 0x406302
cmp dword [ebp + 0xc], 1
je 0x406306
cmp dword [ebp + 0xc], 2
je 0x406306
and word [esi], 0
pop esi
leave
ret 0x14

Function at 0x40670e
Capabilities:
Get common file path

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

Function at 0x406887
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406032
mov edi, eax
cmp edi, 0xffffffff
je 0x4068c8
test byte [esp + 0x10], 1
push esi
je 0x4068b1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4068b9
xor eax, eax
inc eax
jmp 0x4068ca
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4068a8
test byte [esp + 0x10], 4
jne 0x4068c8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x40692a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4572c8
push esi
call fcn.004063c4
push esi
call fcn.00405f5b
mov edi, eax
test edi, edi
jne 0x40694b
xor eax, eax
jmp 0x4069a9
push edi
call fcn.004063e6
test byte [0x472648], 0x80
je 0x406968
movzx eax, word [edi]
test ax, ax
je 0x406947
cmp ax, 0x5c
je 0x406947
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40698a
push esi
call fcn.004066e7
test eax, eax
je 0x406984
test byte [eax], 0x10
je 0x4069ae
push esi
call fcn.004068fe
push esi
call ebx
cmp eax, edi
jg 0x406975
push esi
call fcn.004068cf
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4069a8
Function at 0x406c26
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov dword [0x45b2d0], 0x55004e
mov dword [0x45b2d4], 0x4c
mov edi, 0x400
mov ebp, 0x45b2d0
je 0x406c7c
push 1
push 0
push esi
call fcn.00406058
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406d9b
cmp eax, edi
jg 0x406d9b
push edi
mov esi, 0x460128
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406d9b
cmp eax, edi
jg 0x406d9b
push esi
push ebp
push str._ls_ls_r_n
push 0x45bd20
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4725e0]
push dword [eax + 0x128]
push esi
call fcn.004069b2
push 4
push 0xc0000000
push esi
call fcn.00406058
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406d9b
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 0x406d94
push edi
push esi
push ebp
call fcn.004060db
test eax, eax
je 0x406d94
push str._Rename__r_n
push esi
call fcn.00405fb8
test eax, eax
jne 0x406d32
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406d67
push 0x409948
add eax, 0xa
push eax
call fcn.00405fb8
mov ebp, eax
test ebp, ebp
je 0x406d63
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406d54
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406d4e
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406d69
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x45bd20
add eax, esi
push eax
call fcn.0040600e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040610a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406da0
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406dc3
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406c26
pop ecx
pop ecx
inc dword [0x4726b0]
ret 8
Function at 0x406dcc
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.0040692a
test bl, 8
mov dword [ebp - 8], eax
je 0x406e0a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4726a8], eax
jmp 0x406fe4
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
push edi
je 0x406e25
test eax, eax
je 0x406f64
test bl, 2
je 0x406f64
push esi
mov edi, 0x45c120
push edi
call fcn.004063c4
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406e47
push str..
push edi
call ebx
jmp 0x406e4d
push esi
call fcn.004068fe
cmp word [esi], 0
jne 0x406e5d
cmp word [0x45c120], 0x5c
jne 0x406e65
push 0x4087d4
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406f59
cmp word [ebp - 0x22c], 0x2e
jne 0x406eb8
cmp word [ebp - 0x22a], 0
je 0x406f3c
cmp word [ebp - 0x22a], 0x2e
jne 0x406eb8
cmp word [ebp - 0x228], 0
je 0x406f3c
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004063c4
test byte [ebp - 0x258], 0x10
je 0x406ee3
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406f3c
push dword [ebp + 0xc]
push esi
call fcn.00406dcc
jmp 0x406f3c
push esi
push str.Delete:_DeleteFile___s__
call fcn.004066b5
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00406887
test eax, eax
push esi
jne 0x406f35
cmp dword [ebp - 4], eax
je 0x406f21
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.004066b5
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.004050de
push 0
push esi
call fcn.00406da0
jmp 0x406f3c
push str.Delete:_DeleteFile_failed___s__
call fcn.004066b5
inc dword [0x4726a8]
pop ecx
pop ecx
jmp 0x406f3c
push 0xfffffffffffffff2
call fcn.004050de
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406e88
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406f64
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x406fe3
cmp dword [ebp - 8], edi
push esi
jne 0x406f78
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x406fcd
call fcn.004066e7
test eax, eax
je 0x406fe3
push esi
call fcn.004068cf
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.004066b5
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or eax, 1
push eax
push esi
call fcn.00406887
test eax, eax
push esi
jne 0x406fdc
cmp dword [ebp - 4], edi
je 0x406fc8
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.004066b5
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.004050de
push edi
push esi
call fcn.00406da0
jmp 0x406fe3
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.004066b5
inc dword [0x4726a8]
pop ecx
pop ecx
jmp 0x406fe3
push 0xffffffffffffffe5
call fcn.004050de
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406fea
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46092c], 0
jne 0x407025
xor ecx, ecx
push esi
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 0x406ffe
mov dword [ecx*4 + 0x460928], eax
inc ecx
cmp ecx, 0x100
jl 0x406ff9
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407052
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460928]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x407033
not eax
pop ebp
ret 0xc
Function at 0x501020
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa5000]
push edi
jmp 0x50103a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x501041
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x501030
mov eax, 1
add ebx, ebx
jne 0x501053
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x501064
jne 0x501083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x501083
dec eax
add ebx, ebx
jne 0x501070
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x501048
add ebx, ebx
jne 0x50107f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5010d5
xor ecx, ecx
sub eax, 3
jb 0x50109b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50110a
sar eax, 1
mov ebp, eax
jmp 0x5010a6
add ebx, ebx
jne 0x5010a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x501074
inc ecx
add ebx, ebx
jne 0x5010b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x501074
add ebx, ebx
jne 0x5010c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5010b6
jne 0x5010d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5010b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5010f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5010e6
jmp 0x501036
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5010f4
add edi, ecx
jmp 0x501036
pop esi
mov edi, esi
mov ecx, 0x3b6c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x501112
cmp byte [edi], 0x17
jne 0x501112
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x501117
lea edi, [esi + 0xfb000]
mov eax, dword [edi]
or eax, eax
je 0x501186
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11f9a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11fa38]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x501144
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11fa40]
or eax, eax
je 0x501180
mov dword [ebx], eax
add ebx, 4
jmp 0x501161
call dword [esi + 0x11fa3c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5011b7
cmp al, 0xef
ja 0x5011aa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x50118c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x501199
mov ebp, dword [esi + 0x11fa44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5011eb
sub esp, 0xffffff80
jmp 0x435126
Function at 0x4a2120
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x55f9bb
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.0055384c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4a21a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00550da8
mov eax, dword [eax]
push 0x7efd44
push eax
call fcn.00526754
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00553ad7
test bl, bl
je 0x4a21a2
push 0x7efd44
lea ecx, [esp + 0xc]
call fcn.00553e67
push 0x7efd50
lea ecx, [esp + 0xc]
call fcn.00553e67
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 0x4a21de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00553ad7
jmp 0x4a22a9
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 0x4a2262
lea edx, [esp + 0x7c]
push 0x7efd4c
push edx
call fcn.00526754
add esp, 8
test eax, eax
je 0x4a2262
lea eax, [esp + 0x7c]
push 0x7efd48
push eax
call fcn.00526754
add esp, 8
test eax, eax
je 0x4a2262
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 0x4a21f2
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.00553ad7
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 0x4a2ab0
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 0x4a2b12
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 0x4a2b20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x55fa3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x8081d4]
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 0x4a2c58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4a2b86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00553ad7
xor eax, eax
jmp 0x4a2ccf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00553c14
push esi
lea ecx, [esp + 0xc]
call fcn.00553ea3
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 0x4a2cad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004a2ab0
test eax, eax
jne 0x4a2cad
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 closesocket
mov ecx, edi
call fcn.004a2ab0
test eax, eax
jne 0x4a2cad
lea eax, [esp + 0x14]
push 0x7efd60
push eax
call fcn.005279b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a2c8c
lea ecx, [esp + 0x14]
push 0x7efd5c
push ecx
call fcn.00527930
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a2c8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4a2c8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00553bc4
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4a2b9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00553ad7
xor eax, eax
jmp 0x4a2ccf
mov byte [esi], 0
push 0x7efd58
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.00553ad7
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 0x4b9160
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 0x4b91ce
cmp si, 0x69
ja 0x4b91ce
add esi, 0xffd0
cmp si, 0x11
je 0x4b919e
push 0x11
call edi
test ax, ax
jge 0x4b919e
or esi, 0x2000
cmp si, 0x10
je 0x4b91b3
push 0x10
call edi
test ax, ax
jge 0x4b91b3
or esi, 0x4000
cmp si, 0x12
je 0x4b91c8
push 0x12
call edi
test ax, ax
jge 0x4b91c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4b91db
mov esi, 0xbd
jmp 0x4b918f
cmp si, 0x6e
jne 0x4b91e8
mov esi, 0xbe
jmp 0x4b918f
cmp si, 0x6f
jne 0x4b9189
mov esi, 0xbf
jmp 0x4b918f

Function at 0x4baf10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8c6b50]
xor edx, edx
cmp eax, edx
jne 0x4baf36
xor eax, eax
mov byte [eax + 0x8c6a50], al
inc eax
cmp eax, 0x100
jl 0x4baf1e
mov dword [0x8c6b50], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8c6a50
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4bafc7
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 0x4baf9a
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 0x4baf68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4bb040
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 0x4bb093
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 0x4bb07a
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