joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467810
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c5d83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004b99bd
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004bf00a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004c0526
test eax, eax
je 0x46792c
mov ecx, dword [esp + 0x3c]
call fcn.004bf037
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4678f0
push edi
mov ecx, esi
call fcn.004bc6a7
mov ecx, esi
call fcn.00467ad0
cmp dword [esp + 0x38], 1
jne 0x467925
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004bc7e2
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x469b20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x469b53
push esi
call fcn.00477d90
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x469b4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x469bd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x469bc2
mov eax, dword [esi + 8]
test eax, eax
je 0x469b77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x469bbe
cmp eax, 2
je 0x469bc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x469b6a
cmp eax, 3
je 0x469b9d
cmp eax, 1
jne 0x469b6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x469b6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x469b6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00469c00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x469be8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00469c00
add esp, 4
pop esi
ret

Function at 0x46a470
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x46a491
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x46a491
mov eax, dword [eax + 0x44]
test eax, eax
je 0x46a491
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x48d610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x48d731
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x48d715
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x48d667
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x48d645
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x48e179
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x48e1d0
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x48e1d0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x48e1d0
xor eax, eax
inc eax
jmp 0x48e1d2
xor eax, eax
leave
ret 0x10
Function at 0x48e1fb
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x48e269
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x567f6c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48e260
cmp dword [ebp - 0xc], 4
jne 0x48e260
cmp dword [ebp - 0x10], edi
je 0x48e260
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x654ff8], edi
xor eax, eax
jmp 0x48e2a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x654ff8], edi
jge 0x48e2a3
lea eax, [ebp - 0x34]
push eax
mov dword [0x654ff8], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x48e2a3
cmp word [ebp - 0x14], 5
jb 0x48e2a3
call fcn.0048e1d6
test eax, eax
je 0x48e2a3
emms
mov dword [0x654ff8], 1
mov eax, dword [0x654ff8]
pop edi
leave
ret

Function at 0x4ba798
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ba7d0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b8869
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b8841
jmp 0x4ba7dc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4bbe8d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bbecf
call fcn.004c1806
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bbecf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bbec6
xor eax, eax
jmp 0x4bbed7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bbedd
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c1d36
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c1d64
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c1d82
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c1c9c
jmp 0x4c1d82
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c1d82
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c1c9c
test edi, edi
mov eax, edi
jne 0x4c1d6c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x2e005375
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.2e005914
mov eax, dword [0x2e001520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea esi, [ebp - 0x2004]
push 0xffffffffffffffff
mov eax, esi
push 0x1000
push eax
call dword [sym.imp.MSVCR90.dll__vsnwprintf_s]
add esp, 0x14
test eax, eax
jge 0x2e0053b4
mov esi, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x2e0014f8
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.2e00558f
leave
ret

Function at 0x2e0054db
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x2e001540
push 0x2e001524
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x2e005510
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x2e001520
push ebx
call edi
mov dword [0x2e001520], esi
test esi, esi
jne 0x2e005574
mov dword [0x2e001520], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x2e01b1b4], 0x44bf19b1
pop ebx
leave
ret
Function at 0x2e00558f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2e001520]
jne 0x2e00593f
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x2e01b728], eax
mov dword [0x2e01b724], ecx
mov dword [0x2e01b720], edx
mov dword [0x2e01b71c], ebx
mov dword [0x2e01b718], esi
mov dword [0x2e01b714], edi
mov word [0x2e01b740], ss
mov word [0x2e01b734], cs
mov word [0x2e01b710], ds
mov word [0x2e01b70c], es
mov word [0x2e01b708], fs
mov word [0x2e01b704], gs
pushfd
pop dword [0x2e01b738]
mov eax, dword [ebp]
mov dword [0x2e01b72c], eax
mov eax, dword [ebp + 4]
mov dword [0x2e01b730], eax
lea eax, [ebp + 8]
mov dword [0x2e01b73c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x2e01b678], 0x10001
mov eax, dword [0x2e01b730]
mov dword [0x2e01b62c], eax
mov dword [0x2e01b620], 0xc0000409
mov dword [0x2e01b624], 1
mov eax, dword [0x2e001520]
mov dword [ebp - 0x328], eax
mov eax, dword [0x2e01b1b4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x2e01b670], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x2e00155c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x2e01b670], 0
jne 0x2e005a2b
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x2e016fb0
Capabilities:
Read file on windows

Disassembly:
push 4
mov eax, 0x2e017fcc
call fcn.2e01720a
mov ebx, ecx
cmp byte [ebx + 0x21], 0
jne 0x2e017054
cmp dword [ebp + 8], 0x10
jne 0x2e017108
mov eax, dword [ebx + 0x84]
cmp eax, 0x10
jb 0x2e017108
lea esi, [ebx + 0x24]
push eax
mov ecx, esi
call fcn.2e004335
mov esi, dword [esi]
test esi, esi
jne 0x2e016ff7
call fcn.2e006394
push dword [ebp + 8]
lea eax, [ebx + 0x78]
push eax
push esi
call sub.MSVCR90.dll_memcpy
mov edx, dword [ebx + 0x84]
add esp, 0xc
cmp edx, dword [ebp + 8]
je 0x2e017054
mov eax, dword [ebx + 0x24]
push 5
pop ecx
lea edi, [ebx + 0x28]
mov esi, 0x2e0031a0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x14]
lea ecx, [ebx + 0x28]
push ecx
lea ecx, [ebp + 8]
push ecx
add edx, 0xfffffff0
push edx
add eax, 0x10
push eax
push esi
mov byte [ebx + 0x20], 1
mov byte [ebx + 0x21], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x2e017108
mov byte [ebx + 0x20], al
jmp 0x2e017108
lea esi, [ebx + 0x24]
mov eax, dword [esi]
test dword [eax + 4], 0x2000000
je 0x2e017097
push dword [eax + 0xc]
call fcn.2e005eb2
mov ecx, dword [esi]
push dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
push ecx
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.2e016910
cmp dword [ebp - 0x10], 0
je 0x2e0170f2
push dword [ebp - 0x10]
call fcn.2e005ed9
jmp 0x2e0170f2
xor edi, edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0x80]
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.2e016b12
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x2e0170e5
mov eax, dword [esi]
test byte [eax + 7], 1
je 0x2e0170c7
mov edi, dword [eax]
test edi, edi
jl 0x2e0170dc
jmp 0x2e0170d7
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
test al, al
jne 0x2e0170dc
mov edi, 0x8007000d
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x2e0170f2
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x2e017101
and dword [esi], 0
push eax
call fcn.2e0167d1
mov ecx, ebx
call fcn.2e0167ee
call fcn.2e0172e2
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407820
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x407856
mov dword [esp + 4], sym.get_globals_dtor_void_
mov dword [esp], eax
mov dword [0x43b820], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x434080], eax
mov esp, ebp
pop ebp
ret
call fcn.00410c40
jmp 0x407845

Function at 0x40b850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
mov esp, ebp
pop ebp
ret

Function at 0x40b880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fwrite
mov esp, ebp
pop ebp
ret

Function at 0x40d010
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ebx
mov ebx, dword [0x43ba60]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40d051
mov dword [ebx + 0x28], eax
mov dword [esp + 4], sym._fc_key_dtor
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call fcn.00410c40
jmp 0x40d03f
Function at 0x40d3a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x43ba60]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d522
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40d513
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40d4ea
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40d4e0
xor ecx, ecx
mov eax, 5
cmp eax, 5
mov edx, 5
je 0x40d44b
test eax, eax
mov edx, 3
jne 0x40d44b
test ecx, ecx
jne 0x40d413
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
jmp 0x40d3e0
mov dword [esp + 0x10], edi
lea ebx, [ebp - 0x14]
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], 1
call ecx
cmp eax, 6
je 0x40d455
cmp eax, 8
mov edx, 3
je 0x40d40c
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
mov edx, eax
jne 0x40d44b
mov eax, dword [0x43ba60]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d4d2
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40d4c6
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40d4a9
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40d498
call fcn.00410c40
jmp 0x40d498
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d48e
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d487
mov ecx, dword [eax + 0x18]
xor eax, eax
jmp 0x40d3f5
mov ebx, dword [eax + 0x28]
call fcn.00410c40
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x40d3d2
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d3c4
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d3b9
Function at 0x40d640
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x43ba60]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d740
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40d730
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40d703
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40d6a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x43ba60]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d6f7
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40d6eb
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40d6ce
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40d6bd
call fcn.00410c40
jmp 0x40d6bd
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d6b3
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d6ac
mov ebx, dword [eax + 0x28]
call fcn.00410c40
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x40d672
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d664
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d659
Function at 0x40d750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x43ba60]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d870
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40d860
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40d834
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x40d820
mov dword [esp], edi
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40d87f
mov eax, dword [0x43ba60]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d810
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40d800
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40d7e0
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40d7c8
call fcn.00410c40
jmp 0x40d7c8
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d7be
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d7b7
mov dword [esp], edi
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x40d7a2
mov ebx, dword [eax + 0x28]
call fcn.00410c40
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x40d782
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d774
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d769
call sym._abort
lea esi, [esi]
lea edi, [edi]