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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
mov esi, dword [0x100a81d0]
mov byte [esp + 0xb], cl
mov ecx, esi
push edi
mov byte [esp + 0xe], dl
mov dword [esp + 0x24], esi
call fcn.100136cc
mov edi, dword [0x100a7194]
mov eax, edi
or dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 1
cmp eax, 1
jbe 0x1005165c
mov edi, dword [ebp + 8]
push 0x38
pop ecx
mov dword [esp + 0x1c], ecx
mov edx, dword [0x100a7190]
cmp byte [ecx + edx + 0x30], 0
jne 0x10051677
mov eax, dword [ecx + edx + 0x10]
cmp eax, dword [edi + 0x10]
jne 0x10051673
mov eax, dword [ecx + edx + 0x14]
cmp eax, dword [edi + 0x14]
jne 0x10051673
mov eax, dword [ecx + edx + 4]
cmp eax, dword [edi + 4]
jne 0x10051673
mov eax, dword [0x100a7190]
lea edx, [edi + 0x18]
add eax, 0x18
add ecx, eax
call fcn.10083938
test al, al
je 0x10051669
cmp byte [esp + 0xe], 0
je 0x10051688
mov eax, dword [0x100a7190]
mov ecx, dword [esp + 0x1c]
mov byte [ecx + eax + 0x30], 1
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc dword [esp + 0x18]
add ecx, 0x38
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x18], eax
jb 0x100515da
cmp edx, 0xffffffff
jne 0x100516f3
mov edi, dword [0x100a7194]
cmp eax, 0x40000
jae 0x10051776
jmp 0x100516aa
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x100a7190]
mov eax, dword [esp + 0x10]
cmp dword [ecx + edx + 0x2c], 0
jne 0x10051638
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
jmp 0x1005163c
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x100a7190]
inc dword [eax + ecx + 0x2c]
test esi, esi
je 0x100516a1
mov ecx, esi
call fcn.100136e1
mov eax, dword [esp + 0x18]
jmp 0x1005176e
test eax, eax
jne 0x100516b3
inc eax
mov dword [esp + 0x10], eax
lea esi, [eax + 1]
cmp esi, edi
je 0x100516ed
test esi, esi
jne 0x100516c5
call fcn.10051841
jmp 0x100516e9
push esi
call fcn.10051871
cmp esi, edi
jle 0x100516e9
sub esi, edi
imul eax, esi, 0x38
push eax
imul eax, edi, 0x38
push 0
add eax, dword [0x100a7190]
push eax
call fcn.1008cf50
add esp, 0xc
mov eax, dword [esp + 0x10]
mov edx, eax
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x28]
call fcn.1001febd
mov esi, dword [ebp + 8]
lea edi, [esp + 0x28]
mov al, byte [esp + 0xf]
push 0xa
pop ecx
mov byte [esp + 0x58], 0
rep movsd dword es:[edi], dword [esi]
and dword [esp + 0x30], 0
lea esi, [esp + 0x28]
and dword [esp + 0x34], 0xffffc000
imul edi, edx, 0x38
push 0xe
pop ecx
mov byte [esp + 0x50], al
mov dword [esp + 0x54], 1
add edi, dword [0x100a7190]
rep movsd dword es:[edi], dword [esi]
test al, al
je 0x1005175b
push dword [0x100a7828]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [esp + 0x14]
mov ecx, eax
mov edx, esi
call fcn.1001d00f
jmp 0x1005175f
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1005176c
call fcn.100136e1
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.10085532
int3
Function at 0x1005210f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x100a7828]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [edi + 0x28]
lea ebx, [eax + 0x34]
lea ecx, [esi + 4]
call fcn.100873f2
push dword [0x100a834c]
and dword [edi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x1005215f
cmp dword [edi + 0x2c], 0
je 0x10052155
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseThreadpoolWait]
and dword [edi + 0x2c], 0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x10052185
mov eax, dword [edi + 0x2c]
push esi
push ecx
mov dword [esi + 8], eax
mov ecx, ebx
mov eax, esp
push 0x10052080
push 0
mov byte [eax], 2
call fcn.100140ca
mov eax, dword [esi]
add eax, 0x10
push eax
call fcn.1008588c
pop edi
pop esi
pop ebx
ret

Function at 0x1005c4b7
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 1]
mov esi, ecx
mov cl, byte [ebp + 8]
lea edx, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
push eax
call fcn.1005c3ae
mov ecx, eax
mov al, byte [ebp - 1]
mov dword [ebp - 0xc], ecx
test al, al
je 0x1005c560
test ecx, ecx
je 0x1005c56c
push 1
push dword [0x100a8308]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1005c567
push ecx
mov eax, esp
push 0x10
pop ecx
mov dword [eax], 0x7f4
call fcn.1001400e
mov edi, dword [esi + 0xc]
mov ebx, eax
mov edi, dword [edi + 0x10]
test edi, edi
je 0x1005c51e
inc dword [edi + 8]
mov esi, dword [edi + 0x48]
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [ebx + 8]
push ecx
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1005c567
test edi, edi
je 0x1005c557
mov ecx, edi
call fcn.10085d3d
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], ebx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
call fcn.10014033
call fcn.1005c57c
mov ecx, dword [ebp - 8]
mov edx, eax
call fcn.10061496
int3

Function at 0x1005c9ea
Capabilities:
Get thread local storage value

Disassembly:
push 0x10
push 0x100a1f48
call fcn.10088090
mov edi, edx
mov ebx, ecx
or dword [ebp - 0x1c], 0xffffffff
push dword [0x100a7828]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x20], esi
and dword [esi + 8], 0
and dword [ebp - 4], 0
mov ecx, esi
call fcn.100152a7
push dword [ebp + 0xc]
push 0x1cff
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov dword [ebp - 0x1c], eax
xor edx, edx
mov ecx, esi
call fcn.10015310
jmp 0x1005ca4e
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1005cb01
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0x30]
push esi
cmp dword [eax + 0xa4], 0xa
movzx esi, word [eax + 0xac]
jb 0x1005cb33
jne 0x1005cb2d
cmp dword [eax + 0xa8], 0
jne 0x1005cb2d
mov eax, 0x4c3c
cmp si, ax
jb 0x1005cb33
pop esi
jmp 0x1005cbe9
pop esi
jmp 0x1005cb9a
push esi
mov esi, ecx
mov ecx, dword fs:[0x18]
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0xfdc]
test edx, edx
jns 0x1005cbb6
add eax, edx
cmp ecx, eax
jne 0x1005cbc2
mov ecx, dword [ecx + 0x708]
jmp 0x1005cbc8
mov ecx, dword [eax + 0x860]
xor eax, eax
test ecx, ecx
je 0x1005cbe7
movzx eax, word [ecx + 6]
movzx ecx, word [ecx + 4]
shl eax, 0x10
or eax, ecx
movzx edx, si
mov ecx, edx
shl ecx, 0x10
or ecx, edx
and eax, ecx
pop esi
ret
push esi
mov esi, ecx
mov ecx, dword fs:[0x18]
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0xfdc]
test edx, edx
jns 0x1005cc05
add eax, edx
cmp ecx, eax
jne 0x1005cc11
mov ecx, dword [ecx + 0x708]
jmp 0x1005cc17
mov ecx, dword [eax + 0x860]
xor eax, eax
test ecx, ecx
je 0x1005cc36
movzx eax, word [ecx + 8]
movzx ecx, word [ecx + 4]
shl eax, 0x10
or eax, ecx
movzx edx, si
mov ecx, edx
shl ecx, 0x10
or ecx, edx
and eax, ecx
pop esi
ret

Function at 0x1005cd61
Capabilities:
Get thread local storage value

Disassembly:
push 4
mov eax, 0x1008f768
call fcn.1008ace0
mov esi, ecx
push dword [0x100a7828]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esi + 0x38]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.100140aa
and dword [ebp - 4], 0
mov edi, dword [edi + 0xc]
lea esi, [edi + 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ecx, edi
mov byte [edi + 0x59], 0
call fcn.1001d84e
test esi, esi
je 0x1005cdaf
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, dword [ebp - 0x10]
mov ecx, edi
push esi
call fcn.1001cf84
test esi, esi
je 0x1005cdc5
mov ecx, esi
call fcn.10085d15
call fcn.1008aca0
ret

Function at 0x1005ff32
Capabilities:
Get thread local storage value

Disassembly:
push 0x10
push 0x100a2490
call fcn.10088090
or dword [ebp - 0x1c], 0xffffffff
push dword [0x100a7828]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x20], esi
and dword [esi + 8], 0
and dword [ebp - 4], 0
mov ecx, esi
call fcn.100152a7
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov dword [ebp - 0x1c], eax
xor edx, edx
mov ecx, esi
call fcn.10015310
jmp 0x1005ff8a
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
jne 0x1005ffa9
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
call fcn.1001402c
int3
Function at 0x1005ffaf
Capabilities:
Get thread local storage value

Disassembly:
push 0x1c
push 0x100a24b0
call fcn.10088090
push ecx
xor esi, esi
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10060067
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
or dword [ebp - 0x1c], 0xffffffff
push dword [0x100a7828]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov dword [ebp - 0x24], edi
mov dword [edi + 8], esi
mov dword [ebp - 4], esi
mov ecx, edi
call fcn.100152a7
push esi
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x2c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov dword [ebp - 0x1c], eax
xor edx, edx
mov ecx, edi
call fcn.10015310
mov dword [ebp - 4], 0xfffffffe
jmp 0x10060040
mov eax, dword [ebp - 0x1c]
sub eax, esi
je 0x1006004c
sub eax, 1
jne 0x10060083
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x10060079
movzx eax, ax
or eax, 0x80070000
push esi
xor edx, edx
mov ecx, eax
call fcn.10014eea
call fcn.1001402c
int3

Function at 0x10062cfe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10062d13
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
invalid
Function at 0x100630b3
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x100630d9
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x100630d4
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x100630be
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x100630c6
cmp edx, ebx
jne 0x10063214
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10063095
add eax, dword [eax + 4]
jmp 0x10063082
mov dword [ebp + 0xc], ebx
jmp 0x100630e4
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100630fc
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1006311a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10063178
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1006315f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10063168
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10063172
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10063154
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x100630de
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x100631c5
dec eax
je 0x100631bc
sub eax, 3
je 0x100631b3
mov dword [ebp - 4], 0x40
jmp 0x100631e2
mov dword [ebp - 4], 4
jmp 0x100631c8
mov dword [ebp - 4], 0x20
jmp 0x100631c8
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10063214
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10063194
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10062a25
out 0x1b, eax
sub dword [ecx + 0x6a1475ff], 0xd7ff5601
mov eax, esi
jmp 0x10063220
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10063275
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [edi - 0x3a]
test dword [ebp + 0x4afffffc], esi
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10062a35
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100629ea
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
invalid
invalid
inc ecx

Function at 0x10063651
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
invalid
test esi, esi

Function at 0x1006370d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
cmp dword [ebp + 0xc], 1
je 0x100638e3
cmp dword [ebp + 0xc], 8
jne 0x100638ab
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
invalid
invalid
pop esp
stc

Function at 0x10068ac6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 8]
mov eax, ecx
shr eax, 5
xor edx, edx
mov dword [0x100a81b0], ecx
mov dword [0x100a81b4], eax
jmp 0x10068af0
shr ecx, 1
inc edx
test cl, 1
je 0x10068aed
mov dword [0x100a81b8], edx
xor ecx, ecx
jmp 0x10068b02
shr eax, 1
inc ecx
test al, 1
je 0x10068aff
mov eax, dword [ebp - 0x20]
dec eax
mov dword [0x100a81bc], ecx
push 0x20
mov dword [0x100a81c0], eax
mov eax, 0x100a8038
pop ecx
and dword [eax], 0
lea eax, [eax + 0xc]
mov dword [eax - 0x14], 0xffffffff
mov dword [eax - 0x10], 0xffffffff
sub ecx, 1
jne 0x10068b1d
leave
ret
Function at 0x10078af3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [esi + 0x14]
jb 0x10078b2e
cmp edi, 0x200000
jb 0x10078b22
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 0x10]
and dword [eax], ecx
xor al, al
jmp 0x10078c28
mov ecx, esi
call fcn.10077fdc
cmp edi, dword [esi + 0x14]
jae 0x10078b22
mov bl, byte [esi + 0x20]
and dword [ebp - 8], 0
movzx eax, bl
imul ecx, eax, 6
push 7
pop edx
mov dword [ebp - 4], ecx
lea ecx, [esi + 0x3c]
mov dword [ebp - 0xc], ecx
test bl, bl
je 0x10078c16
mov ecx, dword [ebp - 4]
shl edx, cl
and edx, edi
shr edx, cl
mov ecx, dword [ebp - 0xc]
movzx eax, dx
mov dword [ebp - 0x14], eax
movzx eax, ax
mov edx, dword [ecx + eax*4 + 0x10]
test edx, edx
jne 0x10078bf7
movzx eax, bl
mov ebx, dword [ebp - 8]
dec eax
cmp ebx, eax
mov dword [ebp - 0xc], eax
sete byte [ebp - 0x10]
jne 0x10078b98
mov eax, dword [esi + 0x28]
cmp eax, 0x1fe
jne 0x10078b91
xor eax, eax
inc eax
jmp 0x10078b92
inc eax
mov dword [esi + 0x28], eax
inc dword [esi + 0x34]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ecx
call fcn.10078211
mov edx, eax
cmp ebx, dword [ebp - 0xc]
jne 0x10078bf7
xor ebx, ebx
cmp byte [edx + 0xa], bl
jbe 0x10078bd5
mov ecx, dword [edx + 4]
mov dword [ebp - 0x14], 0x1ff
mov ax, word [ecx + ebx*2]
xor ax, word [esi + 0x28]
and ax, word [ebp - 0x14]
xor word [ecx + ebx*2], ax
inc ebx
movzx eax, byte [edx + 0xa]
cmp ebx, eax
jb 0x10078bb2
mov eax, dword [esi + 0x28]
dec eax
cmp eax, 0xffff
ja 0x10078c2f
mov ax, word [esi + 0x28]
dec ax
movzx eax, ax
test ax, ax
jne 0x10078bf3
mov eax, 0x1fe
mov word [edx + 8], ax
mov ecx, dword [ebp - 8]
sub dword [ebp - 4], 6
inc ecx
mov bl, byte [esi + 0x20]
movzx eax, bl
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
push 0x3f
pop edx
cmp ecx, eax
jl 0x10078b4f
mov ecx, dword [ebp + 0x10]
and edi, edx
mov esi, dword [ebp - 0xc]
mov al, 1
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
mov word [ecx], di
pop edi
pop esi
pop ebx
leave
ret 0xc
call fcn.10085532
int3
Function at 0x1007b2e8
Capabilities:
Create thread

Disassembly:
push 0x24
mov eax, 0x10097171
call fcn.1008ace0
mov dword [ebp - 0x18], edx
xor esi, esi
mov eax, ecx
mov dword [ebp - 0x28], esi
mov edi, esi
mov dword [ebp - 0x1c], esi
mov ebx, 0x80070000
sub eax, 1
je 0x1007b31a
sub eax, 1
je 0x1007b31a
lea esi, [ebx + 0x57]
jmp 0x1007b3db
push esi
push esi
push 1
push esi
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 4]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], esi
je 0x1007b43b
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push 0x1007b550
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 4]
mov edi, eax
test edi, edi
jne 0x1007b362
push 0x1000e4e8
mov edx, 0xdf
jmp 0x1007b445
mov eax, dword [ebp - 0x30]
push 0xffffffffffffffff
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push esi
push eax
push 2
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, esi
je 0x1007b3a6
sub eax, 1
je 0x1007b399
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x1007b394
movzx eax, ax
or eax, ebx
test eax, eax
jns 0x1007b3db
push eax
jmp 0x1007b39e
push 0x8000ffff
call dword [sym.imp.api_ms_win_core_winrt_error_l1_1_0.dll_RoFailFastWithErrorContext]
jmp 0x1007b3db
mov ecx, dword [ebp - 0x28]
mov ebx, esi
test ecx, ecx
je 0x1007b3d1
mov ebx, ecx
mov dword [ebp - 4], esi
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100a9324]
call esi
xor esi, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.1007b900
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov ebx, 0x80070000
push dword [ebp - 0x30]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x1007b3fe
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x1007b3f7
movzx eax, ax
or eax, ebx
push eax
call dword [sym.imp.api_ms_win_core_winrt_error_l1_1_0.dll_RoFailFastWithErrorContext]
and dword [ebp - 0x30], 0
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x1007b423
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x1007b41c
movzx eax, ax
or eax, ebx
push eax
call dword [sym.imp.api_ms_win_core_winrt_error_l1_1_0.dll_RoFailFastWithErrorContext]
lea ecx, [ebp - 0x1c]
call fcn.1007b900
lea ecx, [ebp - 0x28]
call fcn.1007b900
mov eax, esi
call fcn.1008aca0
ret
push 0x1000e4e8
mov edx, 0xd6
call fcn.10011bb8
int3
Function at 0x10085e96
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [0x100a7828]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 4], ebx
jmp 0x10085f3c
mov eax, dword [edi + 0x14]
mov dword [ebp - 8], eax
push ecx
mov esi, dword [eax]
mov ebx, dword [esi + 0xc]
lea edx, [esi + 8]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
call fcn.10014953
mov edx, dword [edi + 0x1c]
mov ecx, eax
and ecx, dword [edi + 0x28]
cmp dword [edx + ecx*8 + 4], esi
jne 0x10085ef4
cmp dword [edx + ecx*8], esi
jne 0x10085eeb
mov eax, dword [ebp - 8]
mov dword [edx + ecx*8], eax
jmp 0x10085eee
mov eax, dword [esi + 4]
mov dword [edx + ecx*8 + 4], eax
jmp 0x10085efe
cmp dword [edx + ecx*8], esi
jne 0x10085efe
mov eax, dword [esi]
mov dword [edx + ecx*8], eax
mov ecx, dword [esi]
dec dword [edi + 0x18]
mov eax, dword [esi + 4]
push 0x1000ee03
push esi
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
call fcn.10087ed0
cmp dword [ebp - 0xc], 0x10008544
pop ecx
pop ecx
jne 0x10085f69
test ebx, ebx
je 0x10085f39
mov ecx, ebx
call fcn.10085f86
push 0x10
push ebx
call fcn.10087ed0
pop ecx
pop ecx
mov ebx, dword [ebp - 4]
cmp dword [edi + 0x18], 0
jne 0x10085eb7
mov esi, dword [edi + 0xc]
test esi, esi
je 0x10085f64
and dword [edi + 0xc], 0
mov edx, esi
push edi
mov ecx, ebx
call fcn.100155b1
mov edx, esi
mov ecx, ebx
call fcn.10015601
pop edi
pop esi
pop ebx
leave
ret
test ebx, ebx
je 0x10085f39
mov ecx, dword [ebp - 4]
mov edx, ebx
push edi
call fcn.100155b1
mov edx, ebx
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.10015601
jmp 0x10085f3c
Function at 0x10085f9d
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea edx, [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
push ecx
lea ebx, [edi + 0x10]
call fcn.10014953
push eax
mov eax, edx
mov ecx, ebx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10014902
mov eax, dword [eax + 4]
test eax, eax
jne 0x10085fcd
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 0x14]
je 0x10085fda
mov eax, dword [eax + 0xc]
jmp 0x1008607b
push dword [0x100a7828]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [edi + 0xc]
mov ecx, eax
push 0
mov dword [ebp - 8], eax
call fcn.1001532f
mov ecx, dword [ebp - 8]
mov esi, eax
call fcn.100152a7
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x24]
lea eax, [ebp + 8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call fcn.100860de
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.10015310
cmp dword [ebp - 0x14], 0x80004002
lea eax, [ebp + 8]
mov ecx, ebx
push eax
jne 0x1008604b
lea eax, [ebp - 0xc]
push eax
call fcn.10086143
mov eax, dword [eax]
and dword [eax + 0xc], 0
xor eax, eax
jmp 0x1008607b
lea eax, [ebp - 0x1c]
push eax
call fcn.10086143
mov ecx, dword [ebp - 8]
mov esi, dword [eax]
cmp dword [esi + 0xc], 0
jne 0x10086070
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov edx, dword [ebp - 0x10]
push edi
call fcn.1001553a
jmp 0x10086078
mov edx, dword [ebp - 0x10]
call fcn.10015601
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebx
leave
ret 4