joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5417aa
Capabilities:
Create process on windows

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

Function at 0x54186f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00541b11
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x5418a5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ec88], eax
jmp 0x541a2a
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x5418c0
test eax, eax
je 0x5419d5
test cl, 2
je 0x5419d5
mov esi, 0x42b080
push ebx
push esi
call fcn.00541f3d
cmp dword [ebp + 8], 0
je 0x5418df
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x5418e5
push ebx
call fcn.00541a77
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x5419cb
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00541a5b
cmp byte [eax], 0
je 0x541936
cmp byte [ebp - 0x18], 0
je 0x541936
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x54194c
mov al, byte [esi + 1]
test al, al
je 0x5419aa
cmp al, 0x2e
jne 0x54194c
cmp byte [esi + 2], 0
je 0x5419aa
push esi
push edi
call fcn.00541f3d
test byte [ebp - 0x148], 0x10
je 0x541971
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x5419aa
push dword [ebp + 0xc]
push ebx
call fcn.0054186f
jmp 0x5419aa
push ebx
call fcn.00541bf5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x5419a2
test byte [ebp + 0xc], 4
je 0x54199a
push ebx
push 0xfffffffffffffff1
call fcn.005412f1
push 0
push ebx
call fcn.00541c8b
jmp 0x5419aa
inc dword [0x42ec88]
jmp 0x5419aa
push ebx
push 0xfffffffffffffff2
call fcn.005412f1
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x541914
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x5419d5
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x541a2a
cmp dword [ebp - 8], esi
jne 0x5419ea
inc dword [0x42ec88]
jmp 0x541a2a
push ebx
call fcn.005421e5
test eax, eax
je 0x541a2a
push ebx
call fcn.00541a30
push ebx
call fcn.00541bf5
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x541a22
test byte [ebp + 0xc], 4
je 0x5419e2
push ebx
push 0xfffffffffffffff1
call fcn.005412f1
push esi
push ebx
call fcn.00541c8b
jmp 0x541a2a
push ebx
push 0xffffffffffffffe5
call fcn.005412f1
pop esi
pop ebx
leave
ret 8
Function at 0x541b11
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b480
push esi
call fcn.00541f3d
push esi
call fcn.00541ac4
mov edi, eax
test edi, edi
jne 0x541b32
xor eax, eax
jmp 0x541b84
push edi
call fcn.0054214c
test byte [0x42ec10], 0x80
je 0x541b4b
mov al, byte [edi]
test al, al
je 0x541b2e
cmp al, 0x5c
je 0x541b2e
sub edi, esi
jmp 0x541b63
call fcn.005421e5
test eax, eax
je 0x541b5d
test byte [eax], 0x10
je 0x541b2e
push esi
call fcn.00541a77
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x541b4f
call fcn.00541a30
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 0x541bf5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x541c11
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x541c14
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 0x541c43
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 0x541c87
test edi, edi
jne 0x541c4e
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x541c81
Function at 0x541c8b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00542223
test eax, eax
mov esi, dword [esp + 0x18]
je 0x541caf
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x541de8
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c208], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c208
je 0x541cf3
push 1
push 0
push esi
call fcn.00541c14
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x541dee
cmp eax, edi
jg 0x541dee
mov esi, 0x42bc80
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x541dee
cmp eax, edi
jg 0x541dee
push esi
push ebp
push str._s_s_r_n
push 0x42b880
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ec08]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00541f5f
push 4
push 0xc0000000
push esi
call fcn.00541c14
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x541de8
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 0x541de1
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 0x541de1
cmp edi, dword [esp + 0x18]
jne 0x541de1
push str._Rename__r_n
push esi
call fcn.00541b89
test eax, eax
jne 0x541df5
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00541f3d
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b880
push eax
call fcn.00541bd5
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 [0x42ec90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409388
push eax
call fcn.00541b89
test eax, eax
je 0x541dac
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x541e1c
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x541e11
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x541dae
Function at 0x541e24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x541e95
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x541e84
cmp dword [ebp + 0x14], 1
je 0x541e86
cmp dword [ebp + 0x14], 2
je 0x541e86
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x541f5f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jge 0x541f80
mov ecx, dword [0x42e3dc]
lea eax, [edi*4 + 4]
sub ecx, eax
mov edi, dword [ecx]
mov eax, dword [0x42ec38]
mov ecx, dword [ebp + 8]
add edi, eax
mov eax, 0x42dba0
sub ecx, eax
mov ebx, eax
cmp ecx, 0x800
jae 0x542126
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x542126
mov edx, ebx
sub edx, eax
cmp edx, 0x400
jge 0x542133
inc edi
cmp cl, 0xfc
jbe 0x542119
movsx eax, byte [edi + 1]
movsx ecx, byte [edi]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc edi
mov dword [ebp - 0x10], ecx
inc edi
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x5420c4
cmp dword [0x42ec84], 0
push 2
pop esi
je 0x54200b
push 4
pop esi
mov eax, dword [ebp - 0x14]
test al, al
jns 0x542042
mov ecx, eax
and eax, 0x3f
add eax, dword [0x42ec38]
and ecx, 0x40
push ecx
push ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00541e24
cmp byte [ebx], 0
jne 0x5420ab
push dword [ebp - 0xc]
push ebx
call fcn.00541f5f
jmp 0x5420a6
cmp eax, 0x25
jne 0x542055
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x5420a6
cmp eax, 0x24
jne 0x5420a2
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x5420a2
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x42ec04]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x54209f
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x5420a6
and byte [ebx], 0
test esi, esi
jne 0x54206a
cmp byte [ebx], 0
je 0x5420bc
cmp dword [ebp - 0xc], 0x1a
jne 0x5420bc
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call fcn.0054214c
jmp 0x54210a
cmp byte [ebp + 0xf], 0xfd
jne 0x5420f8
cmp esi, 0x1d
jne 0x5420dd
push dword [0x42ec04]
push ebx
call fcn.00541e9b
jmp 0x5420ee
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push ebx
call fcn.00541f3d
add esi, 0xffffffeb
cmp esi, 7
jae 0x54210a
jmp 0x5420bc
cmp byte [ebp + 0xf], 0xff
jne 0x54210a
or eax, 0xffffffff
sub eax, esi
push eax
push ebx
call fcn.00541f5f
push ebx
call sub.KERNEL32.dll_lstrlenA
add ebx, eax
mov eax, 0x42dba0
jmp 0x542126
jne 0x542123
mov cl, byte [edi]
mov byte [ebx], cl
inc ebx
inc edi
jmp 0x542126
mov byte [ebx], cl
inc ebx
mov cl, byte [edi]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x541fab
and byte [ebx], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x542148
push eax
push dword [ebp + 8]
call fcn.00541f3d
leave
ret 8
Function at 0x54228f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c60c], 0
push esi
jne 0x5422c6
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 0x5422a0
mov dword [ecx*4 + 0x42c608], eax
inc ecx
cmp ecx, 0x100
jl 0x54229b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x5422f7
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 + 0x42c608]
xor eax, esi
inc ecx
dec edx
jne 0x5422d9
pop edi
not eax
pop esi
ret 0xc
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x482ce0
push eax
push dword fs:[0]
mov dword fs:[0], esp
add byte [eax], al
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
cmp al, 0x54
fiadd word [eax - 0x2c969583]
fsubr dword [ecx]
mov cl, 0xf6
aam 0xf0
xor ebp, esp
jle 0x401031
cld
pop ebp
sar esi, 1
mov cl, 0x85
in eax, 0xf5
pop edi
outsd dx, dword [esi]
sub dword [0x96ff0d5a], esp
cmpsd dword [esi], dword es:[edi]
inc ebx
add eax, 0xac22de00
and ecx, dword [esi + 0x2eeeb515]
mov ebx, 0xd1e9193c
and ch, byte [ebx - 0x114aea72]
mov ebx, 0xd1e9193c
out dx, al
xor dword [ecx], ebp
and ch, byte [ebx + 0x65fcef9e]
pop ecx
and byte [esi - 0x77a2c20a], dl
jbe 0x401012
pop ebp
mov byte [esi - 0x56], dh
xor al, 0x15
inc edi
or esp, dword [edx - 7]
mov cs, word [edi]
scasd eax, dword es:[edi]
pop edi
jns 0x401064
mov byte [esi + 0x6e3ace4f], ch
xchg esi, eax
cmp ch, byte [esi - 0x6a]
salc
add byte [edx], bl
fidivr dword [edx + 0x7b]
add eax, 0xe9cc8e54
add eax, 0xf9a2ecbe
mov byte [0x616a17a7], al
jnp 0x401087
push esp
mov cs, esp
jmp 0xa32cce8f
mov esi, 0xa2f9a2ec
cmpsd dword [esi], dword es:[edi]
pop ss
push 0x61
adc cl, bh
mov ebx, dword [ecx + 0x712858a3]
jge 0x401034
aaa
sub esp, edx
inc eax
mov byte [0xf05a408f], al
daa
add dword [0x5efa7391], esp
outsb dx, byte [esi]
aas
cdq
dec eax
jo 0x40107e
pop edx
invalid
jle 0x4010a2
fprem1
mov dh, 0x58
in al, dx
xor al, 0x5a
loope 0x401049
pushal
mov eax, dword [0x7ddc8c2b]
jne 0x401078
mov edx, 0xc2f97e96
dec esp
popal
mov bl, 0x9a
stosd dword es:[edi], eax
sbb byte [esi - 0x25c2c47c], ah
fdiv qword [ecx + ebp*2 - 0x53f25885]
dec esi
inc esp
adc al, 0x10
adc edx, dword [ebp + 0x433ac528]
adc al, 0xa8
fcmovu st(0), st(6)
push ecx
inc esp
invalid
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cli
inc ebp
or byte [edi], bh
or eax, sym.imp.MSVCRT.dll__iob
push eax
clc
in eax, dx
inc eax
push 0x740d274
push ecx
call dword [0xfe40c1ed]
mov eax, dword [0x6c02c1]
add esp, 0xc
test eax, eax
je 0x401787
push eax
push str.Total_of__d_requests_completed_n
call dword [fcn.0040b664]
add esp, 8
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
push ebp
cmp al, 0xec
sub esp, 0xaeb8
mov eax, dword [0x416178]
test eax, eax
mov eax, dword [0x41404c]
xchg esi, eax
or al, 0x68
inc eax
cmp al, 0xc4
ret 0xe850

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

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4164a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48c43b
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.00480de9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x416522
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047ed00
mov eax, dword [eax]
push 0x4a8230
push eax
call fcn.00470d74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00481074
test bl, bl
je 0x416522
push 0x4a8230
lea ecx, [esp + 0xc]
call fcn.00481404
push 0x4abdbc
lea ecx, [esp + 0xc]
call fcn.00481404
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 0x41655e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00481074
jmp 0x416629
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 0x4165e2
lea edx, [esp + 0x7c]
push 0x4abdb8
push edx
call fcn.00470d74
add esp, 8
test eax, eax
je 0x4165e2
lea eax, [esp + 0x7c]
push 0x4abdb4
push eax
call fcn.00470d74
add esp, 8
test eax, eax
je 0x4165e2
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 0x416572
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.00481074
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 0x417880
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 0x4178e2
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 0x4178f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48c59b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b7d10]
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 0x417a28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x417956
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00481074
xor eax, eax
jmp 0x417a9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004811b1
push esi
lea ecx, [esp + 0xc]
call fcn.00481440
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 0x417a7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00417880
test eax, eax
jne 0x417a7d
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.00417880
test eax, eax
jne 0x417a7d
lea eax, [esp + 0x14]
push 0x4abdd0
push eax
call fcn.00471db0
mov esi, eax
add esp, 8
test esi, esi
jne 0x417a5c
lea ecx, [esp + 0x14]
push 0x4abdcc
push ecx
call fcn.00471d30
mov esi, eax
add esp, 8
test esi, esi
jne 0x417a5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x417a5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00481161
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41796e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00481074
xor eax, eax
jmp 0x417a9f
mov byte [esi], 0
push 0x4abdc8
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.00481074
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 0x42ae30
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 0x42ae9e
cmp si, 0x69
ja 0x42ae9e
add esi, 0xffd0
cmp si, 0x11
je 0x42ae6e
push 0x11
call edi
test ax, ax
jge 0x42ae6e
or esi, 0x2000
cmp si, 0x10
je 0x42ae83
push 0x10
call edi
test ax, ax
jge 0x42ae83
or esi, 0x4000
cmp si, 0x12
je 0x42ae98
push 0x12
call edi
test ax, ax
jge 0x42ae98
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42aeab
mov esi, 0xbd
jmp 0x42ae5f
cmp si, 0x6e
jne 0x42aeb8
mov esi, 0xbe
jmp 0x42ae5f
cmp si, 0x6f
jne 0x42ae59
mov esi, 0xbf
jmp 0x42ae5f

Function at 0x42c660
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c8470]
xor edx, edx
cmp eax, edx
jne 0x42c686
xor eax, eax
mov byte [eax + 0x4c8370], al
inc eax
cmp eax, 0x100
jl 0x42c66e
mov dword [0x4c8470], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c8370
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42c717
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 0x42c6ea
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 0x42c6b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42c790
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 0x42c7e3
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 0x42c7ca
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