joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x208
push 0
mov dword [ebp - 4], 0
mov ebx, 0x104
call fcn.00455890
add esp, 8
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x4561c8
cmp esi, ebx
jb 0x4561b8
lea eax, [esi + esi]
mov ebx, esi
push eax
push edi
call fcn.00455890
add esp, 8
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
jne 0x456182
push edi
call fcn.0047b1a0
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xffffffffffffffff
push edi
call fcn.00458eb0
add esp, 0xc
mov dword [ebp - 4], eax
push edi
call fcn.0047b1a0
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x456800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.00458db0
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov edi, eax
call fcn.0047b1a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x456910
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.00458db0
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
mov edi, eax
call fcn.0047b1a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x456940
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.00458db0
add esp, 8
mov edi, eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov esi, eax
call fcn.0047b1a0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x456c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 8]
sub eax, esi
je 0x456c62
sub eax, 1
je 0x456c35
sub eax, 1
jne 0x456ca3
imul esi, dword [ebp + 0xc], 0xbc8f
jmp 0x456c7f
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi]
push eax
call fcn.0040e6aa
add esp, 4
test eax, eax
je 0x456c7f
xor esi, eax
lea edi, [edi + 1]
movzx eax, byte [edi]
push eax
rol esi, 5
call fcn.0040e6aa
add esp, 4
test eax, eax
jne 0x456c48
jmp 0x456c7f
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx]
test eax, eax
je 0x456c7f
nop dword [eax]
xor esi, eax
lea ecx, [ecx + 1]
movzx eax, byte [ecx]
rol esi, 5
test eax, eax
jne 0x456c70
mov ecx, dword [ebx + 4]
mov edi, 1
shl edi, cl
dec edi
cmp esi, edi
jbe 0x456c9c
nop
mov edx, esi
and esi, edi
shr edx, cl
xor esi, edx
cmp esi, edi
ja 0x456c90
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
push 0x8e
push str.boralibmischashTable.c
push str.NOT_REACHED__s:_d_n
call fcn.00411920
int3
Function at 0x458850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4e961b], 0
jne 0x45887f
mov eax, dword [0x4f341c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.0040f160
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4588b7
mov dword [0x4f341c], eax
jmp 0x4588e3
mov eax, dword [ebp - 0x9c]
cmp eax, 5
jbe 0x4588c9
mov eax, 8
jmp 0x4588de
jne 0x4588dc
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x4588c2
cmp word [ebp - 0xc], 4
jae 0x4588c2
xor eax, eax
mov dword [0x4f341c], eax
mov byte [0x4e961b], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret

Function at 0x464290
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
call fcn.00463850
add esp, 4
push 0
push 0x10000080
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
jne 0x4642fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x4d1768
call fcn.0048f7e0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x464349
push 0
push 0
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x464349
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 0
jmp 0x46434b
xor eax, eax
push 0
push 0
push 0
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push dword [ebp - 0x28]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x464392
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uprv_mapFile:_CreateFileMapping_failed_for__s___d__n
call fcn.0048f7e0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x4643d7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uprv_mapFile:_MapViewOfFile_failed_for__s___d__n
call fcn.0048f7e0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
mov dword [ebx + 0x14], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x474bf0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x474c40
push str.nameSpace
push str.WMI_ConnectToWMI:__s_failed_n
push 1
call fcn.004439a0
add esp, 0xc
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x474c4b
push str.servicesResult
jmp 0x474c1f
push ebx
lea eax, [ebp - 8]
mov dword [edi], 0
push eax
push 0x4d9b58
push 1
push 0
push 0x4d9b38
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
jns 0x474c9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.WMI_ConnectToWMI:_Could_not_create_namespace_locator:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
xor al, al
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.WMI_ConnectToWMI:_created_namespace_locator
push 0x10
call fcn.004439a0
add esp, 8
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x474cee
push str.WMI_ConnectToWMI:_Failed_to_allocate_string_for_namespace
push 1
call fcn.004439a0
mov eax, dword [ebp - 8]
add esp, 8
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x492480]
call esi
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.WMI_ConnectToWMI:_Connecting_to_WMI_server
push 0x20
call fcn.004439a0
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
add esp, 8
mov esi, dword [eax]
push ecx
push 0
push 0
mov esi, dword [esi + 0xc]
mov ecx, esi
push 0x80
push 0
push 0
push 0
push ebx
push eax
call dword [0x492480]
call esi
push dword [ebp - 0x10]
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x492480]
call esi
mov dword [ebp - 8], 0
test ebx, ebx
jns 0x474da1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x8004100e
jne 0x474d7d
push str.WMI_ConnectToWMI:_Failed_to_connect_since_namespace_doesnt_exist
push 4
call fcn.004439a0
add esp, 8
xor al, al
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push eax
push ebx
push str.WMI_ConnectToWMI:_Failed_to_connect_to_namespace_server:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
xor al, al
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.WMI_ConnectToWMI:_Connected_to_WMI_server
push 0x20
call fcn.004439a0
push dword [ebp - 0xc]
call fcn.004740f0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
mov al, 1
pop ebx
pop edi
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x489937
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004897b4
Function at 0x4bb699
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33b8
cmp edx, dword [eax]
je 0x4bb6bb
add eax, 8
inc ecx
cmp eax, 0x4c3448
jl 0x4bb6ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33b8]
jne 0x4bb7e9
mov eax, dword [0x4c8de0]
cmp eax, 1
je 0x4bb7c3
test eax, eax
jne 0x4bb6ec
cmp dword [0x4c32e4], 1
je 0x4bb7c3
cmp edx, 0xfc
je 0x4bb7e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb723
lea eax, [ebp - 0x1a4]
push 0x4c09a0
push eax
call fcn.004bc080
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc510
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb766
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc510
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c099c
push edi
call fcn.004be3e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0980
push eax
call fcn.004bc080
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc090
lea eax, [ebp - 0xa0]
push 0x4c097c
push eax
call fcn.004bc090
push dword [esi + 0x4c33bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc090
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0954
push eax
call fcn.004be354
add esp, 0x2c
pop edi
jmp 0x4bb7e9
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33bc]
push 0
push eax
push dword [esi]
call fcn.004bc510
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x24911449
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6b475c01
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40bb61
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [ebp + 8]
mov al, byte [ecx + eax]
cmp al, 0x41
jl 0x40bb84
cmp al, 0x5a
jg 0x40bb84
movsx eax, al
sub eax, 0x41
jmp 0x40bbbb
cmp al, 0x61
jl 0x40bb94
cmp al, 0x7a
jg 0x40bb94
movsx eax, al
sub eax, 0x47
jmp 0x40bbbb
cmp al, 0x30
jl 0x40bba4
cmp al, 0x39
jg 0x40bba4
movsx eax, al
add eax, 4
jmp 0x40bbbb
cmp al, 0x2b
jne 0x40bbad
push 0x3e
pop eax
jmp 0x40bbbb
cmp al, 0x2f
jne 0x40bbb5
push 0x3f
jmp 0x40bbaa
cmp al, 0x3d
jne 0x40bbdf
mov eax, edi
mov dword [ebp + ecx*4 - 0x10], eax
inc ecx
cmp ecx, 4
jl 0x40bb6e
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x40bbdf
cmp dword [ebp - 0xc], edi
je 0x40bbdf
mov esi, dword [ebp - 8]
cmp esi, edi
mov edx, dword [ebp - 4]
jne 0x40bbe5
cmp edx, edi
je 0x40bbf2
xor eax, eax
pop edi
pop esi
leave
ret
xor eax, eax
cmp edx, edi
setne al
inc eax
inc eax
mov edi, eax
jmp 0x40bbf5
xor edi, edi
inc edi
shl ecx, 6
or ecx, dword [ebp - 0xc]
and esi, 0x3f
shl ecx, 6
or ecx, esi
and edx, 0x3f
shl ecx, 6
or ecx, edx
mov edx, dword [ebp + 0xc]
mov eax, ecx
shr eax, 0x10
cmp edi, 1
mov byte [edx], al
jle 0x40bc22
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
cmp edi, 2
jle 0x40bc2a
mov byte [edx + 2], cl
mov eax, edi
jmp 0x40bbe1

Function at 0x40bf92
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
jbe 0x40bfba
mov ecx, dword [esp + 0xc]
push ebx
sub ecx, eax
push edi
movzx edi, byte [ecx + eax]
movzx ebx, byte [eax]
xor edi, ebx
or esi, edi
inc eax
dec edx
jne 0x40bfa9
pop edi
pop ebx
mov eax, pe_nt_image_headers32
sub eax, esi
shr eax, 8
pop esi
ret
Function at 0x4224af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, eax
test bl, 0xf
push edi
mov edi, dword [ebp + 0xc]
je 0x4224d8
push 0x409
push str..._sshaes.c
push str._len__15___0
call fcn.00452518
add esp, 0xc
lea eax, [edi + 0x3c8]
push 0x10
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004528f0
add esp, 0xc
test ebx, ebx
jle 0x422582
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 4], eax
lea eax, [ebx - 1]
shr eax, 4
inc eax
push esi
mov dword [ebp - 8], eax
jmp 0x422511
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
xor eax, eax
movzx edx, byte [esi]
xor ecx, ecx
mov ch, byte [esi - 2]
add esi, 4
mov cl, byte [esi - 5]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi - 3]
shl ecx, 8
or ecx, edx
xor dword [ebp + eax*4 - 0x1c], ecx
inc eax
cmp eax, 4
jl 0x422516
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [edi + 0x3c0]
mov eax, dword [ebp - 4]
pop ecx
pop ecx
xor edx, edx
lea ecx, [ebp + edx*4 - 0x1c]
mov edi, dword [ecx]
mov cl, byte [ecx]
mov ebx, edi
shr ebx, 0x18
mov byte [eax - 2], bl
mov ebx, edi
shr ebx, 0x10
mov byte [eax - 1], bl
mov ebx, edi
shr ebx, 8
mov byte [eax], bl
mov byte [eax + 1], cl
inc edx
add eax, 4
cmp edx, 4
jl 0x42254e
dec dword [ebp - 8]
mov dword [ebp - 4], esi
jne 0x42250e
pop esi
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
call fcn.004528f0
add esp, 0xc
pop edi
pop ebx
leave
ret

Function at 0x422597
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, eax
test bl, 0xf
push esi
mov esi, dword [ebp + 0xc]
je 0x4225c0
push 0x41f
push str..._sshaes.c
push str._len__15___0
call fcn.00452518
add esp, 0xc
lea eax, [esi + 0x3c8]
push 0x10
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004528f0
add esp, 0xc
test ebx, ebx
jle 0x422693
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx - 1]
shr eax, 4
add edi, 2
inc eax
mov dword [ebp - 4], eax
jmp 0x4225f6
mov esi, dword [ebp + 0xc]
mov eax, edi
xor ecx, ecx
movzx ebx, byte [eax]
xor edx, edx
mov dh, byte [eax - 2]
add ecx, 4
add eax, 4
mov dl, byte [eax - 5]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax - 3]
shl edx, 8
or edx, ebx
cmp ecx, 0x10
mov dword [ebp + ecx - 0x40], edx
mov dword [ebp + ecx - 0x20], edx
jl 0x4225fa
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [esi + 0x3c4]
pop ecx
mov eax, edi
pop ecx
xor edi, edi
lea ecx, [ebp + edi - 0x1c]
mov edx, dword [ecx]
lea esi, [ebp + edi - 0x2c]
mov ebx, dword [esi]
shr edx, 0x18
shr ebx, 0x18
xor bl, dl
mov edx, dword [esi]
mov byte [eax - 2], bl
mov ebx, dword [ecx]
shr edx, 0x10
shr ebx, 0x10
xor dl, bl
mov ebx, dword [ecx]
mov cl, byte [ecx]
xor cl, byte [esi]
mov byte [eax - 1], dl
mov edx, dword [esi]
shr edx, 8
shr ebx, 8
xor dl, bl
mov byte [eax + 1], cl
mov ecx, dword [ebp + edi - 0x3c]
mov byte [eax], dl
add edi, 4
add eax, 4
cmp edi, 0x10
mov dword [esi], ecx
jl 0x42263a
dec dword [ebp - 4]
mov edi, dword [ebp - 8]
jne 0x4225f3
pop edi
push 0x10
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
call fcn.004528f0
add esp, 0xc
pop esi
pop ebx
leave
ret
Function at 0x4226a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, eax
test bl, 0xf
push esi
mov esi, dword [ebp + 0xc]
je 0x4226d1
push 0x437
push str..._sshaes.c
push str._len__15___0
call fcn.00452518
add esp, 0xc
lea eax, [esi + 0x3c8]
push 0x10
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004528f0
add esp, 0xc
test ebx, ebx
jle 0x4227a2
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx - 1]
shr eax, 4
add edi, 2
inc eax
mov dword [ebp - 8], eax
jmp 0x422707
mov esi, dword [ebp + 0xc]
push 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004528f0
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [esi + 0x3c0]
add esp, 0x14
xor ecx, ecx
mov eax, edi
movzx esi, byte [eax]
xor edx, edx
mov dh, byte [eax - 2]
mov dl, byte [eax - 1]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 1]
shl edx, 8
or edx, esi
mov dword [ebp - 4], edx
mov ebx, dword [ebp - 4]
lea esi, [ebp + ecx*4 - 0x2c]
mov edi, dword [esi]
shr ebx, 0x18
mov edx, edi
shr edx, 0x18
xor dl, bl
mov ebx, dword [ebp - 4]
mov byte [eax - 2], dl
shr ebx, 0x10
mov edx, edi
shr edx, 0x10
xor dl, bl
mov ebx, dword [ebp - 4]
mov byte [eax - 1], dl
mov edx, edi
shr edx, 8
shr ebx, 8
xor dl, bl
mov byte [eax], dl
mov dl, byte [esi]
xor dl, byte [ebp - 4]
inc ecx
mov byte [eax + 1], dl
add eax, 4
cmp ecx, 4
jl 0x422728
push 3
pop ecx
inc dword [ebp + ecx*4 - 0x1c]
jne 0x422796
dec ecx
jns 0x42278d
dec dword [ebp - 8]
mov edi, eax
jne 0x422704
pop edi
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
call fcn.004528f0
add esp, 0xc
pop esi
pop ebx
leave
ret

Function at 0x4228d4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0xb], cl
mov cl, byte [eax + 1]
mov byte [ebp - 1], cl
jle 0x422938
push ebx
push esi
push edi
inc byte [ebp + 0xb]
movzx ecx, byte [ebp + 0xb]
lea esi, [ecx + eax + 2]
mov dl, byte [esi]
add byte [ebp - 1], dl
movzx ecx, byte [ebp - 1]
mov edi, dword [ebp + 0xc]
lea ecx, [ecx + eax + 2]
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov bl, byte [esi]
add edi, ecx
add ebx, edx
and ebx, 0xff
mov dl, byte [ebx + eax + 2]
xor byte [edi], dl
inc ecx
cmp ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
jl 0x4228f4
pop edi
pop esi
pop ebx
mov cl, byte [ebp + 0xb]
mov byte [eax], cl
mov cl, byte [ebp - 1]
mov byte [eax + 1], cl
leave
ret
Function at 0x422945
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, eax
mov esi, pe_nt_image_headers32
cmp dword [ebp + 0xc], esi
lea ebx, [edi + 2]
mov dword [ebp - 8], ebx
jbe 0x422977
push 0x26
push str..._ssharcf.c
push str.keybytes___256
call fcn.00452518
add esp, 0xc
xor ecx, ecx
lea eax, [ebp - 0x108]
mov byte [edi + 1], cl
mov byte [edi], cl
sub ebx, eax
xor edx, edx
mov eax, ecx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea edi, [ebp + ecx - 0x108]
mov byte [ebx + edi], cl
inc ecx
cmp ecx, esi
mov al, byte [edx + eax]
mov byte [edi], al
jb 0x422986
mov eax, dword [ebp - 8]
and dword [ebp + 0xc], 0
lea edi, [ebp - 0x108]
sub edi, eax
mov dword [ebp - 4], esi
mov cl, byte [eax]
mov esi, dword [ebp - 8]
xor ebx, ebx
xor edx, edx
mov dl, byte [edi + eax]
mov bl, cl
add ebx, dword [ebp + 0xc]
add edx, ebx
and edx, 0xff
add esi, edx
mov dword [ebp + 0xc], edx
mov dl, byte [esi]
mov byte [eax], dl
inc eax
dec dword [ebp - 4]
mov byte [esi], cl
jne 0x4229b6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4231fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
test byte [ebp + 8], 7
push esi
push edi
mov esi, eax
je 0x423223
push 0x132
push str..._sshblowf.c
push str._len__7___0
call fcn.00452518
add esp, 0xc
mov ecx, dword [ebp + 8]
test ecx, ecx
mov edi, dword [ebx + 0x1048]
mov eax, dword [ebx + 0x104c]
jle 0x4232d2
dec ecx
shr ecx, 3
inc ecx
mov dword [ebp + 8], ecx
movzx edx, byte [esi + 5]
xor ecx, ecx
mov ch, byte [esi + 7]
mov cl, byte [esi + 6]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 4]
shl ecx, 8
or ecx, edx
xor ecx, eax
xor eax, eax
mov ah, byte [esi + 3]
push ecx
movzx ecx, byte [esi + 1]
mov al, byte [esi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi]
shl eax, 8
or eax, ecx
xor eax, edi
push eax
mov eax, ebx
lea edi, [ebp - 0xc]
call fcn.00422a64
mov eax, dword [ebp - 0xc]
mov edx, eax
mov byte [esi], al
shr edx, 8
mov edi, eax
mov byte [esi + 1], dl
mov edx, eax
shr eax, 0x18
mov byte [esi + 3], al
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
mov dword [ebp - 4], ecx
mov byte [esi + 4], cl
shr eax, 0x10
shr edx, 0x10
shr ecx, 0x18
mov byte [esi + 6], al
mov eax, dword [ebp - 4]
mov byte [esi + 2], dl
mov byte [esi + 7], cl
add esi, 8
dec dword [ebp + 8]
jne 0x423242
mov dword [ebx + 0x1048], edi
pop edi
mov dword [ebx + 0x104c], eax
pop esi
leave
ret