joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ac020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x70]
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0x88]
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov byte [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.006e2cd8
cmp ebp, eax
jne 0x5ac1b1
mov ebp, dword [esp + 0x70]
mov eax, dword [edi + 0x1c]
mov al, byte [eax + ebp*8 + 2]
test al, 1
je 0x5ac0f8
test al, 2
jne 0x5ac1b1
test byte [esp + 0x98], 8
jne 0x5ac1b1
mov ecx, edi
mov dword [esp], ebp
call fcn.005ab9a6
push ecx
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 8], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov ecx, edi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xc], edx
call fcn.005abe22
sub esp, 0x28
mov ebx, eax
jmp 0x5ac1b1
mov dword [esp], ebp
mov ecx, edi
call fcn.005ab7f4
test esi, esi
push edx
jne 0x5ac136
cmp ebx, eax
lea ebp, [esp + 0x48]
cmovle eax, ebx
mov edi, eax
cmp esi, edi
jge 0x5ac132
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov dword [esp], ebp
mov dword [esp + 0x4c], esi
inc esi
mov dword [esp + 0x48], eax
call fcn.006b0eb4
push ecx
jmp 0x5ac112
sub ebx, edi
jmp 0x5ac1a7
mov eax, dword [esp + 0x74]
mov dword [esp + 4], esi
mov ecx, edi
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.005ab8d2
sub esp, 0xc
mov esi, eax
lea ebp, [esp + 0x48]
mov dword [esp + 0x34], edx
cmp esi, dword [esp + 0x34]
jge 0x5ac1a7
mov dword [esp], esi
mov ecx, edi
call fcn.005ab7f4
push edx
xor edx, edx
cmp edx, eax
jge 0x5ac198
mov ecx, dword [esp + 0x78]
mov dword [esp], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], esi
call fcn.006b0eb4
push eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
inc edx
jmp 0x5ac16c
test eax, eax
mov edx, 0
cmovs eax, edx
inc esi
sub ebx, eax
jmp 0x5ac159
test ebx, ebx
mov eax, 0
cmovs ebx, eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x2c
Function at 0x5aed02
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov dword [esp], 0xffffffff
mov esi, dword [esp + 0x90]
call fcn.0062b73c
cmp byte [0x718b58], 0
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x2c], eax
jne 0x5aedcd
mov dword [esp + 0x18], 0
mov cl, byte [esp + 0x18]
mov dword [esp + 0x1c], 8
xor eax, eax
mov dl, pe_nt_image_headers32
lea edi, [eax - 0x80000000]
test cl, dl
movzx edx, dl
cmovne eax, edi
lea edi, [eax + eax]
mov ebp, edi
xor ebp, 0x1edc6f41
test eax, eax
mov eax, ebp
cmovns eax, edi
shr edx, 1
dec dword [esp + 0x1c]
jne 0x5aed4c
mov ebp, 7
xor edi, edi
movzx edx, cl
and cl, 1
mov dword [esp + 0x1c], edx
je 0x5aed92
mov edx, 1
mov ecx, ebp
shl edx, cl
or edi, edx
mov edx, dword [esp + 0x1c]
dec ebp
shr edx, 1
cmp ebp, 0xffffffff
mov ecx, edx
jne 0x5aed7b
mov dword [esp], eax
call fcn.0062b73c
inc dword [esp + 0x18]
mov edx, edi
cmp dword [esp + 0x18], 0x100
movzx edi, dl
mov dword [edi*4 + 0x718000], eax
jne 0x5aed3c
mov byte [0x718b58], 1
lea ebp, [esp + 0x54]
mov dword [esp], ebx
mov ecx, ebp
call fcn.00502fda
push edi
lea edi, [esp + 0x38]
mov dword [esp], esi
mov ecx, edi
call fcn.00502fda
push eax
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.00502cb7
test al, al
je 0x5aee5c
mov ecx, esi
call fcn.00502fa2
mov ecx, ebx
mov edi, eax
call fcn.00502fa2
cmp ax, di
jae 0x5aee1c
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.006e138c
mov ecx, esi
call fcn.00502fa2
movzx eax, ax
mov esi, dword [sym.imp.WSOCK32.DLL_htons]
mov dword [esp], eax
call esi
push edx
mov ecx, ebx
mov word [esp + 0x54], ax
call fcn.00502fa2
movzx eax, ax
mov dword [esp], eax
call esi
push ecx
mov word [esp + 0x56], ax
lea eax, [esp + 0x58]
mov dword [esp], ebp
mov dword [esp + 4], eax
jmp 0x5aef44
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.005030f1
test al, al
je 0x5aee78
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.006e138c
mov ecx, ebp
mov dword [esp], esi
call fcn.00502fda
push ecx
mov ecx, edi
mov dword [esp], ebp
call fcn.00502766
push esi
mov ecx, edi
call fcn.005027cc
mov dword [esp], ebx
mov ecx, ebp
mov dword [esp + 0x34], eax
call fcn.00502fda
push eax
lea ecx, [esp + 0x30]
mov dword [esp], ebp
call fcn.00502766
push eax
lea ecx, [esp + 0x30]
lea ebx, [esp + 0x34]
call fcn.005027cc
mov dword [esp + 8], 2
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 0x38], eax
call sub.msvcrt.dll_memcmp
xor edx, edx
test eax, eax
jne 0x5aeef8
mov dword [esp + 8], 3
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
xor edx, edx
test eax, eax
sete dl
inc edx
lea esi, [edx*4 + 0x7414b0]
mov dword [esp + 8], 4
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.005adffc
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.005adffc
lea ecx, [esp + 0x2c]
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00609834
push edx
push edx
lea eax, [esp + 0x3c]
mov dword [esp], edi
mov dword [esp + 4], eax
lea ecx, [esp + 0x2c]
call fcn.00609834
push eax
push eax
mov eax, dword [esp + 0x2c]
add esp, 0x7c
pop ebx
not eax
pop esi
pop edi
pop ebp
ret
Function at 0x5b5343
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
ret
Function at 0x5bff0d
Capabilities:
Hash data using sha256

Disassembly:
mov edx, dword [esp + 4]
mov eax, 1
test edx, edx
je 0x5bffa4
mov dword [edx + 0x48], 0
mov dword [edx], 0
xor eax, eax
mov dword [edx + 4], 0
mov dword [edx + 8], 0xf3bcc908
mov dword [edx + 0xc], 0x6a09e667
mov dword [edx + 0x10], 0x84caa73b
mov dword [edx + 0x14], 0xbb67ae85
mov dword [edx + 0x18], 0xfe94f82b
mov dword [edx + 0x1c], 0x3c6ef372
mov dword [edx + 0x20], 0x5f1d36f1
mov dword [edx + 0x24], 0xa54ff53a
mov dword [edx + 0x28], 0xade682d1
mov dword [edx + 0x2c], 0x510e527f
mov dword [edx + 0x30], 0x2b3e6c1f
mov dword [edx + 0x34], 0x9b05688c
mov dword [edx + 0x38], 0xfb41bd6b
mov dword [edx + 0x3c], 0x1f83d9ab
mov dword [edx + 0x40], 0x137e2179
mov dword [edx + 0x44], 0x5be0cd19
ret
Function at 0x5c8450
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x25c
mov eax, dword [0x85626c]
mov ebx, dword [esp + 0x270]
mov dword [esp + 0x24], 0x7421c0
mov dword [esp + 0x28], 0x5c86e0
mov dword [esp + 0x2c], str.getnameinfo
test eax, eax
mov dword [esp + 0x30], 0x5c8a90
mov dword [esp + 0x34], str.freeaddrinfo
mov dword [esp + 0x38], fcn.005c8690
je 0x5c84b1
movzx ebx, bx
mov eax, dword [ebx*8 + 0x716bf4]
add esp, 0x25c
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea ebp, [esp + 0x3f]
mov dword [esp + 4], 0x104
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
sub esp, 8
test eax, eax
jne 0x5c84e0
mov dword [0x85626c], 1
jmp 0x5c849a
lea eax, [esp + 0x144]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea edx, [esp + 0x144]
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x5c84fa
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
add al, al
lea eax, [esp + 0x144]
sbb edx, 3
mov dword [edx], 0x3273775c
mov dword [edx + 4], 0x32335f
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x1c], eax
call eax
sub esp, 4
test eax, eax
mov esi, eax
je 0x5c85dc
mov dword [esp + 4], 0x7421c0
mov dword [esp], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
sub esp, 8
test eax, eax
je 0x5c85d0
lea ebp, [esp + 0x24]
mov eax, 0x7421c0
lea esi, [esi]
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
mov dword [ebp + 4], eax
je 0x5c8670
lea eax, [esp + 0x3c]
add ebp, 8
cmp ebp, eax
je 0x5c85b0
mov eax, dword [ebp]
jmp 0x5c8580
mov eax, dword [esp + 0x28]
mov dword [0x716bf4], eax
mov eax, dword [esp + 0x30]
mov dword [0x716bfc], eax
mov eax, dword [esp + 0x38]
mov dword [fcn.005c8690], eax
jmp 0x5c84cd
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
lea eax, [esp + 0x144]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea edx, [esp + 0x144]
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x5c85f6
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
add al, al
lea eax, [esp + 0x144]
sbb edx, 3
mov dword [edx], 0x6873775c
mov dword [edx + 4], 0x367069
mov dword [esp], eax
call dword [esp + 0x1c]
sub esp, 4
test eax, eax
mov esi, eax
je 0x5c84cd
mov dword [esp + 4], 0x7421c0
mov dword [esp], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
sub esp, 8
test eax, eax
jne 0x5c8571
lea esi, [esi]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
jmp 0x5c84cd
Function at 0x5c9000
Capabilities:
Resolve dns

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov dword [ebx], 0
mov byte [eax], 0
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
sub esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
je 0x5c90d5
cmp dword [eax + 8], 0x40002
jne 0x5c90a0
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x5c90a0
movzx esi, si
jmp 0x5c906c
add edi, 4
lea ebx, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
je 0x5c90a0
mov eax, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.005c8d80
sub esp, 0x10
test eax, eax
mov dword [ebx], eax
jne 0x5c9060
add esp, 0x2c
mov eax, 8
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0x400
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
mov eax, dword [esp + 0x50]
mov byte [eax + 0x400], 0
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
lea edx, [eax - 0x2afa]
cmp edx, 3
mov edx, 0x2af9
cmovae eax, edx
jmp 0x5c90cb

Function at 0x5d2900
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x745948
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.005d2960
Function at 0x5d2960
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x856620]
test esi, esi
jle 0x5d2a4d
mov edi, dword [0x856624]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x5d2994
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x5d2a46
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x5d2980
mov dword [esp], eax
mov ebx, eax
call fcn.005d3290
test eax, eax
mov edi, eax
je 0x5d2a8a
lea ebx, [esi + esi*2]
mov esi, dword [0x856624]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.005d3390
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x856624]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x5d2a6a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x5d2a3f
sub eax, 0x40
and eax, 0xffffffbf
je 0x5d2a3f
mov eax, dword [esp + 0x20]
add ebx, dword [0x856624]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x5d2a54
add dword [0x856620], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x5d299e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], 0x7459b8
mov dword [esp + 4], eax
call fcn.005d2900
mov eax, dword [0x856624]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], 0x745984
mov dword [esp + 4], eax
call fcn.005d2900
mov dword [esp + 4], ebx
mov dword [esp], 0x745964
call fcn.005d2900
lea esi, [esi]

Function at 0x5d2f00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x856638
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x856630]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x5d2f55
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 0x5d2f4e
test esi, esi
je 0x5d2f4e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x5d2f30
mov dword [esp], 0x856638
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x5d31b0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x5d31e8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x5d31de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x5d31ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x5d31d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x5e0c60
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
sub ecx, 1
push esi
push ebx
mov ebx, 0x66666667
mov ebp, edx
mov esi, 1
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ecx
mov dword [esp + 0x10], ecx
sar eax, 0x1f
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ecx
sar ecx, 0x1f
imul ebx
mov ebx, edx
sar ebx, 2
sub ebx, ecx
je 0x5e0cb3
mov ecx, 0x66666667
mov eax, ebx
sar ebx, 0x1f
add esi, 1
imul ecx
sar edx, 2
sub edx, ebx
mov ebx, edx
jne 0x5e0ca0
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x5e0d30
cmp eax, esi
cmovge esi, eax
mov eax, dword [edi + 8]
lea edx, [esi + 2]
cmp eax, edx
jg 0x5e0d21
mov dword [edi + 8], 0xffffffff
mov eax, dword [esp + 0x1c]
mov dword [esp], edi
mov ecx, 1
mov edx, ebp
add esi, 1
call fcn.005e0530
mov eax, dword [edi + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [edi + 4], edx
mov edx, edi
call fcn.005e00c0
add dword [edi + 8], esi
mov eax, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.005e0950
sub eax, edx
mov dword [edi + 8], eax
jmp 0x5e0cd1
mov edx, dword [0x716c6c]
cmp edx, 0xffffffff
je 0x5e0d59
test edx, edx
mov eax, 2
jne 0x5e0d51
call fcn.005e5e70
and eax, 1
neg eax
add eax, 3
mov dword [edi + 0x28], eax
jmp 0x5e0cbb
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x5e0d7f
movsx eax, byte [eax]
xor edx, edx
sub eax, 0x30
cmp eax, 2
setbe dl
mov dword [0x716c6c], edx
jmp 0x5e0d3b
xor edx, edx
jmp 0x5e0d77
Function at 0x5e7b10
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x716cb0], eax
je 0x5e7b27
add esp, 0xc
ret
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x5e7f30
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x5e7f55
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.005e78f0
cmp eax, 1
je 0x5e7f57
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
repz ret
lea ebx, [esp + 0x15]
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov cl, 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], eax
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x5e7fa5
jmp 0x5e7fb3
cmp eax, 0x6a
je 0x5e7fbd
add eax, 1
cmp byte [ebx + eax], 0
jne 0x5e7fa0
cmp eax, 0x6a
je 0x5e7fbd
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 0x5e8060
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 [0x8570c8], 1
je 0x5e8075
call fcn.005e7fd0
mov eax, dword [0x716cb0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x5e8092
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.005e7e80
test eax, eax
mov ebx, eax
je 0x5e8199
mov eax, dword [entry3]
test eax, eax
je 0x5e8199
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 + 0x18], eax
lea eax, [ebx + 0x38]
sub esp, 0x10
mov dword [ebx + 0x1c], 0xffffffff
call fcn.005e7f30
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
mov edx, eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x5e81a0
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
mov dword [ebx + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x716cb0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x5e81a0
mov eax, ebx
jmp 0x5e808a
xor eax, eax
jmp 0x5e808a
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
push esi
push ebx
mov eax, 0x80070057
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
test edx, edx
jg 0x5e81d2
pop ebx
pop esi
ret 0xc
mov esi, ebx
movzx eax, byte [ecx]
test al, al
je 0x5e81f4
lea ebx, [esi + 1]
add ecx, 1
sub edx, 1
mov byte [ebx - 1], al
jne 0x5e81d0
mov eax, 0x8007007a
mov byte [esi], 0
pop ebx
pop esi
ret 0xc
xor eax, eax
jmp 0x5e81ec
Function at 0x5ef6a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5ef6d0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x5ef790
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x5ef850
cmp eax, 3
jne 0x5ef6b9
mov eax, dword [0x716cb0]
cmp eax, 0xffffffff
je 0x5ef6b9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x5ef6b9
test byte [eax + 0x20], 0x30
je 0x5ef7c0
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x5ef872
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x5ef744
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 0x5ef736
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.005e7710
lea eax, [ebx + 0x38]
call fcn.005e7f30
mov edx, dword [ebx + 0xb0]
test edx, edx
je 0x5ef88a
mov eax, dword [0x716cb0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
mov eax, 1
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x8570a4]
test eax, eax
je 0x5ef6b9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x8570a4], 0
sub esp, 4
jmp 0x5ef6b9
mov eax, dword [eax + 0x68]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x5ef820
test eax, eax
je 0x5ef7da
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
jne 0x5ef880
test byte [ebx + 0x24], 4
je 0x5ef837
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x5ef73d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x5ef73d
test eax, eax
je 0x5ef830
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.005e7710
lea eax, [ebx + 0x38]
call fcn.005e7f30
jmp 0x5ef6b9
mov dword [esp + 4], 0x5e7950
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x8570a4], eax
jmp 0x5ef6b9
call fcn.005ef590
jmp 0x5ef712
call fcn.005ef590
jmp 0x5ef7f6
mov eax, ebx
call fcn.005e7bb0
jmp 0x5ef765
Function at 0x5f01d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.005e8060
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x5f0252
test byte [ebx + 0x20], 0x30
jne 0x5f0206
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov eax, dword [0x716cb0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
push edx
mov ebx, eax
je 0x5f0249
cmp dword [eax + 0x14], 0
je 0x5f0259
mov esi, dword [eax + 4]
mov dword [eax + 0x68], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x5f023c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x5f029d
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.005ef590
jmp 0x5f01ed
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x5f0270
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
je 0x5f02c0
mov eax, dword [0x716cb0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x5f0249
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x14], 0
jne 0x5f0283
mov eax, ebx
call fcn.005e7bb0
jmp 0x5f0283
Function at 0x6110b4
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [0x717fe4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edx
xor edx, edx
test eax, eax
je 0x6110cf
mov edx, dword [eax + 4]
mov eax, edx
add esp, 0x1c
ret

Function at 0x6110d8
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [0x717fe4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edx
test eax, eax
je 0x611100
mov edx, dword [esp + 0x20]
cmp dword [eax], edx
jne 0x6110fb
mov eax, dword [eax + 4]
jmp 0x611102
mov eax, dword [eax + 8]
jmp 0x6110ea
xor eax, eax
add esp, 0x1c
ret