joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47dcbe
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0xc5f004]
call fcn.00487871
mov esi, eax
test esi, esi
je 0x47dd98
cmp dword [ebp + 0xc], 0
je 0x47dd0a
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x47dcfb
cmp dword [esi + 0x1c], 0
jne 0x47dcfb
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x47dd98
test byte [ebp + 0x10], 3
je 0x47dd25
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004ebd78
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x47dd4a
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x47dd5e
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x47dd7b
test ebx, ebx
je 0x47dd6f
push 8
jmp 0x47dd81
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x47dd8e
test ebx, ebx
je 0x47dd84
push 3
pop ecx
jmp 0x47dd8e
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x47e61d
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x47e63d
cmp dword [esp + 8], 0
je 0x47e63d
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x47e63f
xor eax, eax
ret 8

Function at 0x47e642
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x47e6ba
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00491023
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0049007b
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x47e69b
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x47e698
cmp ecx, 0x5c
je 0x47e698
cmp ecx, 0x2f
jne 0x47e6a5
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x47e685
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x47e6bc
xor eax, eax
leave
ret 4
Function at 0x47e9fd
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x47ea26
test byte [esp + 8], 2
je 0x47ea1a
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x47ea28
xor eax, eax
ret 8

Function at 0x47eb0b
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0xc5f140]
push esi
test eax, eax
jne 0x47eb30
push fcn.0047ead9
push 0x10
push 0x258
call fcn.00487955
mov dword [0xc5f140], eax
push dword [esp + 0xc]
push eax
call fcn.004877dd
mov esi, eax
test esi, esi
je 0x47ec31
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x47eb52
mov edi, 0x57d684
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x47eb62
xor eax, eax
cmp word [ebx], ax
jne 0x47eb67
mov ebx, 0x57ccf8
push edi
call fcn.0049007b
push ebx
mov dword [esp + 0x24], eax
call fcn.0049007b
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x47ec18
push edi
push eax
call fcn.00490059
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x47ebc8
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x47ebcc
push 0x57bc64
push edi
call fcn.004aaf5e
pop ecx
pop ecx
jmp 0x47ebcc
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.004aaf5e
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47ebf0
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x47ec06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x47ec04
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x47ec2f
cmp dword [esp + 0x14], 0xffffffff
je 0x47ec23
mov esi, dword [esp + 0x14]
push esi
push dword [0xc5f140]
call fcn.00487906
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x47ec7c
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x47edc4
xor ecx, ecx
cmp word [eax], cx
je 0x47edc4
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00491023
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0049007b
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x47ecd5
cmp eax, 3
jne 0x47ed0f
cmp word [esp + 0xa], 0x3a
jne 0x47ed0f
cmp eax, 2
jne 0x47ecf3
lea eax, [esp + 8]
push 0x57bc64
push eax
call fcn.004aaf5e
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x47edc4
push 0xfffffffffffffffe
pop edi
jmp 0x47edc4
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x47ed24
cmp ax, bx
jne 0x47ed2e
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x47ed17
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x47ed6d
test byte [esp + 0x21c], 0x10
je 0x47ed54
push 0xfffffffffffffffe
pop edi
jmp 0x47ed64
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x47edc2
cmp word [esp + 0x10], bp
jne 0x47ed7b
cmp word [esp + 0x12], bp
je 0x47ed9a
cmp word [esp + 0x10], bx
jne 0x47ed89
cmp word [esp + 0x12], bx
je 0x47ed9a
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x47edc2
cmp word [esp + 0x12], ax
jne 0x47edc2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x47edaf
test al, 0x10
je 0x47edc2
jmp 0x47edbf
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x47edc2
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x47ee28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x47ee3e
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47ee41
or eax, 0xffffffff
ret 4

Function at 0x47effd
Capabilities:
Set file attributes

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

Function at 0x47f0a0
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 0x47f0dc
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 0x47f0f0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x47f109
push dword [0xc5f144]
call fcn.004879a8
pop edi
ret 4
push esi
push edi
push dword [0xc5f144]
call fcn.00487871
mov esi, eax
test esi, esi
je 0x47f173
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x47f15f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x47f14e
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 [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0xc5f144]
call fcn.00487906
pop esi
pop edi
ret 4

Function at 0x47f620
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0xc5f144]
call fcn.00487871
mov esi, eax
test esi, esi
je 0x47f69f
cmp dword [esi + 4], 0
je 0x47f670
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004ec760
test eax, eax
je 0x47f664
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 0x47f6aa
cmp dword [esp + 8], 0
je 0x47f6aa
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 0x47f770
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0xc5f144]
call fcn.00487871
test eax, eax
je 0x47f7bb
cmp dword [eax + 4], 0
je 0x47f7a5
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.004ec760
movzx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x47f9e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x47fa45
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x47fa3d
push dword [esp + 0x10]
push dword [0xc5f144]
call fcn.00487871
test eax, eax
je 0x47fa33
cmp dword [eax + 4], 0
je 0x47fa22
push edi
push esi
push eax
call fcn.004ecd60
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 0x47fa50
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0xc5f144]
call fcn.00487871
test eax, eax
je 0x47fa6c
mov dword [esp + 4], eax
jmp fcn.0047fa80
xor eax, eax
ret 0xc
Function at 0x47fa80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x47fb7f
cmp word [edx], 0
je 0x47fb7f
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x47faae
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x47fb04
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47fac0
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x47fae6
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004ecd60
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
xor eax, eax
cmp ecx, 2
push edx
setne al
dec eax
and eax, 0xfde9
push eax
call fcn.004ece80
mov edi, eax
test edi, edi
je 0x47fafa
cmp dword [esi + 4], 0
je 0x47fb52
push dword [esp + 0x14]
push edi
push esi
call fcn.004ecd60
push edi
push 0
push dword [0xc5dbc4]
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 [0xc5dbc4]
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 0x480eb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x10], 0
xor esi, esi
mov dword [esp + 0x14], 0
call fcn.004edb00
mov edi, eax
test edi, edi
je 0x480fc2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x480fc2
push ebp
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x480fc1
push ebx
push 0x100000
push esi
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x480fb9
push dword [esp + 0x28]
mov eax, dword [edi + 4]
call eax
mov esi, eax
test esi, esi
je 0x480faa
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.004f2d70
cmp dword [esp + 0x18], 0
jl 0x480f70
mov eax, dword [esp + 0x14]
jg 0x480f5d
test eax, eax
je 0x480f70
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esp, [esp]
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 0x480f70
mov eax, dword [edi + 0x10]
push esi
call eax
push dword [esp + 0x24]
push edi
push esi
call fcn.004f2f10
push ebx
push 0
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
push dword [esp + 0x24]
push esi
call fcn.004f2d00
test esi, esi
je 0x480fd6
mov eax, dword [edi + 0x14]
push esi
call eax
pop edi
pop esi
add esp, 0xc
ret 0x10

Function at 0x48138d
Capabilities:
Get thread local storage value

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

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

Disassembly:
push dword [0xc5f158]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov ecx, dword [edx + 0x74]
cmp ecx, 2
je 0x48144b
cmp ecx, 3
je 0x48144b
cmp ecx, 8
je 0x48144b
cmp ecx, 0xc
jne 0x481459
mov eax, dword [esp + 4]
test eax, eax
je 0x481459
mov dword [edx + 0xb8], eax
ret 4
Function at 0x48145c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [0xc5f158]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov esi, dword [edx + 0x2c]
mov edi, dword [edx + 0x90]
mov ebx, dword [edx + 0x8c]
test esi, esi
je 0x48149c
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add ecx, edi
push 0xff
push ecx
add eax, ebx
push eax
push dword [ebp + 8]
push edx
call esi
jmp 0x4814af
mov eax, dword [ebp + 0x10]
add eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, ebx
push eax
push dword [ebp + 8]
push edx
call dword [edx + 0x24]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4814b6
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0xc5f158]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [ebp + 0x14], 0
mov ecx, eax
jle 0x4814f4
cmp dword [ebp + 0x18], 0
jle 0x4814f4
push dword [ebp + 0x18]
mov eax, dword [ecx + 0x90]
push dword [ebp + 0x14]
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ecx + 0x8c]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
push ecx
call dword [ecx + 0x28]
pop ebp
ret 0x14

Function at 0x481628
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0xc5f158]
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 0x481661
cmp ecx, 3
je 0x481661
cmp ecx, 8
je 0x481661
cmp ecx, 0xc
jne 0x4816b4
mov ecx, dword [ebp + 0x10]
push edi
xor edi, edi
inc edi
test ecx, ecx
jns 0x481673
neg ecx
mov dword [ebp + 0x10], ecx
jmp 0x481678
jne 0x481678
mov dword [ebp + 0x10], edi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jns 0x481686
neg ecx
mov dword [ebp + 0x14], ecx
jmp 0x48168b
jne 0x48168b
mov dword [ebp + 0x14], edi
fild dword [ebp + 0x10]
mov dword [eax + 0x118], edx
mov dword [eax + 0x11c], esi
mov dword [eax + 0xb4], 0x4815b3
pop edi
fstp dword [eax + 0x120]
fild dword [ebp + 0x14]
fstp dword [eax + 0x124]
pop esi
pop ebp
ret 0x10

Function at 0x4816b9
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0xc5f158]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0xac]
je 0x4816df
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
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 + 0x3c]
pop esi
ret 0x10
Function at 0x481701
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0xc5f158]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov ecx, dword [ebx + 0x74]
cmp ecx, 2
je 0x48172e
cmp ecx, 3
je 0x48172e
cmp ecx, 8
je 0x48172e
cmp ecx, 0xc
jne 0x481803
fldz
fld dword [ebp + 8]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x481743
fstp st(0)
fstp dword [ebp + 8]
jmp 0x481754
fstp st(1)
fld1
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x48173e
fstp st(0)
push esi
mov esi, dword [ebx + 0xbc]
push edi
xor edi, edi
jmp 0x481780
fld dword [esi + 4]
fld dword [ebp + 8]
fld st(0)
fucom st(2)
fnstsw ax
test ah, 0x44
jnp 0x4817a0
fstp st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x481786
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x481760
jmp 0x4817ac
push 0x18
push 0
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x4817ac
mov dword [edx], esi
jmp 0x4817c5
mov edx, esi
fstp st(2)
fstp st(1)
test edx, edx
jne 0x4817d6
fstp st(0)
push 0x18
push 0
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x481801
and dword [edx], 0
fld dword [ebp + 8]
test edi, edi
je 0x4817d0
mov dword [edi], edx
jmp 0x4817d6
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
fstp dword [edx + 4]
mov dword [edx + 0x14], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x481821
Capabilities:
Get thread local storage value

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

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

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xc5f158]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add eax, dword [edi + 0x90]
add ebp, dword [edi + 0x8c]
mov dword [esp + 0x18], eax
test esi, esi
jns 0x4818e6
add ebp, esi
neg esi
mov ebx, dword [esp + 0x20]
test ebx, ebx
jns 0x4818f6
add eax, ebx
neg ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
add eax, eax
cmp eax, esi
jle 0x48190b
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
add ecx, ecx
cmp ecx, ebx
jle 0x481920
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 0xac]
je 0x481937
push eax
push edi
mov dword [edi + 0xac], eax
call dword [edi + 0x40]
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
push esi
push dword [esp + 0x28]
push ebp
push edi
call dword [edi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c

Function at 0x481951
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xc5f158]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add eax, dword [esi + 0x90]
add ebp, dword [esi + 0x8c]
mov dword [esp + 0x18], eax
test edi, edi
jns 0x481987
add ebp, edi
neg edi
mov ebx, dword [esp + 0x20]
test ebx, ebx
jns 0x481997
add eax, ebx
neg ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
add eax, eax
cmp eax, edi
jle 0x4819ac
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
add ecx, ecx
cmp ecx, ebx
jle 0x4819c1
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x4819da
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
push edi
push dword [esp + 0x28]
push ebp
push esi
call dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x4819f4
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 0x481a51
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 0x481a51
mov eax, dword [esi + 0x70]
test eax, eax
je 0x481a30
push ebx
push esi
call eax
push esi
push ebx
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0xc5f158]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0xc5f15c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4