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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 0x1c]
push dword [eax + 0xc0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x412611
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
push 0
call fcn.00411780
mov esi, eax
test esi, esi
jne 0x41262a
lea eax, [esi - 0xb]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0x20]
movzx eax, ax
add eax, 8
push edi
push eax
call fcn.00425da0
mov edi, eax
add esp, 4
test edi, edi
jne 0x412655
push esi
call fcn.004118c0
lea eax, [edi - 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dl, byte [ebp + 0xc]
mov byte [edi + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebp + 0x11], al
mov byte [ebp + 0x10], cl
movzx eax, word [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov word [edi + 2], ax
mov eax, ecx
shr eax, 8
mov byte [ebp + 0x11], al
mov byte [ebp + 0x10], cl
movzx eax, word [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
mov word [edi + 4], ax
mov eax, ecx
shr eax, 8
mov byte [ebp + 0x11], al
mov byte [ebp + 0x10], cl
movzx eax, word [ebp + 0x10]
mov byte [edi], dl
mov word [edi + 6], ax
test dl, dl
js 0x4126b9
movzx eax, cx
push eax
push dword [ebp + 0x1c]
lea eax, [edi + 8]
push eax
call fcn.00422700
add esp, 0xc
mov eax, dword [ebp + 0x24]
mov dword [esi + 8], eax
mov dword [esi], ebx
mov word [esi + 5], 0
mov dword [esi + 0x20], edi
movzx ecx, word [edi + 6]
mov eax, ecx
mov byte [ebp + 0x10], cl
shr eax, 8
mov byte [ebp + 0x11], al
movzx eax, word [ebp + 0x10]
add eax, 8
mov dword [esi + 0x18], 0x412810
mov dword [esi + 0x10], eax
lea eax, [ebp - 4]
push esi
mov dword [esi + 0x1c], eax
mov byte [esi + 4], 2
call fcn.00411d70
mov edi, eax
push esi
test edi, edi
js 0x4127dc
call fcn.00412840
add esp, 4
cmp byte [ebp + 0xc], 0
jge 0x412728
push dword [esi + 0x14]
mov eax, dword [esi + 0x20]
add eax, 8
push eax
push dword [ebp + 0x1c]
call fcn.00422700
add esp, 0xc
mov eax, dword [esi + 0xc]
cmp eax, 6
ja case.default.0x412734
jmp dword [eax*4 + 0x4127ec]
mov edi, dword [esi + 0x14]
push esi
call fcn.004118c0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
mov edi, 0xfffffff9
call fcn.004118c0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
mov edi, 0xfffffff7
call fcn.004118c0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
mov edi, 0xfffffffc
call fcn.004118c0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
mov edi, 0xfffffff8
call fcn.004118c0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
or edi, 0xffffffff
call fcn.004118c0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push eax
mov eax, dword [ebx + 0x24]
push str.unrecognised_status_code__d
push str.libusb_control_transfer
push 2
push dword [eax + 0x1c]
call fcn.0040fc50
add esp, 0x14
mov edi, 0xffffff9d
push esi
call fcn.004118c0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4143d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov edx, 0x1505
push esi
mov esi, eax
test eax, eax
jne 0x4143e8
pop esi
mov esp, ebp
pop ebp
ret
movsx ecx, byte [eax]
test ecx, ecx
je 0x414403
nop
mov eax, edx
lea esi, [esi + 1]
shl edx, 5
add edx, ecx
movsx ecx, byte [esi]
add edx, eax
test ecx, ecx
jne 0x4143f0
push ebx
test edx, edx
mov ebx, 1
mov ecx, ebx
mov eax, 0xc0906d
cmovne ecx, edx
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3fd
push edi
push 0x44be70
sub ecx, eax
cmovne ebx, ecx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44be6c]
lea edi, [eax + esi*8]
mov eax, dword [edi]
test eax, eax
je 0x41451c
cmp eax, ebx
jne 0x414484
mov ecx, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x414477
test dl, dl
je 0x414473
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x414477
add eax, 2
add ecx, 2
test dl, dl
jne 0x414457
xor eax, eax
jmp 0x41447c
sbb eax, eax
or eax, 1
test eax, eax
je 0x4145a9
push dword [edi + 4]
push dword [ebp + 8]
push str.hash_collision___s_vs__s_
push str.htab_hash
push 4
push 0
call fcn.0040fc50
mov eax, 0x14191f7
add esp, 0x18
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ebx
shr eax, 9
imul eax, eax, 0x3fb
sub edx, eax
inc edx
mov dword [ebp - 4], edx
mov ecx, esi
sub ecx, edx
cmp esi, edx
lea eax, [ecx + 0x3fd]
cmova eax, ecx
mov esi, eax
cmp esi, ebx
je 0x41451c
mov eax, dword [0x44be6c]
mov edi, dword [eax + esi*8]
cmp edi, ebx
jne 0x414518
mov eax, dword [eax + esi*8 + 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x414508
test dl, dl
je 0x414504
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x414508
add ecx, 2
add eax, 2
test dl, dl
jne 0x4144e8
xor eax, eax
jmp 0x41450d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4145a9
mov edx, dword [ebp - 4]
test edi, edi
jne 0x4144c0
cmp dword [0x44be88], 0x3fd
jb 0x414559
push 0x3fd
push str.hash_table_is_full___lu_entries_
push str.htab_hash
push 1
push 0
call fcn.0040fc50
add esp, 0x14
xor esi, esi
push 0x44be70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call fcn.0042a31d
mov ecx, eax
add esp, 4
mov eax, dword [0x44be6c]
mov dword [eax + esi*8 + 4], ecx
lea eax, [eax + esi*8]
test ecx, ecx
jne 0x4145a1
push str.could_not_duplicate_string_for_hash_table
push str.htab_hash
push 1
push ecx
call fcn.0040fc50
add esp, 0x10
xor esi, esi
push 0x44be70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
inc dword [0x44be88]
mov dword [eax], ebx
push 0x44be70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4148b0
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x44be3c], 0
je 0x414928
push 0
push 0
push 0x402
push dword [0x44be50]
call dword [0x44be68]
test eax, eax
je 0x4148e4
push 0xffffffffffffffff
push dword [0x44be3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414908
push str.could_not_wait_for_timer_thread_to_quit
push str.windows_destroy_clock
push 4
push 0
call fcn.0040fc50
add esp, 0x10
push 1
push dword [0x44be3c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x44be3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x44be3c], 0
mov dword [0x44be50], 0
ret
Function at 0x414a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x414c49
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push esi
push edi
push 0xe8
push 0xd4a51000
mov dword [0x44be48], edi
mov dword [0x44be4c], esi
call fcn.00421ba0
push esi
push edi
push str.hires_timer_available__Frequency:__I64u_Hz_
push str.windows_init_clock
push 4
push 0
mov dword [0x44be40], eax
mov dword [0x44be44], edx
call fcn.0040fc50
add esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x414c22
mov edx, dword [ebp - 4]
test edx, edx
je 0x414c22
xor ecx, ecx
test dl, 1
jne 0x414b2b
mov eax, 1
rol eax, 1
inc ecx
test edx, eax
je 0x414b24
push ecx
push str.timer_thread_will_run_on_core__d
push str.windows_init_clock
mov eax, 1
shl eax, cl
push 4
push 0
mov dword [ebp - 4], eax
call fcn.0040fc50
add esp, 0x14
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
test esi, esi
jne 0x414b86
push eax
call fcn.00414930
push eax
push str.could_not_create_event:__s
push str.windows_init_clock
push 1
push dword [ebp + 8]
call fcn.0040fc50
add esp, 0x18
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x44be50
push 0
push esi
push 0x414600
push 0
push 0
call fcn.0042a1fa
add esp, 0x18
mov dword [0x44be3c], eax
test eax, eax
jne 0x414bce
push str.unable_to_create_timer_thread___aborting
push str.windows_init_clock
push 1
push dword [ebp + 8]
call fcn.0040fc50
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov edi, dword [ebp + 8]
test eax, eax
jne 0x414bf4
push str.unable_to_set_timer_thread_affinity__timer_discrepancies_may_arise
push str.windows_init_clock
push 2
push edi
call fcn.0040fc50
add esp, 0x10
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414c10
push str.failed_to_wait_for_timer_thread_to_become_ready___aborting
push str.windows_init_clock
push 1
push edi
jmp 0x414bb7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
call fcn.00414930
push eax
push str.could_not_get_process_affinity:__s
push str.windows_init_clock
push 1
push dword [ebp + 8]
call fcn.0040fc50
add esp, 0x18
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.no_hires_timer_available_on_this_platform
push str.windows_init_clock
push 4
push 0
call fcn.0040fc50
add esp, 0x10
xorps xmm0, xmm0
movlpd qword [0x44be48], xmm0
mov eax, 1
movlpd qword [0x44be40], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e3d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push edi
mov edi, 0xb
mov dword [eax + 4], 0
call fcn.0041f040
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41e586
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x41e402
mov ebx, dword [ebx]
jmp 0x41e404
xor ebx, ebx
push esi
call fcn.0041ff40
mov esi, eax
mov dword [ebp - 4], edx
test esi, esi
je 0x41e57d
mov eax, dword [esi + 0x88]
push 0x10
mov dword [ebp - 8], eax
call fcn.00425da0
mov edx, eax
add esp, 4
mov dword [ebp - 0xc], edx
test edx, edx
je 0x41e541
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [edx], esi
mov dword [edx + 0xc], eax
mov eax, dword [edi + 0x9c]
mov dword [esi + 0x9c], eax
test ebx, ebx
je 0x41e4b4
mov eax, dword [ebx + 0x1c]
test eax, eax
mov ecx, dword [esi + 0x9c]
cmovne ecx, eax
mov dword [esi + 0x9c], ecx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x84], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x41e4a3
push eax
call fcn.004207a0
mov edx, dword [ebp - 0xc]
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0xa0], eax
cmp dword [ebx + 0x14], 0
jne 0x41e4b6
mov eax, dword [edi + 0x88]
mov dword [ebp - 8], eax
jmp 0x41e4b6
xor ecx, ecx
lea eax, [esi + 0x98]
mov dword [esi + 0x18], 0
push eax
push 4
push edx
push 0x4208a0
push ecx
push 0
mov dword [esi + 0x30], 0
call fcn.0042a1fa
mov edi, eax
add esp, 0x18
mov dword [ebp - 0x10], edi
mov dword [esi + 8], edi
test edi, edi
je 0x41e534
test ebx, ebx
je 0x41e502
push dword [ebp - 8]
push 0
push dword [ebp - 4]
push esi
call fcn.004206b0
mov eax, dword [esi + 8]
add esp, 0x10
push dword [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp + 8]
xor ecx, ecx
test edi, edi
mov eax, 0xb
cmovne eax, ecx
mov ecx, dword [ebp - 4]
mov dword [edx], esi
pop esi
pop ebx
mov dword [edx + 4], ecx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov edi, 0xb
cmp dword [ebp - 0x10], eax
cmovne edi, eax
push dword [ebp - 4]
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 8]
push esi
mov dword [ebp + 8], eax
call fcn.00420820
mov eax, dword [ebp + 8]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e566
push eax
call esi
test ebx, ebx
je 0x41e56d
push ebx
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41e57d
push eax
call fcn.00425d83
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41f040
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
xor esi, esi
call fcn.00420160
test eax, eax
jne 0x41f05f
mov edx, esi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [0x44c198]
test edi, edi
je 0x41f098
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x41f098
mov esi, dword [edi + 0xc]
mov eax, esi
mov ebx, dword [edi + 0x10]
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
call fcn.0041ff40
mov esi, eax
mov ebx, edx
test esi, esi
je 0x41f160
or dword [esi + 0x94], 1
mov dword [esi + 0x84], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 2
push edi
mov dword [esi + 0x98], eax
lea eax, [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41f18e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov ecx, dword [esi + 8]
test eax, eax
je 0x41f172
push dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov dword [ebp - 8], eax
test eax, eax
je 0x41f139
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
test eax, eax
je 0x41f139
mov eax, dword [ebp - 8]
mov dword [esi + 0x9c], eax
jmp 0x41f13e
mov edi, 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x88], eax
push esi
push dword [0x44c198]
call fcn.0041f1b0
add esp, 8
test edi, edi
jne 0x41f18e
pop edi
mov dword [esi + 0x18], 2
mov eax, esi
pop esi
mov edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x88], eax
push esi
push dword [0x44c198]
call fcn.0041f1b0
add esp, 8
push ebx
push esi
mov dword [esi + 8], 0
call fcn.00420820
add esp, 8
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f1b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [0x44c198]
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x41f267
call fcn.0041f040
mov esi, eax
mov dword [ebp - 4], edx
test esi, esi
je 0x41f29d
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
test edi, edi
je 0x41f30d
test esi, esi
je 0x41f2f8
cmp dword [edi + 4], ebx
je 0x41f2f8
test ecx, ecx
je 0x41f2f8
lea eax, [ebp - 0x20]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041fd10
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x1c]
push eax
call fcn.0041fd10
mov eax, dword [esi + 0x30]
add esp, 0x10
test eax, eax
je 0x41f236
cmp dword [eax + 4], edi
je 0x41f2e3
mov eax, dword [eax + 8]
test eax, eax
jne 0x41f226
push 0x18
push 1
call fcn.00429fb4
add esp, 8
test eax, eax
jne 0x41f2b6
lea ebx, [eax + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0041fda0
lea eax, [ebp - 0x20]
push eax
call fcn.0041fda0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x41f296
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x41f296
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 4], eax
jmp 0x41f1dc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41f2a9
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [ebp - 4], eax
jmp 0x41f1df
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 0x14], ebx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
test ecx, ecx
je 0x41f2cb
mov dword [ecx + 0x14], eax
mov dword [edi + 0xc], eax
mov dword [eax + 0x10], ebx
mov ecx, dword [esi + 0x30]
mov dword [eax + 8], ecx
test ecx, ecx
je 0x41f2de
mov dword [ecx + 0x10], eax
mov dword [esi + 0x30], eax
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0041fda0
lea eax, [ebp - 0x20]
push eax
call fcn.0041fda0
add esp, 8
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
mov ecx, 0xb
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f390
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x44c194], 0
je 0x41f492
push edi
mov edi, dword [0x44c198]
test edi, edi
je 0x41f488
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x41f47d
push dword [edi + 0x10]
push dword [edi + 0xc]
call fcn.0041f500
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x20]
push eax
call fcn.0041fd10
lea eax, [ebp - 0x10]
mov dword [edi + 0x18], 7
push eax
call fcn.0041fda0
mov eax, dword [edi + 0x7c]
add esp, 0x14
test eax, eax
je 0x41f453
push ebx
mov ebx, dword [eax]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
mov dword [ebx + 0xc], edi
mov esi, dword [ecx + 0xc]
test esi, esi
je 0x41f41f
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov esi, dword [ecx + 8]
test esi, esi
je 0x41f42c
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
cmp dword [edx + 0x7c], ecx
jne 0x41f437
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x7c], eax
mov eax, dword [ebx + 0x18]
or ecx, 0xffffffff
add eax, 4
xchg dword [eax], ecx
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x41f407
pop ebx
cmp dword [edi + 0x84], 1
jne 0x41f47d
push dword [edi + 0x10]
push dword [edi + 0xc]
call fcn.004207e0
mov eax, dword [0x44c198]
add esp, 8
test eax, eax
je 0x41f47d
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x420080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x44c194], 0
jne 0x420091
call fcn.00420160
push edi
mov edi, dword [0x44c19c]
test edi, edi
jne 0x4200a1
xor eax, eax
pop edi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
test edi, edi
je 0x4200e5
cmp dword [ebp + 8], 0
je 0x4200d4
mov eax, dword [edi]
test eax, eax
je 0x4200d4
push dword [edi + 4]
call eax
add esp, 4
push dword [edi + 8]
push dword [0x44c19c]
call fcn.0041f1b0
add esp, 8
mov eax, edi
pop edi
pop ebp
ret

Function at 0x4200f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
nop dword [eax]
cmp dword [0x44c194], 0
jne 0x42010e
call fcn.00420160
mov esi, dword [0x44c19c]
test esi, esi
je 0x42015a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x42015a
test ebx, ebx
je 0x420147
mov eax, dword [esi]
test eax, eax
je 0x420147
push dword [esi + 4]
call eax
add esp, 4
push dword [esi + 8]
push dword [0x44c19c]
call fcn.0041f1b0
add esp, 8
jmp 0x420100
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x420160
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x44c194], 0
jne 0x4202ee
push esi
xorps xmm0, xmm0
mov dword [0x44b424], 1
push 0x10
push 1
mov dword [0x44b428], 1
mov dword [0x44c198], 0
mov dword [0x44c19c], 0
mov dword [0x44c1a0], 0
mov dword [0x44c1a4], 0
mov dword [0x44c1b0], 0
mov dword [0x44c1b4], 0
movlpd qword [0x44c1a8], xmm0
mov dword [0x44c190], 0
mov dword [0x44c1b8], 0
mov dword [0x44c1bc], 0
mov dword [0x44c1c4], 0
mov dword [0x44c1c8], 0
mov dword [0x44c1cc], 0
mov dword [0x44c1c0], 0
call fcn.00429fb4
mov esi, eax
add esp, 8
test esi, esi
jne 0x42023d
mov dword [0x44c198], esi
call fcn.00420300
mov dword [0x44c194], 1
mov eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x420273
push esi
call fcn.00425d83
add esp, 4
mov dword [0x44c198], 0
call fcn.00420300
mov dword [0x44c194], 1
mov eax, 1
pop esi
ret
push 0x10
push 1
mov dword [0x44c198], esi
call fcn.00429fb4
mov esi, eax
add esp, 8
test esi, esi
jne 0x4202a7
mov dword [0x44c19c], esi
call fcn.00420300
mov dword [0x44c194], 1
mov eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4202dd
push esi
call fcn.00425d83
add esp, 4
mov dword [0x44c19c], 0
call fcn.00420300
mov dword [0x44c194], 1
mov eax, 1
pop esi
ret
mov dword [0x44c19c], esi
mov dword [0x44c194], 1
pop esi
mov eax, 1
ret
Function at 0x4203c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x44c194], 0
jne 0x4203d1
call fcn.00420160
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], eax
mov ebx, dword [0x44c19c]
test ebx, ebx
je 0x420406
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov dword [edi + 8], ebx
push edi
push dword [0x44c19c]
call fcn.0041f1b0
add esp, 8
pop edi
pop ebx
pop ebp
ret

Function at 0x4209c0
Capabilities:
Get thread local storage value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [0x44c198]
test edi, edi
je 0x4209f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4209f4
mov dword [edi + 0x18], 6
mov esi, dword [ebp + 8]
cmp esi, 2
je 0x420a08
cmp esi, 1
je 0x420a08
push 1
call fcn.00426056
test edi, edi
je 0x420a15
test byte [edi + 0x94], 1
je 0x420a3d
mov eax, esi
xor ebx, ebx
sub eax, 1
je 0x420a28
sub eax, 1
jne 0x420a2f
or ebx, 0xffffffff
jmp 0x420a2f
test edi, edi
je 0x420a2f
mov ebx, dword [edi + 0x28]
call fcn.0041f390
push ebx
call fcn.0042a27f
add esp, 4
push 1
call fcn.004200f0
add esp, 4
lea eax, [edi + 0x38]
push esi
push eax
call fcn.0042304b
int3

Function at 0x4017ef
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov ebx, eax
test eax, eax
je 0x40180a
mov edx, dword [0x404050]
add edx, edx
jmp 0x401810
mov edx, dword [0x404050]
mov eax, 0x404054
call fcn.00401720
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x4031fd
push edx
sub edi, fcn.004029a7
push edi
xor eax, eax
push fcn.004029a7
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401865
mov eax, fcn.004029a7
mov ebx, esi
mov edx, edi
call fcn.00401720
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.004020e5
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret