joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e5e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5bc28c]
test esi, esi
jle 0x43e700
mov eax, dword [0x5bc290]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x43e614
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x43e697
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x43e600
mov dword [esp], ebx
call fcn.0043efd0
mov edi, eax
test eax, eax
je 0x43e727
mov eax, dword [0x5bc290]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0043f110
mov edx, dword [0x5bc290]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x43e707
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x43e690
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x43e6a0
add dword [0x5bc28c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5bc290]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x43e690
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0043e580
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x43e61e
mov eax, dword [0x5bc290]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0043e580
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0043e580
lea esi, [esi]
nop

Function at 0x43ec40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5bc2a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5bc2a0]
sub esp, 4
test ebx, ebx
je 0x43ec95
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x43ec8e
test esi, esi
je 0x43ec8e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x43ec70
mov dword [esp], 0x5bc2a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43efd0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x43eff5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x43f000
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x43eff5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x43f048
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x43f03e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x43f04a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x43f030
xor eax, eax
pop ebx
pop esi
ret

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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x220
mov ebx, dword [esp + 0x230]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x444200
cmp word [ebx], 0
je 0x4441e0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x444210
test al, 0x10
je 0x4441e0
lea esi, [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__wfullpath
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x53fac0
mov ebx, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x53fac4
add ebx, eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax + 0x21d]
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x44421f
lea edi, [eax + 0x434]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
jne 0x444198
mov dword [esp], edi
mov dword [esp + 4], 0x53fac4
call sub.msvcrt.dll_wcscat
lea edx, [ebx + 0x224]
xor eax, eax
mov ecx, 0x82
mov dword [ebx + 0x42c], 0xffffffff
mov edi, edx
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
mov dword [ebx + 0x220], 0
rep stosd dword es:[edi], eax
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x2f
je 0x44413d
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x5c
je 0x44413d
mov dword [esp + 4], 0x53fac0
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
jmp 0x44413d
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0x14
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xe
jmp 0x4441ed
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 2
jmp 0x4441ed
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xc
jmp 0x4441ed
Function at 0x44fa50
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x44fb2b
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x44fafd
cmp eax, 0x6a
je 0x44fb1a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x44faf8
cmp eax, 0x6a
je 0x44fb1a
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x44fb10

Function at 0x44feb0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x5bce14], 1
je 0x44ff68
push edi
mov eax, 0x5bce14
push esi
push ebx
sub esp, 0x10
call fcn.0044f830
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.0044f0b0
mov edi, dword [0x5bce14]
test edi, edi
jne 0x44ff20
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x534170], eax
cmp eax, 0xffffffff
je 0x52a0cd
mov dword [0x5bce14], 1
mov dword [esp], esi
call fcn.0044f3f0
test ebx, ebx
je 0x44ff5a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.0044fb40
cmp edi, 1
je 0x44ff02
mov dword [esp], 2
call dword [0x53415c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x5bce14
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.0044f3f0
test ebx, ebx
jne 0x44ff0e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
Function at 0x44ff70
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.0044fc30
mov edx, dword [entry3]
test edx, edx
je 0x4500a0
mov ebx, eax
test eax, eax
je 0x4500a0
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0044f730
cmp eax, 1
je 0x4500ac
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.0052a0d2
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x534170]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4500b1
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0044fa50
jmp fcn.0052a0d2

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

Disassembly:
sub esp, 0x1c
call fcn.0044feb0
mov eax, dword [0x534170]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4500e8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.0044ff70
Function at 0x4503b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4503e0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4504b0
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x4504e0
cmp eax, 3
jne 0x4503cb
mov eax, dword [0x534170]
cmp eax, 0xffffffff
je 0x4503cb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4503cb
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x450510
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x450429
call fcn.004500f0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x45045b
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x45044d
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call fcn.0044f570
mov dword [esp], edi
call fcn.0044f730
cmp eax, 1
je 0x4505d6
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x4505ca
mov eax, dword [0x534170]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x4503cb
mov eax, dword [0x5bcdf0]
test eax, eax
je 0x4503cb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x5bcdf0], 0
sub esp, 4
jmp 0x4503cb
mov dword [esp + 4], 0x44f7a0
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x5bcdf0], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x450580
test eax, eax
je 0x45052a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x450547
call fcn.004500f0
test byte [ebx + 0x24], 4
je 0x4505c0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x45045b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.0044f570
jmp 0x450463
test eax, eax
je 0x4505c0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.0044f570
mov dword [esp], edi
call fcn.0044f730
cmp eax, 1
je 0x4505d6
mov dword [ebx + 0x38], 0xffffffff
jmp 0x4503cb
mov dword [esp], esi
call fcn.0044f570
jmp 0x45059f
mov eax, ebx
call fcn.0044fcf0
jmp 0x450489
call fcn.0044fa50
lea esi, [esi]
nop
Function at 0x450870
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
test edx, edx
je 0x450990
cmp eax, 1
je 0x4508c4
mov eax, ebx
call fcn.0044f830
lea edi, [eax + 4]
mov esi, eax
mov dword [esp], edi
call fcn.0044f0b0
mov ebp, dword [ebx]
test ebp, ebp
je 0x4508d0
cmp ebp, 1
jne 0x450960
mov dword [esp], edi
call fcn.0044f3f0
test esi, esi
je 0x4508c4
mov eax, esi
call fcn.0044fb40
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x44fc00
mov dword [esp + 0x18], esi
call fcn.0044feb0
mov eax, dword [0x534170]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4509c8
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lock or dword [esp], 0
call fcn.0044feb0
mov eax, dword [0x534170]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4509b0
lea edx, [esp + 0x14]
mov dword [eax + 0xc], edx
lock or dword [esp], 0
call dword [esp + 0x44]
call fcn.0044feb0
mov eax, dword [0x534170]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4509a0
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x4508b1
mov dword [esp], 2
call dword [0x53415c]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4508b1
add esp, 0x2c
mov eax, 0x16
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0044ff70
test eax, eax
jne 0x450948
jmp 0x52a0e5
call fcn.0044ff70
test eax, eax
jne 0x450922
jmp 0x52a0f7
call fcn.0044ff70
test eax, eax
jne 0x4508fc
jmp 0x52a0f0
mov eax, dword [esp + 0x1c]
mov dword [0], eax
ud2
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x14]
mov dword [0], eax
ud2

Function at 0x450c20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0044feb0
mov eax, dword [0x534170]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x450c98
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.0044f740
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x450c74
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x450c74
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.0044f790
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0044ff70
mov ebx, eax
jmp 0x450c4b
Function at 0x450cb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.0044feb0
mov eax, dword [0x534170]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x450dd0
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.0044f740
cmp esi, dword [ebx + 0x28]
jae 0x450d30
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.0044f790
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x450ddc
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x450ddc
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.0044da90
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.0044da90
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x450cf8
call fcn.0044ff70
mov ebx, eax
jmp 0x450ce5
mov dword [esp], edi
call fcn.0044f790
mov eax, 0xc
jmp 0x450d20

Function at 0x450e60
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0044feb0
mov eax, dword [0x534170]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x450e88
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.0044ff70
test eax, eax
jne 0x450e7d
add esp, 0x1c
ret

Function at 0x450ef0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0044feb0
mov eax, dword [0x534170]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x450f18
add eax, 0xc
add esp, 0x1c
ret
call fcn.0044ff70
test eax, eax
jne 0x450f0d
jmp 0x450f10
Function at 0x450f50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.004500c0
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x450f72
call fcn.004500f0
test byte [ebx + 0x20], 0x30
jne 0x450f8c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x534170]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x450fcd
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x45100d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x450fc2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x450fd6
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.0044fe90
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x534170]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x450fcd
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x451021
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x450fee

Function at 0x451030
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5bce1c]
test eax, eax
jne 0x451040
xor eax, eax
ret
sub esp, 0x1c
call fcn.0044feb0
mov eax, dword [0x534170]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x451080
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x451070
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x451064
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x451066
call fcn.0044ff70
test eax, eax
jne 0x45105d
jmp 0x451064

Function at 0x451090
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0044feb0
mov eax, dword [0x534170]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4510d0
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x4510c0
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.0044ff70
test eax, eax
jne 0x4510ad
add esp, 0x1c
ret
Function at 0x4511d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.0044feb0
mov eax, dword [0x534170]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x451240
test byte [ebx + 0x20], 0xc
jne 0x451200
mov eax, dword [0x5bce1c]
test eax, eax
jne 0x451210
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.0044f0b0
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x451232
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x451232
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x451251
mov dword [esp], esi
call fcn.0044f3f0
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0044ff70
mov ebx, eax
test eax, eax
jne 0x4511f1
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x451271
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.0044f3f0
call fcn.004510e0
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x451300
mov dword [esp], eax
call fcn.0044edf0
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x451340
call fcn.0044feb0
mov eax, dword [0x534170]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4513a0
test edi, edi
je 0x45131a
call fcn.004511d0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x451378
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044ef00
call fcn.004511d0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0044feb0
mov eax, dword [0x534170]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x451390
call fcn.004511d0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.004511d0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0044feb0
mov eax, dword [0x534170]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x4512d2
call fcn.0044ff70
mov ebx, eax
jmp 0x4512d2
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x4512ee
call fcn.0044ff70
jmp 0x45131a
call fcn.0044ff70
mov ebx, eax
jmp 0x4512ce

Function at 0x4549f0
Capabilities:
Create directory

Disassembly:
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x10
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x454a28
call fcn.004f12a0
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
cmp edi, 0x11
je 0x454a50
call fcn.004f12b0
mov dword [ebx], edi
mov dword [ebx + 4], eax
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.004c13d0
cmp al, 2
jne 0x454a35
xor eax, eax
jmp 0x454a41