joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50149e9
Capabilities:
Get memory capacity

Disassembly:
push 0x24
mov eax, 0x5072523
call fcn.050702f7
mov esi, ecx
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
xor edi, edi
sub eax, dword [esi + 8]
sbb edi, dword [esi + 0xc]
js 0x5014a58
jg 0x5014a1e
test eax, eax
jb 0x5014a58
mov ecx, dword [esi + 4]
mov edx, ecx
xor ebx, ebx
imul edx, edx, 3
cmp edi, ebx
jg 0x5014a58
jl 0x5014a32
cmp eax, edx
ja 0x5014a58
cmp ecx, eax
jae 0x5014a4c
and dword [ebp - 4], 0
sub eax, ecx
mov ecx, dword [esi]
push eax
call fcn.05014966
jmp 0x5014a58
jbe 0x5014a58
sub ecx, eax
push ecx
mov ecx, dword [esi]
call fcn.0501498c
call fcn.0507039c
ret

Function at 0x5014a70
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, dword [esp + 0xc]
je 0x5014aa0
mov edi, edi
movzx edx, byte [edi]
mov eax, dword [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [ecx + edx*4 + 4]
sub esi, 1
add edi, 1
test esi, esi
mov dword [ecx], eax
jne 0x5014a80
pop edi
pop esi
ret 8

Function at 0x5014b30
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov byte [ecx + 0x58], al
ret

Function at 0x5015780
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
lea esi, [ecx + 4]
mov eax, edx
shr eax, 1
test dl, 1
mov dword [ecx], edx
je 0x5015796
xor eax, 0xedb88320
test al, 1
mov dword [ecx], eax
je 0x50157a5
shr eax, 1
xor eax, 0xedb88320
jmp 0x50157a7
shr eax, 1
test al, 1
mov dword [ecx], eax
je 0x50157b6
shr eax, 1
xor eax, 0xedb88320
jmp 0x50157b8
shr eax, 1
test al, 1
mov dword [ecx], eax
je 0x50157c7
shr eax, 1
xor eax, 0xedb88320
jmp 0x50157c9
shr eax, 1
test al, 1
mov dword [ecx], eax
je 0x50157d8
shr eax, 1
xor eax, 0xedb88320
jmp 0x50157da
shr eax, 1
test al, 1
mov dword [ecx], eax
je 0x50157e9
shr eax, 1
xor eax, 0xedb88320
jmp 0x50157eb
shr eax, 1
test al, 1
mov dword [ecx], eax
je 0x50157fa
shr eax, 1
xor eax, 0xedb88320
jmp 0x50157fc
shr eax, 1
test al, 1
mov dword [ecx], eax
je 0x501580b
shr eax, 1
xor eax, 0xedb88320
jmp 0x501580d
shr eax, 1
mov dword [ecx], eax
mov dword [esi], eax
add edx, 1
add esi, 4
cmp edx, 0x100
jb 0x5015786
call fcn.05014a60
mov eax, ecx
pop esi
ret

Function at 0x5015a07
Capabilities:
Get common file path

Disassembly:
push 0x104
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x5015a1d
xor al, al
ret
cmp dword [esp + 4], 0
mov eax, str.Color_
je 0x5015a2e
mov eax, str._spooldriverscolor_
push eax
push dword [esp + 0xc]
call fcn.050268a4
pop ecx
pop ecx
ret
Function at 0x5017184
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x509ddfc]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x60
mov eax, 0x50726dd
call fcn.050702f7
mov eax, dword [ebp + 0x110]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x114]
mov esi, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
add eax, 0x60
push 0x8164
push eax
mov dword [ebp - 0x20], esi
call fcn.050148cd
pop ecx
pop ecx
lea eax, [ebp]
call fcn.05015bc8
xor ebx, ebx
cmp al, bl
mov byte [ebp - 0x15], al
je 0x50172b2
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.050268f3
push 0x14
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.05026945
cmp dword [ebp - 0x68], 0x41535043
jne 0x501724c
cmp dword [ebp - 0x64], 4
jne 0x501724c
mov eax, dword [ebp - 0x5c]
cmp eax, dword [esi + 8]
jne 0x501724c
mov eax, dword [ebp - 0x58]
cmp eax, dword [esi + 0xc]
jne 0x501724c
xor edi, edi
cmp edi, dword [esi + 8]
jae 0x501723c
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.050170df
inc edi
jmp 0x5017229
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0502691d
jmp 0x501737f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0502691d
or dword [ebp - 4], 0xffffffff
jmp 0x5017283
lea eax, [ebp]
push eax
call sub.MSVCR80.dll_remove
xor edi, edi
cmp dword [esi + 0x10], ebx
pop ecx
jbe 0x50172af
mov dword [ebp - 0x14], ebx
mov ecx, dword [esi + 0x14]
add ecx, dword [ebp - 0x14]
call fcn.05016a95
add dword [ebp - 0x14], 0x148
inc edi
cmp edi, dword [esi + 0x10]
jb 0x5017297
mov dword [esi + 0x10], ebx
cmp byte [ebp - 0x15], bl
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
je 0x501736c
push 0x41434520
push 0x3f3f3f3f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 3
call fcn.0502725c
mov eax, dword [esi + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x44], eax
push 0x14
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x54], 0x41535043
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x4c], ebx
call fcn.050269e6
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push 0x5016fcc
call fcn.05015da0
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0502691d
jmp 0x501737f
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x40]
push eax
push 0x5016fcc
call fcn.05015da0
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.05070186
add ebp, 0x108
leave
ret 8
Function at 0x5026945
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push dword [ecx]
mov edi, dword [esp + 0x18]
push edi
push 1
push ebx
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, edi
sbb esi, esi
mov ecx, 0x656f6620
and esi, ecx
cmp esi, ecx
jne 0x502697e
sub edi, eax
push edi
add eax, ebx
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
test esi, esi
je 0x5026988
push esi
call fcn.05004c30
pop edi
pop esi
pop ebx
ret 8

Function at 0x50269e6
Capabilities:
Write file on windows

Disassembly:
push dword [ecx]
push dword [esp + 0xc]
push 1
push dword [esp + 0x10]
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp eax, dword [esp + 8]
sbb eax, eax
and eax, 0x656f6620
je 0x5026a0e
push eax
call fcn.05004c30
ret 8

Function at 0x5026ae6
Capabilities:
Delete file
Move file

Disassembly:
push esi
push dword [esp + 8]
mov esi, dword [sym.imp.MSVCR80.dll_remove]
call esi
push dword [esp + 0xc]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll_rename]
add esp, 0xc
test eax, eax
je 0x5026b1a
push dword [esp + 0xc]
call esi
mov dword [esp], 0x666c636b
call fcn.05004c30
pop esi
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5026b2e
xor al, al
ret
shr eax, 4
and eax, 1
ret

Function at 0x5026b35
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.05026b1c
test al, al
pop ecx
je 0x5026b49
mov al, 1
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5026b66
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
neg eax
pop esi
ret
xor al, al
pop esi
ret
Function at 0x5026bcb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp byte [ebp + 0x10], bl
push esi
push ebx
push ebx
je 0x5026c59
neg al
sbb eax, eax
and eax, 0x8000
add eax, 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x5026bff
xor al, al
jmp 0x5026cd8
push esi
call sub.MSVCR80.dll_strlen
test eax, eax
pop ecx
je 0x5026bf8
push esi
call sub.MSVCR80.dll_strlen
cmp byte [eax + esi - 1], 0x5c
pop ecx
je 0x5026c29
push 0x507a6cc
push esi
call fcn.050268a4
test al, al
pop ecx
pop ecx
je 0x5026bf8
push str.Adobe_
push esi
call fcn.050268a4
test al, al
pop ecx
pop ecx
je 0x5026bf8
push esi
call fcn.05026b1c
test al, al
pop ecx
je 0x5026c4c
mov al, 1
jmp 0x5026cd8
cmp byte [ebp + 0xc], bl
je 0x5026bf8
push esi
call fcn.05026b35
jmp 0x5026cd7
neg al
sbb eax, eax
and eax, 0x8000
add eax, 0x2b
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x5026bf8
push esi
call sub.MSVCR80.dll_strlen
test eax, eax
pop ecx
je 0x5026bf8
push esi
call sub.MSVCR80.dll_strlen
cmp byte [eax + esi - 1], 0x5c
pop ecx
je 0x5026ca3
push 0x507a6cc
push esi
call fcn.050268a4
test al, al
pop ecx
pop ecx
je 0x5026bf8
push str.Adobe_
push esi
call fcn.050268a4
test al, al
pop ecx
pop ecx
je 0x5026bf8
push esi
call fcn.05026b1c
test al, al
pop ecx
jne 0x5026c45
cmp byte [ebp + 0xc], bl
je 0x5026bf8
push esi
call fcn.05026b35
test al, al
setne al
pop ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x5026f63
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1dc]
sub esp, 0x25c
mov eax, dword [0x509ddfc]
xor eax, ebp
mov dword [ebp + 0x1d8], eax
mov eax, dword [ebp + 0x1e4]
push ebx
mov ebx, dword [ebp + 0x1f8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1e8]
push esi
mov esi, dword [ebp + 0x1f0]
mov dword [ebp - 0x7c], ecx
xor ecx, ecx
cmp ebx, ecx
push edi
mov edi, dword [ebp + 0x1ec]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x1f4]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x80], esi
mov dword [eax], ecx
je 0x5026fd3
mov word [ebx], cx
mov word [ebx + 2], cx
mov word [ebx + 4], cx
mov word [ebx + 6], cx
mov word [ebx + 8], cx
mov word [ebx + 0xa], cx
mov eax, dword [ebp - 0x7c]
cmp byte [eax + 0x104], 0
jne 0x5027037
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.05026860
test al, al
pop ecx
pop ecx
je 0x502716b
lea eax, [ebp - 0x6c]
push 0x507b2ec
push eax
call fcn.050268a4
test al, al
pop ecx
pop ecx
je 0x502716b
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x108], eax
je 0x502716b
mov byte [ecx + 0x104], 1
jmp 0x5027052
lea ecx, [ebp + 0x98]
push ecx
push dword [eax + 0x108]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x502716b
lea eax, [ebp + 0xc4]
push 0x507a728
push eax
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x5026fd3
lea eax, [ebp + 0xc4]
push 0x507b2e8
push eax
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x5026fd3
push dword [ebp - 0x7c]
push dword [ebp - 0x74]
call fcn.05026860
test al, al
pop ecx
pop ecx
je 0x5026fd3
lea eax, [ebp + 0xc4]
push eax
push dword [ebp - 0x74]
call fcn.050268a4
test al, al
pop ecx
pop ecx
je 0x5026fd3
push 0x507b2e4
push dword [ebp - 0x74]
mov byte [edi], 0
mov byte [esi], 0
call fcn.05026d0b
test al, al
pop ecx
pop ecx
je 0x50270e9
push dword [ebp - 0x70]
push dword [ebp - 0x74]
call fcn.05026d71
test al, al
pop ecx
pop ecx
je 0x5026fd3
mov byte [edi], 1
jmp 0x5027101
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x78]
push 0x41
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp byte [eax], 0
mov esi, dword [ebp - 0x80]
je 0x5027115
mov edi, eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5026fd3
jmp 0x502711e
mov eax, dword [ebp + 0x98]
mov edi, dword [ebp - 0x78]
shr eax, 4
and al, 1
mov byte [esi], al
je 0x5027156
push dword [ebp - 0x70]
call sub.MSVCR80.dll_strlen
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x70]
cmp byte [ecx + eax - 1], 0x5c
je 0x5027151
push 0x507a6cc
push eax
call fcn.050268a4
test al, al
pop ecx
pop ecx
je 0x5026fd3
cmp byte [esi], 0
jne 0x502717e
test ebx, ebx
je 0x502717e
cmp byte [edi], 0
je 0x502716f
push ebx
push dword [ebp - 0x70]
call fcn.05026ec7
pop ecx
jmp 0x502717d
xor al, al
jmp 0x5027180
lea eax, [ebp + 0xac]
push eax
mov esi, ebx
call fcn.05026e56
pop ecx
mov al, 1
mov ecx, dword [ebp + 0x1d8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.05070186
add ebp, 0x1dc
leave
ret 0x18
Function at 0x502725c
Capabilities:
Delete file

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call sub.MSVCR80.dll_remove
mov dword [esp], 0x507b2f0
push dword [esp + 0xc]
call dword [sym.imp.MSVCR80.dll_fopen]
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x502728b
push 0x696f2020
call fcn.05004c30
mov eax, esi
pop esi
ret 0xc
Function at 0x5030655
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xbc]
sub esp, 0x13c
mov eax, dword [0x509ddfc]
xor eax, ebp
mov dword [ebp + 0xb8], eax
mov eax, dword [ebp + 0xc4]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x80], eax
xor ebx, ebx
lea eax, [ebp - 0x64]
push eax
mov edi, 0x20019
push edi
push ebx
push str.SOFTWARE
push 0x80000002
mov byte [ebp - 0x59], bl
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
je 0x50306b9
mov dword [ebp - 0x64], ebx
jmp 0x5030809
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
push str.Adobe
push dword [ebp - 0x64]
call esi
test eax, eax
je 0x50306d5
mov dword [ebp - 0x68], ebx
jmp 0x5030809
lea eax, [ebp - 0x6c]
push eax
push edi
push ebx
push str.Color
push dword [ebp - 0x68]
call esi
test eax, eax
je 0x50306f1
mov dword [ebp - 0x6c], ebx
jmp 0x5030809
lea eax, [ebp - 0x60]
push eax
push edi
push ebx
push str.Monitor
push dword [ebp - 0x6c]
call esi
test eax, eax
je 0x503070d
mov dword [ebp - 0x60], ebx
jmp 0x5030809
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.Primary_Monitor
push dword [ebp - 0x60]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x503074d
cmp dword [ebp - 0x74], 4
jne 0x503074d
mov eax, dword [ebp - 0x58]
cmp eax, 0x3e7
mov dword [ebp - 0x7c], eax
ja 0x5030809
push dword [ebp - 0x7c]
lea eax, [ebp + 0xac]
push str.Monitor_u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push edi
push ebx
lea eax, [ebp + 0xac]
push eax
push dword [ebp - 0x60]
call esi
test eax, eax
je 0x50307c7
mov dword [ebp - 0x70], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x60], ebx
je 0x503078e
push dword [ebp - 0x60]
call esi
cmp dword [ebp - 0x6c], ebx
je 0x5030798
push dword [ebp - 0x6c]
call esi
cmp dword [ebp - 0x68], ebx
je 0x50307a2
push dword [ebp - 0x68]
call esi
cmp dword [ebp - 0x64], ebx
je 0x50307ac
push dword [ebp - 0x64]
call esi
mov ecx, dword [ebp + 0xb8]
mov al, byte [ebp - 0x59]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.05070186
add ebp, 0xbc
leave
ret
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.Monitor_Profile
push dword [ebp - 0x70]
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5030809
cmp dword [ebp - 0x74], 1
jne 0x5030809
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x80]
call fcn.05026860
test al, al
pop ecx
pop ecx
je 0x5030809
mov byte [ebp - 0x59], 1
cmp dword [ebp - 0x70], ebx
je 0x503077e
push dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
jmp 0x5030784
Function at 0x5030822
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x3a4
lea ebp, [esp - 4]
mov eax, dword [0x509ddfc]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push 0x2c
mov eax, 0x5073618
call fcn.050702f7
mov ecx, dword [ebp + 0x3b0]
mov edx, dword [ebp + 0x3b4]
lea eax, [ebp + 0x198]
push eax
mov dword [ebp - 0x14], ecx
call fcn.05030309
test al, al
pop ecx
jne 0x503087e
lea eax, [ebp + 0x198]
push eax
call fcn.05030655
test al, al
pop ecx
jne 0x503087e
xor eax, eax
jmp 0x5030a3b
lea eax, [ebp]
push eax
mov dword [ebp], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5030a2a
cmp dword [ebp + 4], 6
sbb al, al
inc al
je 0x5030a2a
lea eax, [ebp + 0x198]
push eax
call sub.MSVCR80.dll_strlen
cmp eax, 5
pop ecx
jbe 0x5030a2a
mov ebx, dword [sym.imp.MSVCR80.dll_strncpy]
lea eax, [ebp + eax + 0x193]
push 5
push eax
lea eax, [ebp + 0x39c]
push eax
call ebx
xor edi, edi
add esp, 0xc
inc edi
lea esi, [ebp + edi + 0x39c]
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR80.dll_tolower]
inc edi
cmp edi, 5
pop ecx
mov byte [esi], al
jl 0x50308da
push 5
lea eax, [ebp + 0x39c]
push str..cdmp
push eax
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x5030a2a
lea eax, [ebp + 0x94]
push eax
call fcn.05015b8b
test al, al
pop ecx
je 0x5030a05
mov edi, dword [sym.imp.MSVCR80.dll_strrchr]
lea eax, [ebp + 0x198]
push 0x5c
push eax
call edi
mov esi, eax
lea eax, [ebp + 0x198]
push 0x2e
push eax
inc esi
call edi
mov edi, eax
sub edi, esi
push edi
lea eax, [ebp + 0x29c]
push esi
push eax
call ebx
lea eax, [ebp + 0x29c]
push eax
lea eax, [ebp + 0x94]
xor ebx, ebx
push eax
mov byte [ebp + edi + 0x29c], bl
call fcn.050268a4
lea eax, [ebp + 0x94]
push str..icc
push eax
call fcn.050268a4
add esp, 0x2c
lea eax, [ebp + 0x94]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.050268f3
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x198]
push eax
mov byte [ebp - 4], 1
call fcn.05026ec7
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x94]
push eax
call fcn.05026ec7
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.050413ff
cmp eax, 0xffffffff
pop ecx
pop ecx
jne 0x50309f6
lea eax, [ebp + 0x94]
push eax
push dword [ebp - 0x14]
call fcn.05042360
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.0502691d
mov eax, esi
jmp 0x5030a3b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0502691d
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x14]
call fcn.05028192
add esp, 0xc
test al, al
je 0x5030a2a
mov eax, dword [ebp - 0x20]
jmp 0x5030a3b
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x14]
call fcn.05042360
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a4]
xor ecx, ebp
call fcn.05070186
add ebp, 0x3a8
leave
ret
Function at 0x503987e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5073b86
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x13fc
call fcn.050704b0
mov eax, dword [0x509ddfc]
xor eax, esp
mov dword [esp + 0x13f8], eax
push ebx
push esi
push edi
mov eax, dword [0x509ddfc]
xor eax, esp
push eax
lea eax, [esp + 0x1410]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
xor ebx, ebx
add eax, 0x60
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
call fcn.050148cd
cmp dword [edi], ebx
pop ecx
pop ecx
jne 0x50398fe
mov eax, dword [esi + 4]
push ebx
push 0x753
push 0xb71b
push eax
call fcn.05062683
add esp, 0x10
mov dword [edi], eax
mov ecx, esi
mov dword [esp + 0x2c], esi
call fcn.0503f80c
mov dword [esp + 0x1418], ebx
lea ecx, [esp + 0x13d4]
mov dword [esp + 0x14], 0xc
mov eax, dword [esp + 0x14]
xor edx, edx
push 0x18
pop edi
div edi
add dword [esp + 0x14], 0x8000
mov word [ecx], ax
inc ecx
inc ecx
cmp dword [esp + 0x14], 0xc800c
jb 0x503991f
lea eax, [esp + 0x13d4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
mov ebx, 0x504c4142
jmp 0x503995b
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
movzx eax, word [eax]
and dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x14]
movzx edx, word [esp + edx*2 + 0x13d4]
xor ecx, ecx
mov di, word [esp + 0x1c]
mov word [eax - 2], di
mov di, word [esp + ecx*2 + 0x13d4]
mov word [eax], dx
mov word [eax + 2], di
inc ecx
add eax, 8
cmp ecx, 0x19
jb 0x503997d
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x19
jb 0x503996f
push 0
push ebx
push ebx
push 0x271
lea eax, [esp + 0x5c]
push eax
push eax
mov ecx, esi
call fcn.0506bbf5
mov eax, dword [esp + 0x28]
push 1
push 0x753
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [eax]
call fcn.050623fb
lea ecx, [esp + 0x38]
mov byte [esp + 0x1418], 1
call fcn.05062448
lea edi, [esp + 0x4c]
lea esi, [eax + 2]
mov dword [esp + 0x1c], 0x19
mov dword [esp + 0x14], 0x19
mov eax, dword [edi]
mov ecx, dword [edi + 4]
shr eax, 0x10
imul eax, eax, 0xff
add eax, 0x4000
shr eax, 0xf
mov byte [esi - 2], al
movzx eax, cx
push eax
mov dword [esp + 0x38], ecx
call fcn.05030efb
mov byte [esi - 1], al
movzx eax, word [esp + 0x3a]
push eax
call fcn.05030efb
mov byte [esi], al
pop ecx
add esi, 3
add edi, 8
dec dword [esp + 0x18]
pop ecx
jne 0x5039a01
dec dword [esp + 0x1c]
jne 0x50399f9
lea ecx, [esp + 0x38]
mov byte [esp + 0x1418], 0
call fcn.0506242e
add dword [esp + 0x18], 0x753
add dword [esp + 0x20], 2
cmp dword [esp + 0x18], 0xb71b
jb 0x5039957
mov ecx, dword [esp + 0x24]
or dword [esp + 0x1418], 0xffffffff
call fcn.0503f832
mov ecx, dword [esp + 0x1410]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13f8]
xor ecx, esp
call fcn.05070186
mov esp, ebp
pop ebp
ret 4
Function at 0x5039be7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5073c0b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1414
call fcn.050704b0
push ebx
push esi
push edi
mov eax, dword [0x509ddfc]
xor eax, esp
push eax
lea eax, [esp + 0x1428]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ecx
call fcn.0503f80c
mov dword [esp + 0x1430], esi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
push 0xf
xor edx, edx
pop ecx
div ecx
and dword [esp + 0x10], 0
lea ecx, [esp + 0x26]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
push 0xf
xor edx, edx
pop esi
div esi
xor esi, esi
mov ebx, eax
mov al, byte [esp + 0x1c]
mov byte [ecx - 1], al
push 0xf
mov eax, esi
xor edx, edx
pop edi
div edi
mov byte [ecx], bl
add esi, 0xff
mov edi, 0xff0
add ecx, 4
cmp esi, edi
mov byte [ecx - 3], al
jb 0x5039c62
add dword [esp + 0x10], 0xff
cmp dword [esp + 0x10], edi
jb 0x5039c53
mov ecx, dword [ebp + 8]
push 0
push 0x5058595a
push 0x706c6162
mov esi, 0x100
push esi
lea eax, [esp + 0xc34]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0506bbf5
push esi
lea eax, [esp + 0x428]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [0x50a01a4]
add esp, 0xc
xor ecx, ecx
mov dword [esp + 0x10], esi
movzx edx, word [esp + ecx + 0x426]
movzx eax, word [esp + ecx + 0xc26]
sub eax, edx
jns 0x5039cf1
neg eax
movzx edx, word [esp + ecx + 0x428]
mov ebx, eax
movzx eax, word [esp + ecx + 0xc28]
sub eax, edx
jns 0x5039d09
neg eax
movzx esi, word [esp + ecx + 0x42a]
mov edx, eax
movzx eax, word [esp + ecx + 0xc2a]
sub eax, esi
jns 0x5039d21
neg eax
cmp dword [esp + 0x14], ebx
jge 0x5039d2b
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], edx
jge 0x5039d35
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], eax
jge 0x5039d3f
mov dword [esp + 0x14], eax
add ecx, 8
dec dword [esp + 0x10]
jne 0x5039cdb
cmp dword [esp + 0x14], 0xa
ja 0x5039d65
add dword [esp + 0x18], 0xff
cmp dword [esp + 0x18], edi
jb 0x5039c3b
mov bl, 1
jmp 0x5039d67
xor bl, bl
mov ecx, dword [ebp + 8]
or dword [esp + 0x1430], 0xffffffff
call fcn.0503f832
mov al, bl
mov ecx, dword [esp + 0x1428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret