joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4166c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478f37
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x49c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
xorps xmm0, xmm0
mov dword [edi + 8], 0
movups xmmword [edi + 0xc], xmm0
movq qword [edi + 0x1c], xmm0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x28], 0xffffffff
mov dword [edi], 2
mov dword [edi + 0x2c], 0
movups xmmword [edi + 0x30], xmm0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
push 0x90
lea esi, [edi + 0x40]
mov dword [ebp - 4], 0
push 0
push esi
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [esi + 0x88], 0
push 0x3c
movups xmmword [esi], xmm0
push 0
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi + 0x20], xmm0
movups xmmword [esi + 0x30], xmm0
movups xmmword [esi + 0x40], xmm0
movups xmmword [esi + 0x50], xmm0
movups xmmword [esi + 0x60], xmm0
movups xmmword [esi + 0x70], xmm0
movsd qword [esi + 0x80], xmm0
lea esi, [edi + 0xd0]
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x14], esi
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
push 0
push 0x488765
mov dword [esi + 0x14], 0
call fcn.0040af40
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x488765
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040af40
mov word [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov word [esi + 0x38], 0
mov byte [esi + 0x3a], 0
push 0x38
xorps xmm0, xmm0
lea esi, [edi + 0x120]
movups xmmword [edi + 0x110], xmm0
push 0
push esi
mov byte [edi + 0x110], 0
movsd qword [edi + 0x118], xmm0
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmmword [esi + 0x18], xmm0
movups xmmword [esi + 0x28], xmm0
push 0x48
lea esi, [edi + 0x158]
mov byte [ebp - 4], 3
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x14], esi
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
push 0
push 0x488765
mov dword [esi + 0x14], 0
call fcn.0040af40
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 4
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x488765
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040af40
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x488765
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040af40
push 0x30
lea esi, [edi + 0x1a0]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [esi], xmm0
mov eax, edi
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi + 0x20], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42c990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
movzx ebp, ax
xor eax, eax
mov esi, ebp
push edi
shr esi, 8
xor edi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x20], eax
jbe 0x42c9f1
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
movzx ecx, word [ecx + edi*2]
mov edx, ecx
movzx ecx, cl
shr edx, 8
add edx, eax
cmp esi, ecx
jb 0x42c9f1
jne 0x42c9e8
cmp eax, edx
jge 0x42c9e8
mov ecx, dword [esp + 0x18]
movzx esi, cl
movzx ecx, byte [eax + ebx]
cmp cx, si
je 0x42ca19
inc eax
cmp eax, edx
jl 0x42c9d6
mov esi, dword [esp + 0x10]
inc edi
mov eax, edx
cmp edi, dword [esp + 0x20]
jb 0x42c9b3
mov edi, dword [esp + 0x2c]
xor eax, eax
mov bl, 1
test edi, edi
je 0x42ca2f
mov esi, dword [esp + 0x28]
movzx ecx, byte [eax + esi]
test cl, cl
jns 0x42ca21
movzx edx, byte [eax + esi + 1]
inc eax
and ecx, 0x7f
shl ecx, 8
or edx, ecx
jmp 0x42ca23
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edx, ecx
sub ebp, edx
js 0x42ca2f
inc eax
xor bl, 1
cmp eax, edi
jb 0x42ca01
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x42efa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a4f5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x49c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
jne 0x42f003
push dword [0x4a8e68]
and eax, 0xfffffffc
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x42f003
cmp dword [eax], esi
je 0x42f021
mov eax, dword [eax + 8]
test eax, eax
jne 0x42eff8
push dword [0x4a8e68]
lea eax, [edi + 1]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x42f0ac
mov eax, dword [eax + 4]
jmp 0x42f0ae
cmp dword [eax + 4], 0
je 0x42f003
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov dword [eax], 0
mov dword [ebp - 4], 0
nop
mov byte [ebp - 4], 2
test esi, esi
je 0x42f053
mov eax, esi
xor esi, esi
push 1
push eax
mov dword [ebp + 8], esi
mov eax, dword [eax]
call eax
add esp, 8
nop
mov dword [ebp - 4], 3
test esi, esi
je 0x42f13b
mov eax, dword [esi]
push 0
push esi
call eax
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push 4
push 0x28
push eax
push dword [ebp + 8]
call fcn.0042e7e0
mov ecx, dword [ebp + 8]
mov edx, eax
add esp, 0x10
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x432170
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x1c], 0
mov eax, dword [ecx]
mov dword [edx + 0x20], eax
mov dword [ecx], 0
mov ecx, dword [edi + 4]
mov eax, ecx
shr eax, 1
and ecx, 0xfffffffc
and al, 1
movzx eax, al
push eax
mov ecx, dword [ecx + 8]
push edx
call fcn.00433e90
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 7
call fcn.00434150
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430330
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a77e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x49c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi], vtable.asio::detail::win_iocp_io_context.0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
lea ebx, [edi + 0x18]
mov dword [edi + 0x1c], 0
mov dword [ebx], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 3
mov dword [edi + 0x34], 0
call fcn.00432520
mov esi, eax
call fcn.00433040
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
test esi, esi
jne 0x4304c9
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x5c], ecx
mov dword [edi + 0x60], esi
or eax, 0xffffffff
mov byte [ebp - 4], 6
test ecx, ecx
cmovns eax, ecx
push eax
push esi
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x430432
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00433040
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
test esi, esi
jne 0x4304d7
cmp byte [ebp + 0x10], 0
je 0x4304b3
lock inc dword [ebx]
push 0xc
call fcn.00475da2
mov esi, eax
add esp, 4
mov dword [ebp + 0x10], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x430493
push 0x10
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00475da2
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x430486
push 0
push eax
mov ecx, esi
mov dword [eax], vtable.asio::detail::win_thread::func_struct_asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], edi
call fcn.00434d80
jmp 0x430495
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00434d80
jmp 0x430495
xor esi, esi
mov ebx, dword [edi + 0x60]
test ebx, ebx
je 0x4304b0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push ebx
call fcn.0047613e
add esp, 8
mov dword [edi + 0x60], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.mutex
lea eax, [ebp - 0x18]
push eax
call fcn.00432a80
push str.iocp
lea eax, [ebp - 0x18]
push eax
call fcn.00432a80
int3
Function at 0x431ca0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x24
push esi
push dword [0x4a8e68]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x431df7
cmp dword [eax], esi
je 0x431cd3
mov eax, dword [eax + 8]
test eax, eax
jne 0x431cc3
pop esi
add esp, 0x24
ret
mov esi, dword [eax + 4]
test esi, esi
je 0x431df7
mov eax, dword [esi + 0x28]
sub eax, 0
je 0x431db1
sub eax, 1
jne 0x431df7
mov dword [esi + 0x28], 2
add esi, 0x2c
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push esi
push eax
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void___void_const__
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], vtable.asio::multiple_exceptions.0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push eax
movq qword [esp + 0x28], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void___void_const__
lea eax, [esp + 0x1c]
push eax
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void__
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x20], 0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void__
push 0x4934a0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void___void_const___void_const__
lea eax, [esp + 0x44]
push eax
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void__
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], vtable.std::exception.0
push eax
call sub.VCRUNTIME140.dll___std_exception_destroy
lea eax, [esp + 0x30]
push eax
push esi
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void___void_const__
lea eax, [esp + 0x38]
push eax
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void__
add esp, 0x38
pop esi
add esp, 0x24
ret
lea eax, [esp + 4]
mov dword [esi + 0x28], 1
push eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void__
lea eax, [esp + 8]
push eax
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void__
lea eax, [esp + 0xc]
push eax
lea eax, [esi + 0x2c]
push eax
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void___void_const__
lea eax, [esp + 0x14]
push eax
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void__
add esp, 0x14
pop esi
add esp, 0x24
ret
Function at 0x4330a0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x4a8e6c
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
test eax, eax
push 0
setne al
push ecx
test al, al
je 0x4330f3
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
add esp, 8
ret
push method.asio::execution_context::service.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
add esp, 8
ret

Function at 0x434150
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47acd0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x43419c
mov eax, dword [eax + 0x20]
mov dword [ebp - 4], 0
test eax, eax
je 0x434195
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4341e0
push dword [0x4a8e68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4341cf
mov edx, dword [eax + 4]
test edx, edx
je 0x4341cf
xor eax, eax
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x4341f1
inc eax
cmp eax, 2
jl 0x4341c0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x4341d9

Function at 0x434200
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x434211
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x434254
push dword [0x4a8e68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x434243
mov edx, dword [eax + 4]
test edx, edx
je 0x434243
mov eax, 4
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x434257
inc eax
cmp eax, 6
jl 0x434234
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x1c]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x434270
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x434281
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4342c4
push dword [0x4a8e68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4342b3
mov edx, dword [eax + 4]
test edx, edx
je 0x4342b3
mov eax, 4
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x4342c7
inc eax
cmp eax, 6
jl 0x4342a4
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x18]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x4342e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47acd0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x43432f
add ecx, 0x38
cmp dword [ecx + 0x10], 0
mov dword [ebp - 4], 0
je 0x434328
mov eax, dword [ecx + 0xc]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x434370
push dword [0x4a8e68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43435f
mov edx, dword [eax + 4]
test edx, edx
je 0x43435f
xor eax, eax
nop
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x434381
inc eax
cmp eax, 2
jl 0x434350
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x54]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x434369

Function at 0x434390
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47acd0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4343df
add ecx, 0x34
cmp dword [ecx + 0x10], 0
mov dword [ebp - 4], 0
je 0x4343d8
mov eax, dword [ecx + 0xc]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x434420
push dword [0x4a8e68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43440f
mov edx, dword [eax + 4]
test edx, edx
je 0x43440f
xor eax, eax
nop
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x434431
inc eax
cmp eax, 2
jl 0x434400
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x50]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x434419
Function at 0x434500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ad35
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x49c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
lea eax, [esi + 0x18]
lock xadd dword [eax], edx
test edx, edx
jne 0x434562
call fcn.00434ec0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0x49c034
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x4c]
call fcn.004302b0
push dword [0x4a8e68]
mov ecx, esi
mov dword [ebp - 4], 0
neg ecx
lea eax, [esi + 0x14]
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push dword [0x4a8e68]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push ebx
push eax
push 0xffffffffffffffff
mov ecx, esi
mov byte [ebp - 4], 1
xor edi, edi
call fcn.004325e0
test eax, eax
je 0x4345dd
nop
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov ecx, esi
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
call fcn.004325e0
test eax, eax
jne 0x4345c0
push dword [ebp - 0x10]
push dword [0x4a8e68]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x4c]
test eax, eax
je 0x434602
push eax
call ebx
add esp, 4
inc esi
cmp esi, 0xa
jl 0x4345f4
lea eax, [ebp - 0x20]
push eax
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void__
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x434630
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ad84
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x49c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
je 0x4347e0
lea eax, [edi + 0x20]
push eax
lea eax, [edi + 8]
push eax
push 0
lea ecx, [ebp - 0x4c]
call fcn.00437eb0
mov ecx, dword [edi]
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 4], 0
call fcn.0046f650
push 0x48
call fcn.00475da2
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x4346b4
mov ecx, dword [edi]
push 0
call fcn.00459000
push eax
mov ecx, esi
call fcn.0042df50
jmp 0x4346b6
xor eax, eax
push eax
lea ecx, [edi + 0x88]
mov byte [ebp - 4], 0
call fcn.004340b0
mov ecx, dword [edi + 0x88]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0xa817c800
push eax
mov dword [ebp - 0x50], 4
call fcn.00432df0
mov eax, dword [edi + 0x88]
push dword [0x4a8e68]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x60], 0x435050
mov ebx, dword [eax]
lea ecx, [eax + 0x28]
lea edi, [eax + 8]
mov dword [ebp - 0x50], ecx
lea eax, [ebp - 0x60]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43471d
mov eax, dword [eax + 4]
jmp 0x43471f
xor eax, eax
push 4
push 0x54
push eax
push dword [ebp - 0x50]
call fcn.0042e7e0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x68], esi
push dword [ebp - 0x50]
mov dword [esi + 0x14], 0
lea ecx, [esi + 0x38]
mov dword [esi + 0x18], 0x432220
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0x49c034
mov dword [esi + 0x28], 0
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x2c], eax
mov al, byte [ebp - 0x5c]
push 0
mov byte [esi + 0x30], al
mov eax, dword [ebp - 0x58]
push 0
mov byte [ebp - 4], 2
mov dword [esi + 0x34], eax
call fcn.0042fba0
push esi
lea eax, [edi + 0xc]
mov byte [edi + 8], 1
mov ecx, dword [ebx + 0x2c]
push eax
push edi
lea eax, [ebx + 0x14]
mov dword [ebp - 0x64], esi
push eax
call fcn.0042f720
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.004342e0
lea ecx, [ebp - 0x4c]
call fcn.00430bb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cb4
mov esp, ebp
pop ebp
ret
Function at 0x434d80
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0
push 1
push 0
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], edi
test edi, edi
jne 0x434dd1
call esi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x14], esi
call fcn.00433040
mov dword [esp + 0x18], eax
test esi, esi
jne 0x434e8f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp + 8], eax
mov dword [ebx + 8], eax
cmp dword [ebp + 8], 0
jne 0x434e0c
call esi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x14], esi
call fcn.00433040
mov dword [esp + 0x18], eax
test esi, esi
jne 0x434e9e
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push ebx
push 0x4353f0
push dword [esp + 0x34]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
mov dword [ebp + 4], eax
test eax, eax
jne 0x434e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x24], eax
call dword [edx]
test edi, edi
je 0x434e56
push edi
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x434e60
push eax
call esi
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
call fcn.00433040
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x434ead
test edi, edi
je 0x434e85
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
push str.thread.entry_event
lea eax, [esp + 0x18]
push eax
call fcn.00432a80
push str.thread.exit_event
lea eax, [esp + 0x18]
push eax
call fcn.00432a80
push str.thread
lea eax, [esp + 0x18]
push eax
call fcn.00432a80
int3