joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016f860
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x102620e8]
test eax, eax
je 0x1016f958
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x1016f891
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x1016f953
mov eax, dword [0x102620e8]
test eax, eax
je 0x1016f97a
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x1016f997
mov esi, eax
test eax, eax
jne 0x1016f8f5
push 8
push 0x20
call fcn.100985b0
add esp, 8
test eax, eax
je 0x1016f9b3
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x102620e8
mov esi, eax
mov eax, dword [0x102620e8]
test eax, eax
je 0x1016f9a1
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
test eax, eax
je 0x1016f914
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
cmp ecx, 1
je 0x1016f942
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1016f934
movaps xmm0, xmmword [esp]
jmp 0x1016f942
lea ecx, [esp + 0x10]
call fcn.1016c130
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x1016f999
push 0x102620e8
call fcn.101ae580
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x1016f884
jmp 0x1016f891
push 0x102620e8
call fcn.101ae580
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x1016f8af
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x102620e8
call fcn.101ae580
add esp, 4
jmp 0x1016f8ed
push 0x20
push 8
call fcn.101aefe0
add esp, 8
ud2
Function at 0x10184540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10184598
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x10184590
cmp ebp, ebx
jb 0x10184612
cmp ebp, dword [esp + 0x1c]
ja 0x10184623
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x10184592
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x10184580
jmp 0x101845ef
ja 0x10184598
cmp edx, edi
mov ebx, ebp
jne 0x10184555
mov edx, dword [esp + 0x24]
test edx, edx
je 0x101845f3
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x101845d0
mov esi, edi
sub ecx, ebx
jns 0x101845e7
jmp 0x101845f5
cmp edi, edx
je 0x101845fc
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x101845f5
xor al, 1
cmp esi, edx
jne 0x101845b0
jmp 0x101845f5
xor eax, eax
jmp 0x101845f5
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1023fe08
push 0x2b
push 0x1023ee6d
call fcn.101af1e0
add esp, 0xc
ud2
push 0x1023fdf8
push ebp
push ebx
call fcn.101af640
add esp, 0xc
ud2
push 0x1023fdf8
push dword [esp + 0x20]
push ebp
call fcn.101af5d0
add esp, 0xc
ud2
Function at 0x10187830
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
or esi, 0xffffffff
test ebx, ebx
je 0x10187877
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
sub ebp, edi
nop dword [eax]
mov eax, dword [edi + ebp]
lea edi, [edi + 4]
xor eax, dword [edi - 4]
mov ecx, esi
not ecx
lea edx, [eax - 1]
not eax
shr edx, 0x1f
shr eax, 0x1f
and edx, eax
neg edx
or edx, ecx
and esi, edx
sub ebx, 1
jne 0x10187850
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
ret

Function at 0x10188580
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x254
mov eax, dword [0x10262154]
xor eax, esp
mov dword [esp + 0x250], eax
cmp dword [esp + 0x260], 0
mov eax, dword [esp + 0x264]
mov ecx, dword [esp + 0x268]
push ebp
mov ebp, dword [esp + 0x25c]
push esi
mov esi, dword [esp + 0x264]
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
je 0x101886cf
push edi
push eax
lea eax, [esp + 0x80]
push eax
call fcn.10188c60
movups xmm0, xmmword [ecx]
mov ecx, dword [esp + 0x274]
lea edx, [esp + 0x24]
add esp, 8
lea edi, [esp + 0x5c]
movups xmmword [edx], xmm0
mov eax, dword [edx]
sub edi, ebp
mov dword [edx + 0x10], eax
mov eax, dword [edx + 4]
mov dword [edx + 0x14], eax
mov eax, dword [edx + 8]
mov dword [edx + 0x18], eax
mov eax, dword [edx + 0xc]
mov dword [edx + 0x1c], eax
mov edx, dword [esp + 0x28]
bswap edx
push ebx
mov eax, edx
mov dword [esp + 0x14], edx
bswap eax
mov dword [esp + 0x2c], eax
cmp ecx, 2
lea eax, [edx + 1]
mov ebx, ecx
bswap eax
mov dword [esp + 0x3c], eax
mov eax, 2
cmovae ebx, eax
lea eax, [esp + 0x20]
push ebx
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x24], ebx
push eax
call fcn.101896c0
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0xf0]
lea eax, [esp + 0x94]
push eax
call fcn.10188a90
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.10188d50
add esp, 0x24
test ebx, ebx
je 0x101886a2
sub esi, ebp
mov eax, ebp
nop dword [eax]
mov edx, 4
mov ecx, dword [eax]
xor ecx, dword [edi + eax]
mov dword [esi + eax], ecx
add eax, 4
sub edx, 1
jne 0x10188685
sub ebx, 1
jne 0x10188680
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x270]
sub ecx, ebx
mov dword [esp + 0x270], ecx
je 0x101886cd
mov edx, dword [esp + 0x14]
add esi, 0x20
add ebp, 0x20
mov dword [esp + 0x10], esi
sub edi, 0x20
add edx, 2
jmp 0x1018860f
pop ebx
pop edi
mov ecx, dword [esp + 0x258]
pop esi
pop ebp
xor ecx, esp
call fcn.10192a68
add esp, 0x254
ret
Function at 0x10188770
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x10262154]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x54]
cmp eax, 0x80
je 0x101887ca
cmp eax, 0x100
je 0x101887ae
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10192a68
add esp, 0x44
ret
push ecx
push ebx
call fcn.101891b0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10192a68
add esp, 0x44
ret
push ebp
push esi
push edi
push ecx
lea eax, [esp + 0x34]
mov dword [ebx + 0xf0], 0xa
push eax
call fcn.101888f0
movups xmm0, xmmword [esp + 0x38]
add esp, 8
mov edi, 1
movups xmmword [ebx], xmm0
add ebx, 0x10
nop word [eax + eax]
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
call fcn.10189940
lea eax, [esp + 0x14]
push eax
call fcn.101893d0
lea eax, [esp + 0x18]
push eax
call fcn.10189940
mov eax, dword [esp + 0x1c]
add esp, 0xc
movzx ebp, byte [edi + 0x101ceb4f]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
xor eax, eax
mov edx, dword [esp + eax*4 + 0x40]
mov cl, al
add cl, cl
mov esi, ebp
shr esi, cl
mov ecx, edx
and ecx, 0x3000000
shr edx, 8
or ecx, edx
and esi, 3
shr ecx, 0x12
xor esi, ecx
xor esi, dword [esp + eax*4 + 0x30]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [esp + eax*4 + 0x30], ecx
inc eax
cmp eax, 4
jb 0x10188877
movups xmm0, xmmword [esp + 0x30]
inc edi
movups xmmword [ebx], xmm0
add ebx, 0x10
cmp edi, 0xa
jbe 0x10188800
mov ecx, dword [esp + 0x50]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10192a68
add esp, 0x44
ret
Function at 0x10188d50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x10262154]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
push edi
movups xmm0, xmmword [eax]
movups xmmword [esp + 0xc], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0xc]
push eax
movups xmmword [esp + 0x20], xmm0
call fcn.10189940
xor edi, edi
add esp, 4
mov dword [esp + 4], edi
cmp dword [esp + 0x38], edi
jbe 0x10188f40
push ebx
lea eax, [ecx + 8]
push ebp
mov dword [esp + 0x10], eax
push esi
nop
mov ecx, dword [esp + edi*4 + 0x30]
mov eax, dword [esp + edi*4 + 0x28]
movzx eax, al
mov ebx, dword [esp + edi*4 + 0x20]
movzx edx, cl
shl edx, 8
or edx, eax
mov esi, dword [esp + edi*4 + 0x28]
shl edx, 8
movzx eax, bl
or edx, eax
mov eax, dword [esp + edi*4 + 0x18]
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov ebp, eax
shl ebp, 6
xor ebp, eax
mov eax, dword [esp + edi*4 + 0x30]
shr eax, 8
xor ebp, edx
movzx edx, al
mov eax, esi
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov eax, dword [esp + edi*4 + 0x18]
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov edi, eax
shl edi, 6
xor edi, eax
mov eax, dword [esp + ecx*4 + 0x30]
shr eax, 0x10
xor edi, edx
movzx edx, al
mov eax, esi
shr eax, 0x10
movzx eax, al
shl edx, 8
or edx, eax
mov eax, ebx
shr eax, 0x10
shl edx, 8
movzx eax, al
or edx, eax
mov eax, dword [esp + ecx*4 + 0x18]
shl edx, 8
shr eax, 0x10
and ebx, 0xff00ffff
movzx eax, al
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov esi, eax
shl esi, 6
xor esi, eax
mov eax, dword [esp + ecx*4 + 0x28]
xor esi, edx
and eax, 0xff0000ff
mov edx, dword [esp + ecx*4 + 0x18]
shr edx, 8
or edx, ebx
shr edx, 8
or edx, eax
mov eax, dword [esp + ecx*4 + 0x30]
and eax, 0xff000000
shr edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov ecx, eax
shl ecx, 6
xor ecx, eax
mov eax, dword [esp + 0x14]
xor ecx, edx
mov dword [eax - 8], ebp
mov dword [eax - 4], edi
mov edi, dword [esp + 0x10]
mov dword [eax], esi
inc edi
mov dword [eax + 4], ecx
add eax, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
cmp edi, dword [esp + 0x44]
jb 0x10188da0
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
pop edi
xor ecx, esp
call fcn.10192a68
add esp, 0x2c
ret
Function at 0x101891b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x10262154]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x3c]
push edi
mov edi, dword [esp + 0x58]
push esi
push eax
mov dword [edi + 0xf0], 0xe
call fcn.101888f0
movups xmm0, xmmword [esp + 0x48]
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
movups xmmword [edi], xmm0
call fcn.101888f0
movups xmm4, xmmword [esp + 0x40]
add esp, 0x10
lea ebp, [edi + 0x20]
mov ebx, 2
movups xmmword [edi + 0x10], xmm4
nop dword [eax]
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movups xmmword [esp + 0x10], xmm0
push eax
movups xmmword [esp + 0x24], xmm0
movaps xmm0, xmm4
movd dword [esp + 0x14], xmm4
psrldq xmm0, 4
movd dword [esp + 0x1c], xmm0
movaps xmm0, xmm4
psrldq xmm0, 8
movd dword [esp + 0x24], xmm0
movaps xmm0, xmm4
psrldq xmm0, 0xc
movd dword [esp + 0x2c], xmm0
call fcn.10189940
lea eax, [esp + 0x14]
push eax
call fcn.101893d0
lea eax, [esp + 0x18]
push eax
call fcn.10189940
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, ebx
shr eax, 1
mov cl, byte [eax + 0x101ceb4f]
xor eax, eax
movzx edi, cl
nop dword [eax]
mov edx, dword [esp + eax*4 + 0x30]
mov cl, al
add cl, cl
mov esi, edi
shr esi, cl
mov ecx, edx
and ecx, 0x3000000
shr edx, 8
or ecx, edx
and esi, 3
shr ecx, 0x12
xor esi, ecx
xor esi, dword [esp + eax*4 + 0x40]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [esp + eax*4 + 0x40], ecx
inc eax
cmp eax, 4
jb 0x101892a0
movups xmm0, xmmword [esp + 0x40]
movups xmmword [ebp], xmm0
cmp ebx, 0xe
je 0x101893b5
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
call fcn.10189940
lea eax, [esp + 0x14]
push eax
call fcn.101893d0
lea eax, [esp + 0x18]
push eax
call fcn.10189940
mov eax, dword [esp + 0x1c]
add ebx, 2
mov dword [esp + 0x3c], eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, 0x18
movups xmm2, xmmword [esp + 0x30]
movd xmm3, eax
mov eax, 8
psrld xmm2, xmm3
xorps xmm2, xmm4
movd xmm0, eax
movaps xmm4, xmm2
mov eax, 0x10
movaps xmm1, xmm2
pslld xmm4, xmm0
xorps xmm4, xmm2
movd xmm0, eax
pslld xmm1, xmm0
pslld xmm2, xmm3
xorps xmm4, xmm1
xorps xmm4, xmm2
movups xmmword [ebp + 0x10], xmm4
add ebp, 0x20
cmp ebx, 0xe
jbe 0x10189210
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10192a68
add esp, 0x44
ret
Function at 0x101899c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor bl, bl
push ebp
mov ebp, dword [esp + 0xc]
test edx, edx
je 0x10189a77
mov eax, dword [esp + 0x10]
push esi
mov esi, ebp
sub esi, eax
cmp edx, 0x20
jb 0x10189a56
push edi
mov edi, edx
xorps xmm3, xmm3
and edi, 0xffffffe0
xorps xmm2, xmm2
add eax, 0x10
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + ebp]
add ecx, 0x20
xorps xmm1, xmm0
orps xmm3, xmm1
movups xmm1, xmmword [esi + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
orps xmm2, xmm1
cmp ecx, edi
jb 0x101899f3
orps xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
orps xmm2, xmm0
movd ebx, xmm2
pop edi
cmp ecx, edx
jae 0x10189a70
mov eax, dword [esp + 0x14]
add eax, ecx
sub edx, ecx
nop word [eax + eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x10189a60
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x1018a740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
mov eax, dword [0x10262154]
xor eax, esp
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0xa4]
xorps xmm0, xmm0
push ebp
mov ebp, dword [esp + 0xa4]
xor ecx, ecx
push ebx
add edx, 0x60
push esi
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0xc], edx
movups xmmword [esp + 0x24], xmm0
push edi
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x58], xmm0
movups xmmword [esp + 0x68], xmm0
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x88], xmm0
movups xmmword [esp + 0x98], xmm0
inc ecx
mov edi, edx
mov dword [esp + 0x14], ecx
xor ecx, dword [esp + 0xb8]
lea eax, [ecx - 1]
not ecx
shr eax, 0x1f
shr ecx, 0x1f
and eax, ecx
neg eax
xor esi, esi
mov ebx, eax
not ebx
nop dword [eax + eax]
mov ecx, dword [esp + esi + 0x18]
lea edi, [edi + 4]
mov edx, dword [edi - 0x64]
and ecx, ebx
and edx, eax
or edx, ecx
mov ecx, dword [esp + esi + 0x48]
mov dword [esp + esi + 0x18], edx
and ecx, ebx
mov edx, dword [edi - 0x34]
and edx, eax
or edx, ecx
mov ecx, ebx
and ecx, dword [esp + esi + 0x78]
mov dword [esp + esi + 0x48], edx
mov edx, dword [edi - 4]
and edx, eax
or edx, ecx
mov dword [esp + esi + 0x78], edx
add esi, 4
cmp esi, 0x30
jb 0x1018a7d0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add edx, 0x90
mov dword [esp + 0x10], edx
cmp ecx, 0x10
jb 0x1018a7a5
pop edi
lea ecx, [esp + 0x40]
lea eax, [ebp + 0x2c]
pop esi
pop ebx
cmp ebp, ecx
ja 0x1018a837
lea ecx, [esp + 0xc]
movups xmm0, xmmword [esp + 0xc]
mov ecx, dword [esp + 0x9c]
movups xmmword [ebp], xmm0
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [ebp + 0x10], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [ebp + 0x20], xmm0
movups xmm0, xmmword [esp + 0x3c]
movups xmmword [ebp + 0x30], xmm0
movups xmm0, xmmword [esp + 0x4c]
movups xmmword [ebp + 0x40], xmm0
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [ebp + 0x50], xmm0
movups xmm0, xmmword [esp + 0x6c]
movups xmmword [ebp + 0x60], xmm0
movups xmm0, xmmword [esp + 0x7c]
movups xmmword [ebp + 0x70], xmm0
movups xmm0, xmmword [esp + 0x8c]
movups xmmword [ebp + 0x80], xmm0
pop ebp
xor ecx, esp
call fcn.10192a68
add esp, 0x9c
ret
Function at 0x1018c5a0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov ecx, dword [esp + 4]
mov al, byte [ecx + 0x1f]
and byte [ecx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ecx + 0x1f], al
ret
Function at 0x10192530
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebp
push ebx
xorps xmm0, xmm0
mov dword [esp + 8], 0
movlpd qword [esp + 0x14], xmm0
mov eax, 1
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x40
push edi
mov edi, eax
xor ebx, ebx
and edi, 1
neg edi
adc ebx, ebx
and edi, dword [esp + 0x28]
neg ebx
mov ecx, edi
and edi, dword [esp + 0x14]
xor ecx, eax
mov esi, ebx
and esi, dword [esp + 0x2c]
mov eax, esi
and esi, dword [esp + 0x10]
xor eax, dword [esp + 0x10]
shrd ecx, eax, 1
shr eax, 1
add ecx, edi
mov dword [esp + 0x14], ecx
adc eax, esi
and ebx, 0x80000000
shrd ebp, edx, 1
mov dword [esp + 0x10], eax
xor eax, eax
shr edx, 1
add ebp, eax
mov eax, ecx
adc edx, ebx
sub dword [esp + 0x18], 1
jne 0x10192561
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x14
ret

Function at 0x10197332
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x10197371
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10197371
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10197371
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10197371
cmp dword [ecx + 0x74], 0xe
jbe 0x10197371
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10199ff6
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 0x1019a093
push ebx
push esi
call fcn.10199fbd
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.10199f51
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1019a040
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1019a092
push edi
push eax
call fcn.1019afb1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1019a060
call fcn.10198a99
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1019a091
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10199f51
add esp, 0x20
test eax, eax
jne 0x1019a07f
push edi
call fcn.10198a99
jmp 0x1019a087
push ebx
call fcn.10198a99
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 0x1019a300
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10248090
push 0x10248088
push str.FlsAlloc
push 0x1f
call fcn.1019a21c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1019a334
push dword [ebp + 8]
mov ecx, esi
call dword [0x101b0230]
call esi
jmp 0x1019a33a
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1019a37e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x102480a0
push 0x10248098
push str.FlsGetValue
push 0x21
call fcn.1019a21c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1019a3b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x101b0230]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]

Function at 0x1019a3bd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x102480a8
push 0x102480a0
push str.FlsSetValue
push 0x22
call fcn.1019a21c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1019a3f7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101b0230]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsSetValue]
Function at 0x1019fa80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1019faad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1019faad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret