joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475da0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x538a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
mov dword [ebp - 0x128], ecx
lea edi, [ebp - 0x104]
mov ecx, 0x40
xor esi, esi
rep stosd dword es:[edi], eax
add edx, 2
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x104], ecx
inc esi
cmp esi, 0x10
jb 0x475dd3
lea eax, [ebp - 0x100]
mov ebx, 0x30
lea ecx, [ecx]
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax + 0x30]
mov edi, edx
mov ecx, edx
rol edi, 0xe
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
rol ecx, 0xd
rol edx, 0xf
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax + 0x1c]
add edi, dword [eax - 8]
mov dword [eax + 0x38], edi
dec ebx
jne 0x475e10
mov ebx, dword [ebp - 0x128]
xor edx, edx
mov dword [ebp - 0x124], edx
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x118], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x110], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x120], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x108], eax
mov eax, dword [ebx + 0x1c]
mov ebx, dword [ebp - 0x120]
mov dword [ebp - 0x114], eax
lea ecx, [ecx]
mov esi, ebx
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror esi, 0xb
not ecx
and ecx, dword [ebp - 0x108]
xor esi, eax
mov eax, ebx
ror eax, 6
xor esi, eax
mov eax, dword [ebp - 0x10c]
and eax, ebx
xor ecx, eax
mov eax, edi
add esi, ecx
rol eax, 0xa
add esi, dword [edx + 0x528d10]
add esi, dword [ebp + edx - 0x104]
mov edx, edi
add esi, dword [ebp - 0x114]
ror edx, 0xd
xor edx, eax
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0x11c]
mov ecx, eax
and eax, edi
xor ecx, edi
and ecx, dword [ebp - 0x118]
xor ecx, eax
mov eax, dword [ebp - 0x108]
add edx, ecx
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x10c], ebx
mov ebx, dword [ebp - 0x110]
mov dword [ebp - 0x110], eax
add ebx, esi
mov eax, edi
mov dword [ebp - 0x118], ecx
lea edi, [edx + esi]
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x124]
add edx, 4
mov dword [ebp - 0x124], edx
cmp edx, 0x100
jb 0x475ea0
mov dword [ebp - 0x120], ebx
mov ebx, dword [ebp - 0x128]
add dword [ebx + 4], eax
mov eax, dword [ebp - 0x110]
add dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x120]
add dword [ebx + 0x10], eax
add dword [ebx], edi
add dword [ebx + 8], ecx
mov eax, dword [ebp - 0x10c]
add dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x108]
add dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x114]
xor ecx, ebp
add dword [ebx + 0x1c], eax
pop edi
pop esi
pop ebx
call fcn.004bae74
mov esp, ebp
pop ebp
ret
Function at 0x476440
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x538a60]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2d4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x476498
push str.Failed_to_initialize_Winsock_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.004bea01
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2d8]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x523abc
movdqu xmmword [ebp - 0x3c], xmm0
push str.169.254.169.254
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
je 0x476528
push 0
push 0x400
push 0x5616c8
push 0x400
push eax
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x5616c8
push str.getaddrinfo_failed:__hs_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.004beb13
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x2d8]
xor bl, bl
test esi, esi
je 0x476609
jmp 0x476540
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4765f8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push 0x8004667e
push edi
mov dword [ebp - 0x18], 0x7a120
mov dword [ebp - 0x10], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4765ed
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x140], edi
push eax
push 0
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 1
push eax
push 0
lea eax, [edi + 1]
mov dword [ebp - 0x14], 4
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4765ed
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1007
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [ebp - 0xc], 0
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
test bl, bl
jne 0x476603
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x476540
mov esi, dword [ebp - 0x2d8]
push esi
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 8]
xor eax, eax
test bl, bl
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.004bae74
mov esp, ebp
pop ebp
ret
Function at 0x476630
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [0x56161c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x47666a
push 0xc08
call fcn.004bb5d5
push 0xc08
mov ebx, eax
push 0
push ebx
call fcn.004c13c0
add esp, 0x10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [ebx]
lea edi, [ebx + 0x806]
test esi, esi
jne 0x47667c
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x400
push 0
push edi
call fcn.004c13c0
add esp, 0xc
test esi, 0x1000000
je 0x4766bb
and esi, 0xffffff
cmp esi, 2
jge 0x4766b0
push dword [esi*4 + 0x528b64]
push 0x520458
jmp 0x47679a
push esi
push str.auxtools_error:__u
jmp 0x47679a
test esi, 0x2000000
je 0x4766ea
and esi, 0xffffff
cmp esi, 0xe
jge 0x4766df
push dword [esi*4 + 0x528c74]
push 0x520458
jmp 0x47679a
push esi
push str.imgtools_error:__u
jmp 0x47679a
test esi, 0x4000000
je 0x476719
and esi, 0xffffff
cmp esi, 8
jge 0x47670e
push dword [esi*4 + 0x528e10]
push 0x520458
jmp 0x47679a
push esi
push str.mmtools_error:__u
jmp 0x47679a
test esi, 0x8000000
je 0x476742
and esi, 0xffffff
cmp esi, 0x12
jge 0x47673a
push dword [esi*4 + 0x528be8]
push 0x520458
jmp 0x47679a
push esi
push str.fstools_error:__u
jmp 0x47679a
test esi, 0x10000000
je 0x47676b
and esi, 0xffffff
cmp esi, 0xd
jge 0x476763
push dword [esi*4 + 0x527cb4]
push 0x520458
jmp 0x47679a
push esi
push str.hashtools_error:__u
jmp 0x47679a
test esi, 0x20000000
je 0x476794
and esi, 0xffffff
cmp esi, 4
jge 0x47678c
push dword [esi*4 + 0x528cf4]
push 0x520458
jmp 0x47679a
push esi
push str.auto_error:__u
jmp 0x47679a
push esi
push str.Unknown_Error:__u
push 0x400
push edi
call fcn.004bed2c
mov ecx, edi
add esp, 0x10
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4767b0
lea eax, [ebx + 4]
sub ecx, edx
cmp byte [eax], 0
mov esi, 0x400
je 0x4767eb
push eax
mov eax, esi
sub eax, ecx
push str.___s_
push eax
lea eax, [edi + ecx]
push eax
call fcn.004bed2c
mov ecx, edi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4767e2
sub ecx, edx
add ebx, 0x405
cmp byte [ebx], 0
je 0x47680a
push ebx
sub esi, ecx
add ecx, edi
push str.___s_
push esi
push ecx
call fcn.004bed2c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push edi
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x47684c
push esi
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi]
pop esi
pop edi
ret
mov eax, dword [eax]
pop edi
ret
Function at 0x476850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [0x56161c]
push edi
push ebx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x476890
push esi
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], edi
pop esi
pop edi
pop ebx
ret
mov dword [eax], edi
pop edi
pop ebx
ret

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

Disassembly:
push edi
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4768dd
push esi
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 4]
pop esi
pop edi
ret
add eax, 4
pop edi
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x47692c
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [esi + 4]
push 0x400
push eax
call fcn.004c31cc
add esp, 0x10
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x47698c
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [esi + 0x405]
push 0x400
push eax
call fcn.004c31cc
add esp, 0x10
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4769ec
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esi, 0x405
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4769f7
sub ecx, edx
lea edx, [ecx + 1]
test edx, edx
jle 0x476a26
lea ecx, [edx + esi]
lea eax, [ebp + 0xc]
mov byte [ecx - 1], 0x20
push eax
push dword [ebp + 8]
mov eax, 0x400
sub eax, edx
push eax
push ecx
call fcn.004c31cc
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x476a30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [0x56161c]
push esi
push edi
push ebx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x476a6c
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esi], 0
je 0x476aa1
call fcn.00476630
test eax, eax
je 0x476a8d
push eax
push 0x5299f4
push edi
call fcn.00479b20
add esp, 0xc
pop edi
pop esi
pop ebx
ret
call fcn.00476810
push eax
push str.Error_creating_Sleuth_Kit_error_string__Errno:__d__n
push edi
call fcn.00479b20
add esp, 0xc
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push esi
push edi
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x476aed
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x476b05
mov dword [esi], 0
mov byte [esi + 4], 0
mov byte [esi + 0x405], 0
mov byte [esi + 0x806], 0
pop edi
pop esi
ret

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

Disassembly:
push ecx
push esi
push edi
mov esi, edx
call fcn.00476ab0
mov eax, dword [esi]
test eax, eax
je 0x476b88
cmp dword [0x561618], 0
je 0x476b44
push eax
push 1
push 0
push str.tsk_img_open:_Type:__d___NumImg:__d__Img1:__s_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.004beb13
add esp, 0x14
call fcn.00476ab0
push ecx
mov edx, esi
call fcn.0047acf0
mov esi, eax
add esp, 4
test esi, esi
je 0x476b6a
lea ecx, [esi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop edi
pop esi
pop ecx
ret
call fcn.00476810
test eax, eax
jne 0x476bda
call fcn.00476ab0
mov ecx, 0x2000002
call fcn.00476850
xor eax, eax
pop edi
pop esi
pop ecx
ret
call fcn.00476ab0
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x476bc7
push 0xc08
call fcn.004bb5d5
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.004c13c0
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push str.tsk_img_open
mov dword [esi], 0x2000000
call fcn.004768f0
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4773e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x47744d
call fcn.00476ab0
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x47742f
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push str.tsk_vs_part_walk:_Start_partition_too_large:__u
mov dword [esi], 0x4000004
call fcn.004768f0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
cmp edi, eax
jb 0x4774ad
call fcn.00476ab0
mov ebx, dword [0x56161c]
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x477490
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push str.tsk_vs_part_walk:_End_partition_too_large:__u
mov dword [esi], 0x4000004
call fcn.004768f0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x4774ec
test byte [esi + 0x2c], 1
je 0x4774e0
push dword [esi + 0x14]
push dword [esi + 0x10]
push 0
push dword [ebx + 0x18]
call fcn.004c2160
mov ecx, dword [ebx + 4]
push edx
push eax
call fcn.0045c170
add esp, 8
test al, al
je 0x4774e0
call fcn.00476ab0
cmp dword [esi + 0x28], edi
jae 0x4774ec
mov esi, dword [esi + 8]
test esi, esi
jne 0x4774b4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4779c0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ecx + 0xc]
push ebx
push edi
xor bl, bl
mov dword [ebp - 0x10], edx
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
je 0x477a4d
mov edx, dword [ecx + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
cmp esi, dword [ecx + edx + 0x18]
jne 0x477a39
mov esi, dword [ebp + 0xc]
cmp esi, dword [ecx + edx + 0x1c]
jne 0x477a36
mov esi, dword [ecx + edx + 4]
mov eax, 0x1505
movsx edx, byte [esi]
test edx, edx
je 0x477a22
lea esi, [esi + 1]
cmp edx, 0x2f
je 0x477a18
mov ecx, eax
shl eax, 5
add eax, edx
add eax, ecx
movsx edx, byte [esi]
test edx, edx
jne 0x477a07
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jne 0x477a33
mov bl, byte [ecx + edx + 0x38]
cmp bl, 1
je 0x477a44
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
inc edi
add ecx, 0x40
mov dword [ebp - 0xc], ecx
cmp edi, eax
jb 0x4779e8
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push esi
push edi
test ecx, ecx
je 0x477c30
cmp dword [ecx], 0x10101010
jne 0x477c30
mov eax, dword [ecx + 0xf0]
test eax, eax
je 0x477c30
push dword [ebp + 0xc]
lea edx, [ebp - 4]
push dword [ebp + 8]
push edx
push ecx
call eax
add esp, 0x10
test eax, eax
je 0x477c27
mov ecx, dword [ebp - 4]
call fcn.00477d80
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x477c67
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push str.tsk_fs_dir_open_meta:_called_with_NULL_or_unallocated_structures
mov dword [esi], 0x8000006
call fcn.004768f0
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x477c90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x477d2a
cmp dword [edi], 0x10101010
jne 0x477d2a
mov edx, 0x20
lea ecx, [edx + 0x60]
call fcn.00480380
mov esi, eax
test esi, esi
je 0x477d77
lea eax, [ebp - 8]
mov edx, ebx
push esi
push eax
mov ecx, edi
call fcn.00479110
add esp, 8
cmp al, 0xff
je 0x477cf5
cmp al, 1
jne 0x477d05
mov ecx, 0x8000006
call fcn.00476850
push ebx
push str.tsk_fs_dir_open:_path_not_found:__s
call fcn.004768f0
add esp, 8
mov ecx, esi
call fcn.00480420
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
mov ecx, edi
push dword [ebp - 8]
call fcn.00477be0
add esp, 8
test eax, eax
je 0x477d79
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x477d79
mov dword [ecx + 4], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x477d64
push 0xc08
call fcn.004bb5d5
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.004c13c0
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push str.tsk_fs_dir_open:_called_with_NULL_or_unallocated_structures
mov dword [esi], 0x8000006
call fcn.004768f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
test ecx, ecx
je 0x477e80
cmp dword [ecx], 0x97531246
jne 0x477e80
mov eax, dword [ecx + 0xc]
ret
push esi
push edi
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x477eb9
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push str.tsk_fs_dir_getsize:_called_with_NULL_or_unallocated_structures
mov dword [esi], 0x8000006
call fcn.004768f0
add esp, 4
xor eax, eax
pop edi
pop esi
ret
Function at 0x477ee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x47801d
cmp dword [edi], 0x97531246
jne 0x47801d
mov eax, dword [edi + 0x24]
mov dword [ebp - 4], eax
test eax, eax
je 0x47801d
cmp dword [edi + 0xc], esi
ja 0x477f36
mov ecx, 0x8000006
call fcn.00476850
push dword [edi + 0xc]
push esi
push str.tsk_fs_dir_get:_Index___Iu__too_large___Iu_
call fcn.004768f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x10
call fcn.00479b80
mov ebx, eax
test ebx, ebx
je 0x478067
mov eax, dword [ebp - 4]
shl esi, 6
mov dword [ebx + 0xc], eax
mov dword [ebx], 0x11212212
add esi, dword [edi + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x477f74
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477f66
sub ecx, edx
lea edx, [ecx + 1]
jmp 0x477f76
xor edx, edx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x477f90
lea eax, [ecx + 1]
mov dword [ebp - 4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477f83
sub ecx, dword [ebp - 4]
inc ecx
jmp 0x477f92
xor ecx, ecx
call fcn.00480380
mov dword [ebx + 4], eax
test eax, eax
je 0x478067
mov edx, esi
mov ecx, eax
call fcn.00480470
test al, al
jne 0x478067
mov edx, dword [esi + 0x18]
mov eax, edx
mov ecx, dword [esi + 0x1c]
or eax, ecx
jne 0x477fc5
test byte [esi + 0x38], 1
je 0x478014
mov eax, dword [edi + 0x24]
push ecx
push edx
push ebx
push eax
mov eax, dword [eax + 0xe0]
call eax
add esp, 0x10
test al, al
je 0x477ff6
cmp dword [0x561618], 0
je 0x477ff1
call fcn.004bdd06
lea ecx, [eax + 0x40]
call fcn.00476a30
call fcn.00476ab0
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x478014
mov eax, dword [ecx + 0xc4]
cmp eax, dword [esi + 0x20]
je 0x478014
call fcn.0047fa70
mov dword [ebx + 8], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x478054
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push str.tsk_fs_dir_get:_called_with_NULL_or_unallocated_structures
mov dword [esi], 0x8000006
call fcn.004768f0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret