joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45eddd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x45ee22
call fcn.0046985d
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45ee22
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x45ee3e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004699f6
mov ebx, eax
test edi, edi
je 0x45ee3c
test esi, esi
je 0x45ee3c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4652bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0046985d
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4652f6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00465317
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4dff3e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00468cb5
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4dff7a
call fcn.004e015d
mov dword [esi + 0xc], 1
jmp 0x4dff7f
call fcn.004e015d
cmp dword [esi], 0
je 0x4dffc8
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4dffa2
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0045ef04
jmp 0x4dffb3
push 0xff
mov ecx, esi
call fcn.0040cef0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0045cd82
jmp 0x4dffec
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4dffec
push dword [esi]
push dword [ebp - 4]
call fcn.0046c3c9
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e00b2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004e015d
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4e00fa
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045ef04
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0045cd82
jmp 0x4e0105
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046c3c9
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x54295f
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0057360f
call fcn.004698b1
cmp dword [eax + 0x14], 0
jne 0x54297a
mov ecx, esi
pop esi
jmp fcn.00541d60
pop esi
ret

Function at 0x54f150
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004057d0
call fcn.004698b1
cmp dword [eax + 0x14], 0
jne 0x54f16b
mov ecx, esi
pop esi
jmp fcn.0054ea39
pop esi
ret
Function at 0x58fae5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x630490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0058209e
mov dword [ebp - 0x14], eax
cmp dword [0x63dc28], esi
jne 0x58fbd8
push 0x800
push esi
push 0x5faf10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x58fb65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x58fcb8
push esi
push esi
push 0x5faf10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x58fcb8
push 0x5faf28
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x58fcb8
push eax
call ebx
push 0x5faf34
push edi
mov dword [0x63dc28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5faf44
push edi
mov dword [0x63dc2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x63dc30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x63dc38], eax
test eax, eax
je 0x58fbd5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x63dc34], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x58fbfd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x58fbf0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x58fc12
push 4
pop eax
jmp 0x58fcba
cmp dword [ebp - 0x14], esi
je 0x58fc12
push dword [0x63dc28]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x58fbf7
mov eax, dword [0x63dc34]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x58fc70
cmp dword [0x63dc38], edi
je 0x58fc70
push eax
call ebx
push dword [0x63dc38]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x58fc70
test eax, eax
je 0x58fc70
call ecx
test eax, eax
je 0x58fc65
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x58fc65
test byte [ebp - 8], 1
jne 0x58fc70
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x58fca0
mov eax, dword [0x63dc2c]
cmp eax, edi
je 0x58fc9d
push eax
call ebx
test eax, eax
je 0x58fc9d
call eax
mov esi, eax
test esi, esi
je 0x58fc9d
mov eax, dword [0x63dc30]
cmp eax, edi
je 0x58fc9d
push eax
call ebx
test eax, eax
je 0x58fc9d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x63dc28]
call ebx
test eax, eax
je 0x58fcb8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x58fcba
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005778cb
mov esp, ebp
pop ebp
ret
Function at 0x59f95d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40159d
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x244
mov dword [ebp - 0xc], 0x432045
mov dword [ebp - 0x10], 0x50
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00401571
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.004232a0
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.004232c0
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_gethostname]
call eax
sub esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x401627
mov dword [esp], 4
call fcn.0042e6d0
mov dword [eax], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x435e70
mov dword [esp], eax
call fcn.0042ea50
mov eax, dword [ebp - 0x10]
movzx eax, ax
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x22a], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x228], eax
mov word [ebp - 0x22c], 2
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40168a
mov dword [esp], 4
call fcn.0042e6d0
mov dword [eax], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x435e70
mov dword [esp], eax
call fcn.0042ea50
mov dword [ebp - 0x20], 0x2710
mov dword [ebp - 0x24], 0x80000
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4016cf
mov dword [esp], 4
call fcn.0042e6d0
mov dword [eax], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x435e70
mov dword [esp], eax
call fcn.0042ea50
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40cf60
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00418430
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00418430
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40cfc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x449068]
test esi, esi
jle 0x40d0e0
mov eax, dword [0x44906c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40cff4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40d077
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40cfe0
mov dword [esp], ebx
call fcn.0040d9c0
mov edi, eax
test eax, eax
je 0x40d107
mov eax, dword [0x44906c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040db00
mov edx, dword [0x44906c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d0e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40d070
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x40d080
add dword [0x449068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x44906c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40d070
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040cf60
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40cffe
mov eax, dword [0x44906c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040cf60
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040cf60
lea esi, cs:[esi]
nop
Function at 0x40d630
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x449084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x44907c]
sub esp, 4
test ebx, ebx
je 0x40d685
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40d67e
test eax, eax
jne 0x40d67e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40d660
mov dword [esp], 0x449084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d9c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40d9e5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40d9f0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40d9e5
push esi
push ebx
mov ebx, dword [esp + 0xc]
movzx eax, word [ecx + 0x400014]
movzx esi, word [ecx + 0x400006]
sub ebx, 0x400000
lea eax, [edx + eax + 0x18]
test si, si
je 0x40da38
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40da2e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40da3a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x40da20
xor eax, eax
pop ebx
pop esi
ret
Function at 0x412a10
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2d
mov dword [esp + 4], str._buffer_overflow_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x412a49
mov ecx, 8
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x412a70
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2c
mov dword [esp + 4], str._stack_smashing_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x412aa9
mov ecx, 2
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4195c0
Capabilities:
Print debug messages

Disassembly:
push edi
pxor xmm0, xmm0
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push ebx
lea ebx, [ebp - 0x41]
sub esp, 0x50
movups xmmword [ebp - 0x21], xmm0
mov eax, dword [0x4490e8]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x41], xmm0
movups xmmword [ebp - 0x31], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 8], str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x35
mov dword [esp], ebx
call fcn.0041eb30
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
lea esi, cs:[esi]
lea esi, [esi]

Function at 0x4199b0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x449af4], 1
je 0x419a50
push edi
mov eax, 0x449af4
push esi
push ebx
sub esp, 0x10
call fcn.004193b0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.00418ca0
mov edi, dword [0x449af4]
test edi, edi
jne 0x419a20
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x431060], eax
cmp eax, 0xffffffff
je 0x430715
mov dword [0x449af4], 1
mov dword [esp], esi
call fcn.00418fd0
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.00419640
cmp edi, 1
je 0x419a02
mov dword [esp], 2
call dword [0x431048]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x449af4
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x419a02
ret
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
mov eax, dword [0x14]
ud2

Function at 0x419b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004199b0
mov eax, dword [0x431060]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x419bb8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.00419a60
Function at 0x419e90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x419eb8
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x419fb0
add esp, 0x14
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x419f80
cmp eax, 3
jne 0x419ea9
mov eax, dword [0x431060]
cmp eax, 0xffffffff
je 0x419ea9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x419ea9
test byte [eax + 0x20], 0x30
je 0x419fe0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x419efb
call fcn.00419bc0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x419f2d
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x419f1f
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00419170
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0041d1d0
cmp eax, 1
je 0x41a0ae
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x41a0a2
mov eax, dword [0x431060]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x419ea9
mov eax, dword [0x449acc]
test eax, eax
je 0x419fcc
mov dword [esp + 4], 0x419320
mov dword [esp], 1
call eax
mov dword [0x449ad0], eax
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x449ad0]
test eax, eax
je 0x419ea9
mov edx, dword [0x449ac8]
test edx, edx
je 0x419fcc
mov dword [esp], eax
call edx
mov dword [0x449ad0], 0
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41a054
test eax, eax
je 0x419ffa
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x41a017
call fcn.00419bc0
test byte [ebx + 0x24], 4
je 0x41a092
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x419f2d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], eax
call fcn.00419170
lea eax, [ebx + 0x38]
jmp 0x419f3b
test eax, eax
je 0x41a092
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.00419170
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0041d1d0
cmp eax, 1
je 0x41a0ae
mov dword [ebx + 0x38], 0xffffffff
jmp 0x419ea9
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00419170
lea eax, [ebx + 0x38]
jmp 0x41a079
mov eax, ebx
call fcn.004197f0
jmp 0x419f61
call fcn.004195c0
lea esi, cs:[esi]
lea esi, cs:[esi]
Function at 0x41a380
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [0x4490e8]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx]
test esi, esi
je 0x41a4c0
cmp eax, 1
je 0x41a3de
mov eax, ebx
call fcn.004193b0
lea edi, [eax + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], edi
call fcn.00418ca0
mov ebp, dword [ebx]
test ebp, ebp
je 0x41a400
cmp ebp, 1
jne 0x41a490
mov dword [esp], edi
call fcn.00418fd0
mov eax, dword [esp + 0x1c]
call fcn.00419640
xor eax, eax
mov edx, dword [esp + 0x2c]
sub edx, dword [0x4490e8]
jne 0x41a50a
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0x419700
mov dword [esp + 0x24], eax
call fcn.004199b0
mov eax, dword [0x431060]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41a4f8
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
lock or dword [esp], 0
call fcn.004199b0
mov eax, dword [0x431060]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41a4e0
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], ecx
lock or dword [esp], 0
call esi
call fcn.004199b0
mov eax, dword [0x431060]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41a4d0
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x41a3cd
mov dword [esp], 2
call dword [0x431048]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41a3cd
mov eax, 0x16
jmp 0x41a3e0
call fcn.00419a60
test eax, eax
jne 0x41a47a
jmp 0x43073f
call fcn.00419a60
test eax, eax
jne 0x41a456
jmp 0x430734
call fcn.00419a60
test eax, eax
jne 0x41a430
jmp 0x43072d
call fcn.00412a70
nop
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x20]
mov dword [0], eax
ud2
mov eax, dword [esp + 0x28]
mov dword [0], eax
ud2

Function at 0x41a750
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004199b0
mov eax, dword [0x431060]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41a7c8
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.0041d1e0
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x41a7a4
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x41a7a4
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.0041d230
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00419a60
mov ebx, eax
jmp 0x41a77b