joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10055420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.10057760
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
cmp ecx, 0x80000000
je 0x10055470
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
call fcn.1004a330
mov edi, dword [ebp - 0x1c]
cmp edi, 0x80000000
jne 0x100554b7
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp al, 3
jne 0x100554ac
mov ebx, dword [edi + 4]
mov dword [ebp - 0x10], esi
mov esi, dword [edi]
mov eax, dword [ebx]
test eax, eax
je 0x10055488
push esi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005549c
push dword [ebx + 8]
push eax
push esi
call fcn.10004ab0
add esp, 0xc
push 4
push 0xc
push edi
call fcn.10004ab0
add esp, 0xc
mov esi, dword [ebp - 0x10]
mov dword [esi], 0x80000000
add esp, 0x28
jmp 0x100554f3
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push ebx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x100554db
mov eax, dword [ebp - 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
add esp, 0x28
jmp 0x100554f3
test edi, edi
mov dword [esi], 0x80000000
je 0x100554d6
add edi, edi
push 2
push edi
push ebx
call fcn.10004ab0
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10056bd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x100e08c0]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
push 4
push 8
call fcn.10004aa0
add esp, 8
test eax, eax
je 0x10056c69
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 0x10056cc0
push eax
push 0
call sub.KERNEL32.dll_CreateThread
test eax, eax
je 0x10056c22
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x10056c62
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x10056c33
push edi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x10056c47
push dword [ebx + 8]
push eax
push edi
call fcn.10004ab0
add esp, 0xc
push 4
push 8
push esi
call fcn.10004ab0
add esp, 0xc
call sub.KERNEL32.dll_GetLastError
mov edi, dword [ebp + 8]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
mov ebx, dword [ebp + 0x14]
push 8
push 4
call fcn.1007e530
add esp, 8
ud2

Function at 0x1005b400
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0xc]
test eax, 0x3fffffff
jne 0x1005b3e8
mov esi, dword [ebp + 8]
cmp eax, 0x80000000
jne 0x1005b396
xor ecx, ecx
mov eax, 0x80000000
lock cmpxchg dword [esi], ecx
jne 0x1005b396
lock inc dword [esi + 4]
add esi, 4
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
pop esi
pop ebp
ret
cmp eax, 0xc0000000
je 0x1005b3b3
cmp eax, 0x40000000
jne 0x1005b393
xor ecx, ecx
mov eax, 0x40000000
lock cmpxchg dword [esi], ecx
jne 0x1005b393
jmp 0x1005b3de
mov ecx, 0x40000000
mov eax, 0xc0000000
lock cmpxchg dword [esi], ecx
jne 0x1005b393
lock inc dword [esi + 4]
lea eax, [esi + 4]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
xor ecx, ecx
mov eax, 0x40000000
lock cmpxchg dword [esi], ecx
jne 0x1005b393
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressAll]
pop esi
pop ebp
ret
push 0x100c87f8
push 0x24
push str.assertion_failed:_is_unlocked_state_
call fcn.10089e60
nop dword [eax]
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
push 1
push esi
call sub.KERNEL32.dll_TlsSetValue
push 8
push 0x10
push edi
call fcn.10004ab0
add esp, 0xc
push 0
push esi
call sub.KERNEL32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret
Function at 0x1005b580
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 0x1005b597
test eax, eax
jne 0x1005b6ce
mov esi, dword [0x100fc110]
mov cl, 1
nop
test esi, esi
je 0x1005b5dd
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x1005b711
mov esi, dword [esi + 8]
test ebx, ebx
je 0x1005b5a0
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.KERNEL32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x1005b5a0
push 0
push ebx
mov ebx, eax
call sub.KERNEL32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x1005b5a0
test cl, 1
jne 0x1005b6ce
mov esi, dword [0x100fc110]
mov cl, 1
nop
test esi, esi
je 0x1005b62d
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x1005b711
mov esi, dword [esi + 8]
test ebx, ebx
je 0x1005b5f0
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.KERNEL32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x1005b5f0
push 0
push ebx
mov ebx, eax
call sub.KERNEL32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x1005b5f0
test cl, 1
jne 0x1005b6ce
mov esi, dword [0x100fc110]
mov cl, 1
nop
test esi, esi
je 0x1005b67d
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x1005b711
mov esi, dword [esi + 8]
test ebx, ebx
je 0x1005b640
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.KERNEL32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x1005b640
push 0
push ebx
mov ebx, eax
call sub.KERNEL32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x1005b640
test cl, 1
jne 0x1005b6ce
mov esi, dword [0x100fc110]
mov cl, 1
nop word [eax + eax]
test esi, esi
je 0x1005b6c9
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x1005b711
mov esi, dword [esi + 8]
test ebx, ebx
je 0x1005b690
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.KERNEL32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x1005b690
push 0
push ebx
mov ebx, eax
call sub.KERNEL32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x1005b690
test cl, 1
je 0x1005b6d8
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x100fc110]
nop
test edi, edi
je 0x1005b6ce
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1005b711
mov edi, dword [edi + 8]
test esi, esi
je 0x1005b6e0
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1005b6e0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x1005b6e0
push 0x100c8888
call fcn.10089c30
add esp, 4
ud2
Function at 0x1005ba70
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 [0x100fc0f4]
cmp eax, 4
jne 0x1005bb5e
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
ja 0x1005bb75
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.10087730
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x1005bafc
mov eax, dword [0x100c6d30]
mov esi, dword [ebp + 8]
mov ecx, dword [0x100c6d34]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x1005bb86
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 0x1005bb47
call sub.WS2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x1005bb86
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 0x1005bb86
call fcn.10044600
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
jbe 0x1005baaf
lea eax, [ebp - 0x18]
mov ecx, esi
mov edx, edi
push eax
push ebx
call fcn.10045570
add esp, 8
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1005c810
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [ebp + 8]
mov edi, ecx
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
movsd qword [esp + 0x32], xmm0
movsd qword [esp + 0x2c], xmm0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0x10]
push esi
push eax
call fcn.1004a760
add esp, 8
cmp byte [esp + 0x10], 4
jne 0x1005c874
mov esi, dword [esp + 0x14]
jmp 0x1005c881
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp al, 4
jne 0x1005c8fb
lea ebx, [esp + 0x18]
mov edx, esi
mov ecx, ebx
call fcn.1004a980
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x1005c8e9
cmp byte [esp + 0x20], 3
jne 0x1005c8f0
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edi
mov edi, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x1005c8bf
push ebx
call eax
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
je 0x1005c8d3
push dword [edi + 8]
push eax
push ebx
call fcn.10004ab0
add esp, 0xc
push 4
push 0xc
push dword [esp + 0x14]
call fcn.10004ab0
add esp, 0xc
mov edi, dword [esp + 4]
jmp 0x1005c8f0
cmp dword [esp + 0x54], 0
je 0x1005c947
mov dword [edi], 0
jmp 0x1005c9ee
cmp al, 3
jne 0x1005c93c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x1005c917
push dword [esp + 4]
call eax
add esp, 4
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 4]
test eax, eax
je 0x1005c92f
push dword [ebx + 8]
push eax
push ecx
call fcn.10004ab0
add esp, 0xc
push 4
push 0xc
push esi
call fcn.10004ab0
add esp, 0xc
mov dword [edi], 0
jmp 0x1005c9f4
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 0xc], eax
je 0x1005c979
mov dword [esp + 0x18], 0
call sub.KERNEL32.dll_GetCurrentProcess
push 2
push 0
push 0
push ebx
push eax
push esi
push eax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x1005c9e3
mov eax, dword [esp + 0x18]
jmp 0x1005c97b
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x1c], eax
push eax
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x1005c9d2
push dword [esp + 0xc]
push 0
push 0
push 4
push eax
mov dword [esp + 0x18], edi
mov edi, eax
call sub.KERNEL32.dll_MapViewOfFile
mov ebx, eax
push edi
mov edi, dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
test ebx, ebx
je 0x1005c9d2
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
mov dword [edi], 1
jmp 0x1005c9ee
mov dword [edi], 0
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
jmp 0x1005c9ee
call sub.KERNEL32.dll_GetLastError
mov dword [edi], 0
push esi
call sub.KERNEL32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10061730
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 0x100617fa
mov esi, dword [ecx + 0x30]
test esi, esi
je 0x100617fa
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 0x10061783
cmp ecx, edx
lea ecx, [edi + 1]
cmova esi, edi
cmovb ebx, ecx
mov edi, esi
sub edi, ebx
ja 0x10061760
test ebx, ebx
je 0x100617f8
dec ebx
mov edi, ebx
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
jae 0x10061802
mov esi, dword [eax + edi*8 + 4]
cmp byte [esi], 0
je 0x100617ad
push 8
push esi
push 0
call fcn.100653a0
add esp, 0xc
test eax, eax
je 0x100617ef
cmp edx, 9
jae 0x1006180e
mov eax, esi
jmp 0x100617fa
mov edi, dword [ebp - 0x14]
xor eax, eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x100617fa
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 0x100617fa
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.10062190
add esp, 0x1c
jmp 0x100617fa
mov edx, 8
mov eax, esi
jmp 0x100617fa
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100c8b10
push ecx
push edi
call fcn.10089fa0
push 0x100c53a8
push 8
push edx
call fcn.1008f7f0
nop dword [eax + eax]

Function at 0x10061820
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 [0x100ba028]
mov edi, ecx
test esi, esi
je 0x100618c2
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x100618ba
je 0x10061862
test edi, edi
je 0x10061866
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 0x1006186f
xor eax, eax
jmp 0x100618ba
mov dword [ebp - 0x10], 0
xor ebx, ebx
mov eax, dword [0x100e08c0]
movzx eax, byte [eax]
push 4
push 0xc
call fcn.10004aa0
add esp, 8
test eax, eax
je 0x100618e2
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 0x100618b7
push 4
push 0xc
push edi
call fcn.10004ab0
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100ba028
call fcn.1005b730
add esp, 4
mov esi, eax
push esi
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x10061843
jmp 0x100618ba
push 0xc
push 4
call fcn.1007e530
nop dword [eax + eax]
Function at 0x100618f0
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 [0x100ba038]
mov edi, ecx
test esi, esi
je 0x10061919
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x10061933
add eax, 4
jmp 0x100619a3
push 0x100ba038
call fcn.1005b730
add esp, 4
mov esi, eax
push esi
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x10061911
je 0x1006194d
xor ecx, ecx
test edi, edi
je 0x10061951
cmp byte [edi], 0
mov byte [edi], 0
movzx eax, byte [edi + 1]
cmove eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x10061958
xor eax, eax
jmp 0x100619a3
mov dword [ebp - 0x14], 0
mov eax, dword [0x100e08c0]
movzx eax, byte [eax]
push 4
push 8
call fcn.10004aa0
add esp, 8
test eax, eax
je 0x100619ab
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 0x100619a0
push 4
push 8
push edi
call fcn.10004ab0
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.1007e530
nop word cs:[eax + eax]
nop

Function at 0x100619c0
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 [0x100ba058]
mov edi, ecx
test esi, esi
je 0x10061a67
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x10061a5f
je 0x100619fc
test edi, edi
je 0x10061a00
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
je 0x10061a02
mov ebx, dword [edi + 4]
jmp 0x10061a02
xor eax, eax
jmp 0x10061a5f
xor ebx, ebx
mov eax, dword [0x100e08c0]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
movzx eax, byte [eax]
push 4
push 8
call fcn.10004aa0
add esp, 8
test eax, eax
je 0x10061a87
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 0x10061a5c
mov eax, dword [edi]
test eax, eax
je 0x10061a4f
lock dec dword [eax]
jne 0x10061a4f
mov ecx, edi
call fcn.1001ceb0
push 4
push 8
push edi
call fcn.10004ab0
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100ba058
call fcn.1005b730
add esp, 4
mov esi, eax
push esi
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x100619e5
jmp 0x10061a5f
push 8
push 4
call fcn.1007e530
add esp, 8
ud2
Function at 0x10061ab0
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 [0x100ba078]
mov edi, ecx
test esi, esi
je 0x10061b56
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x10061b4e
je 0x10061afe
test edi, edi
je 0x10061b02
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 0x10061afa
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov edi, ecx
jmp 0x10061b06
xor eax, eax
jmp 0x10061b4e
xor ebx, ebx
xor edi, edi
mov eax, dword [0x100e08c0]
movzx eax, byte [eax]
push 8
push 0x10
call fcn.10004aa0
add esp, 8
test eax, eax
je 0x10061b76
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 0x10061b4b
push 8
push 0x10
push edi
call fcn.10004ab0
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100ba078
call fcn.1005b730
add esp, 4
mov esi, eax
push esi
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x10061ad3
jmp 0x10061b4e
push 0x10
push 8
call fcn.1007e530
nop

Function at 0x10061b80
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 [0x100ba088]
mov edi, ecx
test esi, esi
je 0x10061c27
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x10061c1f
je 0x10061bbc
test edi, edi
je 0x10061bc0
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
je 0x10061bc2
mov ebx, dword [edi + 4]
jmp 0x10061bc2
xor eax, eax
jmp 0x10061c1f
xor ebx, ebx
mov eax, dword [0x100e08c0]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
movzx eax, byte [eax]
push 4
push 8
call fcn.10004aa0
add esp, 8
test eax, eax
je 0x10061c47
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 0x10061c1c
mov eax, dword [edi]
test eax, eax
je 0x10061c0f
lock dec dword [eax]
jne 0x10061c0f
mov ecx, edi
call fcn.1001cfc0
push 4
push 8
push edi
call fcn.10004ab0
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100ba088
call fcn.1005b730
add esp, 4
mov esi, eax
push esi
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x10061ba5
jmp 0x10061c1f
push 8
push 4
call fcn.1007e530
add esp, 8
ud2
Function at 0x10091fb0
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 0x10092008
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 0x10092000
cmp eax, ebx
jb 0x10092076
cmp eax, dword [ebp + 0x10]
ja 0x10092082
add ebx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop
test esi, esi
je 0x10092002
dec esi
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x10091ff0
jmp 0x1009205f
ja 0x10092008
cmp edx, edi
mov ebx, eax
jne 0x10091fc2
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x10092063
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 0x10092040
mov esi, edi
sub ecx, ebx
jns 0x10092057
jmp 0x10092065
cmp edi, edx
je 0x1009206c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x10092065
xor al, 1
cmp esi, edx
jne 0x10092020
jmp 0x10092065
xor eax, eax
jmp 0x10092065
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100d5544
call fcn.10089c30
push 0x100d5554
push eax
push ebx
call fcn.1008f850
push 0x100d5554
push dword [ebp + 0x10]
push eax
call fcn.1008f7f0
Function at 0x100a51b0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100ba0d0], eax
cmp eax, 0xffffffff
je 0x100b5fc0
add esp, 0xc
ret

Function at 0x100a56c0
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x100a56f0
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.100a8810
cmp eax, 1
je 0x100a56f1
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 0x100a5745
jmp 0x100a5753
cmp eax, 0x6a
je 0x100a575d
add eax, 1
cmp byte [ebx + eax], 0
jne 0x100a5740
cmp eax, 0x6a
je 0x100a575d
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 0x100a5800
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 [0x100fc1a0], 1
je 0x100a5815
call fcn.100a5770
mov eax, dword [0x100ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x100a5840
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.100a5610
mov ebx, eax
mov eax, dword [entry4]
test eax, eax
je 0x100a582c
test ebx, ebx
je 0x100a582c
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.100a56c0
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 0x100b5fc5
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 [0x100ba0d0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x100b5fc5
add esp, 0x2c
mov esi, ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret