joyce8/EMBER2024-capa huggingface dataset:
Function at 0x557cc0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x160], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0x67452301
mov dword [ebp - 0x14], 0xefcdab89
mov dword [ebp - 0x10], 0x98badcfe
mov dword [ebp - 0xc], 0x10325476
mov dword [ebp - 8], 0xc3d2e1f0
push edi
cmp eax, 0x40
jb 0x557d7f
lea ebx, [eax - 0x40]
mov dword [ebp - 0x15c], ebx
lea edi, [esi + 0x40]
cmp esi, edi
jae 0x557d65
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x158]
nop word [eax + eax]
movzx ecx, byte [ebx + esi]
lea edx, [edx + 4]
movzx eax, byte [ebx + esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + esi + 3]
shl ecx, 8
add esi, 4
or ecx, eax
mov dword [edx - 4], ecx
cmp esi, edi
jb 0x557d30
mov ebx, dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00566aa0
add esp, 8
cmp esi, ebx
jbe 0x557d15
mov eax, dword [ebp + 0xc]
mov ebx, eax
mov eax, 0xf
sub ebx, esi
nop dword [eax + eax]
mov dword [ebp + eax*4 - 0x158], 0
sub eax, 1
jns 0x557d90
xor edi, edi
lea ecx, [edi + 3]
test ebx, ebx
je 0x557dda
add esi, dword [ebp + 8]
nop dword [eax]
mov eax, edi
lea edx, [ebp - 0x158]
shr eax, 2
lea edx, [edx + eax*4]
mov eax, edi
and eax, 3
sub ecx, eax
movzx eax, byte [esi + edi]
shl ecx, 3
inc edi
shl eax, cl
mov ecx, 3
or dword [edx], eax
cmp edi, ebx
jb 0x557db0
mov eax, edi
lea edx, [ebp - 0x158]
shr eax, 2
and edi, 3
lea edx, [edx + eax*4]
sub ecx, edi
shl ecx, 3
mov eax, 0x80
shl eax, cl
or dword [edx], eax
cmp ebx, 0x38
jb 0x557e30
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00566aa0
add esp, 8
mov eax, 0xf
nop word [eax + eax]
mov dword [ebp + eax*4 - 0x158], 0
sub eax, 1
jns 0x557e20
mov eax, dword [ebp + 0xc]
shl eax, 3
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00566aa0
mov esi, dword [ebp - 0x160]
add esp, 8
mov edx, 0x13
nop word [eax + eax]
mov eax, edx
mov ecx, edx
sar eax, 2
not ecx
and ecx, 3
shl ecx, 3
mov eax, dword [ebp + eax*4 - 0x18]
shr eax, cl
mov byte [esi + edx], al
sub edx, 1
jns 0x557e60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053658e
mov esp, ebp
pop ebp
ret
Function at 0x5580d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582f88
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 eax, ecx
mov dword [ebp - 0x14], eax
xor bl, bl
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp + 8]
lea esi, [eax + 0x3c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 4
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x558150
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
lea edx, [eax + edx*8]
mov eax, dword [edx]
cmp eax, ecx
je 0x558152
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x558150
cmp dword [eax + 8], edi
je 0x55816c
mov eax, dword [eax]
cmp eax, ecx
jne 0x558145
mov ecx, dword [esi]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push ecx
lea ecx, [esi - 4]
call fcn.00557fc0
test al, al
jne 0x558170
test bl, bl
jne 0x558170
jmp 0x558172
mov ecx, eax
jmp 0x558152
mov bl, 1
add esi, 0x1c
sub dword [ebp - 0x10], 1
jne 0x558121
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [esi + 0x14]
call fcn.0056ad20
test bl, bl
je 0x55823c
mov ecx, dword [0x603b80]
lea eax, [ebp + 0xb]
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x2c]
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x18], 1
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x603fcc]
cmp eax, dword [ecx + 4]
jle 0x558200
push 0x603fcc
call fcn.0053648a
add esp, 4
cmp dword [0x603fcc], 0xffffffff
jne 0x558200
push 0x586b30
mov dword [0x603fc4], 0x5e0018
mov dword [0x603fc8], 7
call fcn.00536324
push 0x603fcc
call fcn.0053644b
add esp, 8
push 0
push 0
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_WSASend]
call fcn.00574ea0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x558237
cmp eax, 0x4d2
jne 0x55823c
call fcn.00574ea0
lea ecx, [ebp - 0x20]
call fcn.0054d090
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 0x558490
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x603f88]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5584bb
nop dword [eax]
cmp dword [eax], esi
je 0x5584bd
mov eax, dword [eax + 8]
test eax, eax
jne 0x5584b0
pop esi
ret
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5584bb
pop esi
jmp fcn.005583e0
Function at 0x559210
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp eax, 0x4cf
jg 0x559255
je 0x559248
cmp eax, 0x79
je 0x55923b
cmp eax, 0x4c9
jne 0x55926a
call fcn.00574ea0
mov dword [edi], 0x274d
jmp 0x559267
call fcn.00574ea0
mov dword [edi], 0x274c
jmp 0x559267
call fcn.00574ea0
mov dword [edi], 0x2743
jmp 0x559267
cmp eax, 0x4d0
jne 0x55926a
call fcn.00574ea0
mov dword [edi], 0x2751
mov dword [edi + 4], eax
cmp dword [edi], 0
jne 0x5592ba
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x559288
call fcn.00574ea0
mov dword [edi], 0x2719
mov dword [edi + 4], eax
pop edi
pop ebp
ret
push 0
push 0
push 0x7010
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x5592a6
mov dword [edi], eax
pop edi
pop ebp
ret
push esi
call fcn.00574ea0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], esi
mov dword [edi], eax
pop esi
pop edi
pop ebp
ret

Function at 0x559480
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x5594a1
call fcn.00574ea0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
or eax, 0xffffffff
mov dword [ecx], 0x2719
pop ebp
ret
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test edi, edi
jne 0x5594bd
mov ecx, dword [ebp + 0x14]
pop edi
mov dword [ecx], eax
pop ebp
ret
push esi
call fcn.00574ea0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], esi
mov dword [ecx], eax
mov eax, edi
pop esi
pop edi
pop ebp
ret

Function at 0x55aea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x603f88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55aeb9
mov esi, dword [eax + 4]
jmp 0x55aebb
xor esi, esi
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax*8]
shl eax, 4
cmp eax, 0x3fc
ja 0x55aee0
test esi, esi
je 0x55aee0
mov edx, 4
cmp dword [esi + edx*4], 0
je 0x55aef0
inc edx
cmp edx, 6
jl 0x55aed4
push dword [ebp + 8]
call fcn.005360be
add esp, 4
pop esi
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov al, byte [eax + ecx]
mov byte [ecx], al
mov dword [esi + edx*4], ecx
pop esi
pop ebp
ret 8

Function at 0x55af00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x603f88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55af19
mov esi, dword [eax + 4]
jmp 0x55af1b
xor esi, esi
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax*4]
shl eax, 3
cmp eax, 0x3fc
ja 0x55af3d
test esi, esi
je 0x55af3d
xor edx, edx
cmp dword [esi + edx*4], 0
je 0x55af4d
inc edx
cmp edx, 2
jl 0x55af31
push dword [ebp + 8]
call fcn.005360be
add esp, 4
pop esi
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov al, byte [eax + ecx]
mov byte [ecx], al
mov dword [esi + edx*4], ecx
pop esi
pop ebp
ret 8
Function at 0x55d920
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 esi, dword [ebx + 0x18]
push dword [0x603f88]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55d975
cmp dword [eax], esi
je 0x55da34
mov eax, dword [eax + 8]
test eax, eax
jne 0x55d966
xor esi, esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x55da3c
mov eax, dword [edi]
cmp byte [eax + 0x38], 0
jne 0x55da3c
mov byte [eax + 0x38], 1
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
push dword [0x603fa0]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x603fa0]
mov dword [ebp - 0x24], eax
call esi
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
call fcn.0053ad60
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0
push eax
mov eax, dword [ebp + 0xc]
push eax
push dword [ebx + 0x18]
mov eax, dword [eax + 0x18]
call eax
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.0054e0c0
push dword [ebp - 0x20]
push dword [0x603fa0]
call esi
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
mov esi, dword [eax + 4]
jmp 0x55d977
mov eax, dword [edi]
cmp byte [eax + 0x38], 0
je 0x55daa1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x14], 0
mov edx, dword [eax + 0x40]
test edx, edx
je 0x55da7b
mov dword [edx + 0x14], ecx
mov dword [eax + 0x40], ecx
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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
mov byte [eax + 0x38], 1
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x14], 0
mov edx, dword [eax + 0x48]
test edx, edx
je 0x55dac9
mov dword [edx + 0x14], ecx
jmp 0x55dacc
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov ecx, dword [ebx + 0x18]
push 0
push dword [edi]
call fcn.0056ae50
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 0x561760
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x561774
cmp byte [esi], 0
jne 0x561776
xor esi, esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x561782
cmp byte [edi], 0
jne 0x561784
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00575c50
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [esi]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
pop edi
mov dword [eax + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x566e30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x603f8c
lock xadd dword [ecx], eax
push 0
push dword [esi + 4]
test eax, eax
je 0x566e7d
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push fcn.00457b90
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x568660
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5850a9
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], esi
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
jb 0x5686ce
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00568440
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00568510
mov dword [esi + 0x10], 0
add esp, 0x14
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x56870f
mov eax, dword [esi]
jmp 0x568711
mov eax, esi
mov byte [eax], 0
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 1
cmp ecx, 0x10
jb 0x568747
mov dword [esi + 0x10], 0x10
cmp dword [esi + 0x14], 0x10
jb 0x56873f
mov eax, dword [esi]
mov byte [eax + 0x10], 0
jmp 0x568758
mov eax, esi
mov byte [eax + 0x10], 0
jmp 0x568758
mov eax, 0x10
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00455f30
cmp dword [esi + 0x14], 0x10
jb 0x568762
mov eax, dword [esi]
jmp 0x568764
mov eax, esi
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053658e
mov esp, ebp
pop ebp
ret
Function at 0x569e30
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push edi
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x208], edi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 1
push eax
push 0
lea eax, [edi + 1]
mov dword [ebp - 0x104], edi
push eax
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x569eb6
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053658e
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x210], 0
cmp edi, 0xffffffff
jne 0x569ef0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x603b80]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x603f78]
cmp eax, dword [ecx + 4]
jg 0x569fa8
mov dword [esi], 0x2719
jmp 0x569f8f
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 4
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1007
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x569f67
mov dword [esi], eax
cmp dword [ebp - 0x210], eax
je 0x569f4f
mov eax, dword fs:[0x2c]
mov ecx, dword [0x603b80]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x603f78]
cmp eax, dword [ecx + 4]
jg 0x569ff2
mov eax, dword [ebp - 0x210]
jmp 0x569f8d
pop edi
mov dword [esi], 0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053658e
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
mov ecx, dword [0x603b80]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x603f78]
cmp eax, dword [ecx + 4]
jg 0x56a03c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
mov dword [esi + 4], 0x603f70
xor ecx, ebp
pop esi
call fcn.0053658e
mov esp, ebp
pop ebp
ret
push 0x603f78
call fcn.0053648a
add esp, 4
cmp dword [0x603f78], 0xffffffff
jne 0x569ee5
push 0x586c60
mov dword [0x603f74], 0x603f70
mov dword [0x603f70], 0x5e0fec
call fcn.00536324
push 0x603f78
call fcn.0053644b
add esp, 8
jmp 0x569ee5
push 0x603f78
call fcn.0053648a
add esp, 4
cmp dword [0x603f78], 0xffffffff
jne 0x569f47
push 0x586c60
mov dword [0x603f74], 0x603f70
mov dword [0x603f70], 0x5e0fec
call fcn.00536324
push 0x603f78
call fcn.0053644b
add esp, 8
jmp 0x569f47
push 0x603f78
call fcn.0053648a
add esp, 4
cmp dword [0x603f78], 0xffffffff
jne 0x569f87
push 0x586c60
mov dword [0x603f74], 0x603f70
mov dword [0x603f70], 0x5e0fec
call fcn.00536324
push 0x603f78
call fcn.0053644b
add esp, 8
jmp 0x569f87
Function at 0x56e470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp byte [ebx + 0xd], 0x80
jb 0x56e4b6
mov eax, dword [ebx + 0x48]
xor ecx, ecx
mov edx, dword [eax + 8]
mov dword [ebp + 0xc], edx
test esi, esi
je 0x56e4a4
mov edi, dword [ebp + 8]
mov eax, ecx
and eax, 3
mov al, byte [ebp + eax + 0xc]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jb 0x56e493
mov ecx, esi
and ecx, 3
je 0x56e4b0
shl ecx, 3
ror edx, cl
mov eax, dword [ebx + 0x48]
mov dword [eax + 8], edx
mov eax, dword [ebx + 0x48]
push esi
push dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0x48]
add edi, 0x38
mov ecx, edi
mov dword [ebp + 0xc], eax
call fcn.00455fe0
mov eax, dword [ebx + 0x48]
mov eax, dword [eax]
cmp dword [eax + 0x50], 1
jne 0x56e526
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x56e4e6
mov edx, dword [edi]
jmp 0x56e4e8
mov edx, edi
mov eax, dword [edi + 0x10]
add eax, edx
cmp ecx, 0x10
jb 0x56e4f4
mov edi, dword [edi]
mov ecx, dword [ebp + 0xc]
add ecx, edi
push eax
push ecx
mov ecx, dword [ebx + 0x48]
add ecx, 0xc
call fcn.0053f7c0
test al, al
jne 0x56e526
call fcn.00560480
mov ecx, eax
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], 0x10
mov dword [eax + 4], ecx
xor eax, eax
pop ebp
ret 0xc
sub dword [ebx + 0x18], esi
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x570520
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x570531
mov dword [esi + 8], 0
mov edi, dword [esi + 4]
test edi, edi
je 0x57056d
push dword [0x603f88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x57055d
mov edx, dword [eax + 4]
test edx, edx
je 0x57055d
xor ecx, ecx
cmp dword [edx + ecx*4], 0
je 0x570570
inc ecx
cmp ecx, 2
jl 0x570551
push edi
call fcn.005360be
add esp, 4
mov dword [esi + 4], 0
pop edi
pop esi
ret
mov al, byte [edi + 0x2c]
mov byte [edi], al
mov dword [edx + ecx*4], edi
pop edi
mov dword [esi + 4], 0
pop esi
ret

Function at 0x570590
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x5705aa
add ecx, 8
call fcn.0054cee0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x5705ec
push dword [0x603f88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5705dc
mov edx, dword [eax + 4]
test edx, edx
je 0x5705dc
mov ecx, 4
nop dword [eax]
cmp dword [edx + ecx*4], 0
je 0x5705ef
inc ecx
cmp ecx, 6
jl 0x5705d0
push esi
call fcn.005360be
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x98]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x570610
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x57062a
add ecx, 0x18
call fcn.0054d730
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x57066c
push dword [0x603f88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x57065c
mov edx, dword [eax + 4]
test edx, edx
je 0x57065c
mov ecx, 4
nop dword [eax]
cmp dword [edx + ecx*4], 0
je 0x57066f
inc ecx
cmp ecx, 6
jl 0x570650
push esi
call fcn.005360be
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x68]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x570690
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x5706ea
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x5706c4
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x5706c4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x5706c4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x64]
add ebx, 0x40
test ecx, ecx
je 0x5706e3
mov edx, dword [ecx]
cmp ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebx + 0x24], 0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x57072c
push dword [0x603f88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x57071c
mov edx, dword [eax + 4]
test edx, edx
je 0x57071c
mov ecx, 4
nop dword [eax]
cmp dword [edx + ecx*4], 0
je 0x570730
inc ecx
cmp ecx, 6
jl 0x570710
push esi
call fcn.005360be
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
mov al, byte [esi + 0x88]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x570750
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x570793
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x570784
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x570784
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x570784
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebx + 0x18]
call fcn.0054d730
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x5707d2
push dword [0x603f88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5707c2
mov edx, dword [eax + 4]
test edx, edx
je 0x5707c2
mov ecx, 4
cmp dword [edx + ecx*4], 0
je 0x5707d6
inc ecx
cmp ecx, 6
jl 0x5707b6
push esi
call fcn.005360be
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
mov al, byte [esi + 0x80]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret