joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e6b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x43e6e2
push dword [ebp + 8]
call edi
push eax
call fcn.0044feb8
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x43e70d
test byte [ebp - 4], 1
je 0x43e70d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x43e70d
push dword [ebp + 8]
call edi
push eax
call fcn.0044feb8
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x43e7c7
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0043e612
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x43e743
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0043e612
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x43e759
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0043e612
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43e786
push dword [ebp + 8]
call edi
push eax
call fcn.0044feb8
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43e7b2
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0044feb8
push ebx
call esi
test eax, eax
jne 0x43e7c4
push dword [ebp + 8]
call edi
push eax
call fcn.0044feb8
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x43e7ef
test byte [ebp - 4], 1
jne 0x43e7ef
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x43e7ef
push dword [ebp + 8]
call edi
push eax
call fcn.0044feb8
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x444639
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x444680
call fcn.00448abf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x444680
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44469c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004441b1
mov esi, eax
test edi, edi
je 0x44469a
test ebx, ebx
je 0x44469a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x445dd1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x487e8d
call fcn.0046579d
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x445df6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x445e3c
lea ecx, [ebp - 0x10]
call fcn.004111b0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d7e2
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00410930
mov eax, esi
call fcn.00465875
ret 8

Function at 0x447f8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x447fb0
cmp dword [edi + 0x54], 0
jne 0x447fb0
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00448abf
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00447f4d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44d65a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44d6a2
call fcn.00448abf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44d6a2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x44d6e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44d6ce
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44d6ce
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44d6e2
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x460f10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b7b70]
jne 0x460f1a
repz ret
jmp fcn.0046c7fc
Function at 0x4738e6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004686fd
and dword [ebp - 4], 0
cmp dword [0x4c0fcc], 0
mov ebx, eax
jne 0x473997
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x473a48
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x473a48
push eax
call fcn.0046868b
mov dword [esp], 0x498b18
push edi
mov dword [0x4c0fcc], eax
call esi
push eax
call fcn.0046868b
mov dword [esp], 0x498b04
push edi
mov dword [0x4c0fd0], eax
call esi
push eax
call fcn.0046868b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c0fd4], eax
call esi
push eax
call fcn.0046868b
pop ecx
mov dword [0x4c0fdc], eax
test eax, eax
je 0x473997
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046868b
pop ecx
mov dword [0x4c0fd8], eax
mov eax, dword [0x4c0fd8]
cmp eax, ebx
je 0x4739ef
cmp dword [0x4c0fdc], ebx
je 0x4739ef
push eax
call fcn.00468706
push dword [0x4c0fdc]
mov esi, eax
call fcn.00468706
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4739ef
test edi, edi
je 0x4739ef
call esi
test eax, eax
je 0x4739e6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4739e6
test byte [ebp - 0xc], 1
jne 0x4739ef
or dword [ebp + 0x10], 0x200000
jmp 0x473a28
mov eax, dword [0x4c0fd0]
cmp eax, ebx
je 0x473a28
push eax
call fcn.00468706
pop ecx
test eax, eax
je 0x473a28
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x473a28
mov eax, dword [0x4c0fd4]
cmp eax, ebx
je 0x473a28
push eax
call fcn.00468706
pop ecx
test eax, eax
je 0x473a28
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c0fcc]
call fcn.00468706
pop ecx
test eax, eax
je 0x473a48
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x473a4a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47c900
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x47c90f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4b8fe8]
test eax, eax
je 0x47c91d
call fcn.0047c8a0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x47ca1f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x4c1038]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c1038]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c1038]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c1038]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c1038]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c1038]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c1038]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4c1038]
xor eax, ecx
inc esi
dec edi
jne 0x47c937
pop edi
test edx, edx
je 0x47ca41
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4c1038]
xor eax, ecx
inc esi
dec edx
jne 0x47ca23
pop ebx
pop esi
not eax
ret 0xc
Function at 0x409310
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 0x409346
mov dword [0x447580], 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 0x409430
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], 0x43e464
mov dword [ebp - 0x1c], 0x4094f0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x43f040], 0
mov dword [ebp - 0x44], 0x447590
je 0x4094d0
jl 0x409510
mov dword [ebp - 0x3c], 1
mov eax, dword [0x447580]
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 0x4095b3
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 [0x447b70]
mov eax, 0xffffffff
test edx, edx
je 0x40952a
mov eax, dword [0x43f044]
test eax, eax
je 0x40956a
xor eax, eax
test eax, eax
jne 0x409560
mov edi, dword [0x43f040]
test edi, edi
js 0x409560
mov dword [ebp - 0x44], 0x447590
mov ebx, dword [0x43f040]
test ebx, ebx
je 0x4094d0
jmp 0x40947e
xor esi, esi
mov dword [0x43f040], esi
jmp 0x409538
mov dword [esp], 0x43f048
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x4095f1
mov eax, dword [0x43f044]
test eax, eax
jne 0x409528
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 0x40958d
jmp 0x409528
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4095e5
mov dword [esp + 4], eax
mov eax, dword [0x447580]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40961a
test edx, edx
je 0x409605
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x43f044], eax
jmp 0x409528
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4094c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4095e1
Function at 0x40b240
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.0040b220
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40b28c
call sym.__errno
cmp dword [eax], 4
je 0x40b260
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d260
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x447bc0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d2a0
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 0x40d650
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 [0x447bc0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d72c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d741
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d700
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40d698
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40d6a8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40d6f3
test edx, edx
jne 0x40d6e6
test ecx, ecx
je 0x40d690
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 0x40d750
cmp eax, 8
je 0x40d690
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 0x40d682
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bc0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40d674
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
jmp 0x40d674
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 0x40d6eb
mov eax, dword [0x447bc0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d7a3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40d7ce
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40d7af
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 [0x447bc0]
jmp 0x40d781
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 0x40d792
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d792
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
jmp 0x40d788
Function at 0x40d8d0
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 [0x447bc0]
test eax, eax
je 0x40d930
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d950
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40d970
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 0x40d9c0
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 [0x447bc0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d8f2
jmp 0x40d950
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d8f9
jmp 0x40d970
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 0x40d921
lea esi, [esi]
mov eax, dword [0x447bc0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40da0d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40da19
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d9ee
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 0x40d9dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d9dd
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bc0]
jmp 0x40d9cc
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
jmp 0x40d9d3
Function at 0x40da30
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 [0x447bc0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40dac4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40dae0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40db00
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40dab8
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40db7f
mov eax, dword [0x447bc0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40db56
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40db70
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40db30
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 0x40da75
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bc0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40da50
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40da5b
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 0x40da5e
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 0x40daa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40daa7
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bc0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40da99
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
jmp 0x40da99
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40db90
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 0x40dc22
mov eax, dword [0x447bc0]
test eax, eax
je 0x40dc16
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40dc91
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40dc37
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 0x40dcaf
mov eax, dword [0x447bc0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dc82
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40dca0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40dc63
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 [0x447bc0]
jmp 0x40dbb2
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 + 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 0x40dbc7
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 0x40dc05
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dc05
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bc0]
jmp 0x40dbf0
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
jmp 0x40dbbd
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
jmp 0x40dbfb
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40de60
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 0x40de90
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
Function at 0x410b70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x4114fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x41154c
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret