joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56f8a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x56f8c7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0056f100
mov dword [esp + 4], eax
jmp 0x56f8e1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x56f994
mov cl, byte [esp + 0xc]
test cl, cl
js 0x56f906
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x56f916
mov esi, 2
jmp 0x56f932
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x56f925
mov esi, 3
jmp 0x56f932
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x56f980
mov esi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [esi - 1]
mov byte [eax], cl
inc eax
cmp dword [edi + 4], 0
je 0x56f95b
push ebx
push eax
push edi
call fcn.0056f100
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop edi
pop ecx
ret 8

Function at 0x570798
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x5707f6
add ebx, 2
lea eax, [ebx*2 + 2]
push eax
push edi
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x5707f6
cmp dword [ebp + 0xc], 0
je 0x5707e5
push dword [ebp + 0xc]
push edi
call fcn.0061f307
push 0x64de80
push edi
call fcn.0061f329
add esp, 0x10
jmp 0x5707f2
push 0x64de80
push edi
call fcn.0061f307
pop ecx
pop ecx
mov esi, edi
jmp 0x5707f9
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x570862
mov eax, dword [0x6b63a0]
dec eax
sub eax, 1
je 0x57083c
sub eax, 0x16
je 0x570834
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + ebx]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x570862
push esi
call fcn.0061a2f0
jmp 0x570842
push esi
call fcn.0061a380
mov esi, eax
lea eax, [ebp + 0x10]
push 0
push eax
push esi
call fcn.0061f610
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0061a2e0
test edi, edi
je 0x570875
push edi
push 0
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x570ae9
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
push 0x20
pop ecx
push ecx
and dword [eax + 0x40], 0
and dword [eax + 0x44], 0
mov dword [eax + 0x68], ecx
add eax, 0x48
push 0x64dfd8
push eax
call fcn.00541db0
add esp, 0xc
ret
Function at 0x5722c0
Capabilities:
Hash data using sha384

Disassembly:
mov eax, dword [esp + 4]
push 0x40
push 0x64e2d8
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], 0x30
add eax, 0x88
push eax
call fcn.00541db0
add esp, 0xc
ret

Function at 0x5723d6
Capabilities:
Hash data using sha512

Disassembly:
mov eax, dword [esp + 4]
push 0x40
pop ecx
push ecx
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], ecx
add eax, 0x88
push 0x64e298
push eax
call fcn.00541db0
add esp, 0xc
ret
Function at 0x575a22
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
or eax, edx
push esi
mov esi, dword [esp + 0x14]
or eax, esi
push edi
mov edi, dword [esp + 0x1c]
or eax, edi
test al, 3
jne 0x575a73
add edi, esi
cmp esi, edi
jae 0x575a8b
sub ebx, esi
add ebx, edx
mov ecx, dword [esi]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [ebx + esi], edx
add esi, 4
cmp esi, edi
jb 0x575a4b
jmp 0x575a8b
add edi, edx
cmp edx, edi
jae 0x575a8b
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 3
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x575a7b
pop edi
pop esi
pop ebx
ret

Function at 0x575a8f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push ebp
or eax, edx
push esi
mov esi, dword [esp + 0x18]
or eax, esi
push edi
mov edi, dword [esp + 0x20]
or eax, edi
test al, 7
jne 0x575ad7
lea ebp, [esi + edi]
cmp esi, ebp
jae 0x575aef
sub ebx, esi
lea edi, [ebx + edx]
push dword [esi + 4]
push dword [esi]
call fcn.00572280
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
add esi, 8
pop ecx
pop ecx
cmp esi, ebp
jb 0x575abb
jmp 0x575aef
add edi, edx
cmp edx, edi
jae 0x575aef
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 7
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x575adf
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x575c73
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x5c], eax
ret
Function at 0x576fab
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x57785b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
jne 0x57786c
mov eax, dword [esp + 0xc]
jmp 0x57794e
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
not ecx
cmp esi, 8
jb 0x57792d
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x64e320]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x64e320]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x64e320]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x64e320]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x64e320]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x64e320]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x64e320]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x64e320]
sub edi, 1
jne 0x577886
pop edi
test esi, esi
je 0x577949
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x64e320]
inc edx
sub esi, 1
jne 0x577931
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x577e60
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
test byte [esp + 0x1c], 0x10
mov ecx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov ebp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [esp + 0x10], eax
mov esi, eax
cmovne ebp, ecx
mov dword [esp + 0xc], esi
push edi
test ebx, ebx
jle 0x577f1b
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
add ecx, 0xfffffffc
mov dword [esp + 0x20], ecx
mov edx, eax
mov dword [esp + 0x24], edi
sub edx, esi
cmp ebx, 3
jae 0x577f6f
mov esi, dword [esp + 0x2c]
and esi, 0x20
cmp ebx, 2
jne 0x577f2c
test esi, esi
je 0x577eca
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffffd
cmp edx, ecx
jge 0x577fdf
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 0xa
mov edi, dword [esp + 0x24]
shl edx, 2
add edi, 2
or edx, ecx
mov ecx, edx
shr ecx, 0xc
movzx ecx, byte [ecx + ebp]
mov byte [eax], cl
mov ecx, edx
shr ecx, 6
and edx, 0x3f
and ecx, 0x3f
movzx ecx, byte [ecx + ebp]
mov byte [eax + 1], cl
movzx ecx, byte [edx + ebp]
mov byte [eax + 2], cl
add eax, 3
test esi, esi
jne 0x577fc7
mov byte [eax], 0x3d
inc eax
pop edi
pop esi
pop ebp
mov byte [eax], 0
sub eax, dword [esp + 8]
pop ebx
add esp, 8
ret 0x14
test esi, esi
je 0x577f37
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffffe
cmp edx, ecx
jge 0x577fdf
movzx edx, byte [edi]
inc edi
shl edx, 4
mov ecx, edx
and edx, 0x3f
shr ecx, 6
movzx ecx, byte [ecx + ebp]
mov byte [eax], cl
movzx ecx, byte [edx + ebp]
mov byte [eax + 1], cl
add eax, 2
test esi, esi
jne 0x577fc7
mov ecx, 0x3d3d
mov word [eax], cx
add eax, 2
jmp 0x577fc7
cmp edx, ecx
jge 0x577fdf
movzx edx, byte [edi]
movzx ecx, byte [edi + 1]
movzx esi, byte [edi + 2]
add edi, 3
shl ecx, 8
shl edx, 0x10
or edx, ecx
or esi, edx
mov ecx, esi
shr ecx, 6
and ecx, 0x3f
movsx edx, byte [ecx + ebp]
mov ecx, esi
and ecx, 0x3f
movsx ecx, byte [ecx + ebp]
shl ecx, 8
or edx, ecx
mov ecx, esi
shr ecx, 0xc
and ecx, 0x3f
shl edx, 8
shr esi, 0x12
movsx ecx, byte [ecx + ebp]
or edx, ecx
movsx ecx, byte [esi + ebp]
shl edx, 8
or edx, ecx
mov dword [eax], edx
add eax, 4
sub ebx, 3
test ebx, ebx
jle 0x577f1b
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
jmp 0x577ea2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x14
Function at 0x578010
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
push dword [esp + 0x1c]
xorps xmm0, xmm0
xor esi, esi
movlpd qword [esp + 0x10], xmm0
call fcn.005781d0
mov edi, eax
test edi, edi
je 0x578114
mov eax, dword [esp + 0x18]
test eax, eax
je 0x578114
push ebp
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x578113
push ebx
push 0x100000
push esi
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x57810b
mov eax, dword [edi + 4]
push esi
call eax
mov esi, eax
test esi, esi
je 0x5780fc
mov ecx, dword [edi + 8]
push 0
push esi
call ecx
push 0
push 0
push dword [esp + 0x2c]
push edi
push esi
call fcn.00579c60
cmp dword [esp + 0x18], 0
jl 0x5780c2
mov eax, dword [esp + 0x14]
jg 0x5780b3
test eax, eax
je 0x5780c2
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push 0x100000
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
mov eax, dword [edi + 0xc]
push ebx
push esi
call eax
cmp dword [esp + 0x10], 0x100000
je 0x5780c2
mov eax, dword [edi + 0x10]
push esi
call eax
push dword [esp + 0x24]
push edi
push esi
call fcn.00579c10
push ebx
push 0
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
push dword [esp + 0x20]
push esi
call fcn.00579ba0
test esi, esi
je 0x578128
mov eax, dword [edi + 0x14]
push esi
call eax
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x578dc0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call fcn.00578fc0
mov ebp, eax
add esp, 0xc
xor ebx, ebx
lea edi, [ebp*4]
test edi, edi
jle 0x578e39
mov ecx, dword [esp + 0x14]
lea esi, [esi + edi*4]
add esi, 8
add ecx, 8
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x578df5
mov esi, dword [esp + 0x14]
cmp ebp, 1
jle 0x578fb2
add esi, 4
lea edi, [ebp - 1]
mov edx, dword [esi + 0xc]
lea esi, [esi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi - 3]
mov ecx, dword [ecx*4 + 0x64fb30]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x650330]
movzx eax, dl
mov edx, dword [esi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x650730]
movzx eax, byte [esi - 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x64ff30]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi - 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x64ff30]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x650330]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x64fb30]
movzx eax, dl
mov edx, dword [esi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x650730]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x64ff30]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x650330]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x64fb30]
movzx eax, dl
mov edx, dword [esi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x650730]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi + 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x64ff30]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x650330]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x64fb30]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x650730]
mov dword [esi + 8], ecx
sub edi, 1
jne 0x578e48
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x579c60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x94
test dword [esp + 0xa0], 0x10000
je 0x579de6
push ebx
mov ebx, dword [esp + 0x9c]
test ebx, ebx
je 0x579de5
mov eax, dword [ebx]
mov ecx, dword [esp + 0xa8]
cdq
and edx, 7
push ebp
mov ebp, dword [ebx + 4]
add eax, edx
sar eax, 3
test ecx, ecx
push esi
push edi
mov edi, 0x6363f8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb8]
cmovne edi, ecx
cmp eax, 0x18
jne 0x579cd1
push edi
call fcn.0061a2f0
mov edi, eax
mov esi, edi
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x579cc6
sub esi, eax
jmp 0x579d09
cmp eax, 0x19
jne 0x579cf3
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x579ce0
sub esi, ecx
sar esi, 1
add esi, esi
jmp 0x579d09
push edi
call fcn.0061a380
mov edi, eax
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x579d00
sub esi, ecx
push esi
push edi
cmp esi, ebp
jle 0x579d58
mov esi, dword [esp + 0xb4]
push ebx
mov eax, dword [esi + 0xc]
call eax
mov eax, dword [esi + 0x10]
push ebx
call eax
push dword [esp + 0x10]
lea eax, [ebx + 8]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00541db0
mov eax, ebp
sub eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
add eax, dword [esp + 0x20]
push 0
push eax
call fcn.00541c50
mov eax, dword [esi + 8]
add esp, 0x18
push 1
push ebx
call eax
jmp 0x579d78
lea eax, [esp + 0x1c]
push eax
call fcn.00541db0
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x24]
add eax, esi
push 0
push eax
call fcn.00541c50
add esp, 0x18
push ebp
lea eax, [esp + 0x18]
push eax
lea esi, [ebx + 0x48]
push esi
call fcn.00541db0
add esp, 0xc
test ebp, ebp
jle 0x579da5
lea eax, [esp + 0x14]
mov ecx, ebp
xor byte [eax], 0x36
lea eax, [eax + 1]
xor byte [esi], 0x5c
lea esi, [esi + 1]
sub ecx, 1
jne 0x579d94
push ebp
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xb4]
push ebx
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [esp + 0xb8]
cmp eax, 0x18
jne 0x579dd7
push edi
call fcn.0061a2e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14
cmp eax, 0x19
je 0x579de2
push edi
call fcn.0061a2e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14

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

Disassembly:
push edi
push dword [0x6b90a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x579eb2
push esi
push dword [0x6b90a0]
push 8
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x6b90a4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x6b909c]
jmp 0x579ea2
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x579ea0
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x579e90
push edi
push 0x579def
call fcn.005308eb
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x579ebc
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x579ed2
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x6b90a0]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x579f0b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x6b78c0]
mov dword [0x6b90a4], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x6b90a4]
call ebx
mov esi, dword [0x6b90a0]
lea eax, [edi + esi]
push eax
push dword [0x6b90a4]
mov dword [0x6b90a0], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x6b90a4]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x579f4a
test ebx, ebx
je 0x579f6b
push 0x14
push 0x6b909c
call fcn.0057a704
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x579f6b
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x57b350
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6b6474]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x57b389
push ecx
push dword [0x6ba134]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x57b398
push ecx
push 0
push dword [0x6ba134]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.0057b7b0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x57b440
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6b6474]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov eax, ecx
ret

Function at 0x57b490
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6b6474]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret
Function at 0x57b590
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6b6474]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x57b5ae
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x57b5d2
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x57b5ed
cmp edx, 0x100000
jle 0x57b600
cmp ecx, 0x100000
jge 0x57b5e7
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x6ba134]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x57b620
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6b6474]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4

Function at 0x57b740
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6b6474]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4

Function at 0x57b760
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6b6474]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x57b787
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x57b787
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x57b790
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6b6474]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x57b9c0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6b6474]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4
Function at 0x582940
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jle 0x582a33
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax + 8]
mov ebx, ecx
add ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, edx
mov edi, dword [eax + 4]
adc edi, edx
mov dword [esp + 0x18], ebx
shld edx, ecx, 0xd
shr esi, 0x13
xor ebp, ebp
shl ecx, 0xd
or ebp, edx
mov edx, dword [eax + 0x1c]
or esi, ecx
mov ecx, dword [eax + 0x18]
xor esi, ebx
xor ebp, edi
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x20], ebp
add esi, dword [eax + 0x10]
mov ebp, edx
mov ebx, edx
mov dword [esp + 0x10], edi
adc ebp, dword [eax + 0x14]
xor edi, edi
shld edx, ecx, 0x10
shr ebx, 0x10
shl ecx, 0x10
or edi, edx
or ebx, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x10]
xor ebx, esi
xor edi, ebp
xor esi, esi
or esi, dword [esp + 0x18]
mov edx, edi
add ecx, ebx
mov dword [esp + 0x10], ecx
adc esi, edi
mov dword [eax], ecx
shld edi, ebx, 0x15
xor ecx, ecx
shr edx, 0xb
or ecx, edi
shl ebx, 0x15
mov edi, dword [esp + 0x14]
or edx, ebx
xor edx, dword [esp + 0x10]
xor ecx, esi
add edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + 4], esi
mov esi, ebx
adc esi, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
shld ebx, ebp, 0x11
shr edx, 0xf
or ecx, ebx
shl ebp, 0x11
xor ecx, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], ecx
or edx, ebp
xor ecx, ecx
xor edx, edi
or ecx, edi
mov dword [eax + 8], edx
sub dword [esp + 0x2c], 1
mov dword [eax + 0x14], ecx
jne 0x582956
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x582a40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x1ec], 0
jne 0x582adc
push esi
xor esi, esi
nop dword [eax + eax]
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x582aa6
mov edx, dword [esp + 0x14]
xor ecx, ecx
nop
cmp esi, 4
jae 0x582a9b
mov eax, edx
shr eax, cl
add ecx, 8
mov byte [esp + esi + 8], al
inc esi
cmp ecx, 0x20
jb 0x582a80
cmp esi, 4
jb 0x582a60
push dword [esp + 8]
push str.rand_s
jmp 0x582acd
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [esp + 8]
xor esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, esi
imul eax, eax, 0x7fffffff
push eax
push str.fallback_4_
call fcn.0057b9e0
add esp, 8
mov dword [edi + 0x1ec], eax
pop esi
cmp byte [edi + 0xe8], 0
je 0x582af8
push str.xmlhttp:__www.w3.org_XML_1998_namespace
push edi
call fcn.00582340
add esp, 8
pop edi
add esp, 8
ret
mov al, 1
pop edi
add esp, 8
ret