joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10172b9b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10172c38
push ebx
push esi
call fcn.10172b64
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10171098
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10172be5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10172c37
push edi
push eax
call fcn.1016a918
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10172c05
call fcn.1016a009
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10172c36
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10171098
add esp, 0x20
test eax, eax
jne 0x10172c24
push edi
call fcn.1016a009
jmp 0x10172c2c
push ebx
call fcn.1016a009
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10172c3b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10172c4c
pop esi
ret
push ebx
push edi
push esi
call fcn.10172b64
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1016a918
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10172c74
push ebx
push esi
push edi
call fcn.1014a620
add esp, 0xc
push 0
call fcn.1016a009
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101733ce
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10172ee9

Function at 0x1017580c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10168659
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1017587b
cmp esi, dword [ebp - 4]
je 0x10175876
cmp dword [ebp + 0xc], 0
je 0x10175876
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10175853
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1017535e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1017587d
xor eax, eax
inc eax
jmp 0x1017587d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x101758e2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x102ec100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10168659
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10168659
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10175959
cmp word [ecx], dx
je 0x10175959
mov eax, dword [0x10279a34]
push edi
dec eax
push eax
push 0x10279920
call fcn.10175881
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x101759cc
cmp word [eax], dx
je 0x101759cc
mov eax, dword [edi]
test eax, eax
je 0x1017597d
cmp word [eax], dx
je 0x1017597d
lea eax, [ebp - 0x10]
push eax
call fcn.10175264
jmp 0x10175986
lea eax, [ebp - 0x10]
push eax
call fcn.101752ff
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x101759f6
mov eax, dword [0x1027991c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10279610
call fcn.10175881
add esp, 0xc
test al, al
je 0x101759f6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x101759c1
cmp word [eax], di
je 0x101759c1
lea eax, [ebp - 0x10]
push eax
call fcn.10175264
pop ecx
jmp 0x101759f8
lea eax, [ebp - 0x10]
push eax
call fcn.101752ff
jmp 0x101759be
mov eax, dword [edi]
test eax, eax
je 0x101759e3
cmp word [eax], dx
je 0x101759e3
lea eax, [ebp - 0x10]
push eax
call fcn.10175219
pop ecx
jmp 0x101759f6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10175ac1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10175706
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10175ac1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10175ac1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10175ac1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10175a4e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1016a756
test ebx, ebx
je 0x10175abc
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1016a756
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10175ac1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10175ac1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1015c055
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10175ac3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10123194
leave
ret
Function at 0x1017a721
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1017a69d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1017a890
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1017a890
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1017a845
jg 0x1017a77d
test eax, eax
je 0x1017a83b
push 1
push 0x1000
call fcn.1016ea39
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1017a7a0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1017a832
push 0x8000
push ebx
call fcn.1017a5ce
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1017a7c9
jg 0x1017a7c4
cmp ecx, 0x1000
jb 0x1017a7c9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1016dc7c
add esp, 0x10
cmp eax, 0xffffffff
je 0x1017a80e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1017a7c4
jl 0x1017a7f5
test ecx, ecx
jne 0x1017a7b6
push dword [ebp - 0xc]
push ebx
call fcn.1017a5ce
push esi
call fcn.1016a009
add esp, 0xc
xor ebx, ebx
jmp 0x1017a89e
cmp byte [edi + 0x24], 0
je 0x1017a825
cmp dword [edi + 0x20], 5
jne 0x1017a825
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1017a830
mov ebx, dword [edi + 0x18]
jmp 0x1017a832
xor ebx, ebx
push esi
call fcn.1016a009
pop ecx
jmp 0x1017a89e
test ecx, ecx
jg 0x1017a807
jl 0x1017a845
test eax, eax
jae 0x1017a807
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1016d334
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1017a865
cmp byte [edi + 0x1c], 0
je 0x1017a807
jmp 0x1017a896
push ebx
call fcn.101779d2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1017a807
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1017a89e
cmp byte [edi + 0x1c], 0
je 0x1017a89b
mov ebx, dword [edi + 0x18]
jmp 0x1017a89e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1016d334
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1017bec0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1017beed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1017beed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10181130
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x14]
call fcn.10199400
push 0x62
push edi
mov ebx, eax
call fcn.1014cf90
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x101811d0
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.1017c970
push 0x1027fe3c
push edi
push 0x1027fe40
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.1017bf60
add esp, 0x2c
call fcn.101630ab
cmp dword [eax], 2
je 0x101811ad
call fcn.101630ab
cmp dword [eax], 6
je 0x101811ad
lea eax, [ebx + 2]
lea ecx, [ebx + 0x51]
jmp 0x101811b7
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.1017c970
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1027fde4
call fcn.101819d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x101811f2
push ebx
call fcn.1015a53a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.10181350
push ebx
push esi
push 0x6a
push edi
call fcn.10181380
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10185a00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
je 0x10185b27
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 4]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
xor eax, ecx
dec edx
and eax, edx
mov dword [esp + 0x14], edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm4, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x10185b27
push esi
push edi
cmp ecx, 4
jb 0x10185b01
mov edx, dword [ebp]
lea edi, [ecx - 1]
mov esi, dword [ebx]
lea ebp, [ecx - 1]
lea ebp, [edx + ebp*4]
cmp esi, ebp
lea edi, [esi + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x10185aa0
cmp edi, edx
jae 0x10185b01
cmp esi, ebx
ja 0x10185aa8
cmp edi, ebx
jae 0x10185b01
cmp esi, ebp
ja 0x10185ab0
cmp edi, ebp
jae 0x10185b01
lea edi, [ecx - 1]
lea edi, [edx + edi*4]
cmp edx, ebx
ja 0x10185abe
cmp edi, ebx
jae 0x10185b01
cmp edx, ebp
ja 0x10185ac6
cmp edi, ebp
jae 0x10185b01
mov edi, ecx
and edi, 0xfffffffc
nop dword [eax + eax]
movups xmm3, xmmword [esi + eax*4]
movups xmm2, xmmword [edx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [edx + eax*4], xmm0
movups xmmword [esi + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x10185ad0
mov dword [esp + 0x18], eax
cmp eax, ecx
jge 0x10185b25
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x1c]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x10185b01
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10189a20
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
test esi, esi
je 0x10189a66
mov al, byte [esi]
test al, al
je 0x10189a66
push edi
mov edi, 0x100
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor cl, al
imul eax, eax
and cl, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x10189a37
mov eax, edx
pop edi
shr eax, 0x10
xor eax, edx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1018f390
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x84], 0xffffffff
jne 0x1018f3a2
xor eax, eax
pop ebx
ret
push ebp
push esi
push dword [ebx]
call fcn.1017cff0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x1018f456
mov ecx, dword [ebx + 0x84]
push edi
cmp ecx, esi
jne 0x1018f3f6
test esi, esi
jle 0x1018f434
mov edx, ebp
lea ecx, [ebx + 4]
mov edi, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x1018f3e0
jmp 0x1018f434
sub eax, ecx
mov byte [ecx + ebx + 0x64], 0x80
cmp eax, 1
jle 0x1018f414
dec eax
push eax
lea eax, [ebx + 0x65]
add eax, ecx
push 0
push eax
call fcn.1014aba0
add esp, 0xc
test esi, esi
jle 0x1018f434
mov edx, ebp
lea ecx, [ebx + 0x24]
mov edi, esi
nop
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x1018f420
push esi
push ebp
push ebp
push dword [ebx]
call fcn.1017d5c0
add esp, 0x10
pop edi
test eax, eax
jne 0x1018f456
push esi
push ebp
call fcn.10001320
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x101a0700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x38
call fcn.10123c70
mov eax, dword [0x102ec100]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
movzx ecx, byte [edx]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
mov bl, byte [edx + 3]
mov esi, dword [eax]
movzx eax, byte [edx + 1]
shl eax, 8
or ecx, eax
mov ebp, dword [esp + 0x54]
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x20], edx
movzx eax, bl
shl eax, 0x18
or ecx, eax
mov byte [esp + 0x3f], bl
movzx eax, byte [edx + 5]
shl eax, 8
movzx edi, byte [edx + 4]
mov dl, byte [edx + 7]
or edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
movzx ecx, dl
shl ecx, 8
movzx eax, byte [eax + 6]
or ecx, eax
mov dword [esp + 0x14], 0
mov eax, ecx
mov byte [esp + 0x42], cl
shl eax, 0x10
or edi, eax
mov byte [esp + 0x43], dl
mov eax, dword [esp + 0x10]
mov ebx, edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x3c], al
shr eax, 8
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x3e], al
mov eax, ebx
shr eax, 8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], al
test ebp, ebp
je 0x101a08c1
mov edi, dword [esp + 0x4c]
sub dword [esp + 0x18], edi
dec ebp
test esi, esi
jne 0x101a0866
push dword [esp + 0x30]
lea eax, [esp + 0x28]
push dword [esp + 0x38]
push dword [esp + 0x40]
push eax
call fcn.100025a0
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov ebx, dword [esp + 0x28]
mov eax, ecx
shr eax, 8
mov edx, dword [esp + 0x14]
mov byte [esp + 0x3d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x3e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x3f], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x41], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x42], al
mov eax, ebx
shr eax, 0x18
inc edx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x3c], cl
mov byte [esp + 0x40], bl
mov byte [esp + 0x43], al
mov dword [esp + 0x14], edx
jmp 0x101a086a
mov edx, dword [esp + 0x14]
mov al, byte [esp + esi + 0x3c]
inc esi
mov ecx, dword [esp + 0x18]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov ecx, dword [esp + 0x10]
test ebp, ebp
jne 0x101a07f3
test edx, edx
je 0x101a08c1
mov edx, dword [esp + 0x20]
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 2], al
mov eax, ebx
shr eax, 8
mov byte [edx + 5], al
mov eax, ebx
mov byte [edx], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [edx + 4], bl
shr ebx, 0x18
mov byte [edx + 3], cl
mov byte [edx + 6], al
mov byte [edx + 7], bl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10123194
add esp, 0x38
ret
Function at 0x101ceff0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
lea edx, [eax + 0x3c]
movd xmm0, ebx
pshufd xmm4, xmm0, 0
lea ecx, [esi + 0x3c]
cmp eax, ecx
ja 0x101cf03f
cmp edx, esi
jb 0x101cf03f
push edi
sub esi, eax
mov edi, 0x10
nop dword [eax]
mov edx, dword [eax + esi]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [eax + esi - 4], edx
xor dword [eax - 4], ecx
sub edi, 1
jne 0x101cf020
pop edi
pop esi
pop ebx
ret
sub esi, eax
mov ecx, 4
nop word [eax + eax]
lea eax, [eax + 0x10]
movups xmm1, xmmword [esi + eax - 0x10]
movups xmm3, xmmword [eax - 0x10]
movaps xmm2, xmm1
xorps xmm2, xmm3
andps xmm2, xmm4
movaps xmm0, xmm2
xorps xmm2, xmm3
xorps xmm0, xmm1
movups xmmword [esi + eax - 0x10], xmm0
movups xmmword [eax - 0x10], xmm2
sub ecx, 1
jne 0x101cf050
pop esi
pop ebx
ret
Function at 0x101d0d80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.10123c70
mov eax, dword [0x102ec100]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xa8]
push ebx
push ebp
mov ebp, dword [esp + 0xb4]
xor ebx, ebx
push esi
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x14], eax
xor eax, eax
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 0x14], ecx
test edi, edi
je 0x101d0df5
cmp edi, eax
je 0x101d0de9
test ecx, ecx
je 0x101d0f9d
test ebp, ebp
js 0x101d0f9d
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x101d0dff
test eax, eax
je 0x101d0f9d
mov edi, eax
push edi
call fcn.1017d220
add esp, 4
test al, 2
jne 0x101d0f9d
cmp dword [esp + 0x14], ebx
je 0x101d0f90
push edi
mov dword [esp + 0x14], 1
call fcn.1017d620
add esp, 4
cmp eax, 0x90
jg 0x101d0f9d
cmp eax, ebp
jge 0x101d0e8a
push dword [esp + 0x18]
push edi
push dword [esi + 4]
call fcn.10196ec0
add esp, 0xc
test eax, eax
je 0x101d0f9d
push ebp
push dword [esp + 0x18]
push dword [esi + 4]
call fcn.10197070
add esp, 0xc
test eax, eax
je 0x101d0f9d
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.10196e20
add esp, 0xc
test eax, eax
je 0x101d0f9d
lea eax, [esi + 0x10]
jmp 0x101d0eac
cmp ebp, 0x90
ja 0x101d0f9d
push ebp
push dword [esp + 0x18]
lea eax, [esi + 0x14]
push eax
call fcn.1014a620
lea eax, [esi + 0x10]
add esp, 0xc
mov dword [eax], ebp
mov ecx, dword [eax]
cmp ecx, 0x90
je 0x101d0ece
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call fcn.1014aba0
add esp, 0xc
mov ebp, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x90
jl 0x101d0ed4
push dword [esp + 0x18]
push edi
push dword [esi + 8]
call fcn.10196ec0
add esp, 0xc
test eax, eax
je 0x101d0f7a
push edi
call fcn.1017d620
push eax
lea eax, [esp + 0x24]
push eax
push dword [esi + 8]
call fcn.10197070
add esp, 0x10
test eax, eax
je 0x101d0f7a
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x90
jl 0x101d0f20
push dword [esp + 0x18]
push edi
push dword [esi + 0xc]
call fcn.10196ec0
add esp, 0xc
test eax, eax
je 0x101d0f7a
push edi
call fcn.1017d620
push eax
lea eax, [esp + 0x24]
push eax
push dword [esi + 0xc]
call fcn.10197070
add esp, 0x10
test eax, eax
je 0x101d0f7a
push dword [esi + 8]
push dword [esi + 4]
call fcn.10197090
add esp, 8
neg eax
sbb ebx, ebx
neg ebx
test ebp, ebp
je 0x101d0f8c
lea eax, [esp + 0x1c]
push 0x90
push eax
call fcn.10001320
add esp, 8
mov eax, ebx
jmp 0x101d0f9f
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x101d0f62
jmp 0x101d0ed2
xor eax, eax
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10123194
add esp, 0xa0
ret
Function at 0x101e5990
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x101e59a8
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x101e59ad
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x101e5a85
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 0x101e5a19
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 0x101e5a65
shl eax, 0x10
cmp esi, 2
jne 0x101e5a29
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 0x101e5a4c
mov al, 0x3d
jmp 0x101e5a55
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 0x101e59c3
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 0x101e7960
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.10123c70
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x101e79a4
cmp ecx, edx
jb 0x101e79a4
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x101e7993
pop edi
jmp 0x101e79b0
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
xorps xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call fcn.1017df50
add esp, 0x14
pop esi
test eax, eax
je 0x101e79d8
xor eax, eax
cmp dword [esp], 0x10
sete al
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x101e7b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x101e7b93
mov edx, dword [esp + 0x10]
test edx, edx
je 0x101e7b93
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [ebx + 0xc]
cmp edx, edi
cmovb edi, edx
test edi, edi
je 0x101e7b60
push esi
mov esi, ebp
lea ecx, [ebx + 0x10]
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x101e7b50
pop esi
mov eax, dword [ebx + 0xc]
cmp edx, eax
jbe 0x101e7b91
sub edx, eax
cmp edx, 0x10
jbe 0x101e7b75
mov edx, 0x10
jmp 0x101e7b79
test edx, edx
je 0x101e7b91
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0xc]
add eax, ecx
mov al, byte [eax + ebp]
xor byte [ebx + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x101e7b80
pop edi
pop ebx
pop ebp
ret