joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1cd8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4c1d50
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.005780fa
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00461ce3
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4c1d31
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4c1d2e
cmp ecx, 0x5c
je 0x4c1d2e
cmp ecx, 0x2f
jne 0x4c1d3b
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4c1d1b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4c1d52
xor eax, eax
leave
ret 4

Function at 0x4c1e0f
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x1540e08]
push esi
push edi
test eax, eax
jne 0x4c1e35
push fcn.004c1f3e
push 0x10
push 0x258
call fcn.004d535d
mov dword [0x1540e08], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.004d52c9
mov esi, eax
test esi, esi
je 0x4c1f36
cmp dword [esp + 0x14], ebx
mov eax, 0x5af268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x4c1e6d
xor ecx, ecx
cmp word [ebp], cx
jne 0x4c1e76
mov ebp, 0x5c8e40
mov dword [esp + 0x1c], ebp
push eax
call fcn.00461ce3
push ebp
mov dword [esp + 0x20], eax
call fcn.00461ce3
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4c1f23
push dword [esp + 0x14]
push ebp
call fcn.00578424
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4c1ed6
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4c1ed6
push 0x5ac398
push ebp
call fcn.00578446
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.00578446
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4c1efb
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x4c1f0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x4c1f11
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x4c1f35
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x1540e08]
call fcn.004d523c
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc
Function at 0x4c23d2
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x4c23e0
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x4c23e3
Capabilities:
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4c2400
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
jmp 0x4c2403
or eax, 0xffffffff
ret 4

Function at 0x4c2470
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x4c2489
push dword [0x1541af0]
call fcn.004d520e
pop edi
ret 4
push esi
push edi
push dword [0x1541af0]
call fcn.004d528b
mov esi, eax
test esi, esi
je 0x4c24f3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4c24df
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4c24ce
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x1541af0]
call fcn.004d523c
pop esi
pop edi
ret 4

Function at 0x4c2500
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4c253c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x4c2a00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4c2a65
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4c2a5d
push dword [esp + 0x10]
push dword [0x1541af0]
call fcn.004d528b
test eax, eax
je 0x4c2a53
cmp dword [eax + 4], 0
je 0x4c2a42
push edi
push esi
push eax
call fcn.004c3070
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x4c2a70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x1541af0]
call fcn.004d528b
mov esi, eax
test esi, esi
je 0x4c2aef
cmp dword [esi + 4], 0
je 0x4c2ac0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004c3190
test eax, eax
je 0x4c2ab4
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c2afa
cmp dword [esp + 8], 0
je 0x4c2afa
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x4c2d40
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x4c2e3e
cmp word [edx], 0
je 0x4c2e3e
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x4c2d6e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4c2dc4
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c2d80
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x4c2da6
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004c3070
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
push edx
xor edx, edx
mov eax, 0xfde9
cmp ecx, 2
cmovne eax, edx
push eax
call fcn.004c37a0
mov edi, eax
test edi, edi
je 0x4c2dba
cmp dword [esi + 4], 0
je 0x4c2e11
push dword [esp + 0x14]
push edi
push esi
call fcn.004c3070
push edi
push 0
push dword [0x14c63d0]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x4c2e50
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x1541af0]
call fcn.004d528b
test eax, eax
je 0x4c2e6c
mov dword [esp + 4], eax
jmp fcn.004c2d40
xor eax, eax
ret 0xc
Function at 0x4c32d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x14c63d0]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4c3460
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
nop
cmp ebp, 0xffffffff
je 0x4c331e
test ebp, ebp
je 0x4c33c6
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x4c333a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004c3190
mov dword [esp + 0x10], eax
jmp 0x4c3354
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x4c33c9
test cl, cl
je 0x4c3368
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4c33a3
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x14c63d0]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x4c33c6
cmp dword [esp + 0x28], 0
jne 0x4c3310
cmp cl, 0xd
je 0x4c33d2
cmp cl, 0xa
jne 0x4c3310
dec esi
jmp 0x4c3443
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x4c3443
jmp 0x4c33d5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x4c33dd
dec esi
jmp 0x4c3443
cmp cl, 0xd
jne 0x4c3443
dec esi
cmp dword [edi], 0
je 0x4c33fb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004c3190
mov dword [esp + 0x10], eax
jmp 0x4c3411
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x4c3443
cmp dword [edi], 0
je 0x4c3422
inc dword [ebx + 0xc]
jmp 0x4c3443
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
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, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x4c3470
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x4c362f
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x4c34c9
test ecx, ecx
je 0x4c358c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x4c34e5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004c3190
mov dword [esp + 0x10], eax
jmp 0x4c34ff
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x4c358f
test ax, ax
je 0x4c351d
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x4c3564
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x14c63d0]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x4c358f
cmp dword [esp + 0x2c], 0
jne 0x4c34b3
cmp ax, 0xd
je 0x4c3596
cmp ax, 0xa
jne 0x4c34b3
sub edi, 2
jmp 0x4c360e
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x4c360e
cmp ax, 0xa
jne 0x4c35a1
sub edi, 2
jmp 0x4c360e
cmp ax, 0xd
jne 0x4c360e
sub edi, 2
cmp dword [ebp], 0
je 0x4c35c3
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004c3190
mov dword [esp + 0x10], eax
jmp 0x4c35d9
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x4c360e
cmp dword [ebp], 0
je 0x4c35ed
add dword [ebx + 0xc], 2
jmp 0x4c360e
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x4c3640
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x14c63d0]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x4c3790
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 0x4c368c
test edi, edi
je 0x4c36fd
dec edi
push esi
push ebp
call fcn.004c3810
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4c369f
xor cl, cl
jmp 0x4c36a1
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 0x4c36e4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x14c63d0]
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 0x4c36fd
test eax, eax
jne 0x4c3682
cmp cl, 0xd
je 0x4c3701
cmp cl, 0xa
jne 0x4c3682
dec esi
jmp 0x4c3773
test eax, eax
jne 0x4c3773
cmp cl, 0xa
jne 0x4c3709
dec esi
jmp 0x4c3773
cmp cl, 0xd
jne 0x4c3773
dec esi
cmp dword [ebp + 4], 0
je 0x4c3728
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.004c3190
mov dword [esp + 0x20], eax
jmp 0x4c373f
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 0x4c3773
cmp dword [ebp + 4], 0
je 0x4c3751
inc dword [ebp + 0xc]
jmp 0x4c3773
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 0x4cbed0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x94
test dword [esp + 0xa0], 0x10000
je 0x4cc056
push ebx
mov ebx, dword [esp + 0x9c]
test ebx, ebx
je 0x4cc055
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, 0x5af268
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb8]
cmovne edi, ecx
cmp eax, 0x18
jne 0x4cbf41
push edi
call fcn.00561ae0
mov edi, eax
mov esi, edi
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4cbf36
sub esi, eax
jmp 0x4cbf79
cmp eax, 0x19
jne 0x4cbf63
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4cbf50
sub esi, ecx
sar esi, 1
add esi, esi
jmp 0x4cbf79
push edi
call fcn.00561920
mov edi, eax
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4cbf70
sub esi, ecx
push esi
push edi
cmp esi, ebp
jle 0x4cbfc8
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.004702b0
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.0046cb30
mov eax, dword [esi + 8]
add esp, 0x18
push 1
push ebx
call eax
jmp 0x4cbfe8
lea eax, [esp + 0x1c]
push eax
call fcn.004702b0
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x24]
add eax, esi
push 0
push eax
call fcn.0046cb30
add esp, 0x18
push ebp
lea eax, [esp + 0x18]
push eax
lea esi, [ebx + 0x48]
push esi
call fcn.004702b0
add esp, 0xc
test ebp, ebp
jle 0x4cc015
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 0x4cc004
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 0x4cc047
push edi
call fcn.00561ad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14
cmp eax, 0x19
je 0x4cc052
push edi
call fcn.00561910
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14

Function at 0x4cc743
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x4cc7a0
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x4cc7a0
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4cc77f
push ebx
push esi
call eax
push esi
push ebx
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x1541b24]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x1541b28], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x4cc7a8
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1541b24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 8]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 8]
push ecx
push eax
call dword [eax + 0x54]
ret 8

Function at 0x4cc7f3
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1541b24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0xc]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push eax
call dword [eax + 0x50]
ret 0xc

Function at 0x4cc8c3
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x1541b24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x4cc8eb
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x4cc90e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [0x1541b24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov ecx, dword [ebx + 0x74]
cmp ecx, 2
je 0x4cc93c
cmp ecx, 3
je 0x4cc93c
cmp ecx, 8
je 0x4cc93c
cmp ecx, 0xc
jne 0x4cca00
xorps xmm0, xmm0
comiss xmm0, dword [ebp + 8]
movss dword [ebp - 4], xmm0
ja 0x4cc95c
movss xmm0, dword [0x5c83e4]
minss xmm0, dword [ebp + 8]
movss dword [ebp - 4], xmm0
push esi
mov esi, dword [ebx + 0xbc]
push edi
xor edi, edi
jmp 0x4cc97f
movss xmm1, dword [esi + 4]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x4cc99f
comiss xmm1, xmm0
ja 0x4cc985
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x4cc968
jmp 0x4cc9a5
push 0x18
push 0
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x4cc9a5
mov dword [edx], esi
jmp 0x4cc9be
mov edx, esi
test edx, edx
jne 0x4cc9d1
push 0x18
push 0
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x4cc9fe
and dword [edx], 0
movss xmm0, dword [ebp - 4]
test edi, edi
je 0x4cc9cb
mov dword [edi], edx
jmp 0x4cc9d1
mov dword [ebx + 0xbc], edx
mov ecx, dword [ebp + 0xc]
movzx eax, cl
mov dword [edx + 8], eax
mov eax, ecx
sar eax, 8
movzx eax, al
mov dword [edx + 0xc], eax
mov eax, ecx
sar eax, 0x10
movzx eax, al
sar ecx, 0x18
mov dword [edx + 0x10], eax
movzx eax, cl
movss dword [edx + 4], xmm0
mov dword [edx + 0x14], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4ccc3f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x1541b24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [esp + 0x14]
mov edi, eax
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [edi + 0x8c]
add esi, edx
mov ecx, dword [edi + 0x90]
add ebx, edx
mov edx, dword [esp + 0x20]
add ebp, ecx
mov eax, dword [edi + 0x74]
add edx, ecx
mov dword [esp + 0x20], edx
cmp eax, 2
je 0x4ccc94
cmp eax, 3
je 0x4ccc94
cmp eax, 8
je 0x4ccc94
cmp eax, 0xc
jne 0x4cce0d
mov dword [edi + 0x124], edx
mov eax, ebx
sub edx, ebp
mov dword [edi + 0x118], esi
sub eax, esi
mov dword [edi + 0x11c], ebp
mov ecx, edx
mov dword [esp + 0x14], eax
imul ecx, edx
imul eax, eax
mov dword [edi + 0x120], ebx
mov dword [esp + 0x18], edx
add ecx, eax
push ecx
push ecx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0057b5a0
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
fstp dword [edi + 0x128]
cmp ebp, ecx
jne 0x4cccfb
cmp esi, ebx
mov eax, 0x4ccb3f
mov ecx, 0x4ccb7f
cmovg eax, ecx
jmp 0x4ccd0e
cmp esi, ebx
jne 0x4ccd19
cmp ebp, ecx
mov eax, 0x4ccbbf
mov edx, 0x4ccbff
cmovg eax, edx
mov dword [edi + 0xb4], eax
jmp 0x4cce0d
push dword [esp + 0x14]
call fcn.0057b5ae
push dword [esp + 0x1c]
mov esi, eax
call fcn.0057b5ae
xor ebp, ebp
pop ecx
inc ebp
pop ecx
cmp esi, eax
jl 0x4ccd4b
and dword [edi + 0x130], 0
mov ecx, dword [edi + 0x124]
mov esi, dword [edi + 0x11c]
jmp 0x4ccd81
mov eax, dword [edi + 0x11c]
mov esi, dword [edi + 0x118]
mov ecx, dword [edi + 0x120]
mov dword [edi + 0x118], eax
mov eax, dword [edi + 0x124]
mov dword [edi + 0x130], ebp
mov dword [edi + 0x11c], esi
mov dword [edi + 0x124], ecx
mov dword [edi + 0x120], eax
mov ebx, dword [edi + 0x118]
mov edx, dword [edi + 0x120]
cmp ebx, edx
jge 0x4ccd9a
and dword [edi + 0x12c], 0
jmp 0x4ccdca
mov esi, dword [edi + 0x124]
mov eax, ebx
mov ecx, dword [edi + 0x11c]
mov ebx, edx
mov dword [edi + 0x118], edx
mov edx, eax
mov dword [edi + 0x12c], ebp
mov dword [edi + 0x120], eax
mov dword [edi + 0x124], ecx
mov dword [edi + 0x11c], esi
sub ecx, esi
mov dword [edi + 0xb4], 0x4cca37
sub edx, ebx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [edi + 0x134], xmm1
movsd xmm1, qword [0x5c8788]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [edi + 0x138], xmm0
pop edi
pop esi
pop ebp
pop ebx
ret 0x10