joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9cf0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.00563860
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov eax, 1
pop esi
ret

Function at 0x4db530
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
lea eax, [ecx + 1]
ret

Function at 0x4db5d0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
lea eax, [ecx + 1]
ret
Function at 0x4e88a0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x4e8983
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4e891e
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x7719a0]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x7719a0]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x7719a0]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + 0x7719a0]
mov byte [ecx], dl
jmp 0x4e8970
shl edx, 0x10
cmp edi, 2
jne 0x4e892f
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x7719a0]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x7719a0]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x4e895d
lea edx, [edi + 0x3c]
jmp 0x4e896a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x7719a0]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x4e88c0
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x4fa600
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x514390
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.00513e60
add esp, 0xc
test eax, eax
jl 0x5145d8
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x51440d
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x5143d0
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x5145d4
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x77c8d8]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x77c8d8]
and esi, 0xff
mov esi, dword [esi*4 + 0x77d4d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x77dcd8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x77c8d8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x77e0d8]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x77c8d8]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x77d8d8]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x77c8d8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x77c8d8]
and esi, 0xff
mov esi, dword [esi*4 + 0x77d4d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x77dcd8]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x77c8d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x77d8d8]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x77c8d8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x77e0d8]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x77c8d8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x77c8d8]
and esi, 0xff
mov esi, dword [esi*4 + 0x77d4d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x77dcd8]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x77c8d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x77d8d8]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x77c8d8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x77e0d8]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x77c8d8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x77c8d8]
and esi, 0xff
mov esi, dword [esi*4 + 0x77d4d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x77dcd8]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x77c8d8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x77c8d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x77d8d8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x77e0d8]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x514421
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x4fbe70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5c
call fcn.005650a0
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x88]
push edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x88]
dec edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
test eax, eax
jne 0x4fbecd
call fcn.004a4ff0
mov dword [esp + 0x10], eax
test esi, esi
jne 0x4fbed5
mov dword [esp + 0x14], eax
push eax
call fcn.004d36b0
mov esi, eax
lea eax, [esi + esi]
sub edi, eax
lea edx, [edi - 1]
add esp, 4
cmp ebp, edx
jle 0x4fbf19
push 0x3a
push 0x779020
push 0x6e
push 0xa0
push 4
call fcn.0049ca60
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005635df
add esp, 0x5c
ret
inc eax
cmp dword [esp + 0x1c], eax
jge 0x4fbf2b
push 0x40
push 0x779020
push 0x78
jmp 0x4fbef5
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x84]
push 0
push ecx
lea eax, [ebx + 1]
mov byte [ebx], 0
push 0
lea ebx, [ebx + esi + 1]
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push edx
push eax
call fcn.004ab960
add esp, 0x18
test eax, eax
je 0x4fbf04
sub edi, ebp
dec edi
push edi
lea ecx, [ebx + esi]
push 0
push ecx
call fcn.00563860
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov edx, ebx
sub edx, ebp
sub edx, esi
push ebp
lea eax, [edx + edi]
push ecx
push eax
mov byte [eax - 1], 1
call fcn.005645b0
mov ebp, dword [esp + 0x30]
push esi
push ebp
call fcn.0049d040
add esp, 0x20
test eax, eax
jle 0x4fbf04
push 0x55
sub edi, esi
push 0x779020
push edi
call fcn.004a26d0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4fbfc6
push 0x57
push 0x779020
push 0x41
jmp 0x4fbef5
mov edx, dword [esp + 0x14]
push edx
push esi
push ebp
push edi
push eax
call fcn.004fbcf0
add esp, 0x14
test eax, eax
jl 0x4fc018
test edi, edi
jle 0x4fbfff
mov ebp, dword [esp + 0x10]
mov eax, ebx
sub ebp, ebx
mov ecx, edi
lea esp, [esp]
mov dl, byte [eax + ebp]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x4fbff0
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push eax
push edi
push ebx
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.004fbcf0
add esp, 0x14
test eax, eax
jge 0x4fc03a
mov edx, dword [esp + 0x10]
push edx
call fcn.004a28d0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005635df
add esp, 0x5c
ret
test esi, esi
jle 0x4fc051
lea ecx, [esp + 0x28]
mov eax, ebp
sub ecx, ebp
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub esi, 1
jne 0x4fc046
mov eax, dword [esp + 0x10]
push eax
call fcn.004a28d0
mov ecx, dword [esp + 0x6c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005635df
add esp, 0x5c
ret
Function at 0x507f60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x508029
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x507f81
cmp al, 0x6b
jne 0x508029
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x507fea
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x507fa1
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x507fa1
cmp al, 0xbb
jne 0x507fca
inc ecx
cmp ecx, esi
jl 0x507f91
sub esi, ecx
test ecx, ecx
jne 0x507fed
push 0x83
push 0x77a818
push 0x8a
push 0x80
push 4
call fcn.0049ca60
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push 0x77a818
push 0x8a
push 0x80
push 4
call fcn.0049ca60
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x508016
push 0x8b
push 0x77a818
push 0x8b
push 0x80
push 4
call fcn.0049ca60
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call fcn.005645b0
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x70
push 0x77a818
push 0x89
push 0x80
push 4
call fcn.0049ca60
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x508640
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.005650a0
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x9c]
test ebx, ebx
je 0x5086b5
cmp ebx, dword [esi]
je 0x5086ac
test edi, edi
je 0x508692
cmp dword [esp + 0xa0], eax
jge 0x5086ac
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.005635df
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x5086bb
mov ebx, dword [esi]
test ebx, ebx
je 0x508692
push ebp
test edi, edi
je 0x50878d
push ebx
call fcn.004d3d50
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x5086eb
push 0x77a950
push 0x74
push 0x77a938
call fcn.004b1d10
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x508745
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.004ab4b0
add esp, 0xc
test eax, eax
je 0x50883a
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.004ab660
add esp, 0xc
test eax, eax
je 0x50883a
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.004ab670
add esp, 0xc
test eax, eax
je 0x50883a
jmp 0x50876a
cmp eax, 0x80
ja 0x50883a
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.005645b0
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x508795
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.00563860
add esp, 0xc
jmp 0x508795
test eax, eax
je 0x508826
xor eax, eax
jmp 0x5087a0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x80
jl 0x5087a0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.004ab4b0
add esp, 0xc
test eax, eax
je 0x50883a
push ebx
call fcn.004d3d50
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004ab660
add esp, 0x10
test eax, eax
je 0x50883a
xor eax, eax
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x80
jl 0x5087e4
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.004ab4b0
add esp, 0xc
test eax, eax
je 0x50883a
push ebx
call fcn.004d3d50
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004ab660
add esp, 0x10
test eax, eax
je 0x50883a
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.004ab800
add esp, 8
test eax, eax
jne 0x50883e
xor eax, eax
jmp 0x508843
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005635df
add esp, 0x88
ret
Function at 0x50de80
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x50de92
xor eax, eax
pop edi
ret
push ebx
push esi
push edi
call fcn.004a3700
mov ebx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [eax], esi
test ebx, ebx
je 0x50df42
mov eax, dword [edi + 0x10c]
push ebp
cmp eax, esi
jne 0x50dee0
test esi, esi
jle 0x50df21
mov ecx, ebx
lea eax, [edi + 0x8c]
mov ebp, esi
lea ebx, [ebx]
mov dl, byte [eax + 0x60]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
sub ebp, 1
jne 0x50ded0
jmp 0x50df21
mov ecx, esi
sub ecx, eax
cmp ecx, 1
mov byte [eax + edi + 0xec], 0x80
jle 0x50df05
dec ecx
push ecx
lea eax, [eax + edi + 0xed]
push 0
push eax
call fcn.00563860
add esp, 0xc
test esi, esi
jle 0x50df21
mov ecx, ebx
lea eax, [edi + 0xac]
mov ebp, esi
mov dl, byte [eax + 0x40]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
sub ebp, 1
jne 0x50df13
push esi
push ebx
push ebx
push edi
call fcn.004d3660
add esp, 0x10
pop ebp
test eax, eax
jne 0x50df42
push esi
push ebx
call fcn.004b3880
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
ret
pop esi
pop ebx
mov eax, 1
pop edi
ret
Function at 0x511700
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.005650a0
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x511894
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.004af180
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004af280
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004e4920
push ebp
call fcn.004af180
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004af280
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004e4920
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x511743
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.005635df
add esp, 0xa0
ret
Function at 0x513820
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005650a0
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x28]
test esi, esi
je 0x513865
test ebx, ebx
je 0x513865
mov cl, byte [esi + edi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc esi
dec ebx
and esi, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
jne 0x513840
cmp ebx, 0x10
jb 0x5138e0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edx
sub eax, edi
mov dword [esp + 0x20], eax
mov eax, ebx
shr eax, 4
mov ebp, ecx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebp, edi
add edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
push edx
push edi
push edi
call dword [esp + 0x3c]
add esp, 0xc
cmp esi, 0x10
jae 0x5138cc
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax]
xor edx, dword [eax]
add eax, 4
sub ecx, 1
mov dword [eax + ebp - 4], edx
jne 0x5138b7
add dword [esp + 0x20], 0x10
sub ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x10], 1
jne 0x513896
test ebx, ebx
je 0x51391d
mov eax, dword [esp + 0x24]
push eax
push edi
push edi
call dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esi + edi]
sub ebp, edi
sub ecx, edi
add esi, ebx
mov dl, byte [eax + ebp]
xor dl, byte [eax]
dec ebx
mov byte [eax + ecx], dl
inc eax
test ebx, ebx
jne 0x513903
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x513b60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.005650a0
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
push esi
mov esi, dword [esp + 0x44]
mov ebx, edx
lea edx, [esi - 1]
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
cmp edx, 0x7f
ja 0x513d19
mov edx, dword [edi]
mov dword [esp + 0x18], edx
mov edx, dword [edi + 4]
push ebp
mov dword [esp + 0x20], edx
mov edx, dword [edi + 8]
push eax
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0xc]
push edi
push edi
mov dword [esp + 0x34], edx
call ecx
lea eax, [esi + 7]
cdq
and edx, 7
add eax, edx
mov esi, eax
add esp, 0xc
sar esi, 3
cmp dword [esp + 0x58], 0
je 0x513c07
test esi, esi
jle 0x513c4e
mov eax, dword [esp + 0x14]
mov edx, edi
lea ebp, [esp + 0x2c]
sub edx, ebx
sub ebp, ebx
sub eax, ebx
mov ecx, ebx
mov dword [esp + 0x14], eax
lea ecx, [ecx]
mov al, byte [edx + ecx]
xor al, byte [ecx]
mov ebx, dword [esp + 0x14]
mov byte [ecx + ebp], al
mov byte [ebx + ecx], al
inc ecx
sub esi, 1
jne 0x513bf0
jmp 0x513c4e
xor ebp, ebp
test esi, esi
jle 0x513c4e
lea eax, [esp + 0x2c]
mov ecx, eax
sub ebx, eax
mov eax, dword [esp + 0x14]
mov edx, edi
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jmp 0x513c34
mov edx, dword [esp + 0x18]
lea ecx, [esp + ebp + 0x2c]
mov al, byte [ebx + ecx]
mov dl, byte [edx + ecx]
xor dl, al
mov byte [ecx], al
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, esi
mov byte [eax + ecx], dl
jl 0x513c30
mov eax, dword [esp + 0x4c]
mov ecx, eax
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x513c61
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x513ca2
mov ecx, dword [esp + eax + 0x1c]
mov edx, dword [esp + eax + 0x20]
lea eax, [esp + eax + 0x1c]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 4], edx
mov edx, dword [eax + 0xc]
pop ebp
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005635df
add esp, 0x34
ret
mov dl, 8
sub dl, cl
mov byte [esp + 0x13], dl
inc edi
lea esi, [esp + eax + 0x1d]
mov ebp, 4
movzx edx, byte [esi - 1]
mov al, byte [esi]
shl dl, cl
movzx ecx, byte [esp + 0x13]
mov bl, al
shr bl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
movzx ecx, byte [esp + 0x13]
or dl, bl
mov byte [edi - 1], dl
mov dl, byte [esi + 1]
mov bl, dl
shr bl, cl
mov ecx, dword [esp + 0x14]
shl dl, cl
movzx ecx, byte [esp + 0x13]
or al, bl
mov byte [edi], al
mov al, byte [esi + 2]
mov bl, al
shr bl, cl
movzx ecx, byte [esp + 0x13]
or dl, bl
mov byte [edi + 1], dl
movzx edx, byte [esi + 3]
shr dl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
add esi, 4
add edi, 4
or dl, al
sub ebp, 1
mov byte [edi - 2], dl
jne 0x513cb4
pop ebp
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005635df
add esp, 0x34
ret
Function at 0x515170
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005650a0
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [eax]
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x5151b9
test edi, edi
je 0x5151b9
mov cl, byte [ebx + esi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc ebx
dec edi
and ebx, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebx
jne 0x515190
cmp edi, 0x10
jb 0x515237
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
shr eax, 4
mov ebx, ecx
mov ebp, edx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebx, esi
sub ebp, esi
add edx, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edi, edi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push edx
push esi
push eax
call dword [esp + 0x40]
mov edx, dword [esp + 0x34]
add esp, 0xc
call fcn.00515140
mov eax, esi
mov ecx, 4
mov edx, dword [eax + ebp]
xor edx, dword [eax]
add eax, 4
sub ecx, 1
mov dword [ebx + eax - 4], edx
jne 0x515212
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
sub dword [esp + 0x10], 1
jne 0x5151f0
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x51527f
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
push eax
push esi
push ebp
call dword [esp + 0x40]
add esp, 0xc
mov edx, ebp
call fcn.00515140
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + esi]
sub ebp, esi
sub ecx, esi
add ebx, edi
mov dl, byte [eax + ebp]
xor dl, byte [eax]
dec edi
mov byte [eax + ecx], dl
inc eax
test edi, edi
jne 0x515265
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
pop ecx
ret