joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c4e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x461378
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00416de0
test eax, eax
je 0x41c5e8
lea ecx, [esp + 0xc]
call fcn.00401060
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00416de0
mov ecx, eax
call fcn.00420c70
test eax, eax
je 0x41c5cf
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x41c5cf
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41c5cf
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401290
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x41c5b1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41c5cf
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x48e650]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x466dd0
call fcn.00401290
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x435c90
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x462af8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x435cc9
inc eax
mov dword [esi + 0x10], eax
jmp 0x435ddc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x435cdd
mov eax, 0xffffffc7
jmp 0x435dde
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x435cee
cmp dword [esi + 8], eax
jne 0x435cdd
cmp dword [esi + 8], eax
jne 0x435d07
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x435d07
mov eax, 0xffffffc7
jmp 0x435dde
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x435d1b
push eax
mov ecx, ebx
call fcn.004354c0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401060
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x435d4c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004010b0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00434c30
test eax, eax
mov dword [esp + 0x38], eax
je 0x435d7f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x466dd0
call fcn.00401290
mov eax, dword [esp + 0x38]
jmp 0x435dde
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00435af0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x435dc3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00435b10
mov esi, eax
test esi, esi
jne 0x435df3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00435af0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x435d95
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x466dd0
call fcn.00401290
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x466dd0
call fcn.00401290
mov eax, esi
jmp 0x435dde
Function at 0x402da6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x148]
mov edx, 0x128
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x14c], 0
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x402e7d
mov dword [ebp - 0x148], 0x128
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x150]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32First
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402e7d
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x148]
add eax, 0x24
mov dword [esp], eax
call sym.__stricmp
test eax, eax
jne 0x402e5d
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x14c], eax
jmp 0x402e7d
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x150]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
mov dword [ebp - 0xc], eax
jmp 0x402e2d
mov eax, dword [ebp - 0x150]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x14c]
leave
ret

Function at 0x402e96
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x28
mov dword [esp], eax
call sub.ADVAPI32.DLL_OpenProcessToken
sub esp, 0xc
test eax, eax
jne 0x402ec4
jmp 0x402f57
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
sub esp, 0xc
test eax, eax
jne 0x402ef6
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x402f57
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
sub esp, 0x18
test eax, eax
jne 0x402f57
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
leave
ret
Function at 0x402f5a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
cmp dword [ebp + 0xc], 0
jne 0x402f78
mov dword [ebp - 0x24c], 0
jmp 0x403025
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x248], 0x224
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Module32First
sub esp, 8
test eax, eax
je 0x40300d
lea eax, [ebp - 0x248]
add eax, 0x20
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x402fef
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x24c], eax
jmp 0x403025
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Module32Next
sub esp, 8
test eax, eax
je 0x40300d
jmp 0x402fb7
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [ebp - 0x24c], 0
mov eax, dword [ebp - 0x24c]
leave
ret

Function at 0x403238
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
sub esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40326a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
fld dword [ebp + 0x14]
fstp qword [esp + 8]
mov dword [esp + 4], 0x442320
lea eax, [ebp - 0x208]
mov dword [esp], eax
call sym._sprintf
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0xff
lea eax, [ebp - 0x108]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x208]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
sub esp, 0x18
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sym._atof
fstp dword [ebp - 0x20c]
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x21c], eax
fld dword [ebp - 0x21c]
leave
ret
Function at 0x4032f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [ebp + 0x14]
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x403311
mov dword [ebp - 0x220], str.True
jmp 0x40331b
mov dword [ebp - 0x220], str.False
mov eax, dword [ebp - 0x220]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x44232e
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym._sprintf
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0xff
lea eax, [ebp - 0x118]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x218]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
sub esp, 0x18
mov byte [ebp - 0x221], 0
lea eax, [ebp - 0x118]
mov dword [esp + 4], str.True
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x4033ae
lea eax, [ebp - 0x118]
mov dword [esp + 4], 0x442331
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4033b5
mov byte [ebp - 0x221], 1
movzx eax, byte [ebp - 0x221]
mov byte [ebp - 0x219], al
movzx eax, byte [ebp - 0x219]
leave
ret

Function at 0x4033cc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0xff
call sym.operator_new___unsigned_int_
mov dword [ebp - 4], eax
mov dword [esp + 8], 0xff
mov dword [esp + 4], 0
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0xff
mov eax, dword [ebp - 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
sub esp, 0x18
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40b3a0
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 0x40b3d6
mov dword [0x449570], 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 [0x441040], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x441040], eax
leave
ret
Function at 0x40b4c0
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], 0x440960
mov dword [ebp - 0x1c], 0x40b580
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x441040], 0
mov dword [ebp - 0x44], 0x449580
je 0x40b560
jl 0x40b5a0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x449570]
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 0x40b643
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 [0x449b50]
mov eax, 0xffffffff
test edx, edx
je 0x40b5ba
mov eax, dword [0x441044]
test eax, eax
je 0x40b5fa
xor eax, eax
test eax, eax
jne 0x40b5f0
mov edi, dword [0x441040]
test edi, edi
js 0x40b5f0
mov dword [ebp - 0x44], 0x449580
mov ebx, dword [0x441040]
test ebx, ebx
je 0x40b560
jmp 0x40b50e
xor esi, esi
mov dword [0x441040], esi
jmp 0x40b5c8
mov dword [esp], 0x441048
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x40b681
mov eax, dword [0x441044]
test eax, eax
jne 0x40b5b8
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 [0x441044]
test eax, eax
je 0x40b61d
jmp 0x40b5b8
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40b675
mov dword [esp + 4], eax
mov eax, dword [0x449570]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40b6aa
test edx, edx
je 0x40b695
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x441044], eax
jmp 0x40b5b8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x40b556
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x40b671
Function at 0x40d0e0
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.0040d0c0
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40d12c
call sym.__errno
cmp dword [eax], 4
je 0x40d100
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40ec30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040fd50
call sym.___main
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ec68
jmp 0x40ed06
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40ec67
cmp cl, 0x22
je 0x40ecc0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40ece0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40ece0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40eca0
jmp 0x40ece0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40ecc0
cmp cl, 0x22
je 0x40ed42
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40ed00
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40ecf0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40ed24
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40ece0

Function at 0x40f1f0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x449bb0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40f230
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 0x40f5e0
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 [0x449bb0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40f6bc
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40f6d1
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40f690
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40f628
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40f638
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40f683
test edx, edx
jne 0x40f676
test ecx, ecx
je 0x40f620
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 0x40f6e0
cmp eax, 8
je 0x40f620
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 0x40f612
call sym.___w32_sharedptr_initialize
mov eax, dword [0x449bb0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40f604
call sym._fc_key_init_once
mov eax, dword [0x449bb0]
jmp 0x40f604
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 0x40f67b
mov eax, dword [0x449bb0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40f733
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40f75e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40f73f
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 [0x449bb0]
jmp 0x40f711
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 0x40f722
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f722
call sym._fc_key_init_once
mov eax, dword [0x449bb0]
jmp 0x40f718
Function at 0x40f860
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 [0x449bb0]
test eax, eax
je 0x40f8c0
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40f8e0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40f900
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 0x40f950
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 [0x449bb0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40f882
jmp 0x40f8e0
call sym._fc_key_init_once
mov eax, dword [0x449bb0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40f889
jmp 0x40f900
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 0x40f8b1
lea esi, [esi]
mov eax, dword [0x449bb0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40f99d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40f9a9
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40f97e
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 0x40f96d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f96d
call sym.___w32_sharedptr_initialize
mov eax, dword [0x449bb0]
jmp 0x40f95c
call sym._fc_key_init_once
mov eax, dword [0x449bb0]
jmp 0x40f963
Function at 0x40f9c0
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 [0x449bb0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40fa54
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40fa70
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40fa90
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40fa48
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40fb0f
mov eax, dword [0x449bb0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40fae6
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40fb00
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40fac0
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 0x40fa05
call sym.___w32_sharedptr_initialize
mov eax, dword [0x449bb0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40f9e0
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x449bb0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40f9eb
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 0x40f9ee
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 0x40fa37
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40fa37
call sym.___w32_sharedptr_initialize
mov eax, dword [0x449bb0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40fa29
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x449bb0]
jmp 0x40fa29
call sym._abort
lea esi, [esi]
lea edi, [edi]