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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x100adab7
test eax, eax
jne 0x100adbee
mov esi, dword [0x106e1160]
mov cl, 1
nop
test esi, esi
je 0x100adafd
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x100adc31
mov esi, dword [esi + 8]
test ebx, ebx
je 0x100adac0
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x100adac0
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x100adac0
test cl, 1
jne 0x100adbee
mov esi, dword [0x106e1160]
mov cl, 1
nop
test esi, esi
je 0x100adb4d
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x100adc31
mov esi, dword [esi + 8]
test ebx, ebx
je 0x100adb10
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x100adb10
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x100adb10
test cl, 1
jne 0x100adbee
mov esi, dword [0x106e1160]
mov cl, 1
nop
test esi, esi
je 0x100adb9d
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x100adc31
mov esi, dword [esi + 8]
test ebx, ebx
je 0x100adb60
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x100adb60
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x100adb60
test cl, 1
jne 0x100adbee
mov esi, dword [0x106e1160]
mov cl, 1
nop word [eax + eax]
test esi, esi
je 0x100adbe9
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x100adc31
mov esi, dword [esi + 8]
test ebx, ebx
je 0x100adbb0
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x100adbb0
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x100adbb0
test cl, 1
je 0x100adbf8
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x106e1160]
nop
test edi, edi
je 0x100adbee
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x100adc31
mov edi, dword [edi + 8]
test esi, esi
je 0x100adc00
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100adc00
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x100adc00
push 0x1069e5d8
call fcn.100dbfb0
add esp, 4
ud2
Function at 0x100adf90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov word [ebp - 0xe], ax
mov eax, dword [0x106e1144]
cmp eax, 4
jne 0x100ae07e
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
ja 0x100ae095
lea esi, [ebp - 0x1c4]
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + ebx - 0x1c4], 0
inc ebx
lea eax, [ebp - 0x24]
push ebx
push esi
push eax
call fcn.100d9ab0
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x100ae01c
mov eax, dword [0x1069ca80]
mov esi, dword [ebp + 8]
mov ecx, dword [0x1069ca84]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x100ae0a6
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x44]
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x3c], 1
push ecx
push edx
push 0
push eax
call sub.ws2_32.dll_getaddrinfo
mov esi, dword [ebp + 8]
test eax, eax
je 0x100ae067
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x100ae0a6
mov eax, dword [ebp - 0x14]
movzx ecx, word [ebp - 0xe]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x100ae0a6
call fcn.10096b20
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
jbe 0x100adfcf
lea eax, [ebp - 0x18]
mov ecx, esi
mov edx, edi
push eax
push ebx
call fcn.10097a90
add esp, 8
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b3c50
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, 8
xor eax, eax
cmp dword [ebp + 8], 0
jne 0x100b3d1a
mov esi, dword [ecx + 0x30]
test esi, esi
je 0x100b3d1a
mov eax, dword [ecx + 0x2c]
xor ebx, ebx
mov edi, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
nop dword [eax]
shr edi, 1
add edi, ebx
mov ecx, dword [eax + edi*8]
cmp ecx, edx
je 0x100b3ca3
cmp ecx, edx
lea ecx, [edi + 1]
cmova esi, edi
cmovb ebx, ecx
mov edi, esi
sub edi, ebx
ja 0x100b3c80
test ebx, ebx
je 0x100b3d18
dec ebx
mov edi, ebx
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
jae 0x100b3d22
mov esi, dword [eax + edi*8 + 4]
cmp byte [esi], 0
je 0x100b3ccd
push 8
push esi
push 0
call fcn.100b7720
add esp, 0xc
test eax, eax
je 0x100b3d0f
cmp edx, 9
jae 0x100b3d2e
mov eax, esi
jmp 0x100b3d1a
mov edi, dword [ebp - 0x14]
xor eax, eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x100b3d1a
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x18]
mov ebx, dword [edi + 0x1c]
mov esi, dword [esi + 4]
mov edx, ecx
add edx, esi
mov edx, ebx
adc edx, 0
jb 0x100b3d1a
add ecx, esi
adc ebx, 0
push 0
push dword [edi + 0x24]
push dword [edi + 0x20]
push ebx
push ecx
push dword [edi + 0x14]
push dword [ebp - 0x10]
call fcn.100b4510
add esp, 0x1c
jmp 0x100b3d1a
mov edx, 8
mov eax, esi
jmp 0x100b3d1a
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1069e860
push ecx
push edi
call fcn.100dc320
push 0x1069b0f8
push 8
push edx
call fcn.100e1b70
nop dword [eax + eax]

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [0x10101100]
mov edi, ecx
test esi, esi
je 0x100b3de2
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x100b3dda
je 0x100b3d82
test edi, edi
je 0x100b3d86
mov ebx, dword [edi]
mov dword [edi], 0
mov eax, dword [edi + 8]
test ebx, ebx
cmove eax, ebx
cmovne ebx, dword [edi + 4]
mov dword [ebp - 0x10], eax
jmp 0x100b3d8f
xor eax, eax
jmp 0x100b3dda
mov dword [ebp - 0x10], 0
xor ebx, ebx
mov eax, dword [0x106b6680]
movzx eax, byte [eax]
push 4
push 0xc
call fcn.1000d070
add esp, 8
test eax, eax
je 0x100b3e02
mov ecx, dword [ebp - 0x10]
mov dword [eax], ebx
mov byte [eax + 4], cl
mov dword [eax + 8], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x100b3dd7
push 4
push 0xc
push edi
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10101100
call fcn.100adc50
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x100b3d63
jmp 0x100b3dda
push 0xc
push 4
call fcn.100d08b0
nop dword [eax + eax]
Function at 0x100b3e10
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, 8
mov esi, dword [0x10101110]
mov edi, ecx
test esi, esi
je 0x100b3e39
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x100b3e53
add eax, 4
jmp 0x100b3ec3
push 0x10101110
call fcn.100adc50
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x100b3e31
je 0x100b3e6d
xor ecx, ecx
test edi, edi
je 0x100b3e71
cmp byte [edi], 0
mov byte [edi], 0
movzx eax, byte [edi + 1]
cmove eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x100b3e78
xor eax, eax
jmp 0x100b3ec3
mov dword [ebp - 0x14], 0
mov eax, dword [0x106b6680]
movzx eax, byte [eax]
push 4
push 8
call fcn.1000d070
add esp, 8
test eax, eax
je 0x100b3ecb
mov ebx, eax
mov dword [eax], esi
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov byte [ebx + 4], al
push esi
call sub.kernel32.dll_TlsGetValue
mov edi, eax
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x100b3ec0
push 4
push 8
push edi
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 4
call fcn.100d08b0
nop word cs:[eax + eax]
nop

Function at 0x100b3ee0
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, 0xc
mov esi, dword [0x10101130]
mov edi, ecx
test esi, esi
je 0x100b3f87
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x100b3f7f
je 0x100b3f1c
test edi, edi
je 0x100b3f20
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
je 0x100b3f22
mov ebx, dword [edi + 4]
jmp 0x100b3f22
xor eax, eax
jmp 0x100b3f7f
xor ebx, ebx
mov eax, dword [0x106b6680]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
movzx eax, byte [eax]
push 4
push 8
call fcn.1000d070
add esp, 8
test eax, eax
je 0x100b3fa7
mov dword [eax], ebx
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x100b3f7c
mov eax, dword [edi]
test eax, eax
je 0x100b3f6f
lock dec dword [eax]
jne 0x100b3f6f
mov ecx, edi
call fcn.1006f3d0
push 4
push 8
push edi
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10101130
call fcn.100adc50
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x100b3f05
jmp 0x100b3f7f
push 8
push 4
call fcn.100d08b0
add esp, 8
ud2
Function at 0x100b3fd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [0x10101150]
mov edi, ecx
test esi, esi
je 0x100b4076
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x100b406e
je 0x100b401e
test edi, edi
je 0x100b4022
mov eax, dword [edi]
xor ecx, ecx
mov ebx, 0
mov dword [edi], 0
or eax, dword [edi + 4]
mov dword [edi + 4], 0
je 0x100b401a
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov edi, ecx
jmp 0x100b4026
xor eax, eax
jmp 0x100b406e
xor ebx, ebx
xor edi, edi
mov eax, dword [0x106b6680]
movzx eax, byte [eax]
push 8
push 0x10
call fcn.1000d070
add esp, 8
test eax, eax
je 0x100b4096
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x100b406b
push 8
push 0x10
push edi
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10101150
call fcn.100adc50
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x100b3ff3
jmp 0x100b406e
push 0x10
push 8
call fcn.100d08b0
nop

Function at 0x100b40a0
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, 0xc
mov esi, dword [0x10101160]
mov edi, ecx
test esi, esi
je 0x100b4147
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x100b413f
je 0x100b40dc
test edi, edi
je 0x100b40e0
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
je 0x100b40e2
mov ebx, dword [edi + 4]
jmp 0x100b40e2
xor eax, eax
jmp 0x100b413f
xor ebx, ebx
mov eax, dword [0x106b6680]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
movzx eax, byte [eax]
push 4
push 8
call fcn.1000d070
add esp, 8
test eax, eax
je 0x100b4167
mov dword [eax], ebx
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x100b413c
mov eax, dword [edi]
test eax, eax
je 0x100b412f
lock dec dword [eax]
jne 0x100b412f
mov ecx, edi
call fcn.1006f4e0
push 4
push 8
push edi
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10101160
call fcn.100adc50
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x100b40c5
jmp 0x100b413f
push 8
push 4
call fcn.100d08b0
add esp, 8
ud2
Function at 0x100e4330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x100e4388
lea edi, [edx + eax*2]
xor ebx, ebx
movzx esi, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea eax, [ebx + esi]
jne 0x100e4380
cmp eax, ebx
jb 0x100e43f6
cmp eax, dword [ebp + 0x10]
ja 0x100e4402
add ebx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop
test esi, esi
je 0x100e4382
dec esi
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x100e4370
jmp 0x100e43df
ja 0x100e4388
cmp edx, edi
mov ebx, eax
jne 0x100e4342
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x100e43e3
mov esi, dword [ebp + 0x14]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x100e43c0
mov esi, edi
sub ecx, ebx
jns 0x100e43d7
jmp 0x100e43e5
cmp edi, edx
je 0x100e43ec
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x100e43e5
xor al, 1
cmp esi, edx
jne 0x100e43a0
jmp 0x100e43e5
xor eax, eax
jmp 0x100e43e5
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x106ab2f4
call fcn.100dbfb0
push 0x106ab304
push eax
push ebx
call fcn.100e1bd0
push 0x106ab304
push dword [ebp + 0x10]
push eax
call fcn.100e1b70
Function at 0x100f7880
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x101011a8], eax
cmp eax, 0xffffffff
je 0x100fd4b4
add esp, 0xc
ret

Function at 0x100f7d90
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x100f7dc0
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.100faee0
cmp eax, 1
je 0x100f7dc1
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x100f7e15
jmp 0x100f7e23
cmp eax, 0x6a
je 0x100f7e2d
add eax, 1
cmp byte [ebx + eax], 0
jne 0x100f7e10
cmp eax, 0x6a
je 0x100f7e2d
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
lea esi, [esi]

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x106e11f0], 1
je 0x100f7ee5
call fcn.100f7e40
mov eax, dword [0x101011a8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x100f7f10
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.100f7ce0
mov ebx, eax
mov eax, dword [entry4]
test eax, eax
je 0x100f7efc
test ebx, ebx
je 0x100f7efc
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
call fcn.100f7d90
mov esi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov edi, eax
call esi
lea edx, [ebx + 0x14]
mov dword [esp + 8], ebp
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x100fd4b9
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x101011a8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x100fd4b9
add esp, 0x2c
mov esi, ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100f8150
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x100f8180
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x100f8230
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x100f8260
cmp eax, 3
jne 0x100f816a
mov eax, dword [0x101011a8]
cmp eax, 0xffffffff
je 0x100f816a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x100f816a
test byte [eax + 0x20], 0x30
je 0x100f8290
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x100f81c3
call fcn.100f8060
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x100f81f5
mov dword [esp], eax
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x100f81e7
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.100f7600
lea eax, [ebx + 0x38]
call fcn.100f7d90
mov eax, ebx
call fcn.100f7a70
mov eax, dword [0x101011a8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
jmp 0x100f816a
mov eax, dword [0x106e11cc]
test eax, eax
je 0x100f816a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x106e11cc], 0
sub esp, 4
jmp 0x100f816a
mov dword [esp + 4], 0x100f77b0
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x106e11cc], eax
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x100f8302
test eax, eax
je 0x100f82aa
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x100f82c7
call fcn.100f8060
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x100f8331
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x100f82ec
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call fcn.100f7600
mov eax, esi
jmp 0x100f8203
test eax, eax
je 0x100f8312
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.100f7600
lea eax, [ebx + 0x38]
call fcn.100f7d90
jmp 0x100f816a
mov dword [esp], edi
call fcn.100f7600
mov eax, esi
call fcn.100f7d90
jmp 0x100f816a
Function at 0x100fc990
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x106e1224]
test esi, esi
jle 0x100fcab0
mov edi, dword [0x106e1228]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x100fc9c4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x100fca49
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x100fc9b0
mov dword [esp], eax
mov ebx, eax
call fcn.100fd180
mov edi, eax
test eax, eax
je 0x100fcad7
mov eax, dword [0x106e1228]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.100fd290
mov edx, dword [0x106e1228]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x100fcab7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x100fca42
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x100fca50
add dword [0x106e1224], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x106e1228]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x100fca42
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.100fc930
lea esi, [esi]
lea edi, [edi]
xor esi, esi
jmp 0x100fc9ce
mov eax, dword [0x106e1228]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.100fc930
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.100fc930
mov esi, esi
lea edi, [edi]

Function at 0x100fcdc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x106e1234
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x106e122c]
sub esp, 4
test ebx, ebx
je 0x100fce15
mov ebp, dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x100fce0e
test esi, esi
je 0x100fce0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x100fcdf0
mov dword [esp], 0x106e1234
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x43b628
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop esi
or edi, edi
add ecx, ecx
call fcn.0043b65e
push edi
mov ecx, dword [esp]
add esp, 4
sub edi, ecx
xor dword [edx], esi
add ecx, 0x168e562e
and edi, ecx
add edx, 1
add ecx, edi
sub edi, edi
cmp edx, ebx
jne fcn.0043b628
add ecx, edi
and ecx, edi
ret