joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
push edi
jmp 0x4b2e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b2e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2e70
pushfd
xor eax, eax
inc eax
popfd
add ebx, ebx
jne 0x4b2e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b2ea4
jne 0x4b2ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2ec3
dec eax
add ebx, ebx
jne 0x4b2eb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b2e88
add ebx, ebx
jne 0x4b2ebf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b2f15
sub ecx, ecx
sub eax, 3
jb 0x4b2edb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b2f4a
sar eax, 1
push eax
pop ebp
jmp 0x4b2ee6
add ebx, ebx
jne 0x4b2ee6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2eb4
inc ecx
add ebx, ebx
jne 0x4b2ef4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2eb4
add ebx, ebx
jne 0x4b2f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b2ef6
jne 0x4b2f12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b2ef6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b2f34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b2f26
jmp 0x4b2e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b2f34
add edi, ecx
jmp 0x4b2e76
pop esi
push esi
pop edi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b2f52
cmp byte [edi], 0x13
jne 0x4b2f52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b2f57
lea edi, [esi + 0xae000]
mov eax, dword [edi]
or eax, eax
je 0x4b2fcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb4ae8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb4c3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b2f84
mov ecx, edi
jns 0x4b2fb3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb4c40]
test eax, eax
je 0x4b2fc9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b2fa1
call dword [esi + 0xb4c50]
mov ebp, dword [esi + 0xb4c44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b3003
sub esp, 0xffffff80
jmp 0x4165c1

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x111c
call fcn.00402120
mov eax, dword [0x404004]
xor eax, esp
mov dword [esp + 0x1118], eax
push ebx
push esi
push edi
push 0x1000
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x401131
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
xor edi, edi
push 0x104
lea eax, [esp + 0x101c]
mov dword [esp + 0x14], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + edi*4 + 0x24]
add esp, 0xc
test eax, eax
je 0x401124
push eax
push 0
push 0x410
call ebx
mov esi, eax
test esi, esi
je 0x401124
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x401124
push 0x82
lea eax, [esp + 0x101c]
push eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x401124
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x401390
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [esp + 0x1020]
call fcn.00401160
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp byte [esp + 0x1018], 0x63
jne 0x401124
mov cl, 0x63
xor eax, eax
nop dword [eax]
test cl, cl
je 0x40112a
mov cl, byte [eax + 0x403141]
inc eax
cmp cl, byte [esp + eax + 0x1018]
je 0x401110
inc edi
jmp 0x401062
mov edx, str.running
jmp 0x401136
mov edx, str.not_running
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401160
mov ecx, dword [esp + 0x1124]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040147a
mov esp, ebp
pop ebp
ret

Function at 0x401c85
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401cc4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401cc4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401cc4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401cc4
cmp dword [ecx + 0x74], 0xe
jbe 0x401cc4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x46758c
mov eax, edx
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x2f45602b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x1c5a7d75
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0x148]
mov eax, 0x128
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sym._memset
mov dword [ebp - 0x148], 0x128
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4013f1
cmp dword [ebp - 0xc], 0xffffffff
je 0x4013f1
jmp 0x401400
mov dword [ebp - 0x14c], 0
jmp 0x4014bf
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32First
sub esp, 8
test eax, eax
jne 0x40142b
mov dword [ebp - 0x14c], 0
jmp 0x4014bf
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x148]
add eax, 0x24
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpA
sub esp, 8
test eax, eax
jne 0x40147e
mov eax, dword [ebp - 0x140]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
mov dword [0x443010], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x14c], eax
jmp 0x4014bf
mov dword [esp], 0x14
call sub.KERNEL32.dll_Sleep
sub esp, 4
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
je 0x4014ab
jmp 0x40142b
mov dword [esp], 0x64
call sub.KERNEL32.dll_Sleep
sub esp, 4
jmp 0x4013c9
mov eax, dword [ebp - 0x14c]
leave
ret

Function at 0x4014c8
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0x248]
mov eax, 0x224
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sym._memset
mov dword [ebp - 0x248], 0x224
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
cmp dword [ebp - 0xc], 0
je 0x401528
cmp dword [ebp - 0xc], 0xffffffff
je 0x401528
jmp 0x401537
mov dword [ebp - 0x24c], 0
jmp 0x4015d5
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
jne 0x40155f
mov dword [ebp - 0x24c], 0
jmp 0x4015d5
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x248]
add eax, 0x20
mov dword [esp], eax
call method.std.strstr_char__char_const_
test eax, eax
je 0x401594
mov eax, dword [ebp - 0x230]
mov dword [0x443014], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x24c], eax
jmp 0x4015d5
mov dword [esp], 0x14
call sub.KERNEL32.dll_Sleep
sub esp, 4
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 0x4015c1
jmp 0x40155f
mov dword [esp], 0x64
call sub.KERNEL32.dll_Sleep
sub esp, 4
jmp 0x401501
mov eax, dword [ebp - 0x24c]
leave
ret
Function at 0x4016a4
Capabilities:
Contain obfuscated stackstrings
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.0040d470
call sym.___main
mov dword [esp], str.Esp_LoggerVisit_Sc_Community.net
call sub.KERNEL32.dll_SetConsoleTitleA
sub esp, 4
mov dword [esp], str.Sc_Community.net_Esplogger__n
call sym._printf
mov dword [esp], str.credits___Gordon___bobi__n
call sym._printf
mov dword [esp], 0x440071
call sym._printf
mov dword [esp], 0x440071
call sym._printf
mov dword [esp], str.WarRock.exe
call sym.GetProcessID_char_
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [esp + 4], eax
mov dword [esp], str.Warrock
call sym.GetModuleBase_char__unsigned_long_
mov dword [0x443018], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
cmp eax, dword [0x443014]
jae 0x4017c2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x64
mov dword [esp + 8], 0x443030
mov eax, dword [ebp - 8]
add eax, dword [0x443018]
mov dword [esp + 4], eax
mov eax, dword [0x443010]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadProcessMemory
sub esp, 0x14
test eax, eax
je 0x4017b8
mov dword [esp + 0x14], 0x440088
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0x443030
mov eax, dword [ebp - 8]
add eax, dword [0x443018]
mov dword [esp + 4], eax
mov dword [esp], 0x44008c
call sym.AddSig_char__unsigned_long__unsigned_char__unsigned_long__bool__char_
lea eax, [ebp - 8]
inc dword [eax]
jmp 0x40173b
call sym._getch
mov eax, 0
leave
ret

Function at 0x409550
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 0x409586
mov dword [0x447650], 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 0x409670
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], 0x43e764
mov dword [ebp - 0x1c], 0x409730
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x43f040], 0
mov dword [ebp - 0x44], 0x447660
je 0x409710
jl 0x409750
mov dword [ebp - 0x3c], 1
mov eax, dword [0x447650]
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 0x4097f3
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 [0x447c40]
mov eax, 0xffffffff
test edx, edx
je 0x40976a
mov eax, dword [0x43f044]
test eax, eax
je 0x4097aa
xor eax, eax
test eax, eax
jne 0x4097a0
mov edi, dword [0x43f040]
test edi, edi
js 0x4097a0
mov dword [ebp - 0x44], 0x447660
mov ebx, dword [0x43f040]
test ebx, ebx
je 0x409710
jmp 0x4096be
xor esi, esi
mov dword [0x43f040], esi
jmp 0x409778
mov dword [esp], 0x43f048
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x409831
mov eax, dword [0x43f044]
test eax, eax
jne 0x409768
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 0x4097cd
jmp 0x409768
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x409825
mov dword [esp + 4], eax
mov eax, dword [0x447650]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40985a
test edx, edx
je 0x409845
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x43f044], eax
jmp 0x409768
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x409706
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x409821
Function at 0x40b480
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.0040b460
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40b4cc
call sym.__errno
cmp dword [eax], 4
je 0x40b4a0
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d4a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x447c90]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d4e0
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 0x40d890
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 [0x447c90]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d96c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d981
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d940
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40d8d8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40d8e8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40d933
test edx, edx
jne 0x40d926
test ecx, ecx
je 0x40d8d0
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 0x40d990
cmp eax, 8
je 0x40d8d0
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 0x40d8c2
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447c90]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40d8b4
call sym._fc_key_init_once
mov eax, dword [0x447c90]
jmp 0x40d8b4
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 0x40d92b
mov eax, dword [0x447c90]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d9e3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40da0e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40d9ef
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 [0x447c90]
jmp 0x40d9c1
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 0x40d9d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d9d2
call sym._fc_key_init_once
mov eax, dword [0x447c90]
jmp 0x40d9c8
Function at 0x40db10
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 [0x447c90]
test eax, eax
je 0x40db70
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40db90
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40dbb0
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 0x40dc00
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 [0x447c90]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40db32
jmp 0x40db90
call sym._fc_key_init_once
mov eax, dword [0x447c90]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40db39
jmp 0x40dbb0
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 0x40db61
lea esi, [esi]
mov eax, dword [0x447c90]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dc4d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40dc59
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40dc2e
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 0x40dc1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dc1d
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447c90]
jmp 0x40dc0c
call sym._fc_key_init_once
mov eax, dword [0x447c90]
jmp 0x40dc13
Function at 0x40dc70
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 [0x447c90]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40dd04
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40dd20
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40dd40
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40dcf8
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40ddbf
mov eax, dword [0x447c90]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dd96
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40ddb0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40dd70
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 0x40dcb5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447c90]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40dc90
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447c90]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40dc9b
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 0x40dc9e
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 0x40dce7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dce7
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447c90]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40dcd9
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447c90]
jmp 0x40dcd9
call sym._abort
lea esi, [esi]
lea edi, [edi]