joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
lea eax, [edi + 0xe6f8]
push dword [eax]
mov dword [eax], 0
push eax
push edi
jmp 0x417f5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417f61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417f50
mov eax, 1
add ebx, ebx
jne 0x417f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417f68
jne 0x417f84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417f68
xor ecx, ecx
sub eax, 3
jb 0x417f98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41800a
mov ebp, eax
add ebx, ebx
jne 0x417fa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417fd4
inc ecx
add ebx, ebx
jne 0x417fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417fb5
jne 0x417fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417fb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417ff4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417fe5
jmp 0x417f56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417ff4
add edi, ecx
jmp 0x417f56
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x446
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x418016
cmp byte [edi], 5
jne 0x418016
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41801b
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x41808a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18a44]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18ac4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418048
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18acc]
or eax, eax
je 0x418084
mov dword [ebx], eax
add ebx, 4
jmp 0x418065
call dword [esi + 0x18ac8]
mov ebp, dword [esi + 0x18ad0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4180be
sub esp, 0xffffff80
jmp 0x40d86c
Function at 0x1000582c
Capabilities:
Parse pe header

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
movzx esi, word [edx]
mov ecx, dword [edx + 0x3c]
xor ebx, ebx
test ecx, ecx
setne bl
xor edi, edi
cmp esi, 0x5a4d
lea ebx, [ebx + ebx*4 + 1]
cmovne ebx, edi
cmp bl, 6
jne 0x100058aa
cmp ecx, 0x40
jb 0x100058f8
mov esi, dword [esp + 0x18]
cmp ecx, esi
ja 0x10005905
lea esi, [edx + ecx]
movzx edi, word [edx + ecx + 0x18]
cmp edi, 0x10b
je 0x100058ae
cmp edi, 0x20b
jne 0x100058d4
mov bl, 2
cmp dword [esi], 0x4550
jne 0x100058d0
movzx edi, word [esi + 4]
mov bl, 3
cmp edi, 0x8664
jne 0x100058d0
mov bl, 4
test byte [esi + 0x16], 2
je 0x100058d0
xor edi, edi
inc edi
jmp 0x100058e2
mov byte [eax], bl
jmp 0x100058d7
mov bl, 2
cmp dword [esi], 0x4550
jne 0x100058d0
movzx edi, word [esi + 4]
mov bl, 3
cmp edi, 0x14c
jne 0x100058d0
xor edi, edi
mov bl, 4
test byte [esi + 0x16], 2
jne 0x100058e2
mov byte [eax], bl
jmp 0x100058d7
mov byte [eax], 5
mov dword [eax + 0xc], 2
pop esi
pop edi
pop ebx
ret
add ecx, 0xffffffc0
mov dword [eax], edx
add edx, 0x40
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
jmp 0x100058de
push 0x1004ada4
push ecx
push 0x40
call fcn.10049970
push 0x1004ada4
push esi
push ecx
call fcn.10049950
Function at 0x1000a880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x448
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10016b40
mov edi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp edi, 0x201
jae 0x1000a910
jmp 0x1000a8fe
jbe 0x1000a996
cmp edi, 0x201
jae 0x1000a910
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x454]
mov esi, edi
jmp 0x1000a941
mov esi, dword [ebp - 0x34]
sub edi, esi
je 0x1000a935
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
mov edx, esi
push edi
call fcn.10048a70
add esp, 4
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1000a965
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1000aa03
cmp edi, esi
jne 0x1000a8f0
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000aa22
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x1000a8fe
jmp 0x1000a910
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x1000aa3f
lea eax, [ebp - 0x44]
push edi
push ebx
push eax
call fcn.1000dcb0
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov esi, dword [ebp + 8]
movsd qword [ebp - 0x4c], xmm1
movsd qword [ebp - 0x54], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000a9ed
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.100054e0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x448
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x1000a9dd
jmp 0x1000a9ed
mov dword [ebp - 0x10], 0
push 0x10054a2c
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_ab5bda1aa70f707014e2e691e43bc37a8819252alibrary_alloc_src_vecmod.rsl1
call fcn.10049640
add esp, 0xc
jmp 0x1000aa4e
push 0x10054a1c
push eax
push edi
call fcn.10049950
add esp, 0xc
ud2
Function at 0x1000e500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov dword [ebp - 0x14], ecx
mov ecx, edx
mov edi, edx
call fcn.1000df70
mov ecx, dword [edi + 4]
cmp eax, ecx
ja 0x1000e61b
mov edx, dword [edi]
mov ebx, edx
lea esi, [edx + eax]
movzx edx, byte [edi + 8]
mov edi, eax
sub edi, ecx
mov byte [ebp - 0xd], dl
jne 0x1000e547
mov ebx, dword [ebp - 0x14]
xor edi, edi
movzx edx, byte [ebp - 0xd]
sub ecx, eax
jne 0x1000e5c3
jmp 0x1000e5a1
cmp dl, 3
mov dword [ebp - 0x18], esi
jae 0x1000e56f
mov edx, ebx
lea esi, [ecx + ebx - 1]
mov ebx, dword [ebp - 0x14]
mov edi, eax
sub edi, ecx
nop dword [eax]
cmp byte [esi], 0x5c
je 0x1000e605
dec esi
inc edi
jne 0x1000e560
jmp 0x1000e594
mov edx, ebx
lea esi, [ecx + ebx - 1]
nop word cs:[eax + eax]
nop
movzx ebx, byte [esi]
cmp ebx, 0x2f
je 0x1000e5a5
cmp ebx, 0x5c
je 0x1000e5a5
dec esi
inc edi
jne 0x1000e580
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor edi, edi
movzx edx, byte [ebp - 0xd]
sub ecx, eax
jne 0x1000e5c3
mov al, 0xa
jmp 0x1000e5f0
mov ebx, dword [ebp - 0x14]
not edi
lea eax, [eax + edi + 1]
cmp eax, ecx
ja 0x1000e60f
add edx, eax
mov edi, 1
mov esi, edx
movzx edx, byte [ebp - 0xd]
sub ecx, eax
je 0x1000e5a1
mov al, 9
cmp ecx, 2
je 0x1000e5e2
cmp ecx, 1
jne 0x1000e5f0
cmp byte [esi], 0x2e
jne 0x1000e5f0
xor eax, eax
cmp dl, 3
setae al
lea eax, [eax + eax*2 + 7]
jmp 0x1000e5f0
cmp byte [esi], 0x2e
jne 0x1000e5f0
cmp byte [esi + 1], 0x2e
sete al
xor al, 9
add edi, ecx
mov dword [ebx], edi
mov byte [ebx + 4], al
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
not edi
lea eax, [eax + edi + 1]
cmp eax, ecx
jbe 0x1000e5b2
push 0x10053b84
push ecx
push eax
call fcn.10049930
push 0x10053b74
push ecx
push eax
call fcn.10049930
int3
Function at 0x10012d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10012d44
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x10012d4a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x10012d7f
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x10012d8f
mov dword [esi + 4], 0
jmp 0x10012da1
cmp eax, 0x103
je 0x10012dbb
test eax, eax
js 0x10012dac
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10012da4
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100545a8
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.1000d5f0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.100096a0
mov ecx, 7
int 0x29
ud2
Function at 0x10012e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10012e64
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x10012e6a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x10012ea6
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x10012ec8
test eax, eax
js 0x10012eb2
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x10012ebb
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100545a8
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.1000d5f0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.100096a0
mov ecx, 7
int 0x29
ud2
Function at 0x10013bc0
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, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10016e10
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x10013bfe
test eax, eax
jne 0x10013d7a
mov ebx, dword [0x10060a6c]
test ebx, ebx
je 0x10013d7a
mov dword [ebp - 0x20], 0
jmp 0x10013c27
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x10013c58
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x10013dcb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10013c20
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x10013c20
test byte [ebp - 0x20], 1
je 0x10013d7a
mov ebx, dword [0x10060a6c]
test ebx, ebx
je 0x10013d7a
mov dword [ebp - 0x20], 0
jmp 0x10013c87
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x10013cb8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x10013dcb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10013c80
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x10013c80
test byte [ebp - 0x20], 1
je 0x10013d7a
mov ebx, dword [0x10060a6c]
test ebx, ebx
je 0x10013d7a
mov dword [ebp - 0x20], 0
jmp 0x10013ce7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x10013d18
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x10013dcb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10013ce0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x10013ce0
test byte [ebp - 0x20], 1
je 0x10013d7a
mov ebx, dword [0x10060a6c]
test ebx, ebx
je 0x10013d7a
mov dword [ebp - 0x20], 0
jmp 0x10013d47
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x10013d74
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x10013dcb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10013d40
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x10013d40
test byte [ebp - 0x20], 1
jne 0x10013d94
movzx eax, byte [0x1005d680]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x10060a6c]
jmp 0x10013d9f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x10013d7a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x10013dcb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10013d9c
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x10013d9c
mov dword [ebp - 0x10], 0
push 0x100549ac
call fcn.10049530
add esp, 4
ud2
Function at 0x10016510
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x10060024]
mov esi, ecx
test eax, eax
je 0x1001653a
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x10016553
cmp dword [eax + 4], 0
je 0x10016553
add eax, 8
pop esi
pop edi
pop ebp
ret
push 0x10060024
call fcn.10048dd0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x1001652d
mov eax, dword [0x10060024]
test eax, eax
je 0x100165ee
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x1001660b
test eax, eax
jne 0x100165b4
movzx eax, byte [0x100609d9]
push 4
push 0x10
call fcn.100054d0
add esp, 8
test eax, eax
je 0x10016626
mov dword [eax], 0x10060024
mov dword [eax + 4], 0
mov ecx, dword [0x10060024]
test ecx, ecx
je 0x10016611
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x100165d4
mov edx, dword [esi]
xor ecx, ecx
mov dword [esi], 0
cmp edx, 1
mov edx, 0
jne 0x100165d8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x100165d8
xor ecx, ecx
xor edx, edx
lea esi, [eax + 8]
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
mov eax, esi
pop esi
pop edi
pop ebp
ret
push 0x10060024
call fcn.10048dd0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x10016571
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x10060024
mov edi, eax
call fcn.10048dd0
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x100165a8
push 0x10
push 4
call fcn.100494b0
int3

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x10060034]
mov esi, ecx
test eax, eax
je 0x1001665a
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x10016673
cmp byte [eax + 4], 0
je 0x10016673
add eax, 5
pop esi
pop edi
pop ebp
ret
push 0x10060034
call fcn.10048dd0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x1001664d
mov eax, dword [0x10060034]
test eax, eax
je 0x100166ea
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x10016703
test eax, eax
jne 0x100166c5
movzx eax, byte [0x100609d9]
push 4
push 8
call fcn.100054d0
add esp, 8
test eax, eax
je 0x1001671e
mov dword [eax], 0x10060034
mov byte [eax + 4], 0
mov ecx, dword [0x10060034]
test ecx, ecx
je 0x10016709
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
xor ecx, ecx
test esi, esi
je 0x100166da
cmp byte [esi], 0
mov byte [esi], 0
movzx edx, byte [esi + 1]
cmove edx, ecx
mov ecx, edx
lea edx, [eax + 5]
mov byte [eax + 4], 1
mov byte [eax + 5], cl
mov eax, edx
pop esi
pop edi
pop ebp
ret
push 0x10060034
call fcn.10048dd0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x10016689
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x10060034
mov edi, eax
call fcn.10048dd0
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x100166b9
push 8
push 4
call fcn.100494b0
int3
Function at 0x10016730
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, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10016ea0
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x10060044]
test eax, eax
je 0x10016843
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x10016783
cmp dword [eax + 4], 0
jne 0x1001683e
mov eax, dword [0x10060044]
test eax, eax
je 0x10016865
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x10016882
test eax, eax
jne 0x100167f8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x10060044
movzx eax, byte [0x100609d9]
push 4
push 0xc
call fcn.100054d0
add esp, 8
test eax, eax
je 0x100168ae
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [0x10060044]
test ecx, ecx
je 0x10016896
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x1001680d
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x1001680f
mov ecx, dword [esi + 4]
jmp 0x1001680f
xor ecx, ecx
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
test esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
je 0x1001683e
test edx, edx
je 0x1001683e
lock dec dword [edx]
jne 0x1001683e
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.1000a040
mov eax, esi
add eax, 8
jmp 0x10016884
push 0x10060044
call fcn.10048dd0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x10016779
jmp 0x10016783
push 0x10060044
call fcn.10048dd0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x100167a1
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10060044
mov edi, eax
call fcn.10048dd0
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x100167ec
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.100494b0
add esp, 8
ud2
Function at 0x100168f0
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, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10016eb0
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x10060054]
test eax, eax
je 0x10016a03
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x10016943
cmp dword [eax + 4], 0
jne 0x100169fe
mov eax, dword [0x10060054]
test eax, eax
je 0x10016a25
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x10016a42
test eax, eax
jne 0x100169b8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x10060054
movzx eax, byte [0x100609d9]
push 4
push 0xc
call fcn.100054d0
add esp, 8
test eax, eax
je 0x10016a6e
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [0x10060054]
test ecx, ecx
je 0x10016a56
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x100169cd
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x100169cf
mov ecx, dword [esi + 4]
jmp 0x100169cf
xor ecx, ecx
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
test esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
je 0x100169fe
test edx, edx
je 0x100169fe
lock dec dword [edx]
jne 0x100169fe
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.1000a0a0
mov eax, esi
add eax, 8
jmp 0x10016a44
push 0x10060054
call fcn.10048dd0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x10016939
jmp 0x10016943
push 0x10060054
call fcn.10048dd0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x10016961
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10060054
mov edi, eax
call fcn.10048dd0
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x100169ac
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.100494b0
add esp, 8
ud2