joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c42e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x100c8a70
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x100c435e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov dword [esi + 0x30], 0x101700f0
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x2c], fcn.100ba120
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
lea eax, [esi + 0x30]
push 0x10170120
push eax
call fcn.101011a0
add esp, 8
ud2
Function at 0x100c4b20
Capabilities:
Create thread

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], 0x100c8a90
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x1017f1d9]
push 4
push 8
call fcn.10007540
add esp, 8
test eax, eax
je 0x100c4c02
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x100c4c80
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x100c4b9d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x100c4bef
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x100c4bd4
push dword [ecx + 8]
push eax
push dword [ebp - 0x24]
call fcn.10007550
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.10007550
add esp, 0xc
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 8
push 4
call fcn.10101000
add esp, 8
ud2
Function at 0x100c4f10
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 dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100c8ac0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x1017f294]
test al, al
je 0x100c50e1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100c4f5c
cmp eax, 3
jne 0x100c50da
mov ebx, dword [0x1017f298]
test ebx, ebx
je 0x100c50da
mov dword [ebp - 0x20], 0
jmp 0x100c4f87
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100c4fb8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x100c512b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100c4f80
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 0x100c4f80
test byte [ebp - 0x20], 1
je 0x100c50da
mov ebx, dword [0x1017f298]
test ebx, ebx
je 0x100c50da
mov dword [ebp - 0x20], 0
jmp 0x100c4fe7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100c5018
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x100c512b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100c4fe0
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 0x100c4fe0
test byte [ebp - 0x20], 1
je 0x100c50da
mov ebx, dword [0x1017f298]
test ebx, ebx
je 0x100c50da
mov dword [ebp - 0x20], 0
jmp 0x100c5047
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100c5078
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x100c512b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100c5040
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 0x100c5040
test byte [ebp - 0x20], 1
je 0x100c50da
mov ebx, dword [0x1017f298]
test ebx, ebx
je 0x100c50da
mov dword [ebp - 0x20], 0
jmp 0x100c50a7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100c50d4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x100c512b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100c50a0
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 0x100c50a0
test byte [ebp - 0x20], 1
jne 0x100c50f4
movzx eax, byte [0x101798c0]
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 [0x1017f298]
jmp 0x100c50ff
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100c50da
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x100c512b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100c50fc
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x100c50fc
mov dword [ebp - 0x10], 0
push 0x101704bc
call fcn.10101170
add esp, 4
ud2
Function at 0x100c5230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x100c8ad0
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
movq xmm0, qword [0x1017f2a0]
movd ecx, xmm0
pshufd xmm0, xmm0, 0x55
movd edx, xmm0
mov eax, ecx
or eax, edx
jne 0x100c52b9
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100c5368
mov ecx, dword [esi]
mov edx, dword [esi + 4]
movq xmm0, qword [esi]
mov eax, ecx
movq qword [0x1017f2a0], xmm0
or eax, edx
je 0x100c5357
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], eax
push edx
push ecx
push dword [ebp + 0xc]
push eax
mov ebx, ecx
mov dword [esi + 0x1c], ecx
call fcn.100e9360
mov edi, edx
mov dword [esi + 0x14], eax
mul ebx
imul ecx, edi, 0x3b9aca00
imul edi, ebx
mov ebx, dword [esi + 0x14]
add edi, edx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov edx, ebx
imul edx, dword [esi + 0x10]
add edi, edx
sub dword [esi + 0xc], eax
mov edx, 0x3b9aca00
mov eax, ebx
sbb ecx, edi
mul edx
mov edi, eax
mov eax, dword [esi + 0xc]
mov ebx, edx
mov edx, 0x3b9aca00
imul ecx, ecx, 0x3b9aca00
add ebx, dword [esi + 0x18]
mul edx
add edx, ecx
push dword [esi + 0x10]
push dword [esi + 0x1c]
push edx
push eax
call fcn.100e9360
add edi, eax
adc edx, ebx
push 0
push 0x3b9aca00
push edx
push edi
call fcn.100e9360
imul ecx, eax, 0x3b9aca00
sub edi, ecx
mov ecx, dword [esi + 0x30]
mov dword fs:[0], ecx
mov ecx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1016f874
push 0x19
push str.attempt_to_divide_by_zero_rustc_a4472498d7e88041f6206faf4503eb1f246fd427librarycore_src_strpattern.rs
call fcn.10101280
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x20]
push 0x101705b0
push 0x1016e840
push eax
push 0x2b
push 0x1016e860
call fcn.10101580
add esp, 0x14
ud2
Function at 0x100c6f50
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b4
mov eax, dword [esp + 0x1cc]
mov esi, dword [esp + 0x1c8]
mov edi, dword [eax]
mov ebp, dword [eax + 4]
movzx ebx, word [eax + 8]
mov eax, dword [0x1017f28c]
cmp eax, 3
jne 0x100c703b
cmp ebp, 0x17f
ja 0x100c704c
mov dword [esp + 4], ebx
lea ebx, [esp + 0x34]
push ebp
push edi
push ebx
call fcn.100e9d70
add esp, 0xc
mov byte [esp + ebp + 0x34], 0
inc ebp
lea eax, [esp + 8]
push ebp
push ebx
push eax
call fcn.100d36d0
add esp, 0xc
cmp dword [esp + 8], 0
je 0x100c6fd6
mov eax, dword [0x1016f610]
mov ecx, dword [0x1016f614]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x100c705a
mov eax, dword [esp + 0xc]
xorps xmm0, xmm0
mov ecx, esp
mov dword [esp], 0
lea edx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push ecx
push edx
push 0
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x100c7024
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x100c705a
mov eax, dword [esp]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [esp + 4]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
jmp 0x100c705a
call fcn.101008f0
cmp ebp, 0x17f
jbe 0x100c6f8b
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.10100990
add esp, 8
mov eax, esi
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100c7190
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x80
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push edx
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x100c7236
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x100c724f
cmp ecx, 0x17
jne 0x100c7273
cmp eax, 0x1b
jbe 0x100c7289
movzx eax, word [esp + 0x12]
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov word [esi], 1
rol ax, 8
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
lea esp, [ebp - 4]
pop esi
pop ebp
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x100c727e
cmp eax, 0xf
jbe 0x100c729a
movzx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x14]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov byte [esi + 4], 2
mov dword [esi + 8], 0x1017099c
mov word [esi], 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x1017097c
push 0x43
push 0x10170938
call fcn.10101280
push 0x10170928
push 0x42
push str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
call fcn.10101280
int3
Function at 0x100c7f30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x1017e7f8]
mov esi, ecx
test eax, eax
je 0x100c7f56
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x100c7f6f
cmp dword [eax + 4], 0
je 0x100c7f6f
add eax, 8
pop esi
pop edi
ret
push 0x1017e7f8
call fcn.10100b60
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x100c7f4a
mov eax, dword [0x1017e7f8]
test eax, eax
je 0x100c8009
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x100c8026
test eax, eax
jne 0x100c7fd0
movzx eax, byte [0x1017f1d9]
push 4
push 0x10
call fcn.10007540
add esp, 8
test eax, eax
je 0x100c8040
mov dword [eax], 0x1017e7f8
mov dword [eax + 4], 0
mov ecx, dword [0x1017e7f8]
test ecx, ecx
je 0x100c802b
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x100c7ff0
mov edx, dword [esi]
xor ecx, ecx
mov dword [esi], 0
cmp edx, 1
mov edx, 0
jne 0x100c7ff4
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x100c7ff4
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
ret
push 0x1017e7f8
call fcn.10100b60
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x100c7f8d
xor eax, eax
pop esi
pop edi
ret
push 0x1017e7f8
mov edi, eax
call fcn.10100b60
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x100c7fc4
push 0x10
push 4
call fcn.10101000
int3
Function at 0x100c8050
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], 0x100c8b60
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 [0x1017e808]
test eax, eax
je 0x100c8163
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x100c80a3
cmp dword [eax + 4], 0
jne 0x100c815e
mov eax, dword [0x1017e808]
test eax, eax
je 0x100c8185
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x100c81a2
test eax, eax
jne 0x100c8118
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x1017e808
movzx eax, byte [0x1017f1d9]
push 4
push 0xc
call fcn.10007540
add esp, 8
test eax, eax
je 0x100c81ce
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [0x1017e808]
test ecx, ecx
je 0x100c81b6
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x100c812d
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x100c812f
mov ecx, dword [esi + 4]
jmp 0x100c812f
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 0x100c815e
test edx, edx
je 0x100c815e
lock dec dword [edx]
jne 0x100c815e
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.100b8080
mov eax, esi
add eax, 8
jmp 0x100c81a4
push 0x1017e808
call fcn.10100b60
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x100c8099
jmp 0x100c80a3
push 0x1017e808
call fcn.10100b60
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x100c80c1
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 0x1017e808
mov edi, eax
call fcn.10100b60
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x100c810c
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.10101000
add esp, 8
ud2
Function at 0x100c8210
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x1017e818]
mov esi, ecx
test eax, eax
je 0x100c8236
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x100c824f
cmp byte [eax + 4], 0
je 0x100c824f
add eax, 5
pop esi
pop edi
ret
push 0x1017e818
call fcn.10100b60
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x100c822a
mov eax, dword [0x1017e818]
test eax, eax
je 0x100c82c5
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x100c82de
test eax, eax
jne 0x100c82a1
movzx eax, byte [0x1017f1d9]
push 4
push 8
call fcn.10007540
add esp, 8
test eax, eax
je 0x100c82f8
mov dword [eax], 0x1017e818
mov byte [eax + 4], 0
mov ecx, dword [0x1017e818]
test ecx, ecx
je 0x100c82e3
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 0x100c82b6
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
ret
push 0x1017e818
call fcn.10100b60
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x100c8265
xor eax, eax
pop esi
pop edi
ret
push 0x1017e818
mov edi, eax
call fcn.10100b60
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x100c8295
push 8
push 4
call fcn.10101000
int3
Function at 0x100c8310
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], 0x100c8b70
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 [0x1017e828]
test eax, eax
je 0x100c8423
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x100c8363
cmp dword [eax + 4], 0
jne 0x100c841e
mov eax, dword [0x1017e828]
test eax, eax
je 0x100c8445
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x100c8462
test eax, eax
jne 0x100c83d8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x1017e828
movzx eax, byte [0x1017f1d9]
push 4
push 0xc
call fcn.10007540
add esp, 8
test eax, eax
je 0x100c848e
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [0x1017e828]
test ecx, ecx
je 0x100c8476
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x100c83ed
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x100c83ef
mov ecx, dword [esi + 4]
jmp 0x100c83ef
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 0x100c841e
test edx, edx
je 0x100c841e
lock dec dword [edx]
jne 0x100c841e
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.100b80c0
mov eax, esi
add eax, 8
jmp 0x100c8464
push 0x1017e828
call fcn.10100b60
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x100c8359
jmp 0x100c8363
push 0x1017e828
call fcn.10100b60
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x100c8381
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 0x1017e828
mov edi, eax
call fcn.10100b60
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x100c83cc
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.10101000
add esp, 8
ud2
Function at 0x100c84d0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x1017e838]
test eax, eax
je 0x100c85d6
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x100c84ff
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x100c85cd
mov eax, dword [0x1017e838]
test eax, eax
je 0x100c85f8
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x100c8615
test eax, eax
jne 0x100c856b
movzx eax, byte [0x1017f1d9]
push 8
push 0x20
call fcn.10007540
add esp, 8
test eax, eax
je 0x100c8635
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x1017e838
mov ecx, dword [0x1017e838]
test ecx, ecx
je 0x100c861d
dec ecx
push eax
push ecx
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, esi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100c858a
mov edx, dword [ecx]
movups xmm0, xmmword [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ecx], 0
cmp edx, 1
je 0x100c85bc
mov esi, eax
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x100c85ac
movaps xmm0, xmmword [esp]
jmp 0x100c85ba
lea ecx, [esp + 0x10]
call fcn.100c42e0
movups xmm0, xmmword [esp + 0x10]
mov eax, esi
mov dword [eax + 4], 0
mov dword [eax], 1
movups xmmword [eax + 8], xmm0
add eax, 8
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x1017e838
call fcn.10100b60
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x100c84f4
jmp 0x100c84ff
push 0x1017e838
call fcn.10100b60
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x100c851d
xor eax, eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x1017e838
mov esi, eax
call fcn.10100b60
add esp, 4
mov ecx, eax
mov eax, esi
jmp 0x100c855f
push 0x20
push 8
call fcn.10101000
int3
Function at 0x100da3b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100da408
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x100da400
cmp ebx, ebp
ja 0x100da476
cmp ebp, dword [esp + 0x1c]
ja 0x100da482
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x100da402
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x100da3f0
jmp 0x100da45f
ja 0x100da408
cmp edx, edi
mov ebx, ebp
jne 0x100da3c5
mov edx, dword [esp + 0x24]
test edx, edx
je 0x100da463
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x100da440
mov esi, edi
sub ecx, ebx
jns 0x100da457
jmp 0x100da465
cmp edi, edx
je 0x100da46c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x100da465
xor al, 1
cmp esi, edx
jne 0x100da420
jmp 0x100da465
xor eax, eax
jmp 0x100da465
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1017321c
call fcn.10101170
push 0x1017322c
push ebp
push ebx
call fcn.10101640
push 0x1017322c
push dword [esp + 0x20]
push ebp
call fcn.10101620
int3

Function at 0x100dd721
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, 0x100
push edi
mov edi, dword [esp + 0x14]
add edx, esi
mov eax, dword [edi + 0x18]
mov ecx, edx
shr ecx, 7
add ebx, ebx
and ecx, 1
mov dword [edi + eax*4 + 0x20], ecx
mov ecx, esi
and ecx, ebx
mov eax, edx
shr eax, 8
add ecx, esi
add eax, ecx
add edx, edx
lea ecx, [eax*2]
mov eax, dword [edi + 0x18]
add ecx, ebp
mov dword [edi + eax*4 + 0x108], ecx
mov eax, ebx
inc dword [edi + 0x18]
xor eax, edx
not eax
and esi, eax
cmp edx, 0x10000
jb 0x100dd73c
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100dde18
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
inc eax
shl eax, cl
push edi
xor edi, edi
add esi, eax
mov eax, dword [esp + 0xc]
mov edx, esi
shr esi, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [eax + esi*2]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x10167ae8]
add edi, ecx
cmp esi, 1
jne 0x100dde2f
mov eax, edi
pop edi
pop esi
ret