joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov edx, ecx
mov ebp, esp
push ebx
mov eax, dword [ecx + 0x9c0]
cmp eax, 0x26f
ja 0x4600cb
mov ecx, dword [ecx + eax*4]
lea ebx, [eax + 1]
mov dword [edx + 0x9c0], ebx
mov edx, ecx
mov ebx, dword [ebp - 4]
leave
shr edx, 0xb
xor edx, ecx
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
movdqu xmm1, xmmword [0x58eeb0]
mov eax, edx
movdqu xmm2, xmmword [0x58eec0]
lea ecx, [ecx + 0x380]
movdqu xmm3, xmmword [0x58eed0]
pxor xmm5, xmm5
movdqu xmm4, xmmword [0x58eee0]
lea esi, cs:[esi]
nop
movdqu xmm0, xmmword [eax]
movdqu xmm6, xmmword [eax + 4]
add eax, 0x10
movdqu xmm7, xmmword [eax + 0x624]
pand xmm6, xmm2
pand xmm0, xmm1
por xmm0, xmm6
movdqa xmm6, xmm0
pand xmm0, xmm3
psrld xmm6, 1
pxor xmm6, xmm7
movdqa xmm7, xmm5
psubd xmm7, xmm0
pand xmm7, xmm4
movdqa xmm0, xmm7
pxor xmm0, xmm6
movups xmmword [eax - 0x10], xmm0
cmp eax, ecx
jne 0x460100
mov eax, dword [edx + 0x384]
mov ebx, dword [edx + 0x380]
pxor xmm6, xmm6
mov ecx, eax
and ebx, 0x80000000
and eax, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
and ecx, 1
neg ecx
shr ebx, 1
xor ebx, dword [edx + 0x9b4]
and ecx, 0x9908b0df
xor ecx, ebx
mov dword [edx + 0x380], ecx
mov ecx, dword [edx + 0x388]
mov ebx, ecx
and ecx, 0x80000000
and ebx, 0x7fffffff
or eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
xor ebx, dword [edx + 0x9b8]
and eax, 0x9908b0df
xor ebx, eax
mov eax, dword [edx + 0x38c]
mov dword [edx + 0x384], ebx
and eax, 0x7fffffff
or ecx, eax
and eax, 1
neg eax
shr ecx, 1
xor ecx, dword [edx + 0x9bc]
and eax, 0x9908b0df
xor eax, ecx
lea ecx, [edx + 0x9bc]
mov dword [edx + 0x388], eax
lea eax, [edx + 0x38c]
lea esi, [esi]
movdqu xmm0, xmmword [eax + 4]
movdqu xmm5, xmmword [eax]
add eax, 0x10
pand xmm5, xmm1
pand xmm0, xmm2
por xmm0, xmm5
movdqa xmm5, xmm6
movdqa xmm7, xmm0
psrld xmm0, 1
pand xmm7, xmm3
psubd xmm5, xmm7
movdqu xmm7, xmmword [eax - 0x39c]
pand xmm5, xmm4
pxor xmm0, xmm7
pxor xmm5, xmm0
movups xmmword [eax - 0x10], xmm5
cmp ecx, eax
jne 0x4601f8
mov ecx, dword [edx]
mov eax, dword [edx + 0x9bc]
mov ebx, ecx
and eax, 0x80000000
and ebx, 0x7fffffff
or eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
xor ebx, dword [edx + 0x630]
and eax, 0x9908b0df
xor ebx, eax
mov dword [edx + 0x9bc], ebx
mov ebx, 1
jmp 0x460099
Function at 0x473e10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x44
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
lea esi, [esp + 0x28]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x473e60
mov eax, 0x12b
cmp ebx, dword [esp + 0x28]
jne 0x473e66
add esp, 0x44
pop ebx
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
call fcn.004715a0
mov esi, dword [esp + 0x28]
mov dword [esp], 2
mov ebx, dword [fcn.004a03d0]
call ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.fatal:_file_output_stream::flush_impl_failed_to_write_data:__s_n
mov dword [esp], eax
call fcn.004038b0
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x30]
cmp edx, eax
je 0x473eb5
mov eax, dword [esp + 0x30]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.0054fb40
mov dword [esp], 2
call ebx
mov dword [esp], eax
call fcn.004a0a60
mov dword [esp], 2
call ebx
mov dword [esp + 0x14], 0x58f1bc
mov dword [esp + 0x10], str.flush_impl
mov dword [esp + 0xc], 0x76
mov dword [esp + 8], str.D:_a_quick_lint_js_quick_lint_js_src_quick_lint_js_io_output_stream.cpp
mov dword [esp + 4], 0x58f218
mov dword [esp], eax
call fcn.004038b0
mov dword [esp], 2
call ebx
mov dword [esp], eax
call fcn.004a0a60
int3

Function at 0x473f70
Capabilities:
Create thread

Disassembly:
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov esi, eax
test eax, eax
je 0x473fd0
mov eax, dword [ebx]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
jbe 0x47402b
mov dword [ebx], esi
add esp, 0x20
pop ebx
pop esi
pop edi
ret 8
mov edi, dword [fcn.004a03d0]
mov dword [esp], 2
call edi
mov dword [esp + 0x14], str.thread_handle___0
mov dword [esp + 0x10], str.start
mov dword [esp + 0xc], 0x72
mov dword [esp + 8], str.D:_a_quick_lint_js_quick_lint_js_src_quick_lint_js_port_thread.cpp
mov dword [esp + 4], 0x58f218
mov dword [esp], eax
call fcn.004038b0
mov dword [esp], 2
call edi
mov dword [esp], eax
call fcn.004a0a60
int3
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test eax, eax
jne 0x473fbd
mov dword [esp], 2
call dword [0x55efb0]
mov dword [esp + 4], 0x58f19f
mov dword [esp], eax
call fcn.004038b0
mov dword [ebx], esi
add esp, 0x20
pop ebx
pop esi
pop edi
ret 8
Function at 0x4754b0
Capabilities:
Read file on windows

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x2c], edx
cmp ebx, 0x7ffffbff
jg 0x475586
mov dword [ebp - 0x30], eax
mov esi, ecx
mov eax, dword [esi]
xor edx, edx
lea ecx, [ebx + 0x440]
lea edi, [ebx + 0x400]
mov dword [esp + 4], ecx
cmp eax, 0x5ec0c0
cmove eax, edx
mov dword [esp], eax
call sub.msvcrt.dll_realloc
pxor xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [eax + edi]
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
movups xmmword [ecx + 0x20], xmm0
movups xmmword [ecx + 0x30], xmm0
mov dword [esi], eax
add eax, ebx
mov dword [esi + 4], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x400
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4755a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4755ab
jle 0x4755f0
mov edx, 0x7fffffff
sub edx, eax
add eax, ebx
cmp edx, ebx
cmovge ebx, eax
mov dword [esp], ebx
mov ecx, esi
call fcn.00466930
mov ebx, dword [esi + 4]
sub esp, 4
cmp ebx, 0x7ffffbff
jle 0x4754dd
mov edi, dword [ebp - 0x30]
mov dword [edi + 4], 0xdf
mov eax, edi
mov byte [edi], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4755d0
mov edi, dword [ebp - 0x30]
mov dword [esp], ebx
mov ecx, esi
call fcn.00466930
mov byte [edi], 1
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
cmp eax, 0xe8
je 0x475567
mov edi, dword [ebp - 0x30]
mov dword [edi + 4], eax
mov eax, edi
mov byte [edi], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov edx, 0x80000000
sub edx, eax
add eax, ebx
cmp edx, ebx
cmovle ebx, eax
jmp 0x475567
Function at 0x480260
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4802c8
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4802b0
mov byte [ebx + 8], 0
mov eax, ebx
mov byte [ebx], 1
add esp, 0x38
pop ebx
ret
mov dword [ebx + 4], eax
mov eax, ebx
mov byte [ebx + 8], 1
mov byte [ebx], 1
add esp, 0x38
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x48029a
cmp eax, 0xe8
je 0x4802f0
mov dword [ebx + 4], eax
mov eax, ebx
mov byte [ebx], 0
add esp, 0x38
pop ebx
ret
mov dword [ebx + 4], 0
mov eax, ebx
mov byte [ebx + 8], 1
mov byte [ebx], 1
add esp, 0x38
pop ebx
ret

Function at 0x4822c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x44
lea eax, [esp + 0x24]
call fcn.004728f0
cmp byte [esp + 0x3c], 0
je 0x482310
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x4823a0
mov byte [ebx], 1
cmp byte [esp + 0x3c], 0
jne 0x482370
add esp, 0x44
mov eax, ebx
pop ebx
pop esi
ret
mov esi, dword [fcn.004a03d0]
mov dword [esp], 2
call esi
mov dword [esp + 0x14], 0x590215
mov dword [esp + 0x10], str.create_directory
mov dword [esp + 0xc], 0xa7
mov dword [esp + 8], str.D:_a_quick_lint_js_quick_lint_js_src_quick_lint_js_io_temporary_directory.cpp
mov dword [esp + 4], str._s:_d:_internal_check_failed_in__s:__s_nquick_lint_js_crashed._Please_report_this_bug_here:_nhttps:__quick_lint_js.com_crash_report__n
mov dword [esp], eax
call fcn.004038b0
mov dword [esp], 2
call esi
mov dword [esp], eax
call fcn.004a0a60
int3
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
mov byte [esp + 0x3c], 0
cmp eax, edx
je 0x482301
mov edx, dword [esp + 0x2c]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.0054fb40
add esp, 0x44
mov eax, ebx
pop ebx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
je 0x4823c0
xor eax, eax
mov dword [ebx + 4], esi
mov byte [ebx + 8], al
mov byte [ebx], 0
jmp 0x4822fa
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4823af
shr eax, 4
and eax, 1
jmp 0x4823b1

Function at 0x490960
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004a03d0
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.004a03d0
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 0x4909c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5ec2dc]
test esi, esi
jle 0x490ae0
mov eax, dword [0x5ec2e0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4909f4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x490a77
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4909e0
mov dword [esp], ebx
call fcn.004913b0
mov edi, eax
test eax, eax
je 0x490b07
mov eax, dword [0x5ec2e0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004914f0
mov edx, dword [0x5ec2e0]
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 0x490ae7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x490a70
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x490a80
add dword [0x5ec2dc], 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 [0x5ec2e0]
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 0x490a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00490960
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x4909fe
mov eax, dword [0x5ec2e0]
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.00490960
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00490960
lea esi, cs:[esi]
nop

Function at 0x491020
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5ec2f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5ec2f0]
sub esp, 4
test ebx, ebx
je 0x491075
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 0x49106e
test eax, eax
jne 0x49106e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x491050
mov dword [esp], 0x5ec2f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4913b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4913d5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4913e0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4913d5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x491428
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x49141e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x49142a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x491410
xor eax, eax
pop ebx
pop esi
ret
Function at 0x496ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x220
mov ebx, dword [esp + 0x230]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x496c60
cmp word [ebx], 0
je 0x496c40
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x496c70
test al, 0x10
je 0x496c40
lea esi, [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__wfullpath
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x597120
mov ebx, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x597124
add ebx, eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax + 0x21d]
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x496c7f
lea edi, [eax + 0x434]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
jne 0x496bf8
mov dword [esp], edi
mov dword [esp + 4], 0x597124
call sub.msvcrt.dll_wcscat
xor edx, edx
mov eax, 0xffffffff
mov ecx, 0x82
mov dword [ebx + 0x430], edx
lea edx, [ebx + 0x224]
mov dword [ebx + 0x42c], eax
mov edi, edx
xor eax, eax
mov dword [ebx + 0x21c], 0
mov dword [ebx + 0x220], 0
rep stosd dword es:[edi], eax
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x2f
je 0x496b9d
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x5c
je 0x496b9d
mov dword [esp + 4], 0x597120
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
jmp 0x496b9d
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0x14
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xe
jmp 0x496c4d
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 2
jmp 0x496c4d
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xc
jmp 0x496c4d

Function at 0x496fa0
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 0x496fd9
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 0x497000
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 0x497039
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 0x4a2c90
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 [0x5ec348]
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.004a6870
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 0x4a3080
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x5ecd60], 1
je 0x4a3138
push edi
mov eax, 0x5ecd60
push esi
push ebx
sub esp, 0x10
call fcn.004a2a70
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.004a2300
mov edi, dword [0x5ecd60]
test edi, edi
jne 0x4a30f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x55efc4], eax
cmp eax, 0xffffffff
je 0x556845
mov dword [0x5ecd60], 1
mov dword [esp], esi
call fcn.004a2630
test ebx, ebx
je 0x4a312a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.004a2d10
cmp edi, 1
je 0x4a30d2
mov dword [esp], 2
call dword [0x55efb0]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x5ecd60
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.004a2630
test ebx, ebx
jne 0x4a30de
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
mov eax, dword [0x14]
ud2

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

Disassembly:
sub esp, 0x1c
call fcn.004a3080
mov eax, dword [0x55efc4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4a3298
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.004a3140
Function at 0x4a3560
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 0x4a3588
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4a3680
add esp, 0x14
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x4a3650
cmp eax, 3
jne 0x4a3579
mov eax, dword [0x55efc4]
cmp eax, 0xffffffff
je 0x4a3579
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4a3579
test byte [eax + 0x20], 0x30
je 0x4a36b0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4a35cb
call fcn.004a32a0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4a35fd
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 0x4a35ef
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.004a27b0
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004a2970
cmp eax, 1
je 0x4a377e
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x4a3772
mov eax, dword [0x55efc4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x4a3579
mov eax, dword [0x5ecd38]
test eax, eax
je 0x4a369c
mov dword [esp + 4], 0x4a29e0
mov dword [esp], 1
call eax
mov dword [0x5ecd3c], eax
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x5ecd3c]
test eax, eax
je 0x4a3579
mov edx, dword [0x5ecd34]
test edx, edx
je 0x4a369c
mov dword [esp], eax
call edx
mov dword [0x5ecd3c], 0
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4a3724
test eax, eax
je 0x4a36ca
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 0x4a36e7
call fcn.004a32a0
test byte [ebx + 0x24], 4
je 0x4a3762
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4a35fd
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 fcn.004a27b0
lea eax, [ebx + 0x38]
jmp 0x4a360b
test eax, eax
je 0x4a3762
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 fcn.004a27b0
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004a2970
cmp eax, 1
je 0x4a377e
mov dword [ebx + 0x38], 0xffffffff
jmp 0x4a3579
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004a27b0
lea eax, [ebx + 0x38]
jmp 0x4a3749
mov eax, ebx
call fcn.004a2ec0
jmp 0x4a3631
call fcn.004a2c90
lea esi, cs:[esi]
lea esi, cs:[esi]