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

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x5c517e8a
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x5c517e9b
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.5c517edc
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x5c51a248
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x5c51a191
add ebx, 0
push ecx
call 0x5c51a1a6
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c326362
sub ebx, dword [0x6c345ba1]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c345b91
call fcn.5c515c70
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.5c51517e
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x5c51a304
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x5c51a304
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x5c51a2bb
mov eax, 1
lock xchg dword [0x6c345b9d], eax
push 0x3dd1fc71
call 0x5c51a248
push esi
add esp, 8
cmp eax, 0
jne 0x5c51a231
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x5c51a257
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x5c51a26c
cmp ecx, edx
cmp eax, 0
je 0x5c51a291
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x5c51a27b
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.5c51a2aa
dec eax
loope 0x5c51a2ad
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c345b9d], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x5c51a2e1
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x5c51a2f6
jmp 0x5c51a301
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x5c51a1ef
Function at 0x5c521369
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x5c52163f
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c332815
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c3297db
push 0xffffffffffffffff
call fcn.5c518569
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x5c5213d3
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.5c5213eb
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x5c521633
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x5c521607
Function at 0x5c530e39
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x5c530e5b
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x5c530e5b
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x5c530e5b
ret
cmp word [ebx + 4], 0x14c
jne 0x5c530e5b
test word [ebx + 0x16], 2
je 0x5c530e5b
test word [ebx + 0x16], 0x100
je 0x5c530e5b
cmp word [ebx + 0x18], 0x10b
jne 0x5c530e5b
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x5c530e5b
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x5c530ee7
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x5c530e7b
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.5c517dc6
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x5c530e5b
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x5c530ee7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x5c530e5b
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x5c530e5b
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x5c530e5b
ret
cmp word [ebx + 4], 0x14c
jne 0x5c530e5b
test word [ebx + 0x16], 2
je 0x5c530e5b
test word [ebx + 0x16], 0x100
je 0x5c530e5b
cmp word [ebx + 0x18], 0x10b
jne 0x5c530e5b
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x5c530e5b
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x5c530ee7
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x5c530e7b
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.5c517dc6
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x5c530e5b
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x5c530f9e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5c530ff7
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5c530f9e
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5c530fad
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x5c936c50
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x5c530ffe
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.5c517e74
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5c53109d
add edi, 4
add eax, 2
dec ecx
jne 0x5c530fe3
call 0x5c53104a
loope 0x5c531040
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5c53109a
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x5c5310ab
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x5c53105e
cmp eax, ecx
ja 0x5c53105e
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5c5310e8
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5c5310de
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.5c518353
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x5c530fad
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5c530ff7
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5c530f9e
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5c530fad
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x5c936c50
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x5c530ffe
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.5c517e74
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5c53109d
add edi, 4
add eax, 2
dec ecx
jne 0x5c530fe3
call 0x5c53104a
loope 0x5c531040
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5c53109a
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x5c5310ab
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x5c53105e
cmp eax, ecx
ja 0x5c53105e
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5c5310e8
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5c5310de
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.5c518353
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401390
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
call fcn.0040d140
call sym.___main
lea ecx, [ebp - 0x1c8]
mov edx, section..rdata
mov eax, 0x1b4
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call sym._memcpy
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x1b4
mov dword [esp], 0
call sub.KERNEL32.dll_VirtualAlloc
sub esp, 0x10
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1cc], 0
jne 0x401449
mov dword [esp + 4], str._____________________________________
mov dword [esp], 0x443320
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov dword [esp], eax
call method.std::ostream.operator___std::ostream____std::ostream__
mov dword [ebp - 0x1d0], 1
jmp 0x40149c
mov dword [esp + 8], 0x1b4
lea eax, [ebp - 0x1c8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x1cc]
call eax
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualFree
sub esp, 0xc
mov dword [ebp - 0x1d0], 0
mov eax, dword [ebp - 0x1d0]
leave
ret

Function at 0x409370
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4093a6
mov dword [0x447560], eax
mov edx, sym.get_globals_dtor_void_
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x43f040], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43f040], eax
leave
ret
Function at 0x409490
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x43e714
mov dword [ebp - 0x1c], 0x409550
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x43f040], 0
mov dword [ebp - 0x44], 0x447570
je 0x409530
jl 0x409570
mov dword [ebp - 0x3c], 1
mov eax, dword [0x447560]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x409613
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x447b50]
mov eax, 0xffffffff
test edx, edx
je 0x40958a
mov eax, dword [0x43f044]
test eax, eax
je 0x4095ca
xor eax, eax
test eax, eax
jne 0x4095c0
mov edi, dword [0x43f040]
test edi, edi
js 0x4095c0
mov dword [ebp - 0x44], 0x447570
mov ebx, dword [0x43f040]
test ebx, ebx
je 0x409530
jmp 0x4094de
xor esi, esi
mov dword [0x43f040], esi
jmp 0x409598
mov dword [esp], 0x43f048
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x409651
mov eax, dword [0x43f044]
test eax, eax
jne 0x409588
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43f044]
test eax, eax
je 0x4095ed
jmp 0x409588
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x409645
mov dword [esp + 4], eax
mov eax, dword [0x447560]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40967a
test edx, edx
je 0x409665
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x43f044], eax
jmp 0x409588
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x409526
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x409641
Function at 0x40b150
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.0040b130
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40b19c
call sym.__errno
cmp dword [eax], 4
je 0x40b170
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d170
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x447ba0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d1b0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], 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 + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40d560
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 [0x447ba0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d63c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d651
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d610
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40d5a8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40d5b8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40d603
test edx, edx
jne 0x40d5f6
test ecx, ecx
je 0x40d5a0
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 0x40d660
cmp eax, 8
je 0x40d5a0
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 + 0x2c]
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 0x40d592
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40d584
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40d584
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 0x40d5fb
mov eax, dword [0x447ba0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d6b3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40d6de
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40d6bf
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 [0x447ba0]
jmp 0x40d691
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d6a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d6a2
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40d698
Function at 0x40d7e0
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 [0x447ba0]
test eax, eax
je 0x40d840
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d860
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40d880
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 0x40d8d0
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 [0x447ba0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d802
jmp 0x40d860
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d809
jmp 0x40d880
mov ebx, dword [eax + 0x2c]
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 0x40d831
lea esi, [esi]
mov eax, dword [0x447ba0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d91d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d929
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d8fe
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 + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d8ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d8ed
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
jmp 0x40d8dc
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40d8e3
Function at 0x40d940
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 [0x447ba0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d9d4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d9f0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40da10
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40d9c8
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40da8f
mov eax, dword [0x447ba0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40da66
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40da80
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40da40
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 0x40d985
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d960
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d96b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
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 0x40d96e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d9b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d9b7
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40d9a9
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40d9a9
call sym._abort
lea esi, [esi]
lea edi, [edi]