joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510c00
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x510cfe
cmp word [edx], 0
je 0x510cfe
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x510c2e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x510c84
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x510c40
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x510c66
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.005117b0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
push edx
xor edx, edx
mov eax, 0xfde9
cmp ecx, 2
cmovne eax, edx
push eax
call fcn.005118d0
mov edi, eax
test edi, edi
je 0x510c7a
cmp dword [esi + 4], 0
je 0x510cd1
push dword [esp + 0x14]
push edi
push esi
call fcn.005117b0
push edi
push 0
push dword [0x694170]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x694170]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x510d40
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x510d59
push dword [0x697638]
call fcn.00522a15
pop edi
ret 4
push esi
push edi
push dword [0x697638]
call fcn.0052289b
mov esi, eax
test esi, esi
je 0x510dc3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x510daf
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x510d9e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x694170]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x697638]
call fcn.0052284c
pop esi
pop edi
ret 4

Function at 0x510dd0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x510e0c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x5112f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x697638]
call fcn.0052289b
test eax, eax
je 0x511339
cmp dword [eax + 4], 0
je 0x511323
push 2
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.005117b0
pop ecx
ret 8
push 0
lea ecx, [esp + 4]
push ecx
push 2
lea ecx, [esp + 0x18]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret 8

Function at 0x5113f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x697638]
call fcn.0052289b
test eax, eax
je 0x51143b
cmp dword [eax + 4], 0
je 0x511425
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.00511940
movsx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x511510
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x697638]
call fcn.0052289b
test eax, eax
je 0x51155d
cmp dword [eax + 4], 0
je 0x511547
push 2
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00511940
movsx eax, word [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 2
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [esp]
pop ecx
ret 4

Function at 0x511570
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x5115d5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x5115cd
push dword [esp + 0x10]
push dword [0x697638]
call fcn.0052289b
test eax, eax
je 0x5115c3
cmp dword [eax + 4], 0
je 0x5115b2
push edi
push esi
push eax
call fcn.005117b0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x511600
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x697638]
call fcn.0052289b
test eax, eax
je 0x51164b
cmp dword [eax + 4], 0
je 0x511635
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.00511940
movzx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x511660
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push dword [esp + 0x14]
push dword [0x697638]
call fcn.0052289b
test eax, eax
je 0x511742
mov ecx, dword [esp + 0x18]
cmp ecx, 2
jne 0x5116c2
lea ecx, [esp + 8]
push ecx
push eax
call fcn.00511a80
cmp eax, 1
jne 0x51169e
movzx eax, byte [esp + 8]
add esp, 0x10
ret 8
push 1
lea ecx, [esp + 4]
push ecx
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [esp]
add esp, 0x10
ret 8
mov edx, dword [eax + 4]
cmp ecx, 0x18
jne 0x511707
test edx, edx
je 0x5116e6
push 1
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.00511940
movzx eax, byte [esp + 0x14]
add esp, 0x10
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 1
lea ecx, [esp + 0x20]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 0x14]
add esp, 0x10
ret 8
test edx, edx
je 0x511722
push 2
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00511940
movzx eax, word [esp]
add esp, 0x10
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [esp]
add esp, 0x10
ret 8
xor eax, eax
add esp, 0x10
ret 8

Function at 0x511750
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x697638]
call fcn.0052289b
test eax, eax
je 0x51179c
cmp dword [eax + 4], 0
je 0x511786
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00511940
mov eax, dword [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4
Function at 0x5117b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x5118c7
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x5117fd
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x511886
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x51186f
sub eax, 1
je 0x511856
sub eax, 2
je 0x51183f
push esi
push dword [esp + 0x24]
push ecx
call fcn.004da640
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.00510dd0
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x5118b5
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x511827
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x511940
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x511963
push ebx
call fcn.00510dd0
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x20]
sub eax, esi
add eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
cmp esi, ebp
jl 0x5119e7
mov ecx, ebp
sub ecx, 1
je 0x5119d2
sub ecx, 1
je 0x5119bb
sub ecx, 2
je 0x5119a6
push ebp
push eax
push dword [esp + 0x24]
call fcn.004da640
add esp, 0xc
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov word [eax], cx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax]
mov eax, ebp
pop edi
pop esi
mov byte [ecx], dl
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.004da640
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, esi
mov ecx, dword [ebx]
sub ebp, esi
mov dword [esp + 0x1c], eax
push 0
cmp ebp, edx
jl 0x511a30
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
pop edi
add eax, esi
mov dword [ebx + 0xc], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
cmp ebp, esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
cmovle esi, ebp
push esi
push dword [ebx + 4]
push eax
call fcn.004da640
sub dword [ebx + 0xc], esi
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x511a80
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x511aa7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00511940
mov dword [esp + 4], eax
jmp 0x511ac1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x511b74
mov cl, byte [esp + 0xc]
test cl, cl
js 0x511ae6
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x511af6
mov esi, 2
jmp 0x511b12
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x511b05
mov esi, 3
jmp 0x511b12
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x511b60
mov esi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [esi - 1]
mov byte [eax], cl
inc eax
cmp dword [edi + 4], 0
je 0x511b3b
push ebx
push eax
push edi
call fcn.00511940
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop edi
pop ecx
ret 8

Function at 0x513305
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x697668]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x51332d
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x513378
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x5133d5
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x5133d5
mov eax, dword [esi + 0x70]
test eax, eax
je 0x5133b4
push ebx
push esi
call eax
push esi
push ebx
push dword [0x694170]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x697668]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x69766c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x513532
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [0x697668]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 0xac]
je 0x51355b
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x90]
add eax, edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 0x8c]
push dword [ebp + 0x10]
test ecx, ecx
je 0x513582
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push esi
call ecx
jmp 0x513590
push dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push esi
call dword [esi + 0x38]
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x513606
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x697668]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push dword [esp + 0xc]
push eax
call dword [eax + 0x24]
ret 0xc

Function at 0x513633
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x697668]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 8]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 8]
push ecx
push eax
call dword [eax + 0x54]
ret 8

Function at 0x51367e
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x697668]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0xc]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push eax
call dword [eax + 0x50]
ret 0xc

Function at 0x51373e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x697668]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [ebp + 0x14], 0
mov ecx, eax
jle 0x51377c
cmp dword [ebp + 0x18], 0
jle 0x51377c
push dword [ebp + 0x18]
mov eax, dword [ecx + 0x90]
push dword [ebp + 0x14]
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ecx + 0x8c]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
push ecx
call dword [ecx + 0x28]
pop ebp
ret 0x14
Function at 0x5137f3
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0x694170]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x697668]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x69766c], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.005167d0
mov dword [esi + 0x58], 0x5147d6
mov eax, esi
mov dword [esi + 0x5c], 0x514822
mov dword [esi + 0x10], fcn.0051430e
mov dword [esi + 0x30], 0x5140e9
mov dword [esi + 0x64], 0x5148b7
mov dword [esi + 0x60], 0x51486b
mov dword [esi + 0x34], 0x513bb4
mov dword [esi + 0x24], 0x513b8b
mov dword [esi + 0x28], 0x513b60
mov dword [esi + 0x2c], 0x513ab4
mov dword [esi + 0x44], 0x5145a6
mov dword [esi + 0x68], 0x5138b4
mov dword [esi + 0x6c], 0x514ab9
pop esi
ret 4
Function at 0x518dfb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x519007
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
imul esi, dword [esp + 0x24], 3
push edi
mov edi, 0xff
shl ebx, 2
mov dword [esp + 0x28], edx
cmp dword [esp + 0x40], edi
jne 0x518f17
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x518ee0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx edi, byte [ebp + 3]
mov esi, 0xff
movzx eax, byte [ebp + 2]
sub esi, edi
movzx ecx, byte [ebx + 2]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x518e71
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x14]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
test ecx, ecx
jne 0x518e3c
jmp 0x519003
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x518fd1
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx eax, byte [ebp + 3]
mov esi, 0xff
imul eax, dword [esp + 0x40]
movzx ecx, byte [ebx + 2]
cdq
idiv edi
mov edi, eax
movzx eax, byte [ebp + 2]
imul eax, edi
sub esi, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
mov edi, 0xff
add eax, ecx
cdq
idiv edi
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x518f58
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x18]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x518f1f
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x5199d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x519a7b
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ebx
shl ecx, 2
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x519a59
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 4]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x519a37
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x519a06
pop ebx
pop edi
pop esi
pop ebp
ret 0x24

Function at 0x519dba
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul ecx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ecx
test ebx, ebx
je 0x519e88
push ebp
mov ebp, dword [esp + 0x24]
push esi
imul esi, dword [esp + 0x2c], 3
imul eax, dword [esp + 0x24], 3
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov edx, eax
imul edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
add edi, esi
mov esi, dword [eax + 0xcc]
add edi, dword [esp + 0x20]
imul esi, ebp
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x38]
test ecx, ecx
jle 0x519e55
mov ebx, 0xff
mov ebp, ecx
sub ebx, dword [esp + 0x40]
movzx eax, byte [edi]
imul eax, dword [esp + 0x40]
movzx ecx, byte [esi]
imul ecx, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc edi
mov byte [esi], al
inc esi
sub ebp, 1
jne 0x519e28
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
xor esi, esi
dec ebx
or eax, 0xffffffff
inc esi
mov dword [esp + 0x3c], ebx
inc ebp
cmp dword [ecx + 0xe8], 0
mov ecx, dword [esp + 0x10]
cmovne eax, esi
mov dword [esp + 0x2c], ebp
mov esi, dword [esp + 0x14]
add eax, edx
test ebx, ebx
jne 0x519def
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x51a499
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x51a53c
imul ecx, dword [esp + 0x24], 3
mov eax, dword [esp + 0x28]
push ebx
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x51a51a
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 3]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x51a4f8
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x51a4c7
pop ebx
pop edi
pop esi
pop ebp
ret 0x24