joyce8/EMBER2024-capa huggingface dataset:
Function at 0x565400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov edx, 0x5f2a18
call fcn.0040e780
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.005653f0
push ebp
push 0x414790
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x34]
mov edx, 0
call fcn.00408b20
mov eax, dword [ebp - 0xc]
mov edx, fcn.004e77d0
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov dx, 0
call fcn.00409470
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x30]
call fcn.00408b20
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.00563240
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00565a90
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
je 0x565505
jmp 0x565524
mov eax, dword [ebp - 4]
call fcn.00509c00
test al, al
je 0x565513
jmp 0x565524
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.005653f0
mov esp, ebp
pop ebp
ret
Function at 0x57ecd0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov byte [ebp - 4], al
cmp al, 7
jb 0x57ed30
sub al, 7
je 0x57ed90
sub al, 1
je 0x57ed10
sub al, 2
je 0x57ecf4
sub al, 3
je 0x57ed00
jmp 0x57ed30
add dword [0x602c40], 1
jmp 0x57ed90
mov eax, dword [0x602b60]
mov dword [0x602c30], eax
jmp 0x57ed90
mov eax, dword [0x602c30]
cmp eax, dword [0x602b60]
jbe 0x57ed90
sub dword [0x602c30], 1
jmp 0x57ed90
mov eax, dword [0x602c30]
sub eax, 1
mov word [ebp - 8], ax
mov eax, dword [0x602c40]
sub eax, 1
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 4]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
movzx ax, byte [0x59c390]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 0x10]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputAttribute
add dword [0x602c30], 1
nop
mov eax, dword [0x602c30]
cmp eax, dword [0x602b70]
jbe 0x57edc9
mov eax, dword [0x602b60]
mov dword [0x602c30], eax
add dword [0x602c40], 1
mov esi, esi
jmp 0x57edc9
mov eax, 1
call fcn.0057ec30
sub dword [0x602c40], 1
mov eax, dword [0x602c40]
cmp eax, dword [0x602b90]
ja 0x57edb8
mov esp, ebp
pop ebp
ret

Function at 0x57ede0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [0x602c30]
sub eax, 2
mov word [ebp - 4], ax
mov eax, dword [0x602c40]
sub eax, 1
mov word [ebp - 2], ax
movzx ax, byte [0x59c390]
mov word [ebp - 0xc], ax
movzx ax, byte [edi]
mov si, ax
cmp si, 1
jl 0x57eed4
xor bx, bx
lea esi, [esi]
add bx, 1
add word [ebp - 4], 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 1
movzx eax, bl
add eax, edi
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 1
lea eax, [ebp - 0xc]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputAttribute
add dword [0x602c30], 1
mov eax, dword [0x602c30]
cmp eax, dword [0x602b70]
jbe 0x57eec8
mov eax, dword [0x602b60]
mov dword [0x602c30], eax
add dword [0x602c40], 1
jmp 0x57eea1
mov eax, 1
call fcn.0057ec30
sub dword [0x602c40], 1
mov eax, dword [0x602c40]
cmp eax, dword [0x602b90]
ja 0x57ee90
mov eax, dword [0x602c30]
sub eax, 2
mov word [ebp - 4], ax
mov eax, dword [0x602c40]
sub eax, 1
mov word [ebp - 2], ax
mov esi, esi
cmp si, bx
jg 0x57ee28
lea esi, [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b1a
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp + 0x18]
mov dword [esp + 0xc], eax
lea eax, [ebp + 0x14]
mov dword [esp + 8], eax
lea eax, [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp + 0xc]
mov dword [esp], eax
call sym.normalize_coords_int__int__int__int_
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
sub eax, edx
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
sub eax, edx
mov dword [ebp - 8], eax
mov dword [esp], 0
call sym._GetDC_4
sub esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateCompatibleDC_4
sub esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateCompatibleBitmap_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
mov dword [ebp - 0x18], eax
mov dword [esp + 0x20], 0xcc0020
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._BitBlt_36
sub esp, 0x24
test eax, eax
jne 0x401c15
mov dword [esp], str.error:_BitBlt_failed_n
call sym._printf
mov dword [ebp - 0x24], 0
jmp 0x401cf1
mov byte [ebp - 0x19], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
jle 0x401c68
mov dword [esp + 4], str..png
mov eax, dword [ebp - 0x20]
add eax, dword [ebp + 8]
sub eax, 4
mov dword [esp], eax
call sym._strcasecmp
test eax, eax
jne 0x401c68
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym.save_png_file_HBITMAP____HDC____char_const_
mov byte [ebp - 0x19], al
jmp 0x401cb9
cmp dword [ebp - 0x20], 4
jle 0x401ca9
mov dword [esp + 4], str..bmp
mov eax, dword [ebp - 0x20]
add eax, dword [ebp + 8]
sub eax, 4
mov dword [esp], eax
call sym._strcasecmp
test eax, eax
jne 0x401ca9
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym.save_bitmap_file_HBITMAP____HDC____char_const_
mov byte [ebp - 0x19], al
jmp 0x401cb9
mov dword [esp], str.error:_unknown_output_file_format_n
call sym._printf
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
movzx eax, byte [ebp - 0x19]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
leave
ret
Function at 0x401cf6
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp + 0x18]
mov dword [esp + 0xc], eax
lea eax, [ebp + 0x14]
mov dword [esp + 8], eax
lea eax, [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp + 0xc]
mov dword [esp], eax
call sym.normalize_coords_int__int__int__int_
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
sub eax, edx
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
sub eax, edx
mov dword [ebp - 8], eax
mov dword [esp], 0
call sym._GetDC_4
sub esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateCompatibleDC_4
sub esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateCompatibleBitmap_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
mov dword [ebp - 0x18], eax
mov dword [esp + 0x20], 0xcc0020
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._BitBlt_36
sub esp, 0x24
test eax, eax
jne 0x401df1
mov dword [esp], str.error:_BitBlt_failed_n
call sym._printf
mov dword [ebp - 0x20], 0
jmp 0x401e79
mov byte [ebp - 0x19], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._OpenClipboard_4
sub esp, 4
test eax, eax
je 0x401e35
call sym._EmptyClipboard_0
test eax, eax
je 0x401e2e
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._SetClipboardData_8
sub esp, 8
test eax, eax
je 0x401e2e
mov byte [ebp - 0x19], 1
call sym._CloseClipboard_0
jmp 0x401e41
mov dword [esp], str.error:_could_not_open_clipboard_n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
movzx eax, byte [ebp - 0x19]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
leave
ret

Function at 0x40a30e
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40a349
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40a330
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40a341
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40a34b
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40a326
xor eax, eax
pop edi
pop esi
ret
Function at 0x40adc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sbb bh, bh
jne 0x40add8
call fcn.0040a293
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0040a2ce
lodsd eax, dword [esi]
pop ebx
xchg edi, eax
dec ecx
and byte [ebp - 0x664], 0
and byte [ebp - 0x663], 0
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.0040a2de
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040a293
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
invalid
test esi, ebx

Function at 0x40bfe0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.0040a2de
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.0040a23f
add esp, 0xc
jmp 0x40c246
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.0040a2ce
pushfd
arpl word [ebx + eax*4 - 0x39f4a01], bx
invalid

Function at 0x40c630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040c570
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40c67c
call sym.__errno
cmp dword [eax], 4
je 0x40c650
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40e660
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x44a5d0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40e6a0
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40ea50
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 [0x44a5d0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40eb2c
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40eb41
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40eb00
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40ea98
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40eaa8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40eaf3
test edx, edx
jne 0x40eae6
test ecx, ecx
je 0x40ea90
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x40eb50
cmp eax, 8
je 0x40ea90
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40ea82
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a5d0]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jns 0x40ea74
call sym._fc_key_init_once
mov eax, dword [0x44a5d0]
jmp 0x40ea74
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40eaeb
mov eax, dword [0x44a5d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40eba3
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40ebce
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40ebaf
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a5d0]
jmp 0x40eb81
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40eb92
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40eb92
call sym._fc_key_init_once
mov eax, dword [0x44a5d0]
jmp 0x40eb88
Function at 0x40ecd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x44a5d0]
test eax, eax
je 0x40ed30
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x40ed50
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x40ed70
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
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
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40edc0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a5d0]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x40ecf2
jmp 0x40ed50
call sym._fc_key_init_once
mov eax, dword [0x44a5d0]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x40ecf9
jmp 0x40ed70
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40ed21
lea esi, [esi]
mov eax, dword [0x44a5d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40ee0d
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40ee19
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40edee
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40eddd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40eddd
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a5d0]
jmp 0x40edcc
call sym._fc_key_init_once
mov eax, dword [0x44a5d0]
jmp 0x40edd3
Function at 0x40ee30
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 [0x44a5d0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40eec4
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x40eee0
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x40ef00
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40eeb8
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40ef7f
mov eax, dword [0x44a5d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40ef56
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x40ef70
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x40ef30
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x40ee75
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a5d0]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x40ee50
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x44a5d0]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x40ee5b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40ee5e
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40eea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40eea7
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a5d0]
mov edx, dword [eax + 0x2c]
test edx, edx
jns 0x40ee99
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x44a5d0]
jmp 0x40ee99
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40ef90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40f022
mov eax, dword [0x44a5d0]
test eax, eax
je 0x40f016
mov ebx, dword [eax + 0x2c]
test ebx, ebx
js 0x40f091
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x40f037
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40f0af
mov eax, dword [0x44a5d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40f082
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x40f0a0
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x40f063
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a5d0]
jmp 0x40efb2
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40efc7
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40f005
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f005
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a5d0]
jmp 0x40eff0
call sym._fc_key_init_once
mov eax, dword [0x44a5d0]
jmp 0x40efbd
call sym._fc_key_init_once
mov eax, dword [0x44a5d0]
jmp 0x40effb
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40f290
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40f2c0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret