joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b5c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xec
mov dword [esp], 0xa000
call sub.msvcrt.dll_malloc
mov ebx, eax
mov dword [esp], 0xa000
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [ebp - 0x20], 0x47fc4c
mov edi, 0x481594
cmp byte [0x498056], 0
je 0x402b9e
mov edi, 0x481590
call sub.KERNEL32.DLL_GetCurrentProcessId
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x481598
lea eax, [ebp - 0x70]
mov dword [esp], eax
call sub.msvcrt.dll_swprintf
xor eax, eax
mov edx, 0x8a
mov ecx, edx
sub cx, word [ebp + eax*2 - 0x6c]
mov word [ebp + eax*2 - 0x6c], cx
inc eax
cmp eax, 0xa
jne 0x402bc5
lea edx, [ebp - 0xb4]
mov ecx, 0x11
xor al, al
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xb4], 0x44
mov dword [ebp - 0x88], pe_nt_image_headers32
cmp dword [0x498058], 0
jne 0x402c12
mov dword [esp], 0
call sub.KERNEL32.DLL_CloseHandle
push eax
mov dword [0x498058], 0
lea eax, [ebp - 0x70]
mov dword [esp + 4], eax
lea edi, [ebp - 0x20]
mov dword [esp], edi
call fcn.004402d0
mov eax, edi
call fcn.00402b1b
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_wcscpy
lea eax, [ebp - 0x1c]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0xbc], eax
call fcn.00407bc5
push edi
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], str.restart_arg:___s_
call fcn.0040ace7
mov eax, dword [ebp - 0xbc]
mov dword [esp], eax
call fcn.0044b870
mov dword [esp + 8], 0x1fff
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleFileNameW
sub esp, 0xc
mov word [ebx + 0x3ffe], 0
lea eax, [ebp - 0x30]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0xb4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000208
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.DLL_CreateProcessW
sub esp, 0x28
test eax, eax
je 0x402d27
mov dword [esp], str.restarted_
call fcn.0040ace7
mov eax, dword [ebp - 0x30]
mov dword [0x498058], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
push ecx
mov dword [esp], esi
call fcn.0041afa8
mov dword [esp], ebx
call fcn.0041afa8
mov bl, 1
jmp 0x402d39
mov dword [esp], esi
call fcn.0041afa8
mov dword [esp], ebx
call fcn.0041afa8
xor ebx, ebx
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.00441ab0
mov al, bl
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402d4e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x3c], eax
mov ebx, edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x24], 0x47fc4c
lea eax, [ebp - 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegOpenKeyExW
sub esp, 0x14
mov edi, 1
test eax, eax
jne 0x402dec
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x2000
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x4b62c4
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
setne al
mov edi, eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCloseKey
push eax
mov dword [esp + 8], 0x1fff
mov dword [esp + 4], 0x4b62c4
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleFileNameW
sub esp, 0xc
mov dword [esp + 4], 0x4815ca
lea esi, [ebp - 0x24]
mov dword [esp], esi
call fcn.004402d0
mov dword [esp + 4], 0x4b62c4
mov dword [esp], esi
call fcn.0043ff40
mov dword [esp + 4], 0x4815ca
mov dword [esp], esi
call fcn.0043ff40
mov eax, esi
call fcn.00402b1b
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0x4b62c4
call sub.msvcrt.dll_wcscpy
mov dword [esp], 0x4b62c4
call sub.msvcrt.dll_wcslen
mov esi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCreateKeyExW
sub esp, 0x24
xor ebx, ebx
test eax, eax
jne 0x402f28
add esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x4b62c4
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegSetValueExW
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x28]
jne 0x402f1f
mov edx, edi
test dl, dl
je 0x402efd
mov dword [esp], eax
call sub.ADVAPI32.dll_RegFlushKey
push eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCloseKey
push eax
mov bl, 1
mov eax, edi
test al, al
je 0x402f28
mov dword [esp], str.autorun_added_
call fcn.0040ace7
jmp 0x402f28
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCloseKey
push eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.00441ab0
mov al, bl
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402f3d
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, 0x48117a
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov eax, 0x80000001
call fcn.00402d4e
mov ecx, str.System_Health_Monitoring_Service_Pro
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov eax, 0x80000001
call fcn.00402d4e
call fcn.004017bf
test al, al
je 0x402f9d
mov ecx, 0x48117a
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov eax, 0x80000002
call fcn.00402d4e
mov ecx, str.System_Health_Monitoring_Service_Pro
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov eax, 0x80000002
leave
jmp fcn.00402d4e
leave
ret

Function at 0x403328
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebx], method.abiv120__si_class_type_infoE.virtual_8
mov dword [esp + 0x14], 0x1e0
mov dword [esp + 0x10], 0x280
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0x48b74c
mov dword [esp], ebx
call fcn.00409282
mov dword [ebx], vtable._C.1.0
mov byte [ebx + 0x38], 0
mov byte [ebx + 0x39], 0
mov byte [ebx + 0x3a], 0
test esi, esi
je 0x403394
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xffffffeb
mov dword [esp], esi
call sub.USER32.dll_SetWindowLongA
sub esp, 0xc
mov dword [esp + 8], 0x1e0
mov dword [esp + 4], 0x280
mov dword [esp], ebx
call fcn.00408454
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp fcn.00401c56
Function at 0x404490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov byte [ebp - 0x2d], al
mov byte [0x49826c], 0
mov byte [0x49826d], 0
mov dword [ebp - 0x2c], 0
lea ebx, [ebp - 0x24]
cmp dword [ebp - 0x2c], 3
jbe 0x4044cb
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x481968
jmp 0x404536
mov edx, 0x4cc2c8
mov ecx, 0x1000
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx*4 + 0x483534]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4cc2c8
mov dword [esp], 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathW
sub esp, 0x10
test eax, eax
je 0x404527
mov eax, 0x4cc2c8
call fcn.004021df
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4cc2c8
jmp 0x404536
lea eax, [ebp - 0x1b]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x48196c
mov dword [esp], ebx
call fcn.00441450
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
mov dword [esp], ebx
je 0x40457d
call fcn.00440a10
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x20
je 0x40458a
mov dword [esp + 4], ebx
lea esi, [ebp - 0x20]
mov dword [esp], esi
call fcn.00441500
movzx edx, byte [ebp - 0x2d]
mov eax, esi
call fcn.00403574
mov dword [esp], esi
call fcn.00441ab0
mov dword [esp], ebx
call fcn.00441ab0
inc dword [ebp - 0x2c]
jmp 0x4044b4
mov dword [esp], ebx
call fcn.00441ab0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406387
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp], 0x2428
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp], 0
call sub.KERNEL32.DLL_SetLastError
push eax
mov dword [esp], str.inetGetReply:_starting
call fcn.0040ace7
xor ebx, ebx
lea edi, [ebp - 0x1c]
jmp 0x4063fc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406424
add ebx, eax
cmp ebx, 0x1bff
jle 0x4063ef
cmp ebx, 0x20000
jg 0x406424
lea eax, [ebx + 0x2428]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_realloc
test eax, eax
je 0x406424
mov esi, eax
mov dword [esp], 0
call sub.KERNEL32.DLL_SetLastError
push eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x400
lea eax, [esi + ebx]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [esp], eax
call sub.WININET.DLL_InternetReadFile
sub esp, 0x10
test eax, eax
jne 0x4063be
mov byte [esi + ebx], 0
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x40643a
mov dword [esp], str.downloaded_failed_n
jmp 0x406441
mov dword [esp], str.inetGetReply:_complete
call fcn.0040ace7
cmp dword [ebp + 0xc], 0
je 0x406451
mov edx, dword [ebp + 0xc]
mov dword [edx], ebx
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x411d20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
cmp dword [edx], 0x2c
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
je 0x411d50
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
jmp fcn.0040e190
mov edx, dword [edx + 4]
mov edi, dword [edx + 8]
mov ebp, dword [edx + 4]
test edi, edi
je 0x411dd8
lea ecx, [eax + 4]
mov edx, dword [eax + 0x104]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov esi, eax
jmp 0x411d8c
mov ecx, edx
add edx, 1
add ebx, 1
cmp edi, ebx
mov byte [esi + ecx + 4], al
mov dword [esi + 0x104], edx
mov byte [esi + 0x108], al
je 0x411dd8
cmp edx, 0xff
movzx eax, byte [ebp + ebx]
jne 0x411d70
mov edx, dword [esi + 0x110]
mov byte [esi + 0x103], 0
mov byte [esp + 0x18], al
mov dword [esp + 4], 0xff
mov dword [esp + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
call dword [esi + 0x10c]
mov edx, 1
xor ecx, ecx
add dword [esi + 0x124], 1
movzx eax, byte [esp + 0x18]
jmp 0x411d75
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
ret

Function at 0x411df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x28
mov eax, dword [edx]
cmp eax, 6
je 0x411e01
test eax, eax
jne 0x411e10
add esp, 0x28
mov eax, ebx
pop ebx
jmp fcn.0040e190
mov eax, dword [ebx + 0x104]
cmp eax, 0xff
lea ecx, [eax + 1]
je 0x411e60
mov byte [ebx + eax + 4], 0x28
mov eax, ebx
mov dword [ebx + 0x104], ecx
mov byte [ebx + 0x108], 0x28
call fcn.0040e190
mov eax, dword [ebx + 0x104]
cmp eax, 0xff
lea edx, [eax + 1]
je 0x411ea0
mov byte [ebx + eax + 4], 0x29
mov dword [ebx + 0x104], edx
mov byte [ebx + 0x108], 0x29
add esp, 0x28
pop ebx
ret
mov eax, dword [ebx + 0x110]
mov dword [esp + 0x1c], edx
mov byte [ebx + 0x103], 0
mov dword [esp + 4], 0xff
mov dword [esp + 8], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call dword [ebx + 0x10c]
mov ecx, 1
xor eax, eax
add dword [ebx + 0x124], 1
mov edx, dword [esp + 0x1c]
jmp 0x411e20
mov eax, dword [ebx + 0x110]
mov byte [ebx + 0x103], 0
mov dword [esp + 4], 0xff
mov dword [esp + 8], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call dword [ebx + 0x10c]
mov edx, 1
xor eax, eax
add dword [ebx + 0x124], 1
jmp 0x411e49

Function at 0x412820
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00412880
Function at 0x412d70
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x412d80
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x412d7d
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret

Function at 0x413340
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x535344
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ebx, dword [0x53535c]
sub esp, 4
test ebx, ebx
je 0x413395
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 0x41338e
test esi, esi
je 0x41338e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x413370
mov dword [esp], 0x535344
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x413580
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x47a03c]
test ebx, ebx
je 0x4135de
mov ecx, dword [0x47a044]
mov eax, dword [0x47a040]
test ecx, ecx
jne 0x4135da
mov eax, 1
lock xadd dword [0x47a048], eax
cmp eax, 0xffffffff
je 0x4135f0
mov edx, dword [0x47a044]
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
test edx, edx
jne 0x4135d5
nop
mov dword [esp], 0
call ebx
mov eax, dword [0x47a044]
sub esp, 4
test eax, eax
je 0x4135c0
mov eax, dword [0x47a040]
test eax, eax
jns 0x4135e8
mov dword [0x47a040], 0
add esp, 0x18
pop ebx
ret
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x413629
mov dword [0x535364], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0041b230
test eax, eax
sete al
movzx eax, al
mov dword [0x47a040], eax
mov dword [0x47a044], 1
jmp 0x4135e8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x413610
Function at 0x413740
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x3c
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x10]
mov eax, dword [ebx]
mov dword [esp + 0x2c], edx
jmp 0x41376c
mov dword [0x535368], edi
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x413831
mov ebp, dword [eax + 0x18]
xor edi, edi
mov eax, 0xa
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edx
mov edx, dword [esi]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 1
mov dword [esp + 8], edx
call dword [esp + 0x28]
test eax, eax
jne 0x413850
cmp edi, 5
je 0x413855
test ebp, ebp
lea esi, [esi]
je 0x4137f4
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call ebp
cmp eax, 7
mov edi, eax
je 0x413855
cmp eax, 8
jne 0x413850
mov eax, dword [ebx]
mov edi, dword [eax]
mov eax, dword [0x47a040]
test eax, eax
js 0x413842
test eax, eax
je 0x413760
mov eax, dword [0x535364]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x413766
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x413766
xor ebp, ebp
mov edi, 5
mov eax, 0x1a
jmp 0x41377e
call fcn.00413580
mov eax, dword [0x47a040]
jmp 0x413801
mov edi, 2
add esp, 0x3c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
sub esp, 0x2c
mov eax, dword [0x47a040]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
test eax, eax
mov dword [esp + 0x28], ebp
js 0x413910
test eax, eax
jne 0x4138b0
mov eax, dword [0x535368]
mov dword [0x535368], ebx
mov dword [ebx], eax
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esp, 0x2c
ret
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, dword [0x535364]
call esi
mov dword [esp], ebp
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [0x535364]
mov dword [ebx], ebp
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x413895
mov edx, esi
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esp, 0x2c
jmp edx
call fcn.00413580
mov eax, dword [0x47a040]
jmp 0x413884
Function at 0x413920
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x47a040]
test eax, eax
js 0x413966
test eax, eax
jne 0x413942
mov dword [0x535368], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x535364]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x41393d
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
add esp, 0x18
pop ebx
jmp eax
call fcn.00413580
mov eax, dword [0x47a040]
jmp 0x413933

Function at 0x413a70
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x47a040]
mov ebx, dword [esp + 0x40]
test eax, eax
js 0x413b53
test eax, eax
mov edi, dword [0x535368]
jne 0x413af1
test edi, edi
mov dword [esp + 0x2c], edi
je 0x413ae5
mov eax, edi
lea esi, [esp + 0x2c]
nop
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x413ad7
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call ecx
cmp eax, 6
je 0x413b20
cmp eax, 8
jne 0x413b47
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x413aa0
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov edi, dword [0x535364]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
sub esp, 4
jmp 0x413a91
mov eax, dword [esp + 0x2c]
mov edx, esi
mov dword [ebx + 0xc], 0
mov dword [esp + 0x2c], edi
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.00413640
cmp eax, 7
jne 0x413aea
mov eax, esi
call fcn.004136d0
add esp, 0x30
mov eax, 3
pop ebx
pop esi
pop edi
ret
call fcn.00413580
mov eax, dword [0x47a040]
jmp 0x413a87

Function at 0x413c20
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x47a040]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x413c9b
test edx, edx
mov edi, dword [0x535368]
jne 0x413c75
mov dword [esp + 0x1c], edi
mov edi, dword [ebx + 0xc]
lea esi, [esp + 0x1c]
mov edx, esi
mov eax, ebx
test edi, edi
jne 0x413c65
call fcn.00413640
cmp eax, 7
je 0x413c6c
nop
lea esi, [esi]
call sub.msvcrt.dll_abort
call fcn.00413740
jmp 0x413c56
mov eax, esi
nop
call fcn.004136d0
mov edi, dword [0x535364]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
push edx
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push ecx
jmp 0x413c3e
call fcn.00413580
mov edx, dword [0x47a040]
jmp 0x413c34
Function at 0x413cb0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x413ce2
mov dword [esp], ebx
call fcn.00413a70
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add esp, 0x2c
ret
mov edx, dword [0x47a040]
test edx, edx
js 0x413d50
test edx, edx
mov edi, dword [0x535368]
jne 0x413d20
lea edx, [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x1c], edi
call fcn.00413740
cmp eax, 7
je 0x413d10
call sub.msvcrt.dll_abort
nop
lea eax, [esp + 0x1c]
call fcn.004136d0
lea esi, [esi]
mov edi, dword [0x535364]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
sub esp, 4
jmp 0x413cf6
call fcn.00413580
mov edx, dword [0x47a040]
jmp 0x413cec

Function at 0x413ef0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x413f28
mov dword [esi], eax
mov esi, dword [esp + 8]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x10], eax
add esp, 0xc
jmp fcn.0041b230
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
add esp, 0xc
jmp eax

Function at 0x413f70
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, esi
sub esp, 4
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 0x1c
ret

Function at 0x413fb0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
je 0x413fd5
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
add esp, 0x1c
jmp eax