joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57b160
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x6f9e98]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x57b2b0
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x57b1ac
test edi, edi
je 0x57b21d
dec edi
push esi
push ebp
call fcn.0057b2c0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x57b1bf
xor cl, cl
jmp 0x57b1c1
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x57b204
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x6f9e98]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x57b21d
test eax, eax
jne 0x57b1a2
cmp cl, 0xd
je 0x57b221
cmp cl, 0xa
jne 0x57b1a2
dec esi
jmp 0x57b293
test eax, eax
jne 0x57b293
cmp cl, 0xa
jne 0x57b229
dec esi
jmp 0x57b293
cmp cl, 0xd
jne 0x57b293
dec esi
cmp dword [ebp + 4], 0
je 0x57b248
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0057ab20
mov dword [esp + 0x20], eax
jmp 0x57b25f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x57b293
cmp dword [ebp + 4], 0
je 0x57b271
inc dword [ebp + 0xc]
jmp 0x57b293
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x57b2c0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x57b2e7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0057ab20
mov dword [esp + 4], eax
jmp 0x57b301
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x57b3b4
mov cl, byte [esp + 0xc]
test cl, cl
js 0x57b326
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x57b336
mov esi, 2
jmp 0x57b352
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x57b345
mov esi, 3
jmp 0x57b352
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x57b3a0
mov esi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [esi - 1]
mov byte [eax], cl
inc eax
cmp dword [edi + 4], 0
je 0x57b37b
push ebx
push eax
push edi
call fcn.0057ab20
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop edi
pop ecx
ret 8

Function at 0x57c43c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x57c49a
add ebx, 2
lea eax, [ebx*2 + 2]
push eax
push edi
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x57c49a
cmp dword [ebp + 0xc], 0
je 0x57c489
push dword [ebp + 0xc]
push edi
call fcn.00651fc6
push 0x68d3b4
push edi
call fcn.006520c7
add esp, 0x10
jmp 0x57c496
push 0x68d3b4
push edi
call fcn.00651fc6
pop ecx
pop ecx
mov esi, edi
jmp 0x57c49d
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x57c506
mov eax, dword [0x6f6cf0]
dec eax
sub eax, 1
je 0x57c4e0
sub eax, 0x16
je 0x57c4d8
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + ebx]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x57c506
push esi
call fcn.0063b8f0
jmp 0x57c4e6
push esi
call fcn.0063b990
mov esi, eax
lea eax, [ebp + 0x10]
push 0
push eax
push esi
call fcn.00652540
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0063b8e0
test edi, edi
je 0x57c519
push edi
push 0
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x57c770
Capabilities:
Hash data using sha384

Disassembly:
mov eax, dword [esp + 4]
push 0x40
push 0x68d748
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], 0x30
add eax, 0x88
push eax
call fcn.00541970
add esp, 0xc
ret
Function at 0x57c886
Capabilities:
Hash data using sha512

Disassembly:
mov eax, dword [esp + 4]
push 0x40
pop ecx
push ecx
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], ecx
add eax, 0x88
push 0x68d708
push eax
call fcn.00541970
add esp, 0xc
ret
Function at 0x57ffdb
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
push 0x20
pop ecx
push ecx
and dword [eax + 0x40], 0
and dword [eax + 0x44], 0
mov dword [eax + 0x68], ecx
add eax, 0x48
push 0x68d888
push eax
call fcn.00541970
add esp, 0xc
ret
Function at 0x5817d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
or eax, edx
push esi
mov esi, dword [esp + 0x14]
or eax, esi
push edi
mov edi, dword [esp + 0x1c]
or eax, edi
test al, 3
jne 0x581821
add edi, esi
cmp esi, edi
jae 0x581839
sub ebx, esi
add ebx, edx
mov ecx, dword [esi]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [ebx + esi], edx
add esi, 4
cmp esi, edi
jb 0x5817f9
jmp 0x581839
add edi, edx
cmp edx, edi
jae 0x581839
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 3
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x581829
pop edi
pop esi
pop ebx
ret

Function at 0x58183d
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push ebp
or eax, edx
push esi
mov esi, dword [esp + 0x18]
or eax, esi
push edi
mov edi, dword [esp + 0x20]
or eax, edi
test al, 7
jne 0x581885
lea ebp, [esi + edi]
cmp esi, ebp
jae 0x58189d
sub ebx, esi
lea edi, [ebx + edx]
push dword [esi + 4]
push dword [esi]
call fcn.00581790
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
add esi, 8
pop ecx
pop ecx
cmp esi, ebp
jb 0x581869
jmp 0x58189d
add edi, edx
cmp edx, edi
jae 0x58189d
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 7
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x58188d
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x581a36
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x5c], eax
ret
Function at 0x582dcb
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x58369c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
jne 0x5836ad
mov eax, dword [esp + 0xc]
jmp 0x58378f
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
not ecx
cmp esi, 8
jb 0x58376e
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x68d8d0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x68d8d0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x68d8d0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x68d8d0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x68d8d0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x68d8d0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x68d8d0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x68d8d0]
sub edi, 1
jne 0x5836c7
pop edi
test esi, esi
je 0x58378a
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x68d8d0]
inc edx
sub esi, 1
jne 0x583772
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x5838d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
push dword [esp + 0x1c]
xorps xmm0, xmm0
xor esi, esi
movlpd qword [esp + 0x10], xmm0
call fcn.00584010
mov edi, eax
test edi, edi
je 0x5839d4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5839d4
push ebp
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x5839d3
push ebx
push 0x100000
push esi
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x5839cb
mov eax, dword [edi + 4]
push esi
call eax
mov esi, eax
test esi, esi
je 0x5839bc
mov ecx, dword [edi + 8]
push 0
push esi
call ecx
push 0
push 0
push dword [esp + 0x2c]
push edi
push esi
call fcn.00584120
cmp dword [esp + 0x18], 0
jl 0x583982
mov eax, dword [esp + 0x14]
jg 0x583973
test eax, eax
je 0x583982
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push 0x100000
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
mov eax, dword [edi + 0xc]
push ebx
push esi
call eax
cmp dword [esp + 0x10], 0x100000
je 0x583982
mov eax, dword [edi + 0x10]
push esi
call eax
push dword [esp + 0x24]
push edi
push esi
call fcn.005840d0
push ebx
push 0
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
push dword [esp + 0x20]
push esi
call fcn.005842b0
test esi, esi
je 0x5839e8
mov eax, dword [edi + 0x14]
push esi
call eax
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x583b70
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
test byte [esp + 0x1c], 0x10
mov ecx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov ebp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [esp + 0x10], eax
mov esi, eax
cmovne ebp, ecx
mov dword [esp + 0xc], esi
push edi
test ebx, ebx
jle 0x583c2b
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
add ecx, 0xfffffffc
mov dword [esp + 0x20], ecx
mov edx, eax
mov dword [esp + 0x24], edi
sub edx, esi
cmp ebx, 3
jae 0x583c7f
mov esi, dword [esp + 0x2c]
and esi, 0x20
cmp ebx, 2
jne 0x583c3c
test esi, esi
je 0x583bda
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffffd
cmp edx, ecx
jge 0x583cef
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 0xa
mov edi, dword [esp + 0x24]
shl edx, 2
add edi, 2
or edx, ecx
mov ecx, edx
shr ecx, 0xc
movzx ecx, byte [ecx + ebp]
mov byte [eax], cl
mov ecx, edx
shr ecx, 6
and edx, 0x3f
and ecx, 0x3f
movzx ecx, byte [ecx + ebp]
mov byte [eax + 1], cl
movzx ecx, byte [edx + ebp]
mov byte [eax + 2], cl
add eax, 3
test esi, esi
jne 0x583cd7
mov byte [eax], 0x3d
inc eax
pop edi
pop esi
pop ebp
mov byte [eax], 0
sub eax, dword [esp + 8]
pop ebx
add esp, 8
ret 0x14
test esi, esi
je 0x583c47
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffffe
cmp edx, ecx
jge 0x583cef
movzx edx, byte [edi]
inc edi
shl edx, 4
mov ecx, edx
and edx, 0x3f
shr ecx, 6
movzx ecx, byte [ecx + ebp]
mov byte [eax], cl
movzx ecx, byte [edx + ebp]
mov byte [eax + 1], cl
add eax, 2
test esi, esi
jne 0x583cd7
mov ecx, 0x3d3d
mov word [eax], cx
add eax, 2
jmp 0x583cd7
cmp edx, ecx
jge 0x583cef
movzx edx, byte [edi]
movzx ecx, byte [edi + 1]
movzx esi, byte [edi + 2]
add edi, 3
shl ecx, 8
shl edx, 0x10
or edx, ecx
or esi, edx
mov ecx, esi
shr ecx, 6
and ecx, 0x3f
movsx edx, byte [ecx + ebp]
mov ecx, esi
and ecx, 0x3f
movsx ecx, byte [ecx + ebp]
shl ecx, 8
or edx, ecx
mov ecx, esi
shr ecx, 0xc
and ecx, 0x3f
shl edx, 8
shr esi, 0x12
movsx ecx, byte [ecx + ebp]
or edx, ecx
movsx ecx, byte [esi + ebp]
shl edx, 8
or edx, ecx
mov dword [eax], edx
add eax, 4
sub ebx, 3
test ebx, ebx
jle 0x583c2b
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
jmp 0x583bb2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x14
Function at 0x584120
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x94
test dword [esp + 0xa0], 0x10000
je 0x5842a6
push ebx
mov ebx, dword [esp + 0x9c]
test ebx, ebx
je 0x5842a5
mov eax, dword [ebx]
mov ecx, dword [esp + 0xa8]
cdq
and edx, 7
push ebp
mov ebp, dword [ebx + 4]
add eax, edx
sar eax, 3
test ecx, ecx
push esi
push edi
mov edi, 0x675268
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb8]
cmovne edi, ecx
cmp eax, 0x18
jne 0x584191
push edi
call fcn.0063b8f0
mov edi, eax
mov esi, edi
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x584186
sub esi, eax
jmp 0x5841c9
cmp eax, 0x19
jne 0x5841b3
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5841a0
sub esi, ecx
sar esi, 1
add esi, esi
jmp 0x5841c9
push edi
call fcn.0063b990
mov edi, eax
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x5841c0
sub esi, ecx
push esi
push edi
cmp esi, ebp
jle 0x584218
mov esi, dword [esp + 0xb4]
push ebx
mov eax, dword [esi + 0xc]
call eax
mov eax, dword [esi + 0x10]
push ebx
call eax
push dword [esp + 0x10]
lea eax, [ebx + 8]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00541970
mov eax, ebp
sub eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
add eax, dword [esp + 0x20]
push 0
push eax
call fcn.00541810
mov eax, dword [esi + 8]
add esp, 0x18
push 1
push ebx
call eax
jmp 0x584238
lea eax, [esp + 0x1c]
push eax
call fcn.00541970
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x24]
add eax, esi
push 0
push eax
call fcn.00541810
add esp, 0x18
push ebp
lea eax, [esp + 0x18]
push eax
lea esi, [ebx + 0x48]
push esi
call fcn.00541970
add esp, 0xc
test ebp, ebp
jle 0x584265
lea eax, [esp + 0x14]
mov ecx, ebp
xor byte [eax], 0x36
lea eax, [eax + 1]
xor byte [esi], 0x5c
lea esi, [esi + 1]
sub ecx, 1
jne 0x584254
push ebp
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xb4]
push ebx
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [esp + 0xb8]
cmp eax, 0x18
jne 0x584297
push edi
call fcn.0063b8e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14
cmp eax, 0x19
je 0x5842a2
push edi
call fcn.0063b980
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14
Function at 0x584e70
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call fcn.00585070
mov ebp, eax
add esp, 0xc
xor ebx, ebx
lea edi, [ebp*4]
test edi, edi
jle 0x584ee9
mov ecx, dword [esp + 0x14]
lea esi, [esi + edi*4]
add esi, 8
add ecx, 8
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x584ea5
mov esi, dword [esp + 0x14]
cmp ebp, 1
jle 0x585062
add esi, 4
lea edi, [ebp - 1]
mov edx, dword [esi + 0xc]
lea esi, [esi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi - 3]
mov ecx, dword [ecx*4 + 0x68f0f0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68f8f0]
movzx eax, dl
mov edx, dword [esi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68fcf0]
movzx eax, byte [esi - 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68f4f0]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi - 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x68f4f0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68f8f0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68f0f0]
movzx eax, dl
mov edx, dword [esi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68fcf0]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x68f4f0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68f8f0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68f0f0]
movzx eax, dl
mov edx, dword [esi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68fcf0]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi + 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x68f4f0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68f8f0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68f0f0]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x68fcf0]
mov dword [esi + 8], ecx
sub edi, 1
jne 0x584ef8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x585cb1
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x6fbefc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x585d12
push esi
push dword [0x6fbef8]
push 8
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x6fbefc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x6fbef4]
jmp 0x585d02
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x585d00
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x585cf0
push edi
push 0x585c4f
call fcn.0052b08c
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x585d1c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x585d32
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x6fbef8]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x585d6b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x6f9e98]
mov dword [0x6fbefc], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x6fbefc]
call ebx
mov esi, dword [0x6fbef8]
lea eax, [edi + esi]
push eax
push dword [0x6fbefc]
mov dword [0x6fbef8], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x6fbefc]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x585daa
test ebx, ebx
je 0x585dcb
push 0x14
push 0x6fbef4
call fcn.005865b0
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x585dcb
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x5872c0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6f6dc4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x5872f9
push ecx
push dword [0x6fcfbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x587308
push ecx
push 0
push dword [0x6fcfbc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.005877c0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x587380
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6f6dc4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret

Function at 0x587440
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6f6dc4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov eax, ecx
ret
Function at 0x5875a0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6f6dc4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x5875be
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x5875e2
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x5875fd
cmp edx, 0x100000
jle 0x587610
cmp ecx, 0x100000
jge 0x5875f7
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x6fcfbc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x587630
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6f6dc4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4

Function at 0x587750
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6f6dc4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4

Function at 0x587770
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6f6dc4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x587797
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x587797
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x5877a0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6f6dc4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x5879d0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6f6dc4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4