joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466d00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x466d5e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x466d20
mov eax, dword [edi]
jmp 0x466e49
cmp eax, 0x4e0
jb 0x466e49
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x466d80
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x466dd0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x468788
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4687a9
jl 0x4687a0
test edi, edi
jne 0x4687a9
xor eax, eax
xor edx, edx
jmp 0x46886a
cmp dword [ebx + 0x38], 0
je 0x4687be
push eax
push edi
push dword [ebp + 8]
call fcn.00468870
jmp 0x46886a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x468805
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x468805
cmp eax, edi
jb 0x4687df
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.005c9520
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x46880b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x46885f
mov ecx, ebx
call fcn.00468020
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x46884a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.005d8237
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x46885f
jmp 0x46881d
test edx, edx
je 0x46885f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.005d8237
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4c7440
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.005c85a0
mov eax, dword [0x679dc8]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x67e314], 0
mov dword [esp], 0x617d50
mov dword [esp + 4], 0x4c6e40
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4c71f0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x4c6df0
jne 0x4c759b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4c7591
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005dc3ef
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005dc449
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x4c750f
push 0x617d50
push edi
call ebx
test eax, eax
jne 0x4c7556
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005dc3ef
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005dc449
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4c758d
push 0x617d50
push edi
call ebx
test eax, eax
je 0x4c758a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x4c758a
inc esi
cmp esi, 3
jl 0x4c7558
mov eax, dword [esp + 0x14]
mov dword [0x678fd8], eax
mov eax, dword [esp + 0x1c]
mov dword [0x678fe0], eax
mov eax, dword [esp + 0x24]
mov dword [0x678fe8], eax
jmp 0x4c758d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x67e314], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x678fd8]
call fcn.005c7d0a
add esp, 0x230
ret 4
Function at 0x4c75d0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.005c85a0
mov eax, dword [0x679dc8]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x401
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
call fcn.005c9aa0
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.005c9aa0
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.005dc563
add esp, 0x28
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4c779f
cmp word [ebx + 8], 2
jne 0x4c76c2
cmp word [ebx + 0xa], 4
jne 0x4c76c2
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4c76c2
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.004c77f0
mov dword [edi], eax
test eax, eax
je 0x4c7798
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x4c7690
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.005dc563
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x4c774f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c76e6
sub ecx, edx
je case.0x4c77af.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c7720
test dl, dl
je 0x4c771c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c7720
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c7700
xor eax, eax
jmp 0x4c7725
sbb eax, eax
or eax, 1
test eax, eax
je case.0x4c77af.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x4c77af.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x4c7652
mov esi, 0x2afb
jmp 0x4c77c2
cmp dword [esp + 0x844], esi
je 0x4c77c2
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c7760
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.005d2307
mov edi, eax
add esp, 8
test edi, edi
je 0x4c7788
push ebp
push ebx
push edi
call fcn.005dc3ef
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x4c77c2
mov esi, 8
jmp 0x4c77c2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4c77af.11001
jmp dword [eax*4 + 0x4c77e0]
mov esi, 0x2afa
jmp 0x4c77c2
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c7d0a
add esp, 0x820
ret 0x18
Function at 0x4ce670
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.00512560
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005cb350
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x4ce71b
call fcn.004a9920
push str.BIO_new_file
push edi
push 0x66fd1f
call fcn.004a9a20
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.004a9a30
add esp, 0x14
call fcn.005cd0b0
cmp dword [eax], 2
je 0x4ce6ed
call fcn.005cd0b0
mov esi, 0x80002
cmp dword [eax], 6
jne 0x4ce6f2
mov esi, 0x80
call fcn.004a9920
push str.BIO_new_file
push 0
push 0x66fd1f
call fcn.004a9a20
push 0
push esi
push 0x20
call fcn.004a9a30
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x6182c0
call fcn.004a78f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ce73d
push edi
call fcn.005d7cde
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x8000
push esi
call fcn.004a7190
push edi
push ebx
push 0x6a
push esi
call fcn.004a71c0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4e0610
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.005c85a0
mov edx, dword [esp + 0x2c]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x1c]
or ecx, 0xffffffff
cmp edx, 1
push esi
setne al
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x3c]
add eax, edi
mov dword [esp + 0x1c], esi
cmp eax, esi
jbe 0x4e0649
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebp
cmp edx, 1
je 0x4e0730
mov ebp, dword [esp + 0x30]
dec ebp
add ebp, esi
cmp dword [esp + 0x44], 0
mov cl, byte [ebp]
movzx edx, cl
mov byte [esp + 0x13], cl
mov dword [esp + 0x14], edx
je 0x4e0697
mov eax, dword [esp + 0x34]
sub esi, edx
sub esi, edi
dec esi
mov dword [ebx], esi
mov dword [eax], 0
mov eax, dword [esp + 0x38]
pop ebp
pop edi
pop esi
mov dword [eax], 0
mov eax, 1
pop ebx
add esp, 0x14
ret
lea ecx, [edx + eax]
mov ebx, esi
sub ebx, ecx
mov eax, esi
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x4e0710
mov esi, edx
shr edx, 0x1f
mov dword [esp + 0x1c], edx
nop dword [eax]
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [ebp + 1]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esp + 0x13]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x18]
jb 0x4e06d0
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
lea eax, [edx + 1]
mov edx, dword [esp + 0x3c]
not ebx
movzx ecx, bl
mov ebx, dword [esp + 0x28]
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [ebx], esi
push dword [esp + 0x48]
push ecx
push edi
push edx
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push ebx
call fcn.004e0310
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4e4f80
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x67e4a8], 0
jne 0x4e5013
push 0x190
push 0
push 0x67e4b0
mov dword [0x67e4a8], 1
call fcn.005c9aa0
add esp, 0xc
push 0x67e4b0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4e5013
call fcn.004a9920
push str.BIO_sock_init
push 0
push 0x66fd1f
call fcn.004a9a20
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a9a30
call fcn.004a9920
push str.BIO_sock_init
push 0
push 0x66fd1f
call fcn.004a9a20
push 0
push 0x7a
push 0x20
call fcn.004a9a30
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x4e5020
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x4e5072
call fcn.004a9920
push str.BIO_socket_ioctl
push 0
push 0x66fd1f
call fcn.004a9a20
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a9a30
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x4e5280
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.005c85a0
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x4e52c8
call fcn.004a9920
push str.BIO_connect
push 0
push 0x66fd1f
call fcn.004a9a20
push 0
push 0x87
push 0x20
call fcn.004a9a30
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 3
push esi
and eax, 1
push eax
push edi
call fcn.004e5020
add esp, 8
test eax, eax
je 0x4e5357
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x4e535e
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x4e535e
call fcn.004a9920
push str.BIO_connect
push 0
push 0x66fd1f
call fcn.004a9a20
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a9a30
call fcn.004a9920
push str.BIO_connect
push 0
push 0x66fd1f
call fcn.004a9a20
push 0
push 0x89
push 0x20
call fcn.004a9a30
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x4e53cf
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x4e53cf
call fcn.004a9920
push str.BIO_connect
push 0
push 0x66fd1f
call fcn.004a9a20
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a9a30
call fcn.004a9920
push str.BIO_connect
push 0
push 0x66fd1f
call fcn.004a9a20
push 0
push 0x8a
push 0x20
call fcn.004a9a30
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.004c6a50
add esp, 4
push eax
push esi
call fcn.004c6a40
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4e545b
push eax
call fcn.004a84e0
add esp, 4
test eax, eax
jne 0x4e5357
call fcn.004a9920
push str.BIO_connect
push 0
push 0x66fd1f
call fcn.004a9a20
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a9a30
call fcn.004a9920
push str.BIO_connect
push 0
push 0x66fd1f
call fcn.004a9a20
push 0
push 0x67
push 0x20
call fcn.004a9a30
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret

Function at 0x4ec7d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4ec7e4
mov dword [esp + 4], eax
jmp fcn.004c06d0
or eax, 0xffffffff
ret
Function at 0x4f8d80
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
movzx eax, cl
and eax, 1
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x4f8dc2
push ebx
add edi, esi
lea ebx, [edx + esi]
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x4f8da2
pop ebx
pop edi
pop esi
ret

Function at 0x50ceb0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x50cec8
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x50cecd
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x50cfa5
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, 3
jb 0x50cf39
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x50cf85
shl eax, 0x10
cmp esi, 2
jne 0x50cf49
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x50cf6c
mov al, 0x3d
jmp 0x50cf75
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 2], al
mov cl, 0x3d
mov eax, dword [esp + 0x14]
add eax, 3
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x50cee3
pop edi
pop esi
mov eax, ebp
mov byte [edx], 0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x5121f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push ebp
call fcn.004a4350
mov ebx, eax
add esp, 4
test ebx, ebx
jg 0x51220a
xor eax, eax
jmp 0x51220d
lea eax, [ebx - 1]
push 0
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x20]
push 0x66fd1f
push eax
call fcn.004a53d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x51227f
push ebp
call fcn.004a44c0
and dword [esi + 4], 0xfffffffe
add esp, 4
xor ebp, ebp
test ebx, ebx
jle 0x51227d
push edi
lea edi, [esi + 0x14]
push ebp
push dword [esp + 0x18]
call fcn.004a4500
inc ebp
lea edi, [edi + 0x18]
add esp, 8
movups xmm0, xmmword [eax]
movups xmmword [edi - 0x24], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi - 0x14], xmm0
mov eax, dword [esi + 4]
mov ecx, dword [edi - 0x18]
or ecx, eax
xor ecx, eax
and ecx, 1
xor ecx, eax
mov dword [esi + 4], ecx
cmp ebp, ebx
jl 0x512244
pop edi
mov dword [esi], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x525550
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.005c85a0
mov eax, dword [0x679dc8]
xor eax, esp
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x48], 0x1d
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x58]
je 0x52558c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005c7d0a
add esp, 0x40
ret
test esi, esi
je 0x52569b
cmp dword [esp + 0x54], 0x30
jne 0x52569b
push 0x30
push edi
push esi
call fcn.00525470
add esp, 0xc
test eax, eax
jle 0x52569b
movaps xmm0, xmmword [str.666666666666666600]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.00525470
add esp, 0xc
test eax, eax
je 0x52569b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.005252d0
add esp, 8
test eax, eax
je 0x52569b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.005c9aa0
push 0x30
push edi
push esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.00525470
add esp, 0x18
test eax, eax
jle 0x52569b
movaps xmm0, xmmword [0x619c00]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.00525470
add esp, 0xc
test eax, eax
je 0x52569b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00525470
add esp, 0xc
test eax, eax
je 0x52569b
lea eax, [esp + 0x30]
push 0x14
push eax
call fcn.00401320
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005c7d0a
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.005c7d0a
add esp, 0x40
ret
Function at 0x53f2c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.005c85a0
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [eax + 0x60]
push esi
mov esi, dword [esp + 0x28]
push edi
mov ecx, dword [ebp + 0x70]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
test ecx, ecx
je 0x53f329
test ebx, ebx
je 0x53f309
lea edx, [ebp + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x53f309
mov al, byte [edx]
inc ecx
xor al, byte [esi]
inc edx
mov byte [edi], al
inc esi
inc edi
sub ebx, 1
jne 0x53f2f5
mov dword [ebp + 0x70], ecx
test ebx, ebx
je 0x53f3e4
cmp ecx, 0x40
jne 0x53f329
mov dword [ebp + 0x70], 0
add dword [ebp + 0x20], 1
jne 0x53f329
inc dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, ebx
and eax, 0x3f
sub ebx, eax
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x24], eax
cmp ebx, 0x40
jb 0x53f397
push dword [esp + 0x24]
mov ecx, ebx
xor ebp, ebp
shr ecx, 6
lea eax, [ecx + edx]
cmp eax, ecx
cmovae ebp, eax
neg edx
cmp eax, ecx
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x14]
cmovae edx, ecx
shl edx, 6
push ebp
push edx
push esi
push edi
mov dword [esp + 0x28], edx
call fcn.00443840
mov eax, dword [esp + 0x28]
add esp, 0x14
sub ebx, eax
add esi, eax
add edi, eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
test eax, eax
jne 0x53f390
inc dword [ebp + 0x24]
mov edx, eax
cmp ebx, 0x40
jae 0x53f343
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x53f3e4
push 0x40
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.005c9aa0
lea eax, [ebp + 0x20]
push eax
push ebp
lea eax, [ebp + 0x30]
push 0x40
push eax
push eax
call fcn.00443840
add esp, 0x20
xor edx, edx
test ebx, ebx
je 0x53f3e1
sub esi, edi
nop dword [eax + eax]
mov al, byte [edx + ebp + 0x30]
lea ecx, [edx + edi]
xor al, byte [esi + ecx]
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x53f3d0
mov dword [ebp + 0x70], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret