joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10086545
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp edi, 1
jne 0x100865ee
mov edi, dword [ebp + 0x10]
shl edx, 3
test edx, edx
js 0x1008665a
imul edi, eax
cmp edx, edi
cmovl edi, edx
cmp edi, 2
jl 0x10086652
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
xor edx, edx
xor esi, esi
inc esi
mov dword [ebp - 0x14], edi
mov ecx, esi
and ecx, 7
mov dword [ebp - 0x20], ecx
mov edi, esi
shr edi, 3
mov dword [ebp - 0x1c], edi
mov ebx, ecx
xor bl, 7
mov ecx, dword [ebp - 0x10]
movzx edi, byte [ecx + edi]
mov dword [ebp - 0x18], edi
mov ecx, ebx
shr edi, cl
movzx eax, al
xor dl, 7
mov ecx, edx
shr eax, cl
xor edx, edx
inc edx
mov ecx, ebx
shl edx, cl
mov ebx, edx
not bl
mov ecx, dword [ebp - 0x18]
and bl, cl
or dl, cl
xor eax, edi
mov edi, dword [ebp - 0x14]
test al, 1
movzx edx, dl
movzx eax, bl
cmovne eax, edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov byte [ecx + edx], al
inc esi
mov edx, dword [ebp - 0x20]
cmp edi, esi
jne 0x1008658c
jmp 0x10086652
imul eax, edi
lea esi, [eax + 7]
test eax, eax
cmovns esi, eax
sar esi, 3
cmp edi, 0x10
jne 0x1008663b
inc esi
cmp esi, edx
jae 0x10086652
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
movzx ebx, word [ecx + eax - 1]
rol bx, 8
mov ecx, dword [ebp - 0x10]
movzx edi, word [ecx + esi - 1]
rol di, 8
add edi, ebx
rol di, 8
mov ecx, dword [ebp - 0x10]
mov word [ecx + esi - 1], di
add esi, 2
add eax, 2
cmp esi, edx
jb 0x10086609
jmp 0x10086652
sub edx, esi
jbe 0x10086652
add esi, dword [ebp - 0x10]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov bl, byte [ecx + eax]
add byte [esi + eax], bl
inc eax
cmp edx, eax
jne 0x10086647
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x1009e364
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
lea ecx, [eax + 0xc]
test eax, eax
mov eax, 0x1026a083
cmovne eax, ecx
push 0x1028fca6
push eax
call fcn.10250a9a
add esp, 8
test eax, eax
je 0x1009e4b5
mov esi, eax
xor edi, edi
push 2
push edi
push eax
call fcn.1024bb52
add esp, 0xc
push esi
call fcn.1024be75
add esp, 4
mov dword [ebp - 0x24], eax
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x20]
movdqu xmmword [ebx], xmm0
push edi
push edi
push esi
call fcn.1024bb52
add esp, 0xc
push esi
push 1
push 0xc
push ebx
call fcn.102534be
add esp, 0x10
cmp eax, 1
jne 0x1009e4ac
mov eax, dword [ebp - 0x20]
bswap eax
cmp eax, 0x74746366
jne 0x1009e494
mov ecx, dword [ebp - 0x18]
bswap ecx
lea eax, [ecx*4]
xor edx, edx
test ecx, 0xc0000000
cmove edx, eax
mov dword [ebp - 0x2c], ecx
cmp ecx, 0x3fffffff
ja 0x1009e4ac
xor edi, edi
inc edi
push edi
push edx
mov ebx, edx
call fcn.100058be
add esp, 8
push esi
push ebx
push edi
mov dword [ebp - 0x28], eax
push eax
call fcn.102534be
add esp, 0x10
cmp eax, ebx
jne 0x1009e482
cmp dword [ebp - 0x2c], 0
je 0x1009e482
mov ecx, ebx
shr ecx, 2
xor edi, edi
mov eax, dword [ebp - 0x24]
sar eax, 0x1f
mov dword [ebp - 0x34], eax
cmp ecx, edi
je 0x1009e4c9
mov ebx, ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + edi*4]
bswap eax
mov ecx, dword [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x24]
push esi
push dword [ebp + 8]
call fcn.1009e4cc
inc edi
cmp dword [ebp - 0x2c], edi
mov ecx, ebx
jne 0x1009e459
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1009e4ac
push eax
call fcn.1000e996
add esp, 4
jmp 0x1009e4ac
mov edx, dword [ebp - 0x24]
mov eax, edx
sar eax, 0x1f
mov ecx, dword [ebp - 0x30]
push 0
push eax
push edx
push esi
push dword [ebp + 8]
call fcn.1009e4cc
push esi
call fcn.10252920
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1023b4d8
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
Function at 0x1009e9b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
dec ebx
lea edi, [ebp - 0x14]
mov dword [edi], ebx
mov ecx, edi
call fcn.100016c8
lea esi, [ebp - 0x1c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov ebx, dword [ebp + 8]
mov ecx, edi
push ebx
push esi
call fcn.100016d6
push dword [ebp - 0x24]
push 1
push ebx
push dword [esi]
call fcn.102534be
add esp, 0x10
test eax, eax
je 0x1009ea1d
mov ecx, edi
push ebx
call fcn.1000179a
mov esi, dword [ebp - 0x20]
mov ecx, esi
push edi
call fcn.10001860
jmp 0x1009ea27
mov esi, dword [ebp - 0x20]
mov ecx, esi
call fcn.100016c8
lea ecx, [ebp - 0x14]
call fcn.10001802
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1023b4d8
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b5fd9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x10], edx
test ecx, ecx
jle 0x100b60ae
lea eax, [ebp + 0x18]
lea edi, [ebp + 0x10]
lea esi, [ebp + 8]
mov edx, dword [ebp - 0x10]
lea ebx, [edx - 3]
mov dword [ebp - 0x1c], ebx
mov eax, dword [eax]
mov edi, dword [edi]
mov ebx, dword [esi]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov al, byte [edi + 3]
test esi, esi
je 0x100b602e
movzx eax, al
movzx edx, byte [esi]
inc esi
movzx eax, ax
imul eax, edx
imul eax, eax, 0x8081
shr eax, 0x17
jmp 0x100b6030
xor esi, esi
test al, al
je 0x100b605c
mov dword [ebp - 0x14], esi
mov esi, edi
movzx eax, al
mov dword [ebp - 0x18], eax
cmp eax, 0xff
jne 0x100b6064
mov edi, esi
mov al, byte [esi + 2]
mov byte [ebx + 2], al
movzx eax, word [esi]
mov word [ebx], ax
add ebx, dword [ebp - 0x10]
add edi, 4
jmp 0x100b609f
add ebx, dword [ebp - 0x10]
add edi, 4
jmp 0x100b60a2
mov ecx, dword [ebp - 0x18]
xor ecx, 0xff
xor edi, edi
movzx edx, byte [ebx + edi]
imul edx, ecx
movzx eax, byte [esi + edi]
imul eax, dword [ebp - 0x18]
add eax, edx
mov edx, 0x1010102
mul edx
mov byte [ebx + edi], dl
inc edi
cmp edi, 3
jne 0x100b606f
mov eax, ebx
add eax, dword [ebp - 0x1c]
add eax, edi
mov ebx, eax
add edi, esi
inc edi
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
inc eax
cmp eax, ecx
jne 0x100b600c
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b60b6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0x24], edx
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
jle 0x100b61df
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
xor eax, eax
dec eax
lea esi, [ebp - 0x1c]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x24]
and eax, 0xfffffffc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
lea eax, [ecx - 3]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov bl, byte [edx + 3]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100b612f
mov esi, eax
movzx eax, bl
movzx ecx, byte [esi]
inc esi
mov dword [ebp - 0x20], esi
movzx eax, ax
imul eax, ecx
imul ebx, eax, 0x8081
shr ebx, 0x17
jmp 0x100b6136
mov dword [ebp - 0x20], 0
test bl, bl
je 0x100b61cc
cmp dword [ebp - 0x2c], 0xc
jne 0x100b615c
mov ecx, dword [ebp - 0x24]
mov esi, edi
mov edi, edx
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.100b9574
mov edx, edi
mov edi, esi
add esp, 8
movzx eax, bl
mov dword [ebp - 0x3c], eax
xor eax, 0xff
mov dword [ebp - 0x38], eax
inc edx
mov ebx, 0xfffffff4
mov dword [ebp - 0x40], edi
movzx edi, byte [edi]
cmp dword [ebp - 0x2c], 0xc
jne 0x100b6184
mov ecx, dword [ebp + ebx - 0x10]
mov esi, edx
jmp 0x100b619a
movzx eax, byte [edx - 1]
mov ecx, dword [ebp - 0x24]
mov esi, edx
mov edx, edi
push eax
call fcn.100b9830
add esp, 4
mov ecx, eax
imul edi, dword [ebp - 0x38]
imul ecx, dword [ebp - 0x3c]
add ecx, edi
mov eax, ecx
mov edx, 0x80808081
imul edx
add edx, ecx
mov eax, edx
shr eax, 0x1f
shr edx, 7
add edx, eax
mov edi, dword [ebp - 0x40]
mov byte [edi], dl
inc edi
inc esi
add ebx, 4
mov edx, esi
jne 0x100b6170
add edi, dword [ebp - 0x30]
jmp 0x100b61d2
add edi, dword [ebp + 0x18]
add edx, 4
mov eax, dword [ebp - 0x28]
inc eax
cmp eax, dword [ebp - 0x34]
jne 0x100b6105
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1023b4d8
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b62f7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov dword [ebp - 0x24], edx
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jle 0x100b6486
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor eax, eax
dec eax
lea ebx, [ebp - 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x24]
and eax, 0xfffffffc
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp + 0x1c]
lea eax, [edx - 3]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], ecx
movzx edx, byte [edi + 3]
test edx, edx
je 0x100b645e
mov dword [ebp - 0x28], edx
movzx edx, byte [ebx]
test edx, edx
je 0x100b6476
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x20], esi
mov ebx, dword [ebp - 0x28]
lea ecx, [ebx + edx]
mov eax, ebx
imul eax, edx
imul eax, eax, 0x8081
shr eax, 0x17
sub ecx, eax
mov eax, edx
shl eax, 8
sub eax, edx
movzx esi, cl
xor edx, edx
div si
mov esi, eax
mov byte [edi + 3], cl
cmp dword [ebp - 0x2c], 0xc
jne 0x100b63a9
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.100b9574
add esp, 8
movzx ecx, si
mov eax, 0xff
xor ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ecx
sub eax, ecx
mov dword [ebp - 0x40], eax
inc edi
mov eax, 0xfffffff4
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x20], esi
movzx esi, byte [esi]
cmp dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x4c], eax
jne 0x100b63e2
mov ecx, dword [ebp + eax - 0x10]
mov ebx, edi
movzx edi, byte [edi - 1]
jmp 0x100b63f8
mov ebx, edi
movzx edi, byte [edi - 1]
mov ecx, dword [ebp - 0x24]
mov edx, edi
push esi
call fcn.100b9830
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x28]
imul edi, dword [ebp - 0x40]
imul esi, dword [ebp - 0x44]
imul ecx, eax
add ecx, esi
mov eax, ecx
mov edx, 0x80808081
imul edx
mov esi, edx
add esi, ecx
mov eax, esi
shr eax, 0x1f
sar esi, 7
add esi, eax
imul esi, dword [ebp - 0x48]
add esi, edi
mov eax, esi
mov ecx, 0x80808081
imul ecx
add edx, esi
mov eax, edx
shr eax, 0x1f
shr edx, 7
add edx, eax
mov byte [ebx - 1], dl
mov esi, dword [ebp - 0x20]
inc esi
inc ebx
mov eax, dword [ebp - 0x4c]
add eax, 4
mov edi, ebx
jne 0x100b63c7
add esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
jmp 0x100b647c
mov edx, eax
mov al, byte [esi + 2]
mov byte [edi + 2], al
movzx eax, word [esi]
mov word [edi], ax
mov eax, edx
add esi, dword [ebp + 0x18]
add edi, 4
jmp 0x100b647c
add edi, 4
add esi, dword [ebp + 0x18]
inc ebx
inc eax
cmp eax, ecx
jne 0x100b6343
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1023b4d8
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b65ae
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jle 0x100b6667
lea eax, [ebp + 0x10]
lea ecx, [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x18], esi
mov edi, dword [eax]
mov esi, dword [ecx]
add esi, 2
xor ebx, ebx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + ebx]
test ecx, ecx
je 0x100b6658
cmp ecx, 0xff
jne 0x100b65fe
lea eax, [esi - 2]
mov cl, byte [edi + 2]
mov byte [eax + 2], cl
movzx ecx, word [edi]
mov word [eax], cx
jmp 0x100b6658
movzx edx, byte [esi - 2]
mov eax, ecx
xor eax, 0xff
mov dword [ebp - 0x10], eax
imul edx, eax
movzx eax, byte [edi]
imul eax, ecx
add eax, edx
mov edx, 0x1010102
mul edx
mov byte [esi - 2], dl
movzx edx, byte [esi - 1]
imul edx, dword [ebp - 0x10]
movzx eax, byte [edi + 1]
imul eax, ecx
add eax, edx
mov edx, 0x1010102
mul edx
mov byte [esi - 1], dl
movzx edx, byte [esi]
imul edx, dword [ebp - 0x10]
movzx eax, byte [edi + 2]
imul eax, ecx
add eax, edx
mov ecx, 0x1010102
mul ecx
mov byte [esi], dl
mov edx, dword [ebp - 0x14]
add edi, dword [ebp + 0x18]
inc ebx
add esi, edx
cmp dword [ebp - 0x1c], ebx
jne 0x100b65da
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10100310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x1010038c
mov eax, dword [ebp + 8]
cmp dword [0x104487c4], eax
jg 0x1010038c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
mov dword [ebp - 0x1c], esi
add esi, ebx
nop dword [eax]
cmp ebx, esi
jae 0x1010037b
mov dword [ebp - 0x18], 0
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1010037b
mov eax, dword [ebp - 0x18]
add ebx, eax
test eax, eax
jne 0x10100350
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x1010038c
cmp byte [ecx + eax - 1], 0xa
jne 0x1010039e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1023b4d8
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x1028e540
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea ebx, [ebp - 0x14]
cmp edi, 0x1028e541
jae 0x1010038c
mov dword [ebp - 0x14], 0
mov eax, 0x1028e541
sub eax, edi
push 0
push ebx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1010038c
mov eax, dword [ebp - 0x14]
add edi, eax
test eax, eax
jne 0x101003b0
jmp 0x1010038c

Function at 0x10101090
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
pop ebp
jmp fcn.101010a0
Function at 0x101053e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [ecx + 0x1174]
mov ebx, dword [ecx + 0x1178]
add ebx, eax
mov eax, dword [ecx + 0x116c]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x40000001
jb 0x10105416
push dword [ebp + 8]
call fcn.101037c0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, 0x40000000
mov edi, 0xaf000000
cmove edi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x343677
mov dword [esp + 0x50], 0x6f777369
lea eax, [esp + 0x50]
push eax
call fcn.1000a320
add esp, 4
cmp ebx, edi
jbe 0x10105476
push ebx
call fcn.101037f0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x657a69
mov dword [esp + 0x40], 0x735f6176
lea eax, [esp + 0x40]
push eax
call fcn.1000a320
add esp, 4
mov eax, dword [esi + 0x117c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x20200063
mov dword [esp + 0x30], 0x6f6c6c61
lea eax, [esp + 0x30]
push eax
call fcn.1000a320
add esp, 4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov eax, dword [esi + 0x116c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x20007469
mov dword [esp + 0x10], 0x6d6d6f63
lea eax, [esp + 0x10]
push eax
call fcn.1000a320
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x20202000
mov dword [esp + 0x20], 0x657a6973
lea eax, [esp + 0x20]
push eax
call fcn.1000a320
add esp, 4
mov ecx, dword [0x1044a820]
test ecx, ecx
je 0x10105549
call dword [section..00cfg]
push esi
call ecx
add esp, 4
push esi
call fcn.101019b0
int3
Function at 0x101064d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov ebx, dword [ebp + 8]
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [esp + 0x158], eax
test ebx, ebx
je 0x101065b0
cmp dword [0x10440320], 0xe69e32f3
je 0x1010652c
lea esi, [esp + 0x10]
mov ecx, esi
push str.tools::kThreadCacheNeedleArray_0___tools::kNeedle1
push 0x1c1
push str..._base_allocatorpartition_allocator_thread_cache.cc
call fcn.100ffc80
mov ecx, esi
call fcn.100ffcd0
mov ecx, esi
call fcn.100ffce0
mov byte [esp + 0xf], 0xff
xor edi, edi
cmp byte [ebx + 2], 1
adc edi, 0x24
shl edi, 5
mov eax, ebx
add ebx, edi
add ebx, 0x48
lea esi, [eax + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x10106559
mov ecx, esi
call fcn.101060e0
mov dword [esp + 8], esi
mov eax, dword [ebx]
mov esi, dword [eax]
test esi, esi
je 0x1010667a
mov byte [esp + 0xf], 0
mov edx, dword [esi]
test edx, edx
je 0x101065ed
mov ecx, dword [ebp + 8]
add ecx, 0x48
mov ebx, dword [ecx + edi + 0xc]
mov ecx, edx
bswap ecx
test ecx, 0x1fc000
je 0x101066cf
mov edi, ecx
xor edi, esi
cmp edi, 0x1fffff
ja 0x101066cf
mov edi, edx
not edi
cmp dword [esi + 4], edi
jne 0x101066cf
prefetcht0 byte [ecx]
jmp 0x101065ef
lea esi, [esp + 0x10]
mov ecx, esi
push str.root
push 0x1be
push str..._base_allocatorpartition_allocator_thread_cache.cc
call fcn.100ffc80
mov ecx, esi
call fcn.100ffcd0
mov ecx, esi
call fcn.100ffce0
cmp dword [0x10440320], 0xe69e32f3
jne 0x10106504
jmp 0x1010652c
xor ecx, ecx
mov edi, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x117c]
add ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x1180]
mov dword [edi + 0x117c], ecx
cmp eax, ecx
cmova ecx, eax
mov dword [edi + 0x1180], ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, esi
push edi
call fcn.10106740
push esi
push dword [0x1044a840]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1044b6a0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x158]
xor ecx, ebp
call fcn.1023b4d8
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0xf]
mov ecx, ebx
push eax
push 0x4000
push 0x308
push 2
mov edi, dword [ebp + 8]
push edi
call fcn.10102960
test eax, eax
je 0x10106729
mov esi, eax
and eax, 0xffe00000
mov ecx, esi
shr ecx, 9
and ecx, 0x1fe0
or ecx, eax
mov eax, ecx
or eax, 0x1000
or ecx, 0x101e
movzx ecx, byte [ecx]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
jmp 0x1010660b
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
lea edi, [esp + 0x10]
mov ecx, edi
push 0
push edx
push str.first
call fcn.1000f8fe
push edi
call fcn.1000a320
add esp, 4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x140], xmm0
lea edi, [esp + 0x140]
mov ecx, edi
push 0
push dword [esi + 4]
push str.second
call fcn.1000f8fe
push edi
call fcn.1000a320
add esp, 4
push ebx
call fcn.10103750
xor esi, esi
jmp 0x1010662e
Function at 0x10107070
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x12c
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [0x1044a89c], 0
je 0x101070b5
lea esi, [ebp - 0x134]
mov ecx, esi
push str.g_destructor__nullptr
push 0x29
push str..._base_allocatorpartition_allocatorpartition_tls_win.cc
call fcn.100ffc80
mov ecx, esi
call fcn.100ffcd0
mov ecx, esi
call fcn.100ffce0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x101070d3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov dword [0x1044a8a0], eax
mov dword [0x1044a89c], ecx
cmp eax, 0xffffffff
setne bl
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1023b4d8
mov eax, ebx
add esp, 0x12c
pop esi
pop ebx
pop ebp
ret

Function at 0x10107100
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x10107111
test eax, eax
jne 0x10107161
test eax, eax
jne 0x10107127
mov ecx, dword [0x1044a8a4]
test ecx, ecx
je 0x10107127
call dword [section..00cfg]
call ecx
cmp dword [0x1044a89c], 0
je 0x10107161
mov esi, dword [0x1044a8a0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x10107167
test esi, esi
je 0x10107161
mov ecx, dword [0x1044a89c]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x1010714f
jmp 0x10107161
Function at 0x1013bc9e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
push edi
call fcn.1013b554
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], ebx
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x34]
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx], xmm0
mov dword [ebx + 0x20], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x1c]
cmp eax, ecx
cmova ecx, eax
mov dword [esi + 0x98], ecx
mov dword [esi + 0x9c], 0x10
mov dword [esi + 0xa0], 0x20
mov dword [esi + 0xa4], edi
lea eax, [esi + 4]
mov dword [esi + 4], edi
xor eax, 0xb37cc16a
mov dword [esi + 8], eax
mov dword [esi + 0xc], esi
pxor xmm0, xmm0
movdqu xmmword [esi + 0x14], xmm0
movdqu xmmword [esi + 0x24], xmm0
movdqu xmmword [esi + 0x34], xmm0
movdqu xmmword [esi + 0x44], xmm0
movdqu xmmword [esi + 0x54], xmm0
movdqu xmmword [esi + 0x64], xmm0
movdqu xmmword [esi + 0x74], xmm0
movdqu xmmword [esi + 0x80], xmm0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1023b4d8
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x1013fcd6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1013fd37
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
xor esi, esi
mov dword [ebp - 0x14], eax
mov ebx, dword [ecx]
inc ebx
mov edi, 0xff
and ebx, edi
mov dword [ecx], ebx
mov eax, dword [ecx + ebx*4 + 8]
mov edx, dword [ecx + 4]
add edx, eax
and edx, edi
mov dword [ecx + 4], edx
mov edi, dword [ecx + edx*4 + 8]
mov dword [ecx + ebx*4 + 8], edi
mov dword [ecx + edx*4 + 8], eax
add eax, dword [ecx + ebx*4 + 8]
mov edx, 0xff
and eax, edx
mov al, byte [ecx + eax*4 + 8]
mov edx, dword [ebp - 0x10]
xor byte [edx + esi], al
mov eax, dword [ebp - 0x14]
inc esi
cmp eax, esi
jne 0x1013fcf4
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret