joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dca0
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 0x41dcc8
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x41ddc0
add esp, 0x14
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x41dd90
cmp eax, 3
jne 0x41dcb9
mov eax, dword [0x4c120c]
cmp eax, 0xffffffff
je 0x41dcb9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41dcb9
test byte [eax + 0x20], 0x30
je 0x41ddf0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41dd0b
call sym.__pthread_cleanup_dest.part.0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41dd3d
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 0x41dd2f
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 sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x41debe
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x41deb2
mov eax, dword [0x4c120c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x41dcb9
mov eax, dword [0x50fad8]
test eax, eax
je 0x41dddc
mov dword [esp + 4], sym._SetThreadName_VEH_4
mov dword [esp], 1
call eax
mov dword [0x50fadc], eax
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x50fadc]
test eax, eax
je 0x41dcb9
mov edx, dword [0x50fad4]
test edx, edx
je 0x41dddc
mov dword [esp], eax
call edx
mov dword [0x50fadc], 0
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41de64
test eax, eax
je 0x41de0a
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 0x41de27
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x24], 4
je 0x41dea2
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41dd3d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
jmp 0x41dd4b
test eax, eax
je 0x41dea2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x41debe
mov dword [ebx + 0x38], 0xffffffff
jmp 0x41dcb9
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
jmp 0x41de89
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41dd71
call sym._replace_spin_keys.part.0
lea esi, cs:[esi]
lea esi, cs:[esi]
Function at 0x41e1a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov eax, dword [0x50f0e8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
test edi, edi
je 0x41e2e0
cmp eax, 1
je 0x41e205
mov eax, ebx
call sym._enterOnceObject
mov esi, eax
lea eax, [eax + 4]
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sym._pthread_mutex_lock
mov ebp, dword [ebx]
test ebp, ebp
je 0x41e220
cmp ebp, 1
jne 0x41e2b0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_unlock
test esi, esi
je 0x41e205
mov eax, esi
call sym._leaveOnceObject.part.0
xor eax, eax
mov edx, dword [esp + 0x2c]
sub edx, dword [0x50f0e8]
jne 0x41e32a
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], sym.__pthread_once_cleanup
mov dword [esp + 0x24], esi
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4c120c]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41e318
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
lock or dword [esp], 0
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4c120c]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41e300
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], ecx
lock or dword [esp], 0
call edi
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4c120c]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41e2f0
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x41e1ee
mov dword [esp], 2
call dword [0x4c11f8]
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 sym._fprintf
jmp 0x41e1ee
mov eax, 0x16
jmp 0x41e207
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41e296
jmp 0x4baaef
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41e272
jmp 0x4baae4
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41e24c
jmp sym._pthread_once.cold
call dbg.__stack_chk_fail
nop
lea eax, [esp + 0x20]
mov dword [0], eax
ud2
mov eax, dword [esp + 0x28]
mov dword [0], eax
ud2

Function at 0x41e570
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 sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4c120c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41e5e8
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call sym._pthread_spin_lock
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x41e5c4
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x41e5c4
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call sym._pthread_spin_unlock
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 sym.___pthread_self_lite.part.0
mov ebx, eax
jmp 0x41e59b
Function at 0x41e600
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4c120c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41e720
lea edi, [ebx + 0x38]
mov dword [esp], edi
call sym._pthread_spin_lock
cmp esi, dword [ebx + 0x28]
jae 0x41e680
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call sym._pthread_spin_unlock
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym._realloc
test eax, eax
je 0x41e72c
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sym._realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x41e72c
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym._memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x41e648
call sym.___pthread_self_lite.part.0
mov ebx, eax
jmp 0x41e635
mov dword [esp], edi
call sym._pthread_spin_unlock
mov eax, 0xc
jmp 0x41e670

Function at 0x41e7b0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4c120c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41e7d8
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41e7cd
add esp, 0x1c
ret

Function at 0x41e840
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4c120c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41e868
add eax, 0xc
add esp, 0x1c
ret
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41e85d
jmp 0x41e860
Function at 0x41e8a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41e8c2
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
jne 0x41e8dc
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x4c120c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x41e91d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41e95d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x41e912
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x41e926
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call sym._push_pthread_mem
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4c120c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41e91d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41e971
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x41e93e

Function at 0x41e980
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x50fb08]
test eax, eax
jne 0x41e990
xor eax, eax
ret
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4c120c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41e9d0
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x41e9c0
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x41e9b4
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x41e9b6
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41e9ad
jmp 0x41e9b4

Function at 0x41e9e0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4c120c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41ea20
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x41ea10
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41e9fd
add esp, 0x1c
ret
Function at 0x41eb20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4c120c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41eb90
test byte [ebx + 0x20], 0xc
jne 0x41eb50
mov eax, dword [0x50fb08]
test eax, eax
jne 0x41eb60
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call sym._pthread_mutex_lock
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x41eb82
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x41eb82
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x41eba1
mov dword [esp], esi
call sym._pthread_mutex_unlock
add esp, 0x14
pop ebx
pop esi
ret
call sym.___pthread_self_lite.part.0
mov ebx, eax
test eax, eax
jne 0x41eb41
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41ebc1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call sym._pthread_mutex_unlock
call sym.__pthread_invoke_cancel
nop

Function at 0x423760
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
mov eax, dword [ecx + 0x20]
mov esi, dword [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.msvcrt.dll_fread
mov edx, 0xffffffff
test eax, eax
jle 0x423798
movzx edx, byte [esi + eax - 1]
mov dword [ebx + 0x24], edx
add esp, 0x14
pop ebx
pop esi
ret 8

Function at 0x4237b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [ecx + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._fwrite
add esp, 0x1c
ret 8
Function at 0x424390
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov eax, dword [0x50f0e8]
mov dword [esp + 0x1c], eax
xor eax, eax
cmp byte [0x4c2d54], 0
jne 0x4244c1
mov byte [0x4c2d54], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x42448f
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym.___cxa_demangle
mov dword [esp], 2
mov esi, dword [dbg.__acrt_iob_func]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
mov edx, dword [esp + 0x18]
mov dword [esp], 2
test edx, edx
je 0x42447f
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4c4bd9
call sym._fwrite
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4b99d8
jmp 0x4b99d0
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._fputs
jmp 0x424445
mov dword [esp], 2
call dword [0x4c11f8]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x4b99bf
mov dword [esp], 2
call dword [0x4c11f8]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
mov eax, dword [esp + 0x1c]
sub eax, dword [0x50f0e8]
jne 0x4244ff
call sym._abort
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x1c]
sub eax, dword [0x50f0e8]
jne 0x4b99fc
call sym._abort
mov dword [esp], edi
call sym._free
mov eax, dword [esp + 0x1c]
sub eax, dword [0x50f0e8]
jne 0x4b99fc
call sym.___cxa_rethrow
mov ebx, eax
call sym.___cxa_end_catch
mov eax, dword [esp + 0x1c]
sub eax, dword [0x50f0e8]
je 0x4b9a0d
call dbg.__stack_chk_fail
call sym.___cxa_begin_catch
call sym.___cxa_end_catch
jmp 0x4b99bf
mov dword [esp], ebx
call sym.__Unwind_Resume
nop
nop
nop
Function at 0x42aa80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xbc]
mov esi, dword [esp + 0xa0]
lea edi, [esp + 0x60]
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0xa4]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x28], edi
mov dword [esp + 0x44], eax
mov ebp, dword [esp + 0xb8]
mov eax, dword [0x50f0e8]
mov dword [esp + 0x7c], eax
xor eax, eax
lea eax, [esp + 0x58]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 8], esi
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0xb0]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x78], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 8]
mov byte [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 0x58], 0
call sym.__ZNSt13__facet_shims11__money_getIwEESt19istreambuf_iteratorIT_St11char_traitsIS2_EESt17integral_constantIbLb1EEPKNSt6locale5
mov dword [esp + 0x38], eax
xor bx, bx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], edx
mov esi, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x4c], eax
movzx eax, word [esp + 0x4c]
or ebx, eax
mov eax, dword [esp + 0x78]
test edx, edx
je 0x42ab80
mov dword [ebp], edx
test eax, eax
je 0x42ab5e
mov dword [esp], edi
call eax
mov eax, dword [esp + 0x7c]
sub eax, dword [0x50f0e8]
jne 0x42abe0
add esp, 0x8c
mov eax, esi
mov edx, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
test eax, eax
je 0x42abe5
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x57]
lea edx, [eax + edx*2]
call fcn.0046e2a0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x44]
mov dword [esp], eax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.swap_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____
mov edx, 0xffffffff
sub esp, 4
mov ecx, dword [esp + 0x5c]
lock xadd dword [ecx - 4], edx
mov eax, dword [esp + 0x78]
test edx, edx
jg 0x42ab55
lea eax, [esp + 0x57]
sub ecx, 0xc
mov dword [esp], eax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::_Rep._M_destroy_std::allocator_wchar_t__const_
sub esp, 4
mov eax, dword [esp + 0x78]
jmp 0x42ab55
call dbg.__stack_chk_fail
mov eax, dword [esp + 0x7c]
sub eax, dword [0x50f0e8]
jne 0x42abe0
mov dword [esp], 0x4c31d2
call method.std.__throw_logic_error_char_const_
mov ebx, eax
jmp 0x4b88a4
Function at 0x42c290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [0x50f0e8]
mov dword [esp + 0x3c], edi
xor edi, edi
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x30], edi
mov edi, dword [ebp + 0xc]
mov ebp, dword [ebp + 8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
test edi, 2
je 0x42c300
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, edi
and eax, 1
je 0x42c338
cmp dword [esp + 0x1c], 1
jbe 0x42c31a
mov ecx, 0xfffffeff
add edx, 2
mov word [edx - 2], cx
mov dword [esp + 0x34], edx
nop
mov dword [esp], edi
mov ecx, ebp
lea edx, [esp + 0x34]
lea eax, [esp + 0x2c]
call method.std._anonymous_namespace_::ucs2_out_std::_anonymous_namespace_::range_char16_t_const__true___std::_anonymous_namespace_::range_char16_t__false___char32_t__std::codecvt_mode___clone_.part.0_
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esi], ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x3c]
sub edx, dword [0x50f0e8]
jne 0x42c356
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
cmp dword [esp + 0x1c], 1
mov eax, 1
jbe 0x42c31a
mov eax, 0xfffffffe
add edx, 2
mov word [edx - 2], ax
mov dword [esp + 0x34], edx
jmp 0x42c300
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop

Function at 0x42c510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [0x50f0e8]
mov dword [esp + 0x3c], edi
xor edi, edi
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x38], edi
mov edi, dword [ebp + 0x10]
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
test edi, 2
je 0x42c580
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, edi
and eax, 1
je 0x42c5b8
cmp dword [esp + 0x1c], 1
jbe 0x42c59a
mov ecx, 0xfffffeff
add edx, 2
mov word [edx - 2], cx
mov dword [esp + 0x2c], edx
nop
mov dword [esp], edi
mov ecx, ebp
lea edx, [esp + 0x2c]
lea eax, [esp + 0x34]
call method.std._anonymous_namespace_::ucs2_out_std::_anonymous_namespace_::range_char16_t_const__true___std::_anonymous_namespace_::range_char16_t__false___char32_t__std::codecvt_mode___clone_.part.0_
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov dword [esi], ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x3c]
sub edx, dword [0x50f0e8]
jne 0x42c5d6
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
cmp dword [esp + 0x1c], 1
mov eax, 1
jbe 0x42c59a
mov eax, 0xfffffffe
add edx, 2
mov word [edx - 2], ax
mov dword [esp + 0x2c], edx
jmp 0x42c580
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
Function at 0x445b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], eax
mov eax, dword [0x50f0e8]
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
mov dword [esp + 0x30], eax
call dword [0x4c11e8]
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov eax, edx
sub eax, ebp
sar eax, 1
imul eax, ecx
mov ecx, esi
sub ecx, ebx
cmp eax, ecx
jle 0x445c30
cmp ebp, edx
setb al
cmp ebx, esi
jae 0x445c0a
test al, al
je 0x445c0a
lea eax, [esp + 0x30]
mov dword [esp + 0x24], edi
mov edi, ebx
mov dword [esp + 0x20], eax
jmp 0x445bd8
mov eax, esi
sub eax, edi
cmp eax, ebx
jb 0x445c80
lea eax, [esp + 0x37]
mov dword [esp], edi
add ebp, 2
add edi, ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sym._memcpy
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
cmp ebp, eax
setb al
cmp edi, esi
jae 0x445c08
test al, al
je 0x445c08
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
movzx eax, word [ebp]
mov dword [esp + 4], eax
lea eax, [esp + 0x37]
mov dword [esp], eax
call dbg.wcrtomb
mov ebx, eax
cmp eax, 0xffffffff
jne 0x445b98
mov ebx, edi
mov eax, 2
jmp 0x445c0d
mov ebx, edi
and eax, 1
mov ecx, dword [esp + 0x28]
mov dword [ecx], ebp
mov ecx, dword [esp + 0x2c]
mov dword [ecx], ebx
mov edx, dword [esp + 0x3c]
sub edx, dword [0x50f0e8]
jne 0x445c89
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov eax, dword [esp + 0x1c]
cmp ebp, eax
jae 0x445c78
lea esi, [esp + 0x30]
jmp 0x445c53
mov ecx, dword [esp + 0x30]
add ebx, eax
mov eax, dword [esp + 0x1c]
add ebp, 2
mov dword [edi], ecx
cmp ebp, eax
jae 0x445c78
mov dword [esp + 8], esi
movzx eax, word [ebp]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dbg.wcrtomb
cmp eax, 0xffffffff
jne 0x445c40
mov eax, 2
jmp 0x445c0d
xor eax, eax
jmp 0x445c0d
mov ebx, edi
mov eax, 1
jmp 0x445c0d
call dbg.__stack_chk_fail
nop
nop