joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10065960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [0x100cc058]
mov edi, ecx
test esi, esi
je 0x10065a07
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x100659ff
je 0x1006599c
test edi, edi
je 0x100659a0
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
je 0x100659a2
mov ebx, dword [edi + 4]
jmp 0x100659a2
xor eax, eax
jmp 0x100659ff
xor ebx, ebx
mov eax, dword [0x10145400]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10065a27
mov dword [eax], ebx
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x100659fc
mov eax, dword [edi]
test eax, eax
je 0x100659ef
lock dec dword [eax]
jne 0x100659ef
mov ecx, edi
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h39c803f4a20ab912
push 4
push 8
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100cc058
call sym.std::sys::thread_local::key::windows::LazyKey::init::h8219056d8c3ded71
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x10065985
jmp 0x100659ff
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
add esp, 8
ud2

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [0x100cc078]
mov edi, ecx
test esi, esi
je 0x10065af6
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x10065aee
je 0x10065a9e
test edi, edi
je 0x10065aa2
mov eax, dword [edi]
xor ecx, ecx
mov ebx, 0
mov dword [edi], 0
or eax, dword [edi + 4]
mov dword [edi + 4], 0
je 0x10065a9a
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov edi, ecx
jmp 0x10065aa6
xor eax, eax
jmp 0x10065aee
xor ebx, ebx
xor edi, edi
mov eax, dword [0x10145400]
movzx eax, byte [eax]
push 8
push 0x10
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10065b16
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x10065aeb
push 8
push 0x10
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100cc078
call sym.std::sys::thread_local::key::windows::LazyKey::init::h8219056d8c3ded71
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x10065a73
jmp 0x10065aee
push 0x10
push 8
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
nop
Function at 0x10065b20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [0x100cc088]
mov edi, ecx
test esi, esi
je 0x10065bc7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x10065bbf
je 0x10065b5c
test edi, edi
je 0x10065b60
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
je 0x10065b62
mov ebx, dword [edi + 4]
jmp 0x10065b62
xor eax, eax
jmp 0x10065bbf
xor ebx, ebx
mov eax, dword [0x10145400]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10065be7
mov dword [eax], ebx
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x10065bbc
mov eax, dword [edi]
test eax, eax
je 0x10065baf
lock dec dword [eax]
jne 0x10065baf
mov ecx, edi
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::hc39c94033ce122a6
push 4
push 8
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100cc088
call sym.std::sys::thread_local::key::windows::LazyKey::init::h8219056d8c3ded71
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x10065b45
jmp 0x10065bbf
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
add esp, 8
ud2

Function at 0x10069250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1006927e
mov edx, dword [ebp + 8]
xor eax, eax
movzx esi, byte [edx]
shl eax, 4
inc edx
add esi, eax
mov eax, esi
shr eax, 0x18
and eax, 0xfffffff0
xor eax, esi
dec ecx
jne 0x10069260
and eax, 0xfffffff
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10069290
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100692c3
mov edx, dword [ebp + 8]
mov eax, 0x1505
nop word cs:[eax + eax]
nop dword [eax]
mov esi, eax
shl esi, 5
add esi, eax
movzx eax, byte [edx]
inc edx
add eax, esi
dec ecx
jne 0x100692b0
pop esi
pop ebp
ret
mov eax, 0x1505
pop esi
pop ebp
ret
Function at 0x10095f50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x10095fa8
lea edi, [edx + eax*2]
xor ebx, ebx
movzx esi, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea eax, [ebx + esi]
jne 0x10095fa0
cmp eax, ebx
jb 0x10096016
cmp eax, dword [ebp + 0x10]
ja 0x10096022
add ebx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop
test esi, esi
je 0x10095fa2
dec esi
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x10095f90
jmp 0x10095fff
ja 0x10095fa8
cmp edx, edi
mov ebx, eax
jne 0x10095f62
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x10096003
mov esi, dword [ebp + 0x14]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x10095fe0
mov esi, edi
sub ecx, ebx
jns 0x10095ff7
jmp 0x10096005
cmp edi, edx
je 0x1009600c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x10096005
xor al, 1
cmp esi, edx
jne 0x10095fc0
jmp 0x10096005
xor eax, eax
jmp 0x10096005
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1013a084
call sym.core::option::unwrap_failed::h400a3d34e496ce4a
push 0x1013a094
push eax
push ebx
call sym.core::slice::index::slice_index_order_fail::h40cd09a6386d1bdc
push 0x1013a094
push dword [ebp + 0x10]
push eax
call sym.core::slice::index::slice_end_index_len_fail::hb7bcdcb5c84f7e98
Function at 0x100a9170
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x100cc0d0], eax
cmp eax, 0xffffffff
je sym._pthread_tls_init.cold.12
add esp, 0xc
ret

Function at 0x100a9680
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x100a96b0
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x100a96b1
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x100a9705
jmp 0x100a9713
cmp eax, 0x6a
je 0x100a971d
add eax, 1
cmp byte [ebx + eax], 0
jne 0x100a9700
cmp eax, 0x6a
je 0x100a971d
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sym._abort
lea esi, [esi]
Function at 0x100a97c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x101611a0], 1
je 0x100a97d5
call sym.__pthread_once_raw.part.5.constprop.11
mov eax, dword [0x100cc0d0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x100a9800
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
mov ebx, eax
mov eax, dword [entry4]
test eax, eax
je 0x100a97ec
test ebx, ebx
je 0x100a97ec
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.10
mov esi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov edi, eax
call esi
lea edx, [ebx + 0x14]
mov dword [esp + 8], ebp
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je sym.___pthread_self_lite.cold.13
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x100cc0d0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je sym.___pthread_self_lite.cold.13
add esp, 0x2c
mov esi, ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100a9a40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x100a9a70
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x100a9b20
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x100a9b50
cmp eax, 3
jne 0x100a9a5a
mov eax, dword [0x100cc0d0]
cmp eax, 0xffffffff
je 0x100a9a5a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x100a9a5a
test byte [eax + 0x20], 0x30
je 0x100a9b80
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x100a9ab3
call sym.__pthread_cleanup_dest.part.8
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x100a9ae5
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 0x100a9ad7
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.10
mov eax, ebx
call sym._push_pthread_mem
mov eax, dword [0x100cc0d0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
jmp 0x100a9a5a
mov eax, dword [0x1016117c]
test eax, eax
je 0x100a9a5a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x1016117c], 0
sub esp, 4
jmp 0x100a9a5a
mov dword [esp + 4], sym._SetThreadName_VEH_4
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x1016117c], eax
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x100a9bf2
test eax, eax
je 0x100a9b9a
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 0x100a9bb7
call sym.__pthread_cleanup_dest.part.8
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x100a9c21
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x100a9bdc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call sym._pthread_mutex_destroy
mov eax, esi
jmp 0x100a9af3
test eax, eax
je 0x100a9c02
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.10
jmp 0x100a9a5a
mov dword [esp], edi
call sym._pthread_mutex_destroy
mov eax, esi
call sym._replace_spin_keys.constprop.10
jmp 0x100a9a5a
Function at 0x100a9c40
Capabilities:
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov eax, dword [ecx]
mov esi, eax
mov dword [ebp - 0x1c], eax
call sym.__fpreset
mov dword [esp], 0x100cc0c8
lea ebx, [esi + 0x1c]
call sym._pthread_mutex_lock
mov dword [esp], ebx
call sym._pthread_mutex_lock
cmp dword [0x101611a0], 1
je 0x100a9c85
call sym.__pthread_once_raw.part.5.constprop.11
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x100cc0d0]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp], ebx
call sym._pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.__setjmp3
test eax, eax
je 0x100a9d53
mov dword [esp], 0x100cc0c8
call sym._pthread_mutex_lock
mov esi, dword [ebp - 0x1c]
lea ebx, [esi + 0x1c]
mov dword [esp], ebx
call sym._pthread_mutex_lock
mov eax, esi
mov esi, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x100a9cf8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
je 0x100a9d9d
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x68], 1
mov ebx, dword [sym.imp.kernel32.dll_Sleep]
mov dword [esp], 0x100cc0c8
call sym._pthread_mutex_unlock
test eax, eax
jne 0x100a9de1
mov dword [esp], 0
call ebx
push eax
jmp 0x100a9d33
mov dword [esp], 0x100cc0c8
call sym._pthread_mutex_unlock
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x100a9dda
mov edx, dword [edx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x100cc0c8
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x100a9cd4
call sym.__pthread_cleanup_dest.part.8
jmp 0x100a9cd4
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xdeadbeef
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
mov eax, edi
call sym._push_pthread_mem
mov eax, dword [0x100cc0d0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push edx
push edx
jmp 0x100a9d2d
mov ebx, pe_nt_image_headers32
jmp 0x100a9d73
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
lea esi, [esi]
Function at 0x100aa5b0
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 ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x100aa5d2
call sym.__pthread_cleanup_dest.part.8
test byte [ebx + 0x20], 0x30
jne 0x100aa5eb
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov eax, dword [0x100cc0d0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x100aa62e
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x100aa672
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
test eax, eax
je 0x100aa621
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x100aa637
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]
push edx
mov dword [ebx + 0x14], 0
mov eax, ebx
call sym._push_pthread_mem
mov eax, dword [0x100cc0d0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push eax
push eax
jmp 0x100aa62e
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x100aa686
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jmp 0x100aa651

Function at 0x100ae210
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x100ae270
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x101611d4]
test esi, esi
jle 0x100ae390
mov edi, dword [0x101611d8]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x100ae2a4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x100ae329
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x100ae290
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x100ae3b7
mov eax, dword [0x101611d8]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x101611d8]
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 0x100ae397
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x100ae322
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x100ae330
add dword [0x101611d4], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x101611d8]
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 0x100ae322
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea edi, [edi]
xor esi, esi
jmp 0x100ae2ae
mov eax, dword [0x101611d8]
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 sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x100ae6a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x101611e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x101611dc]
sub esp, 4
test ebx, ebx
je 0x100ae6f5
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
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x100ae6ee
test esi, esi
je 0x100ae6ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x100ae6d0
mov dword [esp], 0x101611e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100bceb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, dword [eax + 0x38]
mov ebx, eax
mov ebp, dword [eax + 0x34]
test esi, esi
jle 0x100bcf70
mov ecx, ebp
mov eax, dword [eax + 0x260]
movzx edi, cl
xor ecx, ecx
lea esi, [esi]
mov edx, eax
add ecx, 1
shl eax, 8
shr edx, 0x18
xor edx, edi
xor eax, dword [edx*4 + 0x100cc100]
cmp ecx, esi
jne 0x100bced8
mov dword [ebx + 0x260], eax
mov byte [ebx + ebp + 0x58], 1
mov eax, dword [ebx + 0x44]
add eax, dword [ebx + 0x24]
cmp ecx, 2
je 0x100bcf60
cmp ecx, 3
je 0x100bcf28
cmp ecx, 1
jne 0x100bcf75
mov ecx, ebp
mov byte [eax], cl
mov eax, dword [ebx + 0x44]
add eax, 1
mov dword [ebx + 0x44], eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, ebp
mov byte [eax], cl
mov eax, dword [ebx + 0x44]
lea edx, [eax + 1]
mov dword [ebx + 0x44], edx
mov edx, dword [ebx + 0x24]
mov byte [edx + eax + 1], cl
mov eax, dword [ebx + 0x44]
lea edx, [eax + 1]
mov dword [ebx + 0x44], edx
mov edx, dword [ebx + 0x24]
mov byte [edx + eax + 1], cl
mov eax, dword [ebx + 0x44]
add eax, 1
mov dword [ebx + 0x44], eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, ebp
mov byte [eax], cl
jmp 0x100bcf3c
mov byte [eax + ebp + 0x58], 1
mov byte [ebx + esi + 0x54], 1
mov eax, dword [ebx + 0x44]
mov ecx, ebp
mov edx, dword [ebx + 0x24]
mov byte [edx + eax], cl
mov eax, dword [ebx + 0x44]
lea edx, [eax + 1]
mov dword [ebx + 0x44], edx
mov edx, dword [ebx + 0x24]
mov byte [edx + eax + 1], cl
mov eax, dword [ebx + 0x44]
lea edx, [eax + 1]
mov dword [ebx + 0x44], edx
mov edx, dword [ebx + 0x24]
mov byte [edx + eax + 1], cl
mov eax, dword [ebx + 0x44]
lea edx, [eax + 1]
mov dword [ebx + 0x44], edx
mov edx, dword [ebx + 0x24]
mov byte [edx + eax + 1], cl
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x24]
lea eax, [edx + 1]
mov dword [ebx + 0x44], eax
movzx eax, byte [ebx + 0x38]
sub eax, 4
mov byte [ecx + edx + 1], al
mov eax, dword [ebx + 0x44]
add eax, 1
mov dword [ebx + 0x44], eax
pop ebx
pop esi
pop edi
pop ebp
ret