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

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x6b00f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x51849d
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x518344
test ebp, ebp
je 0x5183fd
dec ebp
cmp dword [ebx + 4], 0
je 0x51835d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00518040
mov dword [esp + 0x14], eax
jmp 0x518377
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x5183fd
test ax, ax
je 0x518391
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x5183d8
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x6b00f0]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x5183fd
cmp dword [esp + 0x30], 0
jne 0x518336
cmp ax, 0xd
je 0x518404
cmp ax, 0xa
jne 0x518336
sub edi, 2
jmp 0x51847c
cmp dword [esp + 0x30], 0
jne 0x51847c
cmp ax, 0xa
jne 0x51840f
sub edi, 2
jmp 0x51847c
cmp ax, 0xd
jne 0x51847c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x518431
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00518040
mov dword [esp + 0x14], eax
jmp 0x518447
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x51847c
cmp dword [ebx + 4], 0
je 0x51845b
add dword [ebx + 0xc], 2
jmp 0x51847c
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x5184b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x6b00f0]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x518600
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 0x5184fc
test edi, edi
je 0x51856d
dec edi
push esi
push ebp
call fcn.00518680
mov dword [esp + 0x20], eax
test eax, eax
jne 0x51850f
xor cl, cl
jmp 0x518511
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 0x518554
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x6b00f0]
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 0x51856d
test eax, eax
jne 0x5184f2
cmp cl, 0xd
je 0x518571
cmp cl, 0xa
jne 0x5184f2
dec esi
jmp 0x5185e3
test eax, eax
jne 0x5185e3
cmp cl, 0xa
jne 0x518579
dec esi
jmp 0x5185e3
cmp cl, 0xd
jne 0x5185e3
dec esi
cmp dword [ebp + 4], 0
je 0x518598
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00518040
mov dword [esp + 0x20], eax
jmp 0x5185af
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 0x5185e3
cmp dword [ebp + 4], 0
je 0x5185c1
inc dword [ebp + 0xc]
jmp 0x5185e3
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 0x518680
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 0x5186a7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00518040
mov dword [esp + 4], eax
jmp 0x5186c1
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
je 0x5186cd
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x5186e9
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 0x5186f9
mov esi, 2
jmp 0x518715
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x518708
mov esi, 3
jmp 0x518715
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x518772
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x518744
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.00518040
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and 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

Function at 0x51a268
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x51a2a9
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x51a2a1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x51a2a1
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x51a2ac
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.0052fd30
test esi, esi
je 0x51a2d4
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x51a2d9
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x51a45d
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 0x51b9bc
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 0x51ca85
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 0x51cae2
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 0x51cae2
mov eax, dword [esi + 0x70]
test eax, eax
je 0x51cac1
push ebx
push esi
call eax
push esi
push ebx
push dword [0x6b00f0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x6b3df0], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x51caea
Capabilities:
Get thread local storage value

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

Disassembly:
push esi
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0xac]
je 0x51cb89
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xb0]
je 0x51cba1
push eax
push esi
mov dword [esi + 0xb0], eax
call dword [esi]
push dword [esp + 0x10]
mov eax, dword [esi + 0x90]
add eax, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [esp + 0x10]
push eax
push esi
call dword [esi + 0x30]
pop esi
ret 0x10

Function at 0x51cc77
Capabilities:
Get thread local storage value

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 0xac]
je 0x51cd20
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xb0]
je 0x51cd35
push eax
push esi
mov dword [esi + 0xb0], eax
call dword [esi]
push dword [ebp + 0x10]
mov eax, dword [esi + 0x90]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 0x30]
pop esi
pop ebp
ret 0x14
Function at 0x51cd55
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x51cd7d
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xb0]
je 0x51cd95
push eax
push esi
mov dword [esi + 0xb0], eax
call dword [esi]
push dword [esp + 0x10]
mov eax, dword [esi + 0x90]
add eax, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [esp + 0x10]
push eax
push esi
call dword [esi + 0x30]
pop esi
ret 0xc

Function at 0x51cdb7
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x51cdf0
mov ecx, dword [edx + 0x90]
add ecx, dword [ebp + 0x10]
push 0xff
push ecx
mov ecx, dword [edx + 0x8c]
add ecx, dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
push edx
call eax
jmp 0x51ce0b
mov eax, dword [edx + 0x90]
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [edx + 0x8c]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
push edx
call dword [edx + 0x24]
pop ebp
ret 0xc

Function at 0x51ce3d
Capabilities:
Get thread local storage value

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

Disassembly:
push ebx
push ebp
push edi
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
add ecx, dword [ebx + 0x90]
add ebp, dword [ebx + 0x8c]
mov dword [esp + 0x14], ecx
test edi, edi
je 0x51cede
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x51cedd
test edi, edi
jns 0x51ceab
inc edi
jmp 0x51ceac
dec edi
test esi, esi
jns 0x51ceb3
inc esi
jmp 0x51ceb4
dec esi
mov eax, dword [esp + 0x24]
cmp eax, dword [ebx + 0xac]
je 0x51cecf
push eax
push ebx
mov dword [ebx + 0xac], eax
call dword [ebx + 0x40]
mov ecx, dword [esp + 0x18]
lea eax, [ecx + esi]
push eax
lea eax, [edi + ebp]
push eax
push ecx
push ebp
push ebx
call dword [ebx + 0x48]
pop esi
pop edi
pop ebp
pop ebx
ret 0x14
Function at 0x51cee4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov ecx, dword [ebx + 0x74]
cmp ecx, 2
je 0x51cf11
cmp ecx, 3
je 0x51cf11
cmp ecx, 8
je 0x51cf11
cmp ecx, 0xc
jne 0x51cff9
fldz
fld dword [ebp + 8]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x51cf23
fstp st(0)
jmp 0x51cf32
fstp st(1)
fld1
fcom st(1)
fnstsw ax
test ah, 5
jp 0x51cf3a
fstp st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
jmp 0x51cf3c
fstp st(0)
push esi
mov esi, dword [ebx + 0xbc]
push edi
xor edi, edi
jmp 0x51cf66
fld dword [esi + 4]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x51cfb7
fld dword [esi + 4]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x51cf8d
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x51cf48
fstp st(0)
push 0x18
push 0
push dword [0x6b00f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x51cff7
and dword [edx], 0
test edi, edi
je 0x51cfc1
mov dword [edi], edx
jmp 0x51cfc7
push 0x18
push 0
push dword [0x6b00f0]
fstp st(0)
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x51cf6c
mov dword [edx], esi
test edi, edi
je 0x51cfaf
mov dword [edi], edx
jmp 0x51cfbb
mov dword [ebx + 0xbc], edx
jmp 0x51cfbb
fstp st(0)
mov edx, esi
test edx, edx
jne 0x51cfc7
jmp 0x51cf6c
mov dword [ebx + 0xbc], edx
mov ecx, dword [ebp + 0xc]
mov esi, 0xff
fld dword [ebp + 8]
movzx eax, cl
mov dword [edx + 8], eax
mov eax, ecx
sar eax, 8
and eax, esi
mov dword [edx + 0xc], eax
mov eax, ecx
sar eax, 0x10
and eax, esi
sar ecx, 0x18
and ecx, esi
mov dword [edx + 0x10], eax
fstp dword [edx + 4]
mov dword [edx + 0x14], ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x51d0ed
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
add esi, dword [eax + 0x8c]
add edi, dword [eax + 0x90]
mov ecx, dword [eax + 0x74]
cmp ecx, 2
je 0x51d126
cmp ecx, 3
je 0x51d126
cmp ecx, 8
je 0x51d126
cmp ecx, 0xc
jne 0x51d160
mov ecx, dword [esp + 0x14]
test ecx, ecx
jns 0x51d132
add esi, ecx
neg ecx
mov edx, dword [esp + 0x18]
test edx, edx
jns 0x51d13e
add edi, edx
neg edx
mov dword [eax + 0x118], esi
mov dword [eax + 0x11c], edi
mov dword [eax + 0x120], ecx
mov dword [eax + 0x124], edx
mov dword [eax + 0xb4], 0x51cffe
pop edi
pop esi
ret 0x10
Function at 0x51d1f4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
add edx, dword [eax + 0x8c]
add esi, dword [eax + 0x90]
mov ecx, dword [eax + 0x74]
cmp ecx, 2
je 0x51d22d
cmp ecx, 3
je 0x51d22d
cmp ecx, 8
je 0x51d22d
cmp ecx, 0xc
jne 0x51d280
mov ecx, dword [ebp + 0x10]
push edi
xor edi, edi
inc edi
test ecx, ecx
jns 0x51d23f
neg ecx
mov dword [ebp + 0x10], ecx
jmp 0x51d244
jne 0x51d244
mov dword [ebp + 0x10], edi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jns 0x51d252
neg ecx
mov dword [ebp + 0x14], ecx
jmp 0x51d257
jne 0x51d257
mov dword [ebp + 0x14], edi
fild dword [ebp + 0x10]
mov dword [eax + 0x118], edx
mov dword [eax + 0x11c], esi
mov dword [eax + 0xb4], 0x51d17f
pop edi
fstp dword [eax + 0x120]
fild dword [ebp + 0x14]
fstp dword [eax + 0x124]
pop esi
pop ebp
ret 0x10

Function at 0x51d32e
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0xc]
add edx, dword [eax + 0x8c]
add esi, dword [eax + 0x90]
mov ecx, dword [eax + 0x74]
cmp ecx, 2
je 0x51d366
cmp ecx, 3
je 0x51d366
cmp ecx, 8
je 0x51d366
cmp ecx, 0xc
jne 0x51d392
fld dword [esp + 0x10]
fmul qword [0x5cd930]
mov dword [eax + 0x118], edx
mov dword [eax + 0x11c], esi
mov dword [eax + 0xb4], 0x51d29f
fdiv qword [0x5cd938]
fstp dword [eax + 0x120]
pop esi
ret 0xc
Function at 0x51d5f5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6b3dec]
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 0x51d64a
cmp eax, 3
je 0x51d64a
cmp eax, 8
je 0x51d64a
cmp eax, 0xc
jne 0x51d817
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 + 0x1c], edx
add ecx, eax
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
push ecx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.0051d285
mov eax, dword [esp + 0x24]
fstp dword [edi + 0x128]
pop ecx
cmp ebp, eax
jne 0x51d6c4
cmp esi, ebx
jg 0x51d6b5
mov dword [edi + 0xb4], 0x51d4f1
jmp 0x51d817
mov dword [edi + 0xb4], 0x51d532
jmp 0x51d817
cmp esi, ebx
jne 0x51d6ea
cmp ebp, eax
jg 0x51d6db
mov dword [edi + 0xb4], 0x51d573
jmp 0x51d817
mov dword [edi + 0xb4], 0x51d5b4
jmp 0x51d817
push dword [esp + 0x1c]
call sub.MSVCRT.dll_abs
push dword [esp + 0x18]
mov esi, eax
call sub.MSVCRT.dll_abs
xor edx, edx
pop ecx
inc edx
pop ecx
cmp eax, esi
jl 0x51d710
and dword [edi + 0x130], 0
jmp 0x51d75e
mov eax, dword [edi + 0x11c]
xor dword [edi + 0x118], eax
mov eax, dword [edi + 0x118]
xor dword [edi + 0x11c], eax
mov eax, dword [edi + 0x11c]
xor dword [edi + 0x118], eax
mov eax, dword [edi + 0x124]
xor dword [edi + 0x120], eax
mov eax, dword [edi + 0x120]
xor dword [edi + 0x124], eax
mov eax, dword [edi + 0x124]
xor dword [edi + 0x120], eax
mov dword [edi + 0x130], edx
mov ecx, dword [edi + 0x118]
mov eax, dword [edi + 0x120]
cmp ecx, eax
jge 0x51d777
and dword [edi + 0x12c], 0
jmp 0x51d7bb
xor eax, ecx
mov dword [edi + 0x12c], edx
xor dword [edi + 0x120], eax
mov dword [edi + 0x118], eax
mov eax, dword [edi + 0x120]
xor dword [edi + 0x118], eax
mov eax, dword [edi + 0x124]
xor dword [edi + 0x11c], eax
mov eax, dword [edi + 0x11c]
xor dword [edi + 0x124], eax
mov eax, dword [edi + 0x124]
xor dword [edi + 0x11c], eax
mov eax, dword [edi + 0x124]
sub eax, dword [edi + 0x11c]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov eax, dword [edi + 0x120]
sub eax, dword [edi + 0x118]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fdiv dword [esp + 0x20]
mov dword [edi + 0xb4], 0x51d3dc
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fst dword [edi + 0x134]
fdivr qword [0x5cd948]
fstp dword [edi + 0x138]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x51d81e
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x51d846
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 0x51d86c
Capabilities:
Get thread local storage value

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x51d8bd
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x34]
add eax, dword [ebp + 0xc]
test ecx, ecx
je 0x51d8e7
fld dword [ebp + 0x14]
push ecx
fstp dword [esp]
push dword [ebp + 0x10]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call ecx
jmp 0x51d8f9
push dword [ebp + 0x10]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 0x30]
pop esi
pop ebp
ret 0x14

Function at 0x51d8fe
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x51d926
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov ecx, dword [esi + 0x90]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x8c]
add eax, ecx
push eax
mov eax, dword [esp + 0x14]
add eax, edx
push eax
mov eax, dword [esp + 0x14]
add eax, ecx
push eax
mov eax, dword [esp + 0x14]
add eax, edx
push eax
push esi
call dword [esi + 0x48]
pop esi
ret 0x10

Function at 0x51da78
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x6b3dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x51daa0
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 + 0x38]
pop esi
pop ebp
ret 0x14