joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45afd0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5098
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x6b20c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x6bbdac]
mov edi, dword [ebp + 0xc]
mov esi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test ecx, ecx
jne 0x45b02c
push 0x24
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0058a1a0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
call ebx
mov ecx, dword [ebp - 0x38]
mov dword [0x6bbdac], ecx
xor edx, edx
mov eax, edi
div ecx
test edx, edx
je 0x45b088
test ecx, ecx
jne 0x45b058
push 0x24
push ecx
lea eax, [ebp - 0x3c]
push eax
call fcn.0058a1a0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
call ebx
mov ecx, dword [ebp - 0x38]
mov dword [0x6bbdac], ecx
mov esi, ecx
test esi, esi
jne 0x45b07c
push 0x24
push ecx
lea eax, [ebp - 0x60]
push eax
call fcn.0058a1a0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call ebx
mov ecx, dword [ebp - 0x5c]
mov dword [0x6bbdac], ecx
xor edx, edx
mov eax, edi
div esi
lea esi, [eax + 1]
imul esi, ecx
push 0x6b6c48
push 0x6b5c54
call fcn.005895dc
add esp, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x6bbc14
mov byte [ebp - 0x14], 0
call fcn.0045aea0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x6bbc24
call fcn.0045b3b0
mov ecx, 0x6bbc24
dec dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0045b3b0
mov ecx, 0x6bbc24
sub dword [eax + 8], esi
sbb dword [eax + 0xc], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0045b3b0
mov esi, dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [eax]
shr eax, 0x1f
xor al, 1
jne 0x45b0fb
call esi
lea eax, [ebp - 0x10]
mov ecx, 0x6bbc24
push eax
call fcn.0045b3b0
cmp dword [eax + 0xc], 0
jg 0x45b119
jl 0x45b117
cmp dword [eax + 8], 0
jae 0x45b119
call esi
mov dword [ebp - 4], 1
cmp byte [ebp - 0x14], 0
je 0x45b162
mov edx, dword [ebp - 0x18]
add dword [edx], 0xffffffff
jne 0x45b162
xor ecx, ecx
lea eax, [edx + 4]
xchg dword [eax], ecx
lea ecx, [edx + 8]
mov eax, closesocket
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x45b162
cmp eax, 0x80000000
jle 0x45b162
lock bts dword [ecx], 0x1e
jb 0x45b162
call fcn.00448510
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp + 8]
mov edx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0046d5c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45b190
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c50c8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x6b20c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x45b334
mov ecx, dword [0x6bbdac]
mov edi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test ecx, ecx
jne 0x45b1f4
push 0x24
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0058a1a0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
call ebx
mov ecx, dword [ebp - 0x34]
mov dword [0x6bbdac], ecx
xor edx, edx
mov eax, esi
div ecx
test edx, edx
je 0x45b250
test ecx, ecx
jne 0x45b220
push 0x24
push ecx
lea eax, [ebp - 0x38]
push eax
call fcn.0058a1a0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
call ebx
mov ecx, dword [ebp - 0x34]
mov dword [0x6bbdac], ecx
mov edi, ecx
test edi, edi
jne 0x45b244
push 0x24
push ecx
lea eax, [ebp - 0x5c]
push eax
call fcn.0058a1a0
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call ebx
mov ecx, dword [ebp - 0x58]
mov dword [0x6bbdac], ecx
xor edx, edx
mov eax, esi
div edi
lea edi, [eax + 1]
imul edi, ecx
push 0x6b6c48
push 0x6b5c54
call fcn.005895dc
add esp, 8
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x6bbc14
mov byte [ebp - 0x10], 0
call fcn.0045aea0
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x6bbc2c
call fcn.0045b3b0
mov ecx, 0x6bbc2c
inc dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.0045b3b0
mov ecx, 0x6bbc24
add dword [eax + 8], edi
adc dword [eax + 0xc], 0
lea eax, [ebp + 8]
push eax
call fcn.0045b3b0
mov ecx, 0x6bbc24
inc dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.0045b3b0
add dword [eax + 8], edi
adc dword [eax + 0xc], 0
mov dword [ebp - 4], 1
cmp byte [ebp - 0x10], 0
je 0x45b312
mov edx, dword [ebp - 0x14]
add dword [edx], 0xffffffff
jne 0x45b312
xor ecx, ecx
lea eax, [edx + 4]
xchg dword [eax], ecx
lea ecx, [edx + 8]
mov eax, closesocket
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x45b312
cmp eax, 0x80000000
jle 0x45b312
lock bts dword [ecx], 0x1e
jb 0x45b312
call fcn.00448510
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.0046d42c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or eax, 0xffffffff
xor edx, edx
div esi
cmp eax, 1
jae 0x45b1c3
call fcn.00477529
int3
Function at 0x466fea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5d18
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6b20c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
and dword [ebp - 4], 0
xor esi, esi
and dword [ebp - 0x54], 0
mov dword [ebp - 0x50], esi
xor ebx, ebx
lea ecx, [ebp + 8]
inc ebx
mov byte [ebp - 4], bl
call fcn.004637d1
test al, al
je 0x46707a
push ebx
call fcn.0048f9b1
mov esi, eax
pop ecx
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 2
mov ecx, dword [0x6bbdc8]
test ecx, ecx
je 0x467057
push ecx
call fcn.00472c83
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
and dword [ebp - 0x48], 0
push dword [ebp - 0x48]
and dword [ebp - 0x4c], 0
push esi
call fcn.00468db0
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 8]
call fcn.00463011
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00457d60
push 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0048c370
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.0044a340
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0044a340
cmp dword [ebp - 0x4c], 3
je 0x46710a
cmp dword [ebp - 0x4c], 9
jne 0x4670f7
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.00463011
cmp dword [eax + 0x14], 8
jb 0x4670e1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.0044a340
cmp edi, 0xffffffff
jne 0x4670ff
test esi, esi
je 0x467129
mov ecx, esi
jmp 0x467124
mov eax, 0x410
and edi, eax
cmp edi, eax
jne 0x4670f7
test esi, esi
je 0x46712b
mov ecx, esi
call fcn.0045cfd0
jmp 0x46712b
call fcn.0045cfd0
xor bl, bl
lea ecx, [ebp + 8]
call fcn.0044a340
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048f6ef
leave
ret
Function at 0x4675ca
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5e72
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6b20c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ecx
push eax
call fcn.00457d60
call fcn.004674ae
add esp, 0x18
test al, al
jne 0x467629
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4676b0
or dword [ebp - 0x2c], 0xffffffff
mov word [ebp - 0x28], 1
mov dword [ebp - 0x24], ebx
push ecx
push 1
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2c]
call fcn.00469416
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, 0xffffffff
jne 0x46766a
lea ecx, [ebp - 0x20]
call fcn.0046964a
mov ecx, eax
push ecx
mov ecx, dword [esi + 4]
call fcn.0045a300
mov eax, dword [esi + 4]
mov esi, 0x636ab8
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
cmp ecx, edx
cmovne esi, ecx
sub edx, ecx
je 0x467694
push edx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004694ee
lea ecx, [ebp - 0x2c]
call fcn.004694d9
lea ecx, [ebp - 0x2c]
call fcn.004694d9
mov bl, 1
jmp 0x4676b0
lea ecx, [ebp + 8]
call fcn.0044a340
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048f6ef
leave
ret
Function at 0x46daee
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6bbdac]
sub esp, 0x24
test eax, eax
jne 0x46db1e
push 0x24
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0058a1a0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x6bbdac], eax
leave
ret

Function at 0x46db20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6bbda8]
sub esp, 0x24
test eax, eax
jne 0x46db50
push 0x24
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0058a1a0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
mov dword [0x6bbda8], eax
leave
ret
Function at 0x477cd7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6b20c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x477cfc
xor eax, eax
jmp 0x477d58
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x477d29
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x477d29
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x477ddd
cmp dword [edi + 0x4c], 0
je 0x477d52
mov ecx, edi
call fcn.00477973
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x477d68
push dword [edi + 0x4c]
push ebx
call fcn.004775ad
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x477d57
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0048f6ef
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x5cc3c4]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x477d52
cmp eax, 1
jle 0x477db0
cmp eax, 3
jne 0x477d52
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x477d44
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x477dcd
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.005967e0
add esp, 0x10
cmp esi, eax
jne 0x477d52
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x477d52
mov ax, bx
jmp 0x477d57

Function at 0x48be30
Capabilities:
Create directory

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x48be52
mov dword [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 8], 0x6a02d8
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x48be7a
mov edx, esi
cmp ecx, 8
jb 0x48be66
mov edx, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x48be6e
mov eax, dword [eax]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
jmp 0x48be8c
mov eax, esi
cmp ecx, 8
jb 0x48be83
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x48be98
pop edi
mov al, 1
pop esi
add esp, 0x14
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
mov byte [esp + 0x18], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0x6a02d8
push esi
push eax
call fcn.0048c370
add esp, 0xc
cmp dword [esp + 0xc], 3
je 0x48bee0
push str.boost::filesystem::create_directory
push edi
push esi
push ebx
call fcn.0048d580
add esp, 0x10
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x48c370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7f50
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x6b20c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x68], esi
test esi, esi
je 0x48c3bc
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [esi + 8], 0x6a02d8
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x48c3c6
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
jne 0x48c3e5
push esi
push ebx
push edi
call fcn.0048c240
add esp, 0xc
jmp 0x48c4e1
push eax
push ebx
call fcn.0048c140
add esp, 8
mov esi, eax
test dword [ebp - 0x60], 0x400
mov dword [ebp - 0x64], esi
je 0x48c4bb
push ebx
call fcn.0048c050
add esp, 4
test al, al
jne 0x48c419
mov dword [edi], 9
jmp 0x48c4de
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x48c423
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x28]
call fcn.00463c7d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x60], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0044a340
cmp esi, 0xffffffff
jne 0x48c479
push dword [ebp - 0x68]
push ebx
push edi
call fcn.0048c240
add esp, 0xc
jmp 0x48c4e1
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x48c4a5
push dword [ebp - 0x68]
push ebx
push edi
call fcn.0048c240
add esp, 0xc
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48c4e1
mov ebx, dword [ebp - 0x5c]
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x64]
jmp 0x48c4be
mov ebx, dword [ebp - 0x60]
and ebx, 0x10
je 0x48c4c8
mov ecx, dword [ebp - 0x64]
jmp 0x48c4cd
mov ecx, esi
mov esi, dword [ebp - 0x64]
xor eax, eax
test ebx, ebx
setne al
add eax, 2
test ebx, ebx
mov dword [edi], eax
cmove esi, ecx
mov dword [edi + 4], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f6ef
mov esp, ebp
pop ebp
ret
Function at 0x48c5f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x6b20c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00457d60
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x48c69f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x5c
mov ecx, dword [ebp - 0x14]
je 0x48c698
cmp ecx, 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x2f
mov ecx, dword [ebp - 0x14]
je 0x48c698
cmp ecx, 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x3a
jne 0x48c69f
mov edx, 0x5d0524
jmp 0x48c6a4
mov edx, 0x5d051c
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x294], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c6b0
sub ecx, dword [ebp - 0x294]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004579f0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x298]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x48c71d
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x48c709
cmp eax, 0x12
jne 0x48c70b
xor eax, eax
push 0x6a02d8
push eax
mov ecx, esi
call fcn.00448040
jmp 0x48c7f8
lea edx, [ebp - 0x264]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x48c726
sub edx, ecx
lea eax, [ebp - 0x264]
mov ecx, dword [ebp - 0x29c]
sar edx, 1
push edx
push eax
call fcn.00457aa0
mov eax, dword [ebp - 0x290]
test eax, 0x400
je 0x48c766
mov dword [edi], 0
mov dword [ebx], 0
jmp 0x48c7e7
test al, 0x10
je 0x48c778
mov dword [edi], 3
mov dword [ebx], 3
jmp 0x48c784
mov dword [edi], 2
mov dword [ebx], 2
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c7a1
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00457aa0
push dword [ebp - 0x290]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.0048c140
add esp, 8
mov dword [edi + 4], eax
lea ecx, [ebp - 0x40]
call fcn.0044a340
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [esi + 8], 0x6a02d8
lea ecx, [ebp - 0x28]
call fcn.0044a340
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f6ef
mov esp, ebp
pop ebp
ret
Function at 0x48e7e0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6b20b8]
cmp eax, 0xffffffff
je 0x48e830
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48e830
push esi
mov esi, dword [eax + 0x14]
mov eax, esi
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x48e825
mov edx, dword [esp + 8]
cmp dword [ecx + 0x10], edx
jae 0x48e812
mov ecx, dword [ecx + 8]
jmp 0x48e816
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x48e808
cmp eax, esi
je 0x48e825
cmp edx, dword [eax + 0x10]
jae 0x48e827
mov eax, esi
cmp eax, esi
pop esi
je 0x48e830
add eax, 0x14
ret
xor eax, eax
ret
Function at 0x48ee70
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8460
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6b20c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.0048e010
mov esi, eax
mov dword [ebp - 4], 0
push 0x48e690
push 0x6b6bec
mov dword [ebp - 0x14], esi
call fcn.0048e480
mov eax, dword [0x6b20b8]
add esp, 8
cmp eax, 0xffffffff
je 0x48eed0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48f390
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c84c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6b20c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6b20b8]
cmp eax, 0xffffffff
jne 0x48f3c4
xor ebx, ebx
jmp 0x48f3cd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x48f40f
mov eax, dword [ebx + 0x18]
nop
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x48f44e
test esi, esi
jne 0x48f452
push 0x48e690
push 0x6b6bec
call fcn.0048e480
mov eax, dword [0x6b20b8]
add esp, 8
cmp eax, 0xffffffff
je 0x48f40f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 2
test ebx, ebx
je 0x48f43c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x48f43c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x48f497
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x48f47d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x48f452
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x48f3e0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x48f4bd
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x48f4bd
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea ecx, [ebx + 0x14]
call fcn.0046cbac
push 0x20
push eax
call fcn.0048fd5c
mov eax, dword [ebx + 0x18]
add esp, 8
mov byte [ebp - 4], 0
test eax, eax
jne 0x48f4a0
jmp 0x48f3e0
Function at 0x48f4f0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push edi
call fcn.0048e7e0
mov esi, eax
add esp, 4
test esi, esi
je 0x48f609
cmp byte [esp + 0x40], 0
je 0x48f52c
mov eax, dword [esi + 4]
test eax, eax
je 0x48f52c
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48f52c
push ecx
push eax
mov eax, dword [esi]
call eax
add esp, 8
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
test edx, edx
jne 0x48f5f5
test ecx, ecx
jne 0x48f5f5
mov eax, dword [0x6b20b8]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x48f55b
push eax
call esi
test eax, eax
jne 0x48f571
call fcn.0048ee70
mov eax, dword [0x6b20b8]
cmp eax, 0xffffffff
jne 0x48f56e
xor eax, eax
jmp 0x48f571
push eax
call esi
mov ebx, dword [eax + 0x14]
lea ebp, [eax + 0x14]
mov esi, ebx
mov ecx, dword [ebx + 4]
mov eax, ecx
cmp byte [eax + 0xd], 0
jne 0x48f5a5
mov edx, dword [eax + 0x10]
cmp edx, edi
jae 0x48f590
mov eax, dword [eax + 8]
jmp 0x48f59f
cmp byte [esi + 0xd], 0
je 0x48f59b
cmp edi, edx
cmovb esi, eax
mov ebx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x48f584
cmp byte [esi + 0xd], 0
jne 0x48f5ad
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x48f5c7
cmp edi, dword [ecx + 0x10]
jae 0x48f5be
mov esi, ecx
mov ecx, dword [ecx]
jmp 0x48f5c1
mov ecx, dword [ecx + 8]
cmp byte [ecx + 0xd], 0
je 0x48f5b3
mov dword [esp + 0x10], ebx
cmp ebx, esi
je 0x48f5df
nop
lea ecx, [esp + 0x10]
call fcn.0046ce54
cmp dword [esp + 0x10], esi
jne 0x48f5d0
push esi
push ebx
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.0046ce88
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x34]
pop edi
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x38], 0
mov ebp, dword [esp + 0x3c]
jne 0x48f618
test ebp, ebp
je 0x48f68e
mov eax, dword [0x6b20b8]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x48f631
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x48f649
call fcn.0048ee70
mov eax, dword [0x6b20b8]
cmp eax, 0xffffffff
jne 0x48f644
xor esi, esi
jmp 0x48f649
push eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x34]
lea ecx, [esi + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
movq xmm0, qword [esp + 0x10]
push eax
mov dword [esp + 0x20], edi
movq qword [esp + 0x24], xmm0
mov dword [esp + 0x2c], ebp
call fcn.0048dca0
push eax
add eax, 0x10
lea ecx, [esi + 0x14]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0048de70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret