joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470150
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
and dword [edi + 0x14], 0xfffffff0
mov esi, eax
test esi, esi
jg 0x4701a2
je 0x470185
cmp esi, 0xffffffff
jne 0x4701a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 4
je 0x47019c
cmp eax, 0xb
je 0x47019c
cmp eax, 0x2733
jne 0x4701a0
or dword [edi + 0x14], 0xa
mov eax, esi
pop edi
pop esi
ret

Function at 0x472a80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x472ac7
mov al, byte [edx]
test al, al
je 0x472ac7
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x472a97
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x47d310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x70
call fcn.00525ec0
mov eax, dword [0x5af1b4]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
push edi
mov dword [esp + 0x14], eax
xor eax, eax
lea edx, [esp + 0x20]
push ebp
push edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00474030
add esp, 8
test eax, eax
je 0x47d3ff
lea edi, [esp + 0x18]
lea ecx, [esp + 0x38]
lea esi, [esp + 0x20]
call fcn.00473fd0
test eax, eax
je 0x47d3ff
mov edi, esi
call fcn.00474260
mov esi, dword [ebp]
test byte [esi + 0xc], 4
je 0x47d41d
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x14], 0xffffffff
call fcn.00476980
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47d3ff
mov esi, ebx
call fcn.00478870
test eax, eax
jle 0x47d3ff
mov ecx, dword [ebp]
push ecx
push 0
push 1
push ebx
mov edi, 0xf8
or ecx, 0xffffffff
call fcn.00476c60
add esp, 0x10
test eax, eax
jle 0x47d3ff
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
push ecx
push edx
push ebx
call fcn.004788d0
add esp, 0x14
mov dword [esp + 0x10], eax
mov esi, ebx
call fcn.00476bf0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00511c1b
add esp, 0x70
ret
xor edx, edx
lea ecx, [esi + 0x2c]
mov eax, dword [ecx]
test eax, eax
je 0x47d439
mov edi, dword [esp + 0x1c]
cmp dword [edi], eax
je 0x47d467
inc edx
add ecx, 4
cmp edx, 4
jl 0x47d422
push 0x6a
push str..cryptoevpp_verify.c
push 0x6e
push 6
mov ecx, 0x6c
call fcn.00460970
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00511c1b
add esp, 0x70
ret
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x47d499
push 0x6e
push str..cryptoevpp_verify.c
push 0x69
push 6
lea ecx, [eax + 0x6c]
call fcn.00460970
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00511c1b
add esp, 0x70
ret
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push ecx
push edx
mov edx, dword [esi]
lea ecx, [esp + 0x48]
push ecx
push edx
call eax
mov ecx, dword [esp + 0x94]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511c1b
add esp, 0x70
ret
Function at 0x482270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.00525ec0
mov eax, dword [0x5af1b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x18], eax
mov eax, ebx
push edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482298
push 0
push 0
sub eax, esi
lea edi, [eax + 1]
push edi
push ebx
push 8
push 0xfde9
mov dword [ebp - 0x1c], 8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x482304
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4822f1
push 0
push 0
push edi
push ebx
push 0
push 0xfde9
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x482304
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x482396
jmp 0x48237f
lea eax, [esi + esi]
call fcn.00523800
mov edx, dword [ebp - 0x1c]
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push edi
push ebx
push edx
push 0xfde9
mov dword [ebp - 0x20], eax
call esi
test eax, eax
je 0x482396
mov edi, dword [ebp - 0x18]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482332
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push edi
push 0
push 0xfde9
call esi
test eax, eax
je 0x482396
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.0051311e
mov edi, eax
add esp, 8
test edi, edi
jne 0x48243b
call fcn.00510ed0
cmp dword [eax], 2
je 0x48237f
call fcn.00510ed0
cmp dword [eax], 9
jne 0x48238e
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
call fcn.00510de3
mov edi, eax
add esp, 8
test edi, edi
jne 0x48243b
push 0xa8
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
mov ecx, 1
call fcn.00460970
mov edx, dword [ebp - 0x18]
push 0x586a48
push edx
push 0x593ad0
push ebx
push str.fopen_
push 5
call fcn.004610c0
add esp, 0x28
call fcn.00510ed0
cmp dword [eax], 2
mov ecx, 0x6d
jne 0x48240f
push 0xab
push str..crypto_bio_bss_file.c
push 0x80
push 0x20
call fcn.00460970
add esp, 0x10
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret
push 0xad
push str..crypto_bio_bss_file.c
push 2
push 0x20
call fcn.00460970
add esp, 0x10
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret
push 0x5b6404
call fcn.00462ab0
add esp, 4
mov esi, eax
push edi
test esi, esi
jne 0x48246d
call fcn.0050db7f
add esp, 4
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret
push 1
push 0x6a
call fcn.00463020
add esp, 0xc
mov eax, esi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret
Function at 0x485190
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 0x485230
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 0x4858b0
Capabilities:
Hash data using sha224

Disassembly:
push 0x70
push 0
push esi
call fcn.00516180
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
ret

Function at 0x485910
Capabilities:
Hash data using sha256

Disassembly:
push 0x70
push 0
push esi
call fcn.00516180
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
ret
Function at 0x49c9a0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x64
call fcn.00525ec0
push esi
mov esi, ecx
test esi, esi
jne 0x49c9bc
mov esi, 0x5bdd8c
push 0x60
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00516180
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], 0xc3d2e1f0
call fcn.0046dcb0
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.0046ddb0
lea eax, [esp + 0x1c]
push 0x60
push eax
call fcn.004daa60
add esp, 0x1c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a79d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.00525ec0
mov eax, dword [0x5af1b4]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 0x2c]
push ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov al, byte [esi]
push ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x28]
push edi
mov byte [esp + 0x13], al
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
test al, 0x40
jne 0x4a7a2b
push edx
lea edx, [esi + 0x10]
push edx
push esi
call ecx
mov al, byte [esp + 0x1f]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, al
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
mov dword [esp + 0x18], edx
cmp eax, 0xf
jae 0x4a7a63
jmp 0x4a7a50
movzx edi, byte [esi + eax]
or ecx, edi
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x4a7a50
movzx eax, byte [esi + 0xf]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebp
je 0x4a7a86
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00511c1b
add esp, 0x34
ret
lea ecx, [ebp + 0xf]
or ecx, 8
shr ecx, 3
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x4a7abe
ja 0x4a7aa7
cmp dword [esi + 0x20], 0
jbe 0x4a7abe
mov eax, 0xfffffffe
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00511c1b
add esp, 0x34
ret
mov edi, ebp
shr edi, 4
test edi, edi
je 0x4a7afc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 0x10]
push edx
push esi
push eax
push edi
push ecx
push ebx
call dword [esp + 0x3c]
shl edi, 4
mov edx, edi
add dword [esp + 0x34], edx
add esp, 0x18
add ebx, edx
sub ebp, edx
je 0x4a7b61
shr edx, 4
mov ecx, esi
call fcn.004a7990
mov edx, dword [esp + 0x18]
test ebp, ebp
je 0x4a7b65
xor eax, eax
test ebp, ebp
jbe 0x4a7b12
mov dl, byte [ebx + eax]
xor byte [esi + eax + 0x10], dl
inc eax
cmp eax, ebp
jb 0x4a7b06
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
lea eax, [esi + 0x10]
push ecx
push eax
push eax
call edi
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push esi
call edi
add esp, 0x18
xor ecx, ecx
test ebp, ebp
jbe 0x4a7b61
lea edx, [esp + 0x28]
mov edi, ebx
sub edi, edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
sub edx, eax
lea ebx, [ebx]
lea eax, [esp + ecx + 0x28]
mov bl, byte [edi + eax]
xor bl, byte [eax]
inc ecx
mov byte [edx + eax], bl
cmp ecx, ebp
jb 0x4a7b50
mov edx, dword [esp + 0x18]
cmp edx, 0x10
jae 0x4a7b80
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.00516180
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
xor dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x14], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
xor dword [esi + 0x18], eax
mov dl, byte [esp + 0x1f]
add esp, 0xc
pop edi
pop ebp
pop ebx
xor ecx, esp
mov byte [esi], dl
xor eax, eax
call fcn.00511c1b
add esp, 0x34
ret
Function at 0x4a7bd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.00525ec0
mov eax, dword [0x5af1b4]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov al, byte [esi]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x2c]
push ebp
push edi
mov byte [esp + 0xf], al
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
test al, 0x40
jne 0x4a7c23
push edx
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov al, byte [esp + 0x1b]
add esp, 0xc
movzx eax, al
and eax, 7
mov ebp, 0xf
sub ebp, eax
mov byte [esi], al
mov eax, ebp
xor ecx, ecx
mov dword [esp + 0x20], ebp
cmp eax, 0xf
jae 0x4a7c53
nop
movzx edx, byte [esi + eax]
or ecx, edx
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x4a7c40
movzx eax, byte [esi + 0xf]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x4a7c76
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00511c1b
add esp, 0x38
ret
mov edi, ebx
shr edi, 4
test edi, edi
je 0x4a7cb6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edx
push edi
push eax
push ecx
call dword [esp + 0x3c]
shl edi, 4
mov edx, edi
add dword [esp + 0x30], edx
add dword [esp + 0x2c], edx
add esp, 0x18
sub ebx, edx
je 0x4a7d0e
shr edx, 4
mov ecx, esi
call fcn.004a7990
test ebx, ebx
je 0x4a7d0e
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
xor eax, eax
test ebx, ebx
jbe 0x4a7cfd
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x28]
mov edx, ecx
sub edi, ecx
sub ebp, edx
lea edx, [esp + eax + 0x28]
mov cl, byte [edi + edx]
xor cl, byte [edx]
inc eax
mov byte [edx + ebp], cl
xor byte [esi + eax + 0xf], cl
cmp eax, ebx
jb 0x4a7ce4
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x10]
push ecx
push eax
push eax
call dword [esp + 0x28]
add esp, 0xc
cmp ebp, 0x10
jae 0x4a7d29
mov edx, 0x10
sub edx, ebp
push edx
lea eax, [esi + ebp]
push 0
push eax
call fcn.00516180
add esp, 0xc
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
xor dword [esi + 0x14], eax
xor dword [esi + 0x18], ecx
xor dword [esi + 0x10], edx
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
xor dword [esi + 0x1c], edx
add esp, 0xc
pop edi
pop ebp
pop ebx
mov byte [esi], al
xor ecx, esp
xor eax, eax
call fcn.00511c1b
add esp, 0x38
ret
Function at 0x4a7dc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00525ec0
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebp, eax
cmp ebx, 0x10
jb 0x4a7e32
shr ebx, 4
mov dword [esp + 0x10], ebx
mov ecx, edi
sub ebp, esi
mov eax, esi
sub ecx, esi
mov edx, 4
mov ebx, dword [eax + ebp]
xor ebx, dword [eax]
add eax, 4
sub edx, 1
mov dword [ecx + eax - 4], ebx
jne 0x4a7df5
mov eax, dword [esp + 0x2c]
push eax
push edi
push edi
call dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
mov ebp, edi
sub ebx, 0x10
add esp, 0xc
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x28], ebx
jne 0x4a7de8
mov eax, dword [esp + 0x30]
test ebx, ebx
je 0x4a7f31
lea ebx, [ebx]
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x14], ecx
mov ecx, 1
sub ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, 2
sub ecx, esi
mov dword [esp + 0x1c], ecx
mov edx, ebp
sub edx, esi
mov ecx, 3
xor eax, eax
sub ecx, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ecx
jmp 0x4a7e79
mov edx, dword [esp + 0x10]
cmp eax, ebx
jae 0x4a7ee7
mov ebx, dword [esp + 0x14]
lea ecx, [eax + esi]
mov dl, byte [edx + ecx]
xor dl, byte [ecx]
mov byte [ebx + ecx], dl
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
add edx, ecx
cmp edx, ebx
jae 0x4a7edc
mov dl, byte [eax + ebp + 1]
xor dl, byte [eax + esi + 1]
mov byte [eax + edi + 1], dl
mov edx, dword [esp + 0x1c]
add edx, ecx
cmp edx, ebx
jae 0x4a7edf
mov dl, byte [eax + esi + 2]
xor dl, byte [eax + ebp + 2]
mov byte [eax + edi + 2], dl
mov edx, dword [esp + 0x20]
add edx, ecx
cmp edx, ebx
jae 0x4a7ee4
mov cl, byte [eax + ebp + 3]
xor cl, byte [eax + esi + 3]
add eax, 4
mov byte [eax + edi - 1], cl
cmp eax, 0x10
jb 0x4a7e75
jmp 0x4a7f03
inc eax
jmp 0x4a7ee7
add eax, 2
jmp 0x4a7ee7
add eax, 3
cmp eax, 0x10
jae 0x4a7f03
mov edx, 0x10
sub ebp, edi
lea ecx, [eax + edi]
sub edx, eax
mov al, byte [ecx + ebp]
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a7ef8
mov ecx, dword [esp + 0x2c]
push ecx
push edi
push edi
call dword [esp + 0x40]
add esp, 0xc
mov ebp, edi
cmp ebx, 0x10
jbe 0x4a7f2d
sub ebx, 0x10
add esi, 0x10
add edi, 0x10
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x4a7e40
mov eax, dword [esp + 0x30]
mov edx, dword [ebp]
mov dword [eax], edx
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
pop edi
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0xc]
pop esi
pop ebp
mov dword [eax + 0xc], ecx
pop ebx
add esp, 0x14
ret
Function at 0x4a8620
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.00525ec0
mov ecx, dword [esp + 0x18]
xor eax, eax
push ebx
mov ebx, dword [esi + 0x160]
push ebp
mov ebp, dword [esp + 0x1c]
push edi
mov dword [esp + 0x10], ebx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x168], eax
cmp ecx, 0xc
jne 0x4a8694
mov eax, dword [ebp]
mov dword [esi], eax
mov ecx, dword [ebp + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebp + 8]
mov dword [esi + 8], edx
mov byte [esi + 0xf], 1
mov edi, 1
jmp 0x4a875e
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
cmp ecx, 0x10
jb 0x4a8711
mov edi, ebp
sub edi, esi
shr ecx, 4
mov dword [esp + 0xc], ecx
mov edi, edi
lea ecx, [ebp + 2]
mov eax, esi
mov edx, 4
lea ebx, [ebx]
movzx ebx, byte [edi + eax]
xor byte [eax], bl
movzx ebx, byte [ecx - 1]
xor byte [eax + 1], bl
movzx ebx, byte [ecx]
xor byte [eax + 2], bl
movzx ebx, byte [ecx + 1]
xor byte [eax + 3], bl
add eax, 4
add ecx, 4
sub edx, 1
jne 0x4a86c0
mov ebx, dword [esp + 0x10]
lea eax, [esi + 0x60]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x2c]
sub ecx, 0x10
add esp, 8
add ebp, 0x10
add edi, 0x10
sub dword [esp + 0xc], 1
mov dword [esp + 0x24], ecx
jne 0x4a86b0
mov edi, dword [esp + 0x14]
xor eax, eax
cmp ecx, eax
je 0x4a8735
jbe 0x4a872b
mov eax, esi
sub ebp, esi
jmp 0x4a8720
mov dl, byte [eax + ebp]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x4a8720
lea eax, [esi + 0x60]
push eax
push esi
call ebx
add esp, 8
mov ecx, dword [esp + 0x18]
shld ecx, edi, 3
add edi, edi
bswap ecx
xor dword [esi + 8], ecx
add edi, edi
add edi, edi
lea ecx, [esi + 0x60]
mov eax, edi
push ecx
bswap eax
xor dword [esi + 0xc], eax
push esi
call ebx
mov edi, dword [esi + 0xc]
add esp, 8
bswap edi
mov edx, dword [esi + 0x174]
mov ecx, dword [esi + 0x170]
push edx
lea eax, [esi + 0x20]
push eax
push esi
call ecx
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4a8790
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.00525ec0
mov ecx, dword [esi + 0x38]
or ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x164]
mov edx, dword [esi + 0x160]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov dword [esp + 0xc], eax
je 0x4a87c9
mov eax, 0xfffffffe
pop edi
pop ebp
pop ebx
add esp, 8
ret
xor eax, eax
mov ecx, ebx
add ecx, dword [esi + 0x30]
adc eax, dword [esi + 0x34]
cmp eax, 0x20000000
ja 0x4a886b
jb 0x4a87e8
test ecx, ecx
ja 0x4a886b
mov edi, dword [esi + 0x16c]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
test edi, edi
je 0x4a881e
test ebx, ebx
je 0x4a880d
mov al, byte [ebp]
xor byte [edi + esi + 0x40], al
inc edi
inc ebp
dec ebx
and edi, 0xf
jne 0x4a87f8
jmp 0x4a8811
test edi, edi
jne 0x4a885c
lea ecx, [esi + 0x60]
push ecx
lea eax, [esi + 0x40]
push eax
call edx
add esp, 8
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x4a8842
push eax
push ebp
lea ecx, [esi + 0x60]
push ecx
lea edx, [esi + 0x40]
push edx
call dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 0x10
add ebp, eax
sub ebx, eax
test ebx, ebx
je 0x4a885c
xor eax, eax
mov edi, ebx
test ebx, ebx
jbe 0x4a885c
mov edi, edi
mov cl, byte [eax + ebp]
xor byte [esi + eax + 0x40], cl
inc eax
cmp eax, ebx
jb 0x4a8850
mov dword [esi + 0x16c], edi
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret