joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10120c00
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax]
mov edx, dword [esp + 0x18]
shl ecx, 8
mov dword [edx], ecx
movzx ecx, byte [eax + 1]
or dword [edx], ecx
movzx ecx, byte [eax + 2]
shl ecx, 8
mov dword [edx + 4], ecx
movzx ecx, byte [eax + 3]
or dword [edx + 4], ecx
movzx esi, byte [eax + 4]
shl esi, 8
mov dword [edx + 8], esi
movzx esi, byte [eax + 5]
or dword [edx + 8], esi
movzx esi, byte [eax + 6]
lea ecx, [edx + 8]
shl esi, 8
mov dword [edx + 0xc], esi
movzx esi, byte [eax + 7]
or dword [edx + 0xc], esi
movzx esi, byte [eax + 8]
shl esi, 8
mov dword [edx + 0x10], esi
movzx esi, byte [eax + 9]
or dword [edx + 0x10], esi
movzx esi, byte [eax + 0xa]
shl esi, 8
mov dword [edx + 0x14], esi
movzx esi, byte [eax + 0xb]
or dword [edx + 0x14], esi
movzx esi, byte [eax + 0xc]
shl esi, 8
mov dword [edx + 0x18], esi
movzx esi, byte [eax + 0xd]
or dword [edx + 0x18], esi
movzx esi, byte [eax + 0xe]
shl esi, 8
mov dword [edx + 0x1c], esi
movzx eax, byte [eax + 0xf]
or eax, esi
mov dword [edx + 0x1c], eax
lea eax, [edx + 0x20]
xor ebx, ebx
jmp 0x10120ca0
mov esi, dword [ecx]
mov edi, dword [ecx - 4]
mov edx, esi
shr edx, 7
mov ebp, edi
shl ebp, 9
or edx, ebp
and edx, 0xffff
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov ebp, edx
shr ebp, 7
shl esi, 9
or ebp, esi
and ebp, 0xffff
mov dword [eax + 4], ebp
mov esi, dword [ecx + 8]
shl edx, 9
mov ebp, esi
shr ebp, 7
or edx, ebp
and edx, 0xffff
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov ebp, edx
shr ebp, 7
shl esi, 9
or ebp, esi
and ebp, 0xffff
mov dword [eax + 0xc], ebp
mov esi, dword [ecx + 0x10]
mov ebp, esi
shr ebp, 7
shl edx, 9
or edx, ebp
and edx, 0xffff
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x14]
mov ebp, edx
shr ebp, 7
shl esi, 9
or ebp, esi
and ebp, 0xffff
mov dword [eax + 0x14], ebp
mov esi, dword [ecx - 8]
cmp ebx, 5
jge 0x10120d63
mov ebp, esi
shl edx, 9
shr ebp, 7
shl esi, 9
shr edi, 7
or edx, ebp
or esi, edi
and edx, 0xffff
and esi, 0xffff
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], esi
inc ebx
add eax, 0x20
add ecx, 0x20
cmp ebx, 6
jl 0x10120ca0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10120ed0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 8
call fcn.101e1c60
mov eax, dword [esp + 0xc]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 3]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 4]
mov dword [esp], ecx
movzx ecx, byte [eax + 7]
push esi
movzx esi, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ecx, 8
shl esi, 8
or ecx, eax
or edx, esi
shl ecx, 0x10
or ecx, edx
cmp dword [esp + 0x24], 0
mov dword [esp + 8], ecx
pop esi
je 0x10120f46
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.10123150
jmp 0x10120f5f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.10123270
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x14]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
add esp, 0x10
shr ecx, 0x18
mov byte [eax + 6], dl
mov byte [eax + 7], cl
add esp, 8
ret
Function at 0x10124df0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x2c
call fcn.101e1c60
mov eax, dword [0x1035eca0]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
push ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
push ebp
mov dword [esp + 0xc], eax
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x50]
movzx edx, byte [edi + 1]
movzx ebx, byte [edi + 5]
lea eax, [edi + 1]
mov dword [esp + 0x28], ecx
movzx ecx, byte [edi]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 2]
mov ebp, dword [esp + 0x48]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 3]
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 6]
mov dword [esp + 0x2c], eax
movzx eax, byte [eax + 5]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
shl ebx, 0x10
or edx, ebx
mov byte [esp + 0x31], al
mov eax, ecx
mov ebx, ecx
mov byte [esp + 0x30], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x32], al
mov byte [esp + 0x33], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x24], edx
mov byte [esp + 0x34], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ebx
mov byte [esp + 0x35], cl
mov byte [esp + 0x36], al
mov byte [esp + 0x37], dl
test ebp, ebp
je 0x10124fc4
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x40]
sub eax, ebp
mov dword [esp + 0x10], eax
dec dword [esp + 0x18]
test esi, esi
jne 0x10124f3d
mov ecx, dword [esp + 0x28]
push 1
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.101211c0
mov ebx, dword [esp + 0x2c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x30]
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x3e], cl
mov byte [esp + 0x3f], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x40], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
add esp, 0xc
inc dword [esp + 0x1c]
mov byte [esp + 0x37], al
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], bl
mov byte [esp + 0x35], cl
mov byte [esp + 0x36], dl
mov cl, byte [esp + esi + 0x30]
xor cl, byte [ebp]
inc esi
mov byte [eax + ebp], cl
inc ebp
and esi, 7
cmp dword [esp + 0x18], 0
jne 0x10124ed5
cmp dword [esp + 0x1c], 0
je 0x10124fab
mov eax, dword [esp + 0x2c]
mov byte [edi], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x24]
shr ebx, 0x18
mov byte [eax + 2], bl
mov byte [eax + 3], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 4], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 5], dl
shr ecx, 0x18
mov byte [eax + 6], cl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.101e425c
add esp, 0x2c
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.101e425c
add esp, 0x2c
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101e425c
add esp, 0x2c
ret
Function at 0x1012b9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, edx
test ebp, ebp
je 0x1012b9f7
test esi, esi
je 0x1012b9f7
push edi
mov edi, dword [ecx + 0x14]
cmp esi, edi
jae 0x1012b9ba
mov edi, esi
xor eax, eax
test edi, edi
je 0x1012b9cc
mov dl, byte [eax + ebp]
xor byte [ecx + eax + 0x18], dl
inc eax
cmp eax, edi
jb 0x1012b9c0
mov eax, dword [ecx + 0x14]
pop edi
cmp esi, eax
jbe 0x1012b9f7
sub esi, eax
cmp esi, 0x10
jbe 0x1012b9e0
mov esi, 0x10
xor eax, eax
test esi, esi
je 0x1012b9f7
mov edx, dword [ecx + 0x14]
add edx, eax
mov dl, byte [edx + ebp]
xor byte [ecx + eax + 0x38], dl
inc eax
cmp eax, esi
jb 0x1012b9e6
pop esi
pop ebp
ret

Function at 0x1012ba00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.101e1c60
mov eax, dword [0x1035eca0]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
push esi
mov esi, dword [eax]
mov dword [esp + 8], esi
mov esi, dword [eax + 4]
mov dword [esp + 0xc], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x10], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x14], esi
mov esi, dword [eax]
mov dword [esp + 0x18], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x1c], esi
mov esi, dword [eax + 8]
push edi
mov dword [esp + 0x24], esi
mov esi, dword [eax + 0xc]
mov edi, 0x10
mov cl, 2
mov dword [esp + 0x28], esi
cmp dword [edx + 0x14], edi
je 0x1012ba79
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov eax, esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov cl, 3
movzx esi, cl
shl esi, 4
lea ecx, [edx + 0x5c]
mov dword [esp + 8], edi
test esi, esi
jle 0x1012baa1
push ebx
lea edi, [esp + 0x10]
push ebp
mov eax, ecx
sub edi, ecx
mov ebp, esi
mov bl, byte [edi + eax]
xor byte [eax], bl
inc eax
dec ebp
jne 0x1012ba96
pop ebp
pop ebx
push esi
push ecx
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, dword [edx + 8]
push ecx
call fcn.100db210
add esp, 0x14
test eax, eax
je 0x1012bad5
cmp dword [esp + 8], esi
jne 0x1012bad5
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.101e425c
add esp, 0x38
ret
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.101e425c
add esp, 0x38
ret
Function at 0x1012baf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.101e1c60
mov eax, dword [0x1035eca0]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
push 0x2f
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.101e44a0
push 0x30
lea esi, [ebx + 0x5c]
push 0
push esi
call fcn.101e44a0
xor ecx, ecx
mov eax, 0x10
add esp, 0x18
cmp dword [ebx + 0x14], eax
mov byte [esp + 0x1f], 1
setne cl
mov byte [esp + 0x2f], 2
mov dword [esp + 8], eax
lea edi, [ecx + 2]
shl edi, 4
test edi, edi
jle 0x1012bb6a
push ebp
lea ebp, [esp + 0x10]
mov eax, esi
sub ebp, esi
mov ecx, edi
lea ebx, [ebx]
mov dl, byte [eax + ebp]
xor byte [eax], dl
inc eax
dec ecx
jne 0x1012bb60
pop ebp
mov ecx, dword [ebx + 8]
push edi
push esi
lea eax, [esp + 0x10]
push eax
push esi
push ecx
call fcn.100db210
add esp, 0x14
test eax, eax
je 0x1012bb9e
cmp dword [esp + 8], edi
jne 0x1012bb9e
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.101e425c
add esp, 0x38
ret
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.101e425c
add esp, 0x38
ret
Function at 0x1012bbc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.101e1c60
mov eax, dword [0x1035eca0]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, ecx
test esi, esi
je 0x1012bd5d
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x1012bd5d
mov eax, dword [ebp + 0x58]
push edi
test eax, eax
je 0x1012bc45
mov edi, 0x10
sub edi, eax
cmp ecx, edi
jb 0x1012bc45
push edi
lea eax, [eax + ebp + 0x48]
push esi
push eax
call fcn.101e4520
lea ecx, [ebp + 0x48]
push ecx
mov edx, ebp
call fcn.1012ba00
add esp, 0x10
test eax, eax
jne 0x1012bc34
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.101e425c
add esp, 0x38
ret
sub dword [esp + 0x4c], edi
mov ecx, dword [esp + 0x4c]
mov dword [ebp + 0x58], 0
add esi, edi
push ebx
cmp ecx, 0x10
jb 0x1012bd13
lea ebx, [ebp + 0x5c]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x1c], edx
mov edx, dword [esi]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
mov edx, dword [esi + 8]
mov ecx, 0x10
mov al, 2
mov dword [esp + 0x2c], edx
cmp dword [ebp + 0x14], ecx
je 0x1012bcb1
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
mov al, 3
movzx edi, al
shl edi, 4
mov dword [esp + 0x10], ecx
test edi, edi
jle 0x1012bcd9
lea ecx, [esp + 0x14]
mov eax, ebx
sub ecx, ebx
mov edx, edi
lea esp, [esp]
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x1012bcd0
mov edx, dword [ebp + 8]
push edi
lea ebx, [ebp + 0x5c]
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push edx
call fcn.100db210
add esp, 0x14
test eax, eax
je 0x1012bd48
cmp dword [esp + 0x10], edi
jne 0x1012bd48
mov eax, dword [esp + 0x50]
sub eax, 0x10
add esi, 0x10
mov dword [esp + 0x50], eax
cmp eax, 0x10
jae 0x1012bc52
mov ecx, eax
test ecx, ecx
je 0x1012bd30
mov eax, dword [ebp + 0x58]
push ecx
lea ecx, [eax + ebp + 0x48]
push esi
push ecx
call fcn.101e4520
mov edx, dword [esp + 0x5c]
add esp, 0xc
add dword [ebp + 0x58], edx
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.101e425c
add esp, 0x38
ret
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.101e425c
add esp, 0x38
ret
mov ecx, dword [esp + 0x3c]
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.101e425c
add esp, 0x38
ret
Function at 0x1012e850
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.101e1c60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.100caf50
mov ebx, eax
push ebx
push esi
call fcn.100cb0b0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1012e8dc
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1012e8b6
mov ecx, dword [esp + 0x10]
push ebp
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1012e8a9
mov edi, ebx
mov edx, dword [esp + 0x10]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.100cb120
push esi
call fcn.100cae10
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1012e8dc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.100caf50
mov ebx, eax
push ebx
push esi
call fcn.100cb0b0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1012e94e
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
push edi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1012e934
mov edx, dword [esp + 0x10]
push ebp
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1012e927
mov edi, ebx
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [edi*8]
push ecx
push edi
push esi
call fcn.100cb120
push esi
call fcn.100cae10
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x1012e8d4
push esi
call fcn.100cae10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10131230
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.101e1c60
mov edx, dword [esp + 8]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x64]
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
inc edi
test byte [ecx + 0x30], 1
je 0x1013127b
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
lea ebx, [edi + ecx]
cmp ebx, eax
jbe 0x1013126b
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
add dword [esi + 0x14], ecx
add dword [esi + 0x18], ecx
sub eax, ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], eax
jmp 0x10131286
mov eax, dword [esp + 0x18]
cmp edi, dword [eax + 8]
ja 0x10131264
mov esi, eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
movzx ebx, byte [ecx + eax - 1]
mov ecx, dword [edx + 0x3cc]
push ecx
call fcn.1014fb00
push eax
call fcn.100cc770
add esp, 8
test eax, 0x200000
je 0x101312bf
or edx, 0xffffffff
sub edx, ebx
add dword [esi + 8], edx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [esi + 8]
lea eax, [ebx + edi]
mov esi, ebp
sub esi, eax
xor esi, eax
mov ecx, ebp
xor ecx, eax
or esi, ecx
xor esi, ebp
shr esi, 0x1f
mov eax, 0x100
dec esi
mov dword [esp + 0x18], eax
cmp ebp, eax
jae 0x101312eb
mov eax, ebp
mov dword [esp + 0x18], ebp
xor edi, edi
test eax, eax
je 0x10131347
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x14]
mov ecx, ebx
shr ecx, 0x1f
lea edx, [eax + ebp - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
lea esp, [esp]
mov edx, ebx
sub edx, edi
shr edx, 0x1f
mov eax, edi
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
dec dl
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
dec dword [esp + 0x24]
xor edx, ebx
and eax, edx
not eax
inc edi
and esi, eax
cmp edi, dword [esp + 0x18]
jb 0x10131310
mov ecx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea eax, [esi - 1]
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
neg eax
inc ebx
and ebx, eax
sub ebp, ebx
mov dword [ecx + 8], ebp
mov dword [esp + 0x24], eax
not eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
pop ebp
pop edi
and eax, 1
pop esi
or eax, edx
pop ebx
pop ecx
ret
Function at 0x10131390
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.101e1c60
mov eax, dword [0x1035eca0]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 8]
push ebp
mov ebp, dword [esp + 0xb8]
mov dword [esp + 0x14], eax
sub eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
cmp eax, ebp
jb 0x101313e6
cmp ebp, 0x40
jbe 0x101313ff
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.101e425c
add esp, 0xa8
ret
push ebx
lea ebx, [esp + 0x30]
neg ebx
and ebx, 0x3f
lea ecx, [ebp + 0x100]
lea ebx, [esp + ebx + 0x30]
mov dword [esp + 0x24], ebx
cmp eax, ecx
jbe 0x10131426
sub eax, ebp
sub eax, 0x100
mov dword [esp + 0xc], eax
push edi
push ebp
push esi
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call fcn.101e44a0
mov edi, dword [esp + 0x1c]
mov eax, edi
add esp, 0xc
xor ecx, ecx
cmp eax, dword [esp + 0x14]
jae 0x101314da
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0xc0]
sub eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x30], eax
jmp 0x1013146a
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov edx, edi
xor edx, dword [esp + 0x24]
xor esi, ebx
lea eax, [edx - 1]
not edx
shr edx, 0x1f
shr eax, 0x1f
and eax, edx
mov edx, edi
xor edx, ebx
mov ebx, dword [esp + 0x28]
or esi, edx
neg eax
xor esi, edi
mov edx, eax
or edx, dword [esp + 0x1c]
shr esi, 0x1f
inc dword [esp + 0x10]
neg esi
and edx, esi
mov esi, dword [esp + 0x18]
and eax, ecx
mov dword [esp + 0x1c], edx
or esi, eax
mov eax, dword [esp + 0x30]
and dl, byte [eax + edi]
inc ecx
or byte [ecx + ebx - 1], dl
mov edx, ecx
sub edx, ebp
xor edx, ebp
mov eax, ecx
xor eax, ebp
or edx, eax
xor edx, ecx
shr edx, 0x1f
neg edx
inc edi
and ecx, edx
mov dword [esp + 0x18], esi
cmp edi, dword [esp + 0x14]
jb 0x10131466
xor eax, eax
pop edi
test ebp, ebp
je 0x1013150e
mov ecx, esi
xor ecx, 0x20
mov dl, byte [ecx + ebx]
mov cl, byte [esi + ebx]
mov edx, dword [esp + 0x28]
mov byte [edx + eax], cl
inc esi
mov ecx, esi
sub ecx, ebp
xor ecx, ebp
mov edx, esi
xor edx, ebp
or ecx, edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
inc eax
and esi, ecx
cmp eax, ebp
jb 0x101314e1
mov ecx, dword [esp + 0xb0]
pop ebx
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.101e425c
add esp, 0xa8
ret
Function at 0x10139020
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x134
call fcn.101e1c60
mov eax, dword [0x1035eca0]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x148]
push ebx
mov ebx, dword [esp + 0x140]
push ebp
mov ebp, dword [esp + 0x148]
push esi
mov esi, dword [esp + 0x150]
mov dword [esp + 0x14], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x148]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x10139085
cmp esi, dword [edi]
je 0x10139081
cmp ebx, eax
je 0x101390fe
cmp ebp, eax
jl 0x101390fe
mov dword [edi], esi
jmp 0x1013908b
mov esi, dword [edi]
cmp esi, eax
je 0x101390fe
push esi
call fcn.100cc790
add esp, 4
test al, 2
jne 0x101390fe
test ebx, ebx
je 0x101391f8
push esi
mov dword [esp + 0x14], 1
call fcn.100cc840
add esp, 4
cmp eax, 0x90
jg 0x101390fe
cmp eax, ebp
jge 0x10139119
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 4]
push ecx
push esi
push edx
call fcn.100dd540
add esp, 0xc
test eax, eax
je 0x101390fe
mov eax, dword [edi + 4]
push ebp
push ebx
push eax
call fcn.100dd6d0
add esp, 0xc
test eax, eax
je 0x101390fe
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call fcn.100dd6f0
add esp, 0xc
test eax, eax
jne 0x10139138
xor eax, eax
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101e425c
add esp, 0x134
ret
cmp ebp, 0x90
ja 0x101390fe
push ebp
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.101e4520
mov eax, ebp
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x1013913c
mov eax, dword [esp + 0x1c]
cmp eax, 0x90
je 0x1013915a
mov edx, 0x90
sub edx, eax
push edx
lea eax, [esp + eax + 0x24]
push 0
push eax
call fcn.101e44a0
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x20]
xor cl, 0x36
mov byte [esp + eax + 0xb0], cl
inc eax
cmp eax, 0x90
jl 0x10139160
mov ebx, dword [esp + 0x18]
mov edx, dword [edi + 8]
push ebx
push esi
push edx
call fcn.100dd540
add esp, 0xc
test eax, eax
je 0x1013921b
push esi
call fcn.100cc840
mov ecx, dword [edi + 8]
push eax
lea eax, [esp + 0xb8]
push eax
push ecx
call fcn.100dd6d0
add esp, 0x10
test eax, eax
je 0x1013921b
xor eax, eax
mov dl, byte [esp + eax + 0x20]
xor dl, 0x5c
mov byte [esp + eax + 0xb0], dl
inc eax
cmp eax, 0x90
jl 0x101391b1
mov eax, dword [edi + 0xc]
push ebx
push esi
push eax
call fcn.100dd540
add esp, 0xc
test eax, eax
je 0x1013921b
push esi
call fcn.100cc840
mov edx, dword [edi + 0xc]
push eax
lea ecx, [esp + 0xb8]
push ecx
push edx
call fcn.100dd6d0
add esp, 0x10
test eax, eax
je 0x1013921b
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.100dd800
add esp, 8
test eax, eax
je 0x10139214
mov dword [esp + 0x14], 1
cmp dword [esp + 0x10], 0
je 0x1013923f
lea edx, [esp + 0x20]
push 0x90
push edx
call fcn.100efe10
lea eax, [esp + 0xb8]
push 0x90
push eax
call fcn.100efe10
add esp, 0x10
mov eax, dword [esp + 0x14]
jmp 0x10139100
Function at 0x1013fa00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
push esi
test edx, edx
je 0x1013fa17
test byte [edx + 0x5c], 2
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x1013fa1c
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test ebp, ebp
jle 0x1013fae5
push ebx
push edi
mov edi, dword [esp + 0x14]
inc edi
jmp 0x1013fa30
movzx edx, byte [edi - 1]
cmp ebp, 3
jl 0x1013fa81
movzx ebx, byte [edi]
shl edx, 8
or edx, ebx
movzx ebx, byte [edi + 1]
shl edx, 8
or edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebx + esi]
mov byte [ecx], bl
mov ebx, edx
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebx + esi]
mov byte [ecx + 1], bl
mov ebx, edx
shr ebx, 6
and ebx, 0x3f
movzx ebx, byte [ebx + esi]
mov byte [ecx + 2], bl
and edx, 0x3f
mov dl, byte [edx + esi]
mov byte [ecx + 3], dl
jmp 0x1013fac9
shl edx, 0x10
cmp ebp, 2
jne 0x1013fa91
movzx ebx, byte [edi]
shl ebx, 8
or edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebx + esi]
mov byte [ecx], bl
mov ebx, edx
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebx + esi]
mov byte [ecx + 1], bl
cmp ebp, 1
jne 0x1013fab8
lea edx, [ebp + 0x3c]
jmp 0x1013fac2
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + esi]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
sub ebp, 3
add ecx, 4
add eax, 4
add edi, 3
test ebp, ebp
jg 0x1013fa30
pop edi
pop ebx
pop esi
mov byte [ecx], 0
pop ebp
ret
pop esi
mov byte [ecx], al
pop ebp
ret