joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4debd3
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 4]
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], 0xfffffff8
mov dword [ebp - 8], ebx
sub dword [ebp - 0x10], ebx
lea edi, [ebp - 0x18]
lea esi, [ebx + 8]
jmp 0x4dec00
mov ebx, dword [ebp - 8]
mov al, byte [edi - 8]
cmp al, 0x80
jae 0x4dec0b
shl al, 1
jmp 0x4dec0f
shl al, 1
xor al, 0x1b
mov byte [ebp - 1], al
mov al, byte [edi + 4]
mov byte [ebp - 0xc], al
mov al, byte [edi - 4]
push eax
mov ecx, ebx
call fcn.004dee8d
push dword [ebp - 0xc]
mov dl, al
mov ecx, ebx
mov bl, dl
call fcn.004dee86
mov ecx, dword [ebp - 8]
xor bl, al
mov al, byte [edi]
push eax
call fcn.004dee86
xor bl, al
mov al, byte [edi - 4]
xor bl, byte [ebp - 1]
cmp al, 0x80
mov byte [esi - 4], bl
jae 0x4dec51
shl al, 1
jmp 0x4dec55
shl al, 1
xor al, 0x1b
mov ecx, dword [ebp - 8]
mov byte [ebp - 1], al
mov al, byte [edi - 8]
push eax
call fcn.004dee86
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov bl, al
call fcn.004dee86
mov ecx, dword [ebp - 8]
xor bl, al
mov al, byte [edi]
push eax
call fcn.004dee8d
xor bl, al
mov al, byte [edi]
xor bl, byte [ebp - 1]
cmp al, 0x80
mov byte [esi], bl
jae 0x4dec8f
shl al, 1
jmp 0x4dec93
shl al, 1
xor al, 0x1b
mov ecx, dword [ebp - 8]
mov byte [ebp - 1], al
mov al, byte [edi - 8]
push eax
call fcn.004dee86
mov ecx, dword [ebp - 8]
mov bl, al
mov al, byte [edi - 4]
push eax
call fcn.004dee86
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor bl, al
call fcn.004dee8d
xor bl, al
mov al, byte [ebp - 0xc]
xor bl, byte [ebp - 1]
cmp al, 0x80
mov byte [esi + 4], bl
jae 0x4decd0
shl al, 1
jmp 0x4decd4
shl al, 1
xor al, 0x1b
mov ecx, dword [ebp - 8]
mov byte [ebp - 1], al
mov al, byte [edi - 8]
push eax
call fcn.004dee8d
mov ecx, dword [ebp - 8]
mov bl, al
mov al, byte [edi - 4]
push eax
call fcn.004dee86
mov ecx, dword [ebp - 8]
xor bl, al
mov al, byte [edi]
push eax
call fcn.004dee86
xor bl, al
mov eax, dword [ebp - 0x10]
xor bl, byte [ebp - 1]
inc esi
add eax, esi
inc edi
mov byte [esi + 7], bl
cmp eax, 4
jl 0x4debfd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ded1b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 4]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 8]
mov dword [ebp - 0xc], 0xfffffff8
sub dword [ebp - 0xc], ebx
lea esi, [ebp - 0x14]
mov dword [ebp - 8], eax
mov al, byte [esi - 8]
mov ecx, ebx
push eax
call fcn.004def69
mov dl, al
mov al, byte [esi - 4]
push eax
mov ecx, ebx
mov byte [ebp - 1], dl
call fcn.004deed5
mov dl, byte [ebp - 1]
mov ecx, ebx
xor dl, al
mov al, byte [esi + 4]
push eax
mov byte [ebp - 1], dl
call fcn.004deea5
mov dl, byte [ebp - 1]
mov ecx, ebx
xor dl, al
mov al, byte [esi]
push eax
mov byte [ebp - 1], dl
call fcn.004def19
mov cl, byte [ebp - 1]
xor cl, al
mov eax, dword [ebp - 8]
mov byte [eax - 4], cl
mov al, byte [esi - 8]
push eax
mov ecx, ebx
call fcn.004deea5
mov dl, al
mov al, byte [esi - 4]
push eax
mov ecx, ebx
mov byte [ebp - 1], dl
call fcn.004def69
mov dl, byte [ebp - 1]
mov ecx, ebx
xor dl, al
mov al, byte [esi + 4]
push eax
mov byte [ebp - 1], dl
call fcn.004def19
mov dl, byte [ebp - 1]
mov ecx, ebx
xor dl, al
mov al, byte [esi]
push eax
mov byte [ebp - 1], dl
call fcn.004deed5
mov cl, byte [ebp - 1]
xor cl, al
mov eax, dword [ebp - 8]
mov byte [eax], cl
mov al, byte [esi - 8]
push eax
mov ecx, ebx
call fcn.004def19
mov dl, al
mov al, byte [esi - 4]
push eax
mov ecx, ebx
mov byte [ebp - 1], dl
call fcn.004deea5
mov dl, byte [ebp - 1]
mov ecx, ebx
xor dl, al
mov al, byte [esi + 4]
push eax
mov byte [ebp - 1], dl
call fcn.004deed5
mov dl, byte [ebp - 1]
mov ecx, ebx
xor dl, al
mov al, byte [esi]
push eax
mov byte [ebp - 1], dl
call fcn.004def69
mov cl, byte [ebp - 1]
xor cl, al
mov eax, dword [ebp - 8]
mov byte [eax + 4], cl
mov al, byte [esi - 8]
push eax
mov ecx, ebx
call fcn.004deed5
mov dl, al
mov al, byte [esi - 4]
push eax
mov ecx, ebx
mov byte [ebp - 1], dl
call fcn.004def19
mov dl, byte [ebp - 1]
mov ecx, ebx
xor dl, al
mov al, byte [esi + 4]
push eax
mov byte [ebp - 1], dl
call fcn.004def69
mov dl, byte [ebp - 1]
mov ecx, ebx
xor dl, al
mov al, byte [esi]
push eax
mov byte [ebp - 1], dl
call fcn.004deea5
mov cl, byte [ebp - 1]
xor cl, al
mov eax, dword [ebp - 8]
mov byte [eax + 8], cl
mov ecx, dword [ebp - 0xc]
inc eax
inc esi
add ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 4
jl 0x4ded43
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10907d60
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
push esi
mov ebx, ecx
lea eax, [ebp - 0xb0]
push edi
push eax
mov dword [ebp - 0x1c], ebx
lea eax, [ebx + 0x3bc]
push eax
push dword [ebp + 8]
call fcn.10907610
lea edi, [ebx + 0x63c0]
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x20], edi
lea esi, [ebp - 0xa2]
nop dword [eax]
lea ecx, [ebp - 0xc]
lea eax, [esi - 0xa]
push ecx
push eax
call fcn.10907800
mov al, byte [edi - 1]
xor al, byte [ebp - 9]
mov dl, byte [edi + 1]
mov cl, byte [edi - 3]
xor cl, byte [ebp - 0xb]
xor dl, byte [ebp - 7]
mov bl, byte [edi - 4]
mov bh, byte [edi - 2]
xor bl, byte [ebp - 0xc]
mov byte [ebp + 0xb], al
mov al, byte [edi]
xor al, byte [ebp - 8]
xor bh, byte [ebp - 0xa]
movsx edi, al
mov byte [ebp - 1], dl
movsx edx, cl
mov eax, edx
movsx ecx, bl
sar eax, 4
and eax, 0xf
shl ecx, 4
or ecx, eax
shl edx, 8
mov eax, dword [ebp - 0x1c]
and ecx, 0xfff
movzx eax, byte [ecx + eax + 0x13bc]
movsx ecx, byte [ebp + 0xb]
mov byte [ebp - 0x14], al
movzx eax, bh
mov ebx, dword [ebp - 0x1c]
or edx, eax
and edx, 0xfff
shl ecx, 4
movzx eax, byte [edx + ebx + 0x23bc]
mov byte [ebp - 0x13], al
mov eax, edi
sar eax, 4
and eax, 0xf
shl edi, 8
or ecx, eax
and ecx, 0xfff
movzx eax, byte [ecx + ebx + 0x33bc]
mov ecx, ebx
mov byte [ebp - 0x12], al
movzx eax, byte [ebp - 1]
or edi, eax
and edi, 0xfff
movzx eax, byte [edi + ebx + 0x43bc]
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10907720
movzx eax, byte [esi - 0xa]
lea esi, [esi + 8]
mov byte [esi - 0xe], al
movzx eax, byte [esi - 0x11]
mov byte [esi - 0xd], al
movzx eax, byte [esi - 0x10]
mov byte [esi - 0xc], al
movzx eax, byte [esi - 0xf]
mov byte [esi - 0xb], al
movzx ecx, byte [esi - 0x16]
mov eax, dword [ebp - 0x18]
xor cl, al
mov byte [esi - 0xa], cl
movzx ecx, byte [esi - 0x15]
xor cl, ah
mov byte [esi - 9], cl
movzx eax, byte [esi - 0x14]
xor al, byte [ebp - 0x16]
mov byte [esi - 8], al
movzx eax, byte [esi - 0x13]
xor al, byte [ebp - 0x15]
mov byte [esi - 7], al
mov edi, dword [ebp - 0x20]
add edi, 6
sub dword [ebp - 0x24], 1
mov dword [ebp - 0x20], edi
jne 0x10907da0
movzx eax, byte [ebp - 0x2b]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2d]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 0x2a]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 0x29]
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0x30]
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 0x2f]
mov byte [ebp - 0xb], al
movzx eax, byte [ebp - 0x2e]
mov byte [ebp - 0xa], al
lea eax, [ebx + 0xbbc]
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], ch
push eax
mov byte [ebp - 9], cl
call fcn.10907610
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10907f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
push esi
mov ebx, ecx
lea eax, [ebp - 0xb0]
push edi
push eax
mov dword [ebp - 0x1c], ebx
lea eax, [ebx + 0x3bc]
push eax
push dword [ebp + 8]
call fcn.10907610
lea edi, [ebx + 0x641a]
mov dword [ebp - 0x24], 0x10
lea esi, [ebp - 0xa2]
mov dword [ebp - 0x20], edi
nop dword [eax]
lea ecx, [ebp - 0xc]
lea eax, [esi - 0xa]
push ecx
push eax
call fcn.10907800
mov al, byte [edi - 1]
xor al, byte [ebp - 9]
mov dl, byte [edi + 1]
mov cl, byte [edi - 3]
xor cl, byte [ebp - 0xb]
xor dl, byte [ebp - 7]
mov bl, byte [edi - 4]
mov bh, byte [edi - 2]
xor bl, byte [ebp - 0xc]
mov byte [ebp + 0xb], al
mov al, byte [edi]
xor al, byte [ebp - 8]
xor bh, byte [ebp - 0xa]
movsx edi, al
mov byte [ebp - 1], dl
movsx edx, cl
mov eax, edx
movsx ecx, bl
sar eax, 4
and eax, 0xf
shl ecx, 4
or ecx, eax
shl edx, 8
mov eax, dword [ebp - 0x1c]
and ecx, 0xfff
movzx eax, byte [ecx + eax + 0x13bc]
movsx ecx, byte [ebp + 0xb]
mov byte [ebp - 0x14], al
movzx eax, bh
mov ebx, dword [ebp - 0x1c]
or edx, eax
and edx, 0xfff
shl ecx, 4
movzx eax, byte [edx + ebx + 0x23bc]
mov byte [ebp - 0x13], al
mov eax, edi
sar eax, 4
and eax, 0xf
shl edi, 8
or ecx, eax
and ecx, 0xfff
movzx eax, byte [ecx + ebx + 0x33bc]
mov ecx, ebx
mov byte [ebp - 0x12], al
movzx eax, byte [ebp - 1]
or edi, eax
and edi, 0xfff
movzx eax, byte [edi + ebx + 0x43bc]
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10907720
movzx eax, byte [esi - 0xa]
lea esi, [esi + 8]
mov byte [esi - 0xe], al
movzx eax, byte [esi - 0x11]
mov byte [esi - 0xd], al
movzx eax, byte [esi - 0x10]
mov byte [esi - 0xc], al
movzx eax, byte [esi - 0xf]
mov byte [esi - 0xb], al
movzx ecx, byte [esi - 0x16]
mov eax, dword [ebp - 0x18]
xor cl, al
mov byte [esi - 0xa], cl
movzx ecx, byte [esi - 0x15]
xor cl, ah
mov byte [esi - 9], cl
movzx eax, byte [esi - 0x14]
xor al, byte [ebp - 0x16]
mov byte [esi - 8], al
movzx eax, byte [esi - 0x13]
xor al, byte [ebp - 0x15]
mov byte [esi - 7], al
mov edi, dword [ebp - 0x20]
sub edi, 6
sub dword [ebp - 0x24], 1
mov dword [ebp - 0x20], edi
jne 0x10907f60
movzx eax, byte [ebp - 0x2b]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2d]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 0x2a]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 0x29]
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0x30]
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 0x2f]
mov byte [ebp - 0xb], al
movzx eax, byte [ebp - 0x2e]
mov byte [ebp - 0xa], al
lea eax, [ebx + 0xbbc]
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], ch
push eax
mov byte [ebp - 9], cl
call fcn.10907610
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10908d40
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10961650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], 0
je 0x10908d87
mov eax, dword [sym.imp.Core.dll_int_GUnicodeOS]
cmp dword [eax], 0
je 0x10908da3
push 0x80
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_wchar_t_const__]
mov eax, dword [sym.imp.Core.dll_int_GUnicodeOS]
push esi
cmp dword [eax], 0
je 0x10908dea
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10908e23
push esi
mov edi, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_wchar_t_const__]
call edi
add esp, 4
test eax, eax
jne 0x10908db7
xor ebx, ebx
jmp 0x10908dcd
push esi
call edi
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10958740
mov dword [ebp - 0x10], esp
mov ebx, esp
push 0x80
push esi
call edi
push eax
push esi
push ebx
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___wchar_t_const___int_]
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
jmp 0x10908d8d
call edi
add esp, 4
test eax, eax
jne 0x10908df7
xor ebx, ebx
jmp 0x10908e0d
push esi
call edi
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10958740
mov dword [ebp - 0x10], esp
mov ebx, esp
push esi
call edi
push eax
push esi
push ebx
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___wchar_t_const___int_]
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x10908e54
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
cmp dword [ebp + 0xc], eax
jne 0x10908e39
call edi
cmp eax, 2
je 0x10908e54
xor ebx, ebx
call edi
push eax
push esi
push 0x1096d088
push 0x2ff
call dword [sym.imp.Core.dll_void___cdecl_debugf_enum_EName__wchar_t_const__]
add esp, 0x10
jmp 0x10908e59
mov ebx, 1
mov eax, ebx
lea esp, [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10946201
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10945bbf

Function at 0x109466e9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.109465bd

Function at 0x109512a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10950e98

Function at 0x109512ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10951022
Function at 0x1095e920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [sym.imp.Core.dll_int_GUnicodeOS]
sub esp, 0x300
cmp dword [eax], 0
push esi
push edi
mov edi, dword [sym.imp.Core.dll_wchar_t____cdecl_appStrcpy_wchar_t___wchar_t_const__]
push 0x100
jne 0x1095e9f7
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1090cce0
push 0x100
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.1090cce0
push 0x100
lea eax, [ebp - 0x300]
push 0
push eax
call fcn.1090cce0
add esp, 0x24
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
push 0x100
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push 0x100
lea eax, [ebp - 0x300]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.Core.dll_wchar_t_const____cdecl_appFromAnsi_char_const___wchar_t__]
lea eax, [ebp - 0x100]
push 0
push eax
call esi
push eax
push 0x109bef98
call edi
lea eax, [ebp - 0x200]
push 0
push eax
call esi
push eax
push 0x109bed90
call edi
lea eax, [ebp - 0x300]
push 0
push eax
call esi
push eax
push 0x109beb90
call edi
add esp, 0x30
jmp 0x1095ea24
push 0x109bef98
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
push 0x100
push 0x109bed90
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
push 0x100
push 0x109beb90
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.Core.dll_int___cdecl_appStrlen_wchar_t_const__]
push 0x1096b7f0
push 0x109beb90
call esi
add esp, 4
lea eax, [eax*2 + 0x109beb88]
push eax
call dword [sym.imp.Core.dll_int___cdecl_appStricmp_wchar_t_const___wchar_t_const__]
add esp, 8
test eax, eax
jne 0x1095ea6a
push 0x1096b7fc
push 0x109beb90
call esi
add esp, 4
lea eax, [eax*2 + 0x109beb88]
push eax
call edi
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x51d630
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x59aebb
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.0058d182
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x51d6b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0058aa00
mov eax, dword [eax]
push 0x89f234
push eax
call fcn.0057cad4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0058d40d
test bl, bl
je 0x51d6b2
push 0x89f234
lea ecx, [esp + 0xc]
call fcn.0058d7e9
push 0x8a2dc0
lea ecx, [esp + 0xc]
call fcn.0058d7e9
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 0x51d6ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0058d40d
jmp 0x51d7b9
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 0x51d772
lea edx, [esp + 0x7c]
push 0x8a2dbc
push edx
call fcn.0057cad4
add esp, 8
test eax, eax
je 0x51d772
lea eax, [esp + 0x7c]
push 0x8a2db8
push eax
call fcn.0057cad4
add esp, 8
test eax, eax
je 0x51d772
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 0x51d702
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.0058d40d
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 0x51dfb0
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 0x51e012
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 0x51e020
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x59af3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x8ac22c]
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 0x51e158
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x51e086
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0058d40d
xor eax, eax
jmp 0x51e1cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0058d596
push esi
lea ecx, [esp + 0xc]
call fcn.0058d825
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x8a2df8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x51e1ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0051dfb0
test eax, eax
jne 0x51e1ad
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.0051dfb0
test eax, eax
jne 0x51e1ad
lea eax, [esp + 0x14]
push 0x8a2dd4
push eax
call fcn.0057dc80
mov esi, eax
add esp, 8
test esi, esi
jne 0x51e18c
lea ecx, [esp + 0x14]
push 0x8a2dd0
push ecx
call fcn.0057dc00
mov esi, eax
add esp, 8
test esi, esi
jne 0x51e18c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x51e18f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0058d546
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x51e09e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0058d40d
xor eax, eax
jmp 0x51e1cf
mov byte [esi], 0
push 0x8a2dcc
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.0058d40d
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 0x532660
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 0x5326ce
cmp si, 0x69
ja 0x5326ce
add esi, 0xffd0
cmp si, 0x11
je 0x53269e
push 0x11
call edi
test ax, ax
jge 0x53269e
or esi, 0x2000
cmp si, 0x10
je 0x5326b3
push 0x10
call edi
test ax, ax
jge 0x5326b3
or esi, 0x4000
cmp si, 0x12
je 0x5326c8
push 0x12
call edi
test ax, ax
jge 0x5326c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x5326db
mov esi, 0xbd
jmp 0x53268f
cmp si, 0x6e
jne 0x5326e8
mov esi, 0xbe
jmp 0x53268f
cmp si, 0x6f
jne 0x532689
mov esi, 0xbf
jmp 0x53268f

Function at 0x533e10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8bd398]
xor edx, edx
cmp eax, edx
jne 0x533e36
xor eax, eax
mov byte [eax + 0x8bd298], al
inc eax
cmp eax, 0x100
jl 0x533e1e
mov dword [0x8bd398], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8bd298
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x533ec7
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 0x533e9a
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 0x533e68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x533f40
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 0x533f93
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 0x533f7a
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