joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ff5a8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
nop
nop
cmp dword [ebp - 4], esp
je 0x4ff5df
push 0x24
push 0x4394efa
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
mov eax, 0
sete al
jmp 0x4ff5f3
mov esp, ebp
pop ebp
ret 4

Function at 0x4ff6d4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0x834e83
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
xor eax, eax
call dword [sym.imp.shell32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x4ff722
push 0x24
push 0x430ccb9
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x4ff73e
mov eax, 0
jmp 0x4ff748
mov eax, 1
jmp 0x4ff748
mov esp, ebp
pop ebp
ret 0x14
Function at 0x537ef4
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0xf0000000
push 0x18
push 0x834e83
push 0x834e83
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x537f4c
push 0x24
push 0x4396e36
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x537fb1
mov dword [ebp - 0xc], esp
push 0
push 0x18
push 0x834e83
push 0x834e83
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x537f9a
push 0x7d
push 0x4396e36
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x537fb1
mov eax, 0x834e87
jmp 0x53802a
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00538044
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x537fd6
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x53800b
push 0x120
push 0x4396e36
push 6
call fcn.005769b1
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x538025
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x53802a
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x53803b
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x53f67c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0x8000
jg 0x53f796
je 0x53f78d
cmp eax, 0x80
jg 0x53f713
je 0x53f70a
cmp eax, 8
jg 0x53f6dc
je 0x53f6d3
cmp eax, 0x80000000
je 0x53f6ca
cmp eax, 2
je 0x53f6c1
cmp eax, 4
jne 0x53f879
mov eax, 2
pop ebp
ret 4
mov eax, 1
pop ebp
ret 4
mov eax, 0x1f
pop ebp
ret 4
mov eax, 3
pop ebp
ret 4
cmp eax, 0x10
je 0x53f701
cmp eax, 0x20
je 0x53f6f8
cmp eax, 0x40
jne 0x53f879
mov eax, 6
pop ebp
ret 4
mov eax, 5
pop ebp
ret 4
mov eax, 4
pop ebp
ret 4
mov eax, 7
pop ebp
ret 4
cmp eax, 0x800
jg 0x53f759
je 0x53f750
cmp eax, 0x100
je 0x53f747
cmp eax, 0x200
je 0x53f73e
cmp eax, 0x400
jne 0x53f879
mov eax, 0xa
pop ebp
ret 4
mov eax, 9
pop ebp
ret 4
mov eax, 8
pop ebp
ret 4
mov eax, 0xb
pop ebp
ret 4
cmp eax, 0x1000
je 0x53f784
cmp eax, 0x2000
je 0x53f77b
cmp eax, 0x4000
jne 0x53f879
mov eax, 0xe
pop ebp
ret 4
mov eax, 0xd
pop ebp
ret 4
mov eax, 0xc
pop ebp
ret 4
mov eax, 0xf
pop ebp
ret 4
cmp eax, 0x800000
jg 0x53f822
je 0x53f819
cmp eax, 0x80000
jg 0x53f7e9
je 0x53f7e0
cmp eax, 0x10000
je 0x53f7d7
cmp eax, 0x20000
je 0x53f7ce
cmp eax, 0x40000
jne 0x53f879
mov eax, 0x12
pop ebp
ret 4
mov eax, 0x11
pop ebp
ret 4
mov eax, 0x10
pop ebp
ret 4
mov eax, 0x13
pop ebp
ret 4
cmp eax, 0x100000
je 0x53f810
cmp eax, 0x200000
je 0x53f807
cmp eax, 0x400000
jne 0x53f879
mov eax, 0x16
pop ebp
ret 4
mov eax, 0x15
pop ebp
ret 4
mov eax, 0x14
pop ebp
ret 4
mov eax, 0x17
pop ebp
ret 4
cmp eax, 0x8000000
jg 0x53f864
je 0x53f85b
cmp eax, 0x1000000
je 0x53f852
cmp eax, 0x2000000
je 0x53f849
cmp eax, 0x4000000
jne 0x53f879
mov eax, 0x1a
pop ebp
ret 4
mov eax, 0x19
pop ebp
ret 4
mov eax, 0x18
pop ebp
ret 4
mov eax, 0x1b
pop ebp
ret 4
cmp eax, 0x10000000
je 0x53f891
cmp eax, 0x20000000
je 0x53f888
cmp eax, 0x40000000
je 0x53f87f
xor eax, eax
pop ebp
ret 4
mov eax, 0x1e
pop ebp
ret 4
mov eax, 0x1d
pop ebp
ret 4
mov eax, 0x1c
pop ebp
ret 4
Function at 0x578190
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x578210
push edi
call dword [0x866f4f]
add esp, 4
test eax, eax
jbe 0x578210
test esi, esi
je 0x5781ce
cmp esi, 0xffffffff
je 0x5781ce
push esi
call dword [sym.imp.kernel32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x578252
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x5781fc
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x578210
jmp 0x57820b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x578210
mov ebp, 1
test esi, esi
je 0x578252
cmp esi, 0xffffffff
je 0x578252
test ebp, ebp
jne 0x578289
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x57825f
call edi
test eax, eax
je 0x578252
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x578289
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x57823a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x578252
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x578289
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x57826c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x866f4f]
inc eax
push eax
call fcn.00576fa0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x579160
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x57917e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x579173
pop esi
ret
Function at 0x579420
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA_1]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x5794b2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x5794a4
mov ebp, dword [sym.imp.kernel32.dll_WriteFile_1]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x57949c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x579465
push edi
call dword [sym.imp.kernel32.dll_CloseHandle_1]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle_1]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x57b8e0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x57b8ee
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.0057e700
add esp, 4
test eax, eax
jne 0x57b900
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
je 0x57b91e
cmp ecx, 3
je 0x57b91e
cmp ecx, 2
jne 0x57b92d
mov ecx, dword [esi + 4]
call fcn.0057e550
pop esi
ret
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileSize_1]
pop esi
ret

Function at 0x57b930
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x57b945
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
call fcn.0057e700
add esp, 4
test eax, eax
jne 0x57b958
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
test esi, esi
jg 0x57b968
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi]
xor ebx, ebx
cmp eax, 1
jne 0x57b9c1
mov edi, dword [edi + 4]
push esi
call fcn.005e31ac
add esp, 4
mov ebp, eax
lea eax, [esp + 0x1c]
push ebx
push eax
push esi
push ebp
push edi
call dword [sym.imp.kernel32.dll_ReadFile_1]
test eax, eax
jne 0x57b9a3
push ebp
call fcn.005e31d5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
call fcn.0057dc80
push ebp
mov ebx, eax
call fcn.005e31d5
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, 2
jne 0x57ba0c
mov edi, dword [edi + 4]
lea edx, [esi + 8]
push edx
call fcn.00576fa0
mov ebx, eax
add esp, 4
lea ecx, [ebx + 8]
mov dword [ebx], 1
mov dword [ebx + 4], esi
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
jne 0x57ba01
push ebx
call fcn.00577060
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov dword [ebx + 4], eax
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
cmp eax, 3
jne 0x57ba85
mov ebx, dword [edi + 4]
push esi
call fcn.005e31ac
add esp, 4
mov ebp, eax
push 1
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer_1]
lea edx, [esp + 0x1c]
push 0
push edx
push esi
push ebp
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.kernel32.dll_ReadFile_1]
test eax, eax
jne 0x57ba55
push ebp
call fcn.005e31d5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0x10]
add edi, 0x34
push ecx
push edx
push edi
mov esi, eax
push eax
mov eax, dword [esp + 0x20]
push ebp
push eax
call fcn.0057d9f0
push esi
push ebp
call fcn.0057dc80
push ebp
mov ebx, eax
call fcn.005e31d5
add esp, 0x24
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x57d170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x57d191
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x57d1eb
inc edi
cmp edi, esi
jl 0x57d185
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x57d220
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x57d1da
cmp byte [eax], bl
je 0x57d1f5
cmp byte [eax + 1], bl
je 0x57d1fe
cmp byte [eax + 2], bl
je 0x57d208
cmp byte [eax + 3], bl
je 0x57d214
add eax, 4
cmp eax, edi
jb 0x57d1b1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x57d800
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x57d832
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x57d892
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x57d869
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x57d940
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x57d9dc
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x57d96b
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret

Function at 0x580f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [esp + 0x1c]
xor eax, eax
test esi, esi
je 0x580ff2
mov edi, dword [esp + 0x24]
test edi, edi
je 0x580ff2
mov ecx, dword [esi]
mov edx, ecx
not edx
test dl, 7
jne 0x580ff2
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x580ff2
mov ebp, dword [esi + 4]
shld ebp, ecx, 0x18
je 0x580ff2
mov esi, dword [esi + 8]
jmp 0x580f85
add ebp, 0xffffffff
je 0x580ff0
mov eax, dword [esi + 0x10]
mov esi, dword [eax + 0x10]
cmp dword [esi + 1], edi
jne 0x580f80
push edi
push ebx
push dword [esi + 8]
call fcn.005c5010
add esp, 0xc
test eax, eax
jne 0x580f80
mov esi, dword [esi + 0x10]
test esi, esi
je 0x580ff0
mov ecx, dword [esi]
mov edx, ecx
and dl, 7
cmp dl, 1
mov eax, 0
je 0x580ffc
cmp dl, 5
je 0x580ffc
cmp dl, 4
jne 0x580ff2
and ecx, 0x18
xor ecx, 0x10
jne 0x581021
fld qword [esi + 8]
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov word [esp + 2], ax
fldcw word [esp + 2]
fistp dword [esp + 4]
fldcw word [esp]
mov eax, dword [esp + 4]
jmp 0x580ff2
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [esi + 8]
test edi, edi
je 0x580ff2
movzx ecx, byte [edi]
cmp cl, 0x20
jne 0x581010
add edi, 1
jmp 0x581003
cmp cl, 0x2b
je 0x581026
cmp cl, 0x2d
jne 0x581029
add edi, 1
mov cl, 1
jmp 0x58102b
mov eax, dword [esi + 8]
jmp 0x580ff2
add edi, 1
xor ecx, ecx
mov dl, byte [edi]
mov dh, dl
add dh, 0xd0
xor eax, eax
cmp dh, 9
ja 0x58105c
add edi, 1
xor eax, eax
nop
nop
movzx edx, dl
lea esi, [eax + eax*4]
lea eax, [edx + esi*2]
add eax, 0xffffffd0
movzx edx, byte [edi]
mov dh, dl
add dh, 0xd0
add edi, 1
cmp dh, 0xa
jb 0x581040
test cl, cl
je 0x580ff2
neg eax
jmp 0x580ff2
Function at 0x581070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
sub esp, 8
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
je 0x581142
mov edx, dword [ecx]
mov ebx, edx
and bl, 7
cmp bl, 1
je 0x5810ca
cmp bl, 5
je 0x5810ca
cmp bl, 4
jne 0x581142
and edx, 0x18
xor edx, 0x10
jne 0x5810fb
fld qword [ecx + 8]
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov word [esp + 2], ax
fldcw word [esp + 2]
fistp dword [esp + 4]
fldcw word [esp]
mov eax, dword [esp + 4]
jmp 0x581142
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x581142
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ecx]
cmp al, 0x20
jne 0x5810ec
add ecx, 1
jmp 0x5810e0
cmp al, 0x2b
je 0x581100
cmp al, 0x2d
jne 0x581103
add ecx, 1
mov dl, 1
jmp 0x581105
mov eax, dword [ecx + 8]
jmp 0x581142
add ecx, 1
xor edx, edx
mov bl, byte [ecx]
mov bh, bl
add bh, 0xd0
xor eax, eax
cmp bh, 9
ja 0x58113c
add ecx, 1
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, bl
lea eax, [eax + eax*4]
lea eax, [esi + eax*2]
add eax, 0xffffffd0
movzx ebx, byte [ecx]
mov bh, bl
add bh, 0xd0
add ecx, 1
cmp bh, 0xa
jb 0x581120
test dl, dl
je 0x581142
neg eax
add esp, 8
pop esi
pop ebx
ret 4

Function at 0x5812b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
sub esp, 8
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
je 0x5813b2
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x5813b2
mov edx, dword [esp + 0x18]
test edx, edx
je 0x5813b2
cmp byte [eax], 0x2f
jne 0x5813b2
push 0
push 0
push edx
push eax
push ecx
call fcn.00587b70
add esp, 0x14
test eax, eax
je 0x5813b2
mov ecx, dword [eax]
mov edx, ecx
and dl, 7
cmp dl, 1
je 0x581341
cmp dl, 5
je 0x581341
cmp dl, 4
jne 0x5813b2
and ecx, 0x18
xor ecx, 0x10
jne 0x58136e
fld qword [eax + 8]
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov word [esp + 2], ax
fldcw word [esp + 2]
fistp dword [esp + 4]
fldcw word [esp]
mov esi, dword [esp + 4]
jmp 0x5813b2
mov eax, dword [eax + 8]
test eax, eax
je 0x5813b2
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [eax]
cmp cl, 0x20
jne 0x58135d
add eax, 1
jmp 0x581350
cmp cl, 0x2b
je 0x581373
cmp cl, 0x2d
jne 0x581376
add eax, 1
mov cl, 1
jmp 0x581378
mov esi, dword [eax + 8]
jmp 0x5813b2
add eax, 1
xor ecx, ecx
mov dl, byte [eax]
mov dh, dl
add dh, 0xd0
xor esi, esi
cmp dh, 9
ja 0x5813ac
add eax, 1
xor esi, esi
nop
nop
nop
nop
nop
movzx edx, dl
lea esi, [esi + esi*4]
lea esi, [edx + esi*2]
add esi, 0xffffffd0
movzx edx, byte [eax]
mov dh, dl
add dh, 0xd0
add eax, 1
cmp dh, 0xa
jb 0x581390
test cl, cl
je 0x5813b2
neg esi
mov eax, esi
add esp, 8
pop esi
ret 0xc
Function at 0x5813c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0
test edx, edx
je 0x5814c8
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x5814c8
mov edi, dword [edx]
mov ebx, edi
not ebx
xor eax, eax
mov ecx, 0
test bl, 7
jne 0x5814c8
xor eax, eax
cmp dword [ebp + 0xc], 0
je 0x5814c6
mov ebx, dword [edx + 4]
shld ebx, edi, 0x18
mov ecx, 0
je 0x5814c8
mov edi, dword [edx + 8]
jmp 0x581439
add ebx, 0xffffffff
je 0x5814c4
mov eax, dword [edi + 0x10]
mov edi, dword [eax + 0x10]
cmp dword [edi + 1], esi
jne 0x581430
push esi
push dword [ebp + 0xc]
push dword [edi + 8]
call fcn.005c5010
add esp, 0xc
test eax, eax
jne 0x581430
mov edx, dword [edi + 0x10]
test edx, edx
je 0x5814c4
mov eax, dword [edx]
mov ebx, eax
and bl, 7
cmp bl, 1
je 0x5814b1
cmp bl, 5
je 0x5814b1
mov esi, eax
xor eax, eax
mov ecx, 0
cmp bl, 4
jne 0x5814c8
and esi, 0x18
xor esi, 0x10
jne 0x5814e7
fld qword [edx + 8]
fnstcw word [esp + 6]
movzx eax, word [esp + 6]
or eax, 0xc00
mov word [esp + 0x16], ax
fldcw word [esp + 0x16]
fistp qword [esp + 0x18]
fldcw word [esp + 6]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x5814c8
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x5814c4
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x5814d4
add ebx, 1
jmp 0x5814b8
xor eax, eax
xor ecx, ecx
mov edx, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
cmp al, 0x2b
je 0x5814ef
cmp al, 0x2d
jne 0x5814f2
add ebx, 1
mov al, 1
mov dword [esp + 0xc], eax
jmp 0x5814fa
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
jmp 0x5814c8
add ebx, 1
mov dword [esp + 0xc], 0
mov al, byte [ebx]
mov edx, eax
add dl, 0xd0
xor ecx, ecx
mov edi, 0
mov esi, 0
cmp dl, 9
ja 0x5815f8
mov dword [esp], 0
mov dl, 1
mov dword [esp + 0x10], edx
xor esi, esi
mov dword [esp + 8], esi
add ebx, 1
xor edx, edx
xor esi, esi
mov edi, dword [esp]
jmp 0x581550
movzx eax, byte [ebx]
mov ah, al
add ah, 0xd0
add ebx, 1
cmp ah, 0xa
jae 0x5815c1
movzx eax, al
lea esi, [esi + esi*4]
lea esi, [eax + esi*2]
add esi, 0xffffffd0
test esi, esi
setle al
test byte [esp + 0x10], al
jne 0x581540
cmp edx, 7
jg 0x581571
add edx, 1
jmp 0x581540
mov eax, edi
mov edx, 0x3b9aca00
mul edx
mov dword [esp], edi
test byte [esp + 0x10], 1
jne 0x581592
mov edi, eax
imul eax, dword [esp + 8], 0x3b9aca00
add edx, eax
jmp 0x581599
mov edi, dword [esp]
mov edx, dword [esp + 8]
mov eax, esi
sar eax, 0x1f
add edi, esi
adc edx, eax
mov al, byte [ebx]
mov esi, edx
mov edx, eax
add dl, 0xd0
mov dword [esp + 0x10], 0
mov dword [esp], edi
cmp dl, 0xa
jb 0x581525
jmp 0x5815f8
test edx, edx
jle 0x5815f4
mov ebx, dword [edx*4 + 0x5ff278]
mov eax, edi
mul ebx
mov dword [esp], edi
mov edi, eax
mov eax, dword [esp + 8]
imul eax, ebx
sar ebx, 0x1f
imul ebx, dword [esp]
add ebx, edx
add eax, ebx
mov edx, esi
sar edx, 0x1f
add edi, esi
mov esi, eax
adc esi, edx
jmp 0x5815f8
mov esi, dword [esp + 8]
mov eax, edi
neg eax
sbb ecx, esi
cmp byte [esp + 0xc], 0
jne 0x5814c8
mov eax, edi
mov ecx, esi
jmp 0x5814c8
Function at 0x581a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, 0
test eax, eax
je 0x581b10
mov esi, dword [ebp + 8]
test esi, esi
je 0x581b10
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x581b10
xor edx, edx
cmp byte [eax], 0x2f
mov ecx, 0
jne 0x581b10
push 0
push 0
push edi
push eax
push esi
call fcn.00587b70
add esp, 0x14
test eax, eax
je 0x581b0c
mov ecx, dword [eax]
mov ebx, ecx
and bl, 7
cmp bl, 1
je 0x581aea
cmp bl, 5
je 0x581aea
mov esi, ecx
xor edx, edx
mov ecx, 0
cmp bl, 4
jne 0x581b10
and esi, 0x18
xor esi, 0x10
jne 0x581b31
fld qword [eax + 8]
fnstcw word [esp + 0xa]
movzx eax, word [esp + 0xa]
or eax, 0xc00
mov word [esp + 0x16], ax
fldcw word [esp + 0x16]
fistp qword [esp + 0x18]
fldcw word [esp + 0xa]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x581b10
mov edi, dword [eax + 8]
test edi, edi
je 0x581b0c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [edi]
cmp al, 0x20
jne 0x581b1e
add edi, 1
jmp 0x581b00
xor edx, edx
xor ecx, ecx
mov eax, edx
mov edx, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
cmp al, 0x2b
je 0x581b39
cmp al, 0x2d
jne 0x581b3c
add edi, 1
mov al, 1
mov dword [esp + 0x10], eax
jmp 0x581b44
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
jmp 0x581b10
add edi, 1
mov dword [esp + 0x10], 0
mov dl, byte [edi]
mov dh, dl
add dh, 0xd0
xor ecx, ecx
mov eax, 0
mov esi, 0
cmp dh, 9
ja 0x581c31
mov dword [esp + 4], 0
mov bl, 1
xor esi, esi
mov dword [esp + 0xc], esi
add edi, 1
xor eax, eax
xor esi, esi
jmp 0x581b90
movzx edx, byte [edi]
mov dh, dl
add dh, 0xd0
add edi, 1
cmp dh, 0xa
jae 0x581bf8
movzx edx, dl
lea esi, [esi + esi*4]
lea esi, [edx + esi*2]
add esi, 0xffffffd0
test esi, esi
setle dl
test bl, dl
jne 0x581b80
cmp eax, 7
jg 0x581baf
add eax, 1
jmp 0x581b80
mov eax, dword [esp + 4]
mov edx, 0x3b9aca00
mul edx
test bl, 1
jne 0x581bcd
imul ebx, dword [esp + 0xc], 0x3b9aca00
add edx, ebx
mov ebx, edx
jmp 0x581bd5
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
mov edx, esi
sar edx, 0x1f
add eax, esi
adc ebx, edx
mov dl, byte [edi]
mov dh, dl
add dh, 0xd0
mov esi, ebx
xor ebx, ebx
mov dword [esp + 4], eax
cmp dh, 0xa
jb 0x581b6c
jmp 0x581c31
test eax, eax
jle 0x581c29
mov edi, dword [eax*4 + 0x5ff278]
mov eax, dword [esp + 4]
mul edi
mov ebx, dword [esp + 0xc]
imul ebx, edi
sar edi, 0x1f
imul edi, dword [esp + 4]
add edi, edx
add ebx, edi
mov edx, esi
sar edx, 0x1f
add eax, esi
mov esi, ebx
adc esi, edx
jmp 0x581c31
mov eax, dword [esp + 4]
mov esi, dword [esp + 0xc]
mov edx, eax
neg edx
sbb ecx, esi
cmp byte [esp + 0x10], 0
jne 0x581b10
mov edx, eax
mov ecx, esi
jmp 0x581b10