joyce8/EMBER2024-capa huggingface dataset:
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 [0xf81440]
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 [0xf81440]
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 [0xf81440]
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 [0xf81440]
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 [0xf81440]
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 [0xf81440]
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 [0xf81440]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0xffcb94]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0xffcb98], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c57a8
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xffcb94]
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 [0xffcb94]
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 [0xffcb94]
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 [0xffcb94]
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 [0xf81440]
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 [0xf81440]
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 [0xffcb94]
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
Function at 0x4c5e14
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push dword [0xffcb94]
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ebx
add ecx, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [esp + 0x14]
test edi, edi
lea eax, [esi + edi]
cmovns eax, esi
mov esi, edi
neg esi
mov dword [esp + 0x18], eax
test edi, edi
lea eax, [ecx + ebx]
cmovns esi, edi
mov edi, dword [esp + 0x24]
test ebx, ebx
mov dword [esp + 0x1c], esi
cmovns eax, ecx
neg edx
test ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [edi + edi]
cmovns edx, ebx
mov dword [esp + 0x20], edx
cmp eax, esi
jle 0x4c5e8c
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov edi, eax
sar edi, 1
mov esi, dword [esp + 0x28]
lea ecx, [esi + esi]
cmp ecx, edx
jle 0x4c5ea0
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [ebp + 0xa4]
cmp eax, dword [ebp + 0xac]
je 0x4c5eb9
push eax
push ebp
mov dword [ebp + 0xac], eax
call dword [ebp + 0x40]
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebp
call dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x4c5ed6
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0xffcb94]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x4c5efe
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x14]
mov eax, dword [esi + 0x90]
push dword [esp + 0x14]
add eax, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [esp + 0x14]
push eax
push esi
call dword [esi + 4]
pop esi
ret 0x10

Function at 0x4c5f24
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xffcb94]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov ecx, dword [edx + 0x74]
cmp ecx, 2
je 0x4c5f49
cmp ecx, 3
je 0x4c5f49
cmp ecx, 8
je 0x4c5f49
cmp ecx, 0xc
jne 0x4c5f57
mov eax, dword [esp + 4]
test eax, eax
je 0x4c5f57
mov dword [edx + 0xb8], eax
ret 4

Function at 0x4c5f5a
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xffcb94]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
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 dword [esp + 0xc]
push eax
call dword [eax + 0x24]
ret 0xc
Function at 0x4c5fb5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push dword [0xffcb94]
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ebx
add ecx, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [esp + 0x14]
test edi, edi
lea eax, [esi + edi]
cmovns eax, esi
mov esi, edi
neg esi
mov dword [esp + 0x18], eax
test edi, edi
lea eax, [ecx + ebx]
cmovns esi, edi
mov edi, dword [esp + 0x24]
test ebx, ebx
mov dword [esp + 0x1c], esi
cmovns eax, ecx
neg edx
test ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [edi + edi]
cmovns edx, ebx
mov dword [esp + 0x20], edx
cmp eax, esi
jle 0x4c602d
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov edi, eax
sar edi, 1
mov esi, dword [esp + 0x28]
lea ecx, [esi + esi]
cmp ecx, edx
jle 0x4c6041
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebp + 0xac]
je 0x4c6058
push eax
push ebp
mov dword [ebp + 0xac], eax
call dword [ebp + 0x40]
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebp
call dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c

Function at 0x4c7190
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0xf81440]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0xffcb94]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0xffcb98], esi
mov eax, esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x4c6222
mov dword [esi + 4], 0x4c6242
mov dword [esi + 8], 0x4c6f7e
mov dword [esi + 0xc], 0x4c62da
mov dword [esi + 0x10], 0x4c6806
mov dword [esi + 0x14], 0x4c6798
mov dword [esi + 0x18], 0x4c67d6
mov dword [esi + 0x1c], 0x4c67ee
mov dword [esi + 0x20], fcn.004c6862
mov dword [esi + 0x24], 0x4c664f
mov dword [esi + 0x28], fcn.004c64a6
mov dword [esi + 0x2c], 0x4c63bd
mov dword [esi + 0x30], 0x4c6720
mov dword [esi + 0x34], 0x4c666b
mov dword [esi + 0x38], 0x4c68db
mov dword [esi + 0x3c], 0x4c69ec
mov dword [esi + 0x40], 0x4c6a8c
mov dword [esi + 0x44], 0x4c6b23
mov dword [esi + 0x48], 0x4c6c1d
mov dword [esi + 0x4c], 0x4c6e00
mov dword [esi + 0x50], 0x4c6c6e
mov dword [esi + 0x54], 0x4c6ec2
mov dword [esi + 0x58], 0x4c6fbd
mov dword [esi + 0x5c], 0x4c7078
mov dword [esi + 0x60], 0x4c70f0
mov dword [esi + 0x64], 0x4c713a
pop esi
ret
Function at 0x4c8a2f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0xffc49c], ebp
je 0x4c8c15
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x4c8a4f
mov edi, ebx
jmp 0x4c8a61
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x4c8c13
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4c8c08
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.00465b30
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x20
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x4c8c07
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push esi
push 0
push dword [esp + 0x78]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul esi, dword [esp + 0x14]
test esi, esi
jle 0x4c8c07
cmp dword [esp + 0x6c], 0
je 0x4c8bb4
mov ebp, dword [esp + 0x10]
push 0xa
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp]
imul eax, eax, 3
add eax, ecx
div ebx
mov cl, al
cmp cl, 0x40
jae 0x4c8b48
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x4c8b5e
cmp cl, 0xc0
jbe 0x4c8b5e
movzx eax, cl
sub eax, 0xc0
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax - 0x40]
movzx eax, byte [ebp + 3]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, cl
movd xmm0, eax
divss xmm1, dword [0x5c4c60]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [ebp], cl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, 4
mov dword [esp + 0x10], ebp
sub esi, 1
jne 0x4c8b18
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x4c8c07
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x4c8bfb
movzx ecx, al
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 3]
imul ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
imul ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x4c8bb8
pop esi
test ebx, ebx
jne 0x4c8c13
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x50
ret 0xc