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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f521
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x88]
push dword [0x603f88]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x538b7f
mov eax, dword [eax + 4]
jmp 0x538b81
xor eax, eax
push 1
push 0x90
push eax
push dword [ebp - 0x10]
call fcn.0053cd10
mov edi, eax
mov dword [ebp - 0x14], 0
add esp, 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x538bd9
lea esi, [edi + 8]
lea eax, [ebp + 8]
mov dword [ebp - 0x20], esi
push eax
mov ecx, esi
call fcn.005491d0
mov eax, dword [ebp + 0x78]
mov dword [esi + 0x70], eax
mov eax, dword [ebp + 0x7c]
mov dword [esi + 0x74], eax
mov eax, dword [ebp + 0x80]
mov dword [esi + 0x78], eax
mov dword [edi], 0x53f210
jmp 0x538bdb
xor edi, edi
lea ecx, [ebp + 8]
mov dword [ebx], edi
mov dword [ebp - 0x18], 0
call fcn.0054da60
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x84

Function at 0x538c10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f561
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x90]
push dword [0x603f88]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x538c5f
mov eax, dword [eax + 4]
jmp 0x538c61
xor eax, eax
push 1
push 0x98
push eax
push dword [ebp - 0x10]
call fcn.0053cd10
mov edi, eax
mov dword [ebp - 0x14], 0
add esp, 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x538cc2
lea esi, [edi + 8]
lea eax, [ebp + 8]
mov dword [ebp - 0x20], esi
push eax
mov ecx, esi
call fcn.005493b0
mov eax, dword [ebp + 0x80]
mov dword [esi + 0x78], eax
mov eax, dword [ebp + 0x84]
mov dword [esi + 0x7c], eax
mov eax, dword [ebp + 0x88]
mov dword [esi + 0x80], eax
mov dword [edi], 0x53f340
jmp 0x538cc4
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebx], edi
mov dword [ebp - 0x18], 0
call fcn.005707f0
lea ecx, [ebp + 8]
call fcn.0054dae0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x8c
Function at 0x5399e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f788
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
push dword [0x603fa0]
mov esi, dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x539a2e
cmp dword [eax], esi
je 0x539a2e
mov eax, dword [eax + 8]
test eax, eax
jne 0x539a23
lea eax, [edi + 8]
mov dword [ebp - 0x24], edi
push eax
push 0x58
call fcn.005563f0
mov esi, eax
mov dword [ebp - 0x1c], ebx
add esp, 8
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov dword [ebp + 8], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x539ab3
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.0055f830
mov ebx, 1
mov byte [ebp - 4], 2
push edi
lea ecx, [esi + 0x20]
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x55c580
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
call fcn.00549130
jmp 0x539ab5
xor esi, esi
test bl, 1
je 0x539aba
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x539b11
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x539afa
mov dword [eax + 0x14], esi
jmp 0x539afd
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x53ea50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
and edx, 3
cmp eax, dword [ebp + 0xc]
je 0x53ea90
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
nop dword [eax]
mov bl, byte [edx + esi]
inc edx
xor bl, byte [eax]
and edx, 3
mov byte [ecx], bl
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
inc eax
inc ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], ecx
cmp eax, dword [ebp + 0xc]
jne 0x53ea70
pop esi
pop ebx
pop ebp
ret
Function at 0x53f8d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580650
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603fa0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53f920
cmp dword [eax], esi
je 0x53f96d
mov eax, dword [eax + 8]
test eax, eax
jne 0x53f915
mov edi, dword [ebp + 0xc]
push edi
push 0x78
mov dword [ebp - 0x28], edi
call fcn.005563f0
mov esi, eax
mov dword [ebp - 0x20], ebx
add esp, 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x53f99a
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f830
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00545d20
jmp 0x53f99c
cmp dword [eax + 4], ebx
je 0x53f920
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053ce80
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x53f9ac
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x53f9e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5806b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603fa0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53fa30
cmp dword [eax], esi
je 0x53fa7d
mov eax, dword [eax + 8]
test eax, eax
jne 0x53fa25
mov edi, dword [ebp + 0xc]
push edi
push 0x78
mov dword [ebp - 0x28], edi
call fcn.005563f0
mov esi, eax
mov dword [ebp - 0x20], ebx
add esp, 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x53faaa
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f830
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00545d80
jmp 0x53faac
cmp dword [eax + 4], ebx
je 0x53fa30
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d020
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x53fabc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d920
lea ecx, [ebp - 0x28]
call fcn.005700b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x53fb00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5806b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603fa0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53fb50
cmp dword [eax], esi
je 0x53fb9d
mov eax, dword [eax + 8]
test eax, eax
jne 0x53fb45
mov edi, dword [ebp + 0xc]
push edi
push 0x78
mov dword [ebp - 0x28], edi
call fcn.005563f0
mov esi, eax
mov dword [ebp - 0x20], ebx
add esp, 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x53fbca
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f830
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00545e20
jmp 0x53fbcc
cmp dword [eax + 4], ebx
je 0x53fb50
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d0a0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x53fbdc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d920
lea ecx, [ebp - 0x28]
call fcn.005700b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x53fc20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580710
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603fa0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53fc70
cmp dword [eax], esi
je 0x53fcc0
mov eax, dword [eax + 8]
test eax, eax
jne 0x53fc65
mov edi, dword [ebp + 0xc]
push edi
push 0x90
mov dword [ebp - 0x28], edi
call fcn.005563f0
mov esi, eax
mov dword [ebp - 0x20], ebx
add esp, 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x53fced
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f830
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00545ec0
jmp 0x53fcef
cmp dword [eax + 4], ebx
je 0x53fc70
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d120
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x53fcff
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d920
lea ecx, [ebp - 0x28]
call fcn.00570130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x53fd40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580710
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603fa0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53fd90
cmp dword [eax], esi
je 0x53fde0
mov eax, dword [eax + 8]
test eax, eax
jne 0x53fd85
mov edi, dword [ebp + 0xc]
push edi
push 0x90
mov dword [ebp - 0x28], edi
call fcn.005563f0
mov esi, eax
mov dword [ebp - 0x20], ebx
add esp, 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x53fe0d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f830
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00545f20
jmp 0x53fe0f
cmp dword [eax + 4], ebx
je 0x53fd90
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d150
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x53fe1f
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d920
lea ecx, [ebp - 0x28]
call fcn.00570130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x53fe60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580770
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603fa0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53feb0
cmp dword [eax], esi
je 0x53fec9
mov eax, dword [eax + 8]
test eax, eax
jne 0x53fea5
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
mov esi, dword [edi]
cmp byte [esi + 0x400], bl
jne 0x53fef6
mov byte [esi + 0x400], 1
jmp 0x53ff05
cmp dword [eax + 4], ebx
je 0x53feb0
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d180
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80
call fcn.0053608b
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x53ff3f
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f830
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00545f80
jmp 0x53ff41
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x53ff51
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d920
lea ecx, [ebp - 0x28]
call fcn.005701a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x53ff90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5807d0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603fa0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53ffe0
cmp dword [eax], esi
je 0x54002d
mov eax, dword [eax + 8]
test eax, eax
jne 0x53ffd5
mov edi, dword [ebp + 0xc]
push edi
push 0x50
mov dword [ebp - 0x28], edi
call fcn.005563f0
mov esi, eax
mov dword [ebp - 0x20], ebx
add esp, 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x54005a
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f830
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00546030
jmp 0x54005c
cmp dword [eax + 4], ebx
je 0x53ffe0
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d690
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x54006c
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5400a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580830
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603fa0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5400f0
cmp dword [eax], esi
je 0x540146
mov eax, dword [eax + 8]
test eax, eax
jne 0x5400e5
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
lea eax, [edi + 0x80]
push eax
push 0x100
call fcn.005563f0
mov esi, eax
mov dword [ebp - 0x20], ebx
add esp, 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x540173
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f830
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00546100
jmp 0x540175
cmp dword [eax + 4], ebx
je 0x5400f0
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d6b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x540185
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5401c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580830
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603fa0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x540210
cmp dword [eax], esi
je 0x540266
mov eax, dword [eax + 8]
test eax, eax
jne 0x540205
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
lea eax, [edi + 0x80]
push eax
push 0x100
call fcn.005563f0
mov esi, eax
mov dword [ebp - 0x20], ebx
add esp, 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x540293
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f830
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00546160
jmp 0x540295
cmp dword [eax + 4], ebx
je 0x540210
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d6b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x5402a5
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5402e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580890
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603fa0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x540330
cmp dword [eax], esi
je 0x540383
mov eax, dword [eax + 8]
test eax, eax
jne 0x540325
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
lea eax, [edi + 0x50]
push eax
push 0xc8
call fcn.005563f0
mov esi, eax
mov dword [ebp - 0x20], ebx
add esp, 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x5403b0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f830
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.005461c0
jmp 0x5403b2
cmp dword [eax + 4], ebx
je 0x540330
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d6e0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x5403c2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5403f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5808f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603fa0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x540440
cmp dword [eax], esi
je 0x54045a
mov eax, dword [eax + 8]
test eax, eax
jne 0x540435
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
mov esi, dword [edi + 0x68]
cmp byte [esi + 0x400], bl
jne 0x540487
mov byte [esi + 0x400], 1
jmp 0x540496
cmp dword [eax + 4], ebx
je 0x540440
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d760
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xe8
call fcn.0053608b
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x5404d0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f830
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00546220
jmp 0x5404d2
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x5404e2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8