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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4bad50
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.005710fa
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0045ace3
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4bad31
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4bad2e
cmp ecx, 0x5c
je 0x4bad2e
cmp ecx, 0x2f
jne 0x4bad3b
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4bad1b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4bad52
xor eax, eax
leave
ret 4

Function at 0x4bae0f
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0xffbcb0]
push esi
push edi
test eax, eax
jne 0x4bae35
push fcn.004baf3e
push 0x10
push 0x258
call fcn.004ce35d
mov dword [0xffbcb0], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.004ce2c9
mov esi, eax
test esi, esi
je 0x4baf36
cmp dword [esp + 0x14], ebx
mov eax, 0x5a8268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x4bae6d
xor ecx, ecx
cmp word [ebp], cx
jne 0x4bae76
mov ebp, 0x5c1e40
mov dword [esp + 0x1c], ebp
push eax
call fcn.0045ace3
push ebp
mov dword [esp + 0x20], eax
call fcn.0045ace3
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4baf23
push dword [esp + 0x14]
push ebp
call fcn.00571424
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4baed6
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4baed6
push 0x5a5398
push ebp
call fcn.00571446
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.00571446
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 0x4baefb
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x4baf0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x4baf11
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x4baf35
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0xffbcb0]
call fcn.004ce23c
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc
Function at 0x4bb3d2
Capabilities:
Get file attributes

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

Function at 0x4bb3f5
Capabilities:
Set file attributes

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

Function at 0x4bb470
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x4bb489
push dword [0xffc998]
call fcn.004ce20e
pop edi
ret 4
push esi
push edi
push dword [0xffc998]
call fcn.004ce28b
mov esi, eax
test esi, esi
je 0x4bb4f3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4bb4df
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4bb4ce
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 [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0xffc998]
call fcn.004ce23c
pop esi
pop edi
ret 4

Function at 0x4bb500
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 0x4bb53c
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 0x4bba00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4bba65
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4bba5d
push dword [esp + 0x10]
push dword [0xffc998]
call fcn.004ce28b
test eax, eax
je 0x4bba53
cmp dword [eax + 4], 0
je 0x4bba42
push edi
push esi
push eax
call fcn.004bc070
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 0x4bba70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0xffc998]
call fcn.004ce28b
mov esi, eax
test esi, esi
je 0x4bbaef
cmp dword [esi + 4], 0
je 0x4bbac0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004bc190
test eax, eax
je 0x4bbab4
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 0x4bbafa
cmp dword [esp + 8], 0
je 0x4bbafa
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 0x4bbd40
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x4bbe3e
cmp word [edx], 0
je 0x4bbe3e
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x4bbd6e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4bbdc4
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bbd80
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x4bbda6
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004bc070
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.004bc7a0
mov edi, eax
test edi, edi
je 0x4bbdba
cmp dword [esi + 4], 0
je 0x4bbe11
push dword [esp + 0x14]
push edi
push esi
call fcn.004bc070
push edi
push 0
push dword [0xf81280]
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 [0xf81280]
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 0x4bbe50
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0xffc998]
call fcn.004ce28b
test eax, eax
je 0x4bbe6c
mov dword [esp + 4], eax
jmp fcn.004bbd40
xor eax, eax
ret 0xc
Function at 0x4bc2d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0xf81280]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4bc460
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
nop
cmp ebp, 0xffffffff
je 0x4bc31e
test ebp, ebp
je 0x4bc3c6
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x4bc33a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004bc190
mov dword [esp + 0x10], eax
jmp 0x4bc354
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 0x4bc3c9
test cl, cl
je 0x4bc368
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 0x4bc3a3
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0xf81280]
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 0x4bc3c6
cmp dword [esp + 0x28], 0
jne 0x4bc310
cmp cl, 0xd
je 0x4bc3d2
cmp cl, 0xa
jne 0x4bc310
dec esi
jmp 0x4bc443
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x4bc443
jmp 0x4bc3d5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x4bc3dd
dec esi
jmp 0x4bc443
cmp cl, 0xd
jne 0x4bc443
dec esi
cmp dword [edi], 0
je 0x4bc3fb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004bc190
mov dword [esp + 0x10], eax
jmp 0x4bc411
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 0x4bc443
cmp dword [edi], 0
je 0x4bc422
inc dword [ebx + 0xc]
jmp 0x4bc443
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 0x4bc470
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x4bc62f
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 0x4bc4c9
test ecx, ecx
je 0x4bc58c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x4bc4e5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004bc190
mov dword [esp + 0x10], eax
jmp 0x4bc4ff
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 0x4bc58f
test ax, ax
je 0x4bc51d
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 0x4bc564
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0xf81280]
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 0x4bc58f
cmp dword [esp + 0x2c], 0
jne 0x4bc4b3
cmp ax, 0xd
je 0x4bc596
cmp ax, 0xa
jne 0x4bc4b3
sub edi, 2
jmp 0x4bc60e
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x4bc60e
cmp ax, 0xa
jne 0x4bc5a1
sub edi, 2
jmp 0x4bc60e
cmp ax, 0xd
jne 0x4bc60e
sub edi, 2
cmp dword [ebp], 0
je 0x4bc5c3
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004bc190
mov dword [esp + 0x10], eax
jmp 0x4bc5d9
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 0x4bc60e
cmp dword [ebp], 0
je 0x4bc5ed
add dword [ebx + 0xc], 2
jmp 0x4bc60e
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 0x4bc640
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0xf81280]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x4bc790
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 0x4bc68c
test edi, edi
je 0x4bc6fd
dec edi
push esi
push ebp
call fcn.004bc810
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4bc69f
xor cl, cl
jmp 0x4bc6a1
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 0x4bc6e4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0xf81280]
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 0x4bc6fd
test eax, eax
jne 0x4bc682
cmp cl, 0xd
je 0x4bc701
cmp cl, 0xa
jne 0x4bc682
dec esi
jmp 0x4bc773
test eax, eax
jne 0x4bc773
cmp cl, 0xa
jne 0x4bc709
dec esi
jmp 0x4bc773
cmp cl, 0xd
jne 0x4bc773
dec esi
cmp dword [ebp + 4], 0
je 0x4bc728
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.004bc190
mov dword [esp + 0x20], eax
jmp 0x4bc73f
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 0x4bc773
cmp dword [ebp + 4], 0
je 0x4bc751
inc dword [ebp + 0xc]
jmp 0x4bc773
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 0x4c4ed0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x94
test dword [esp + 0xa0], 0x10000
je 0x4c5056
push ebx
mov ebx, dword [esp + 0x9c]
test ebx, ebx
je 0x4c5055
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, 0x5a8268
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb8]
cmovne edi, ecx
cmp eax, 0x18
jne 0x4c4f41
push edi
call fcn.0055aae0
mov edi, eax
mov esi, edi
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4c4f36
sub esi, eax
jmp 0x4c4f79
cmp eax, 0x19
jne 0x4c4f63
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c4f50
sub esi, ecx
sar esi, 1
add esi, esi
jmp 0x4c4f79
push edi
call fcn.0055a920
mov edi, eax
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c4f70
sub esi, ecx
push esi
push edi
cmp esi, ebp
jle 0x4c4fc8
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.004692b0
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.00465b30
mov eax, dword [esi + 8]
add esp, 0x18
push 1
push ebx
call eax
jmp 0x4c4fe8
lea eax, [esp + 0x1c]
push eax
call fcn.004692b0
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x24]
add eax, esi
push 0
push eax
call fcn.00465b30
add esp, 0x18
push ebp
lea eax, [esp + 0x18]
push eax
lea esi, [ebx + 0x48]
push esi
call fcn.004692b0
add esp, 0xc
test ebp, ebp
jle 0x4c5015
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 0x4c5004
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 0x4c5047
push edi
call fcn.0055aad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14
cmp eax, 0x19
je 0x4c5052
push edi
call fcn.0055a910
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14

Function at 0x4c5743
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 0x4c57a0
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 0x4c57a0
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4c577f
push ebx
push esi
call eax
push esi
push ebx
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0xffc9cc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0xffc9d0], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c57a8
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xffc9cc]
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 0x4c57f3
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xffc9cc]
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 0x4c58c3
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0xffc9cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x4c58eb
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 0x4c590e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [0xffc9cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov ecx, dword [ebx + 0x74]
cmp ecx, 2
je 0x4c593c
cmp ecx, 3
je 0x4c593c
cmp ecx, 8
je 0x4c593c
cmp ecx, 0xc
jne 0x4c5a00
xorps xmm0, xmm0
comiss xmm0, dword [ebp + 8]
movss dword [ebp - 4], xmm0
ja 0x4c595c
movss xmm0, dword [0x5c13e4]
minss xmm0, dword [ebp + 8]
movss dword [ebp - 4], xmm0
push esi
mov esi, dword [ebx + 0xbc]
push edi
xor edi, edi
jmp 0x4c597f
movss xmm1, dword [esi + 4]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x4c599f
comiss xmm1, xmm0
ja 0x4c5985
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x4c5968
jmp 0x4c59a5
push 0x18
push 0
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x4c59a5
mov dword [edx], esi
jmp 0x4c59be
mov edx, esi
test edx, edx
jne 0x4c59d1
push 0x18
push 0
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x4c59fe
and dword [edx], 0
movss xmm0, dword [ebp - 4]
test edi, edi
je 0x4c59cb
mov dword [edi], edx
jmp 0x4c59d1
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 0x4c5c3f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xffc9cc]
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 0x4c5c94
cmp eax, 3
je 0x4c5c94
cmp eax, 8
je 0x4c5c94
cmp eax, 0xc
jne 0x4c5e0d
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.005745a0
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
fstp dword [edi + 0x128]
cmp ebp, ecx
jne 0x4c5cfb
cmp esi, ebx
mov eax, 0x4c5b3f
mov ecx, 0x4c5b7f
cmovg eax, ecx
jmp 0x4c5d0e
cmp esi, ebx
jne 0x4c5d19
cmp ebp, ecx
mov eax, 0x4c5bbf
mov edx, 0x4c5bff
cmovg eax, edx
mov dword [edi + 0xb4], eax
jmp 0x4c5e0d
push dword [esp + 0x14]
call fcn.005745ae
push dword [esp + 0x1c]
mov esi, eax
call fcn.005745ae
xor ebp, ebp
pop ecx
inc ebp
pop ecx
cmp esi, eax
jl 0x4c5d4b
and dword [edi + 0x130], 0
mov ecx, dword [edi + 0x124]
mov esi, dword [edi + 0x11c]
jmp 0x4c5d81
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 0x4c5d9a
and dword [edi + 0x12c], 0
jmp 0x4c5dca
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], 0x4c5a37
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 [0x5c1788]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [edi + 0x138], xmm0
pop edi
pop esi
pop ebp
pop ebx
ret 0x10