joyce8/EMBER2024-capa huggingface dataset:
Function at 0x573850
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.advapi32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x57389b
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.advapi32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x57389b
lea edi, [esp + 0x10]
push 0x71a314
call fcn.005865b0
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x573903
push 0x71a308
call fcn.005865b0
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x573903
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
call esi
push eax
push 0x71a544
call fcn.005865b0
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.00572d80
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x573950
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x573950
push 0x71a528
call fcn.005865b0
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.00572d80
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
push esi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4

Function at 0x573970
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0xf672f9]
test al, al
je 0x573983
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, byte [ecx + 0x1269]
mov dword [ebp - 4], 0
test al, al
je 0x5739ab
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov al, byte fs:[0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x574610
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x6c82fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
call fcn.005869d0
mov ebx, dword [esp + 0x430]
lea eax, [esp + 8]
push eax
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x430], 0
call fcn.00586aa0
test al, al
jne 0x5746b2
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov eax, dword [0xf672fc]
test eax, eax
je 0x5746b2
push esi
mov esi, dword [esp + 0x420]
call edi
push eax
push esi
push ebx
push 0x71aa0c
call fcn.005865b0
mov ecx, dword [0xf672fc]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.00572d80
add esp, 0x14
pop esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x71a9d8
call fcn.005865b0
add esp, 4
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
pop edi
pop ebx
test eax, eax
jne 0x574759
cmp dword [esp + 0xc], 2
jne 0x574719
mov eax, dword [esp + 0x42c]
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0
push eax
call fcn.005865b0
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
cmp eax, ecx
je 0x574788
mov edx, dword [0xf672fc]
test edx, edx
je 0x5747bf
push ecx
push eax
push 0x71a9c0
call fcn.005865b0
add esp, 4
push eax
mov eax, dword [0xf672fc]
add eax, 0x20
push eax
jmp 0x5747b7
mov ecx, dword [0xf672fc]
test ecx, ecx
je 0x574784
push eax
push 0x71a9a8
call fcn.005865b0
mov ecx, dword [0xf672fc]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.00572d80
add esp, 0xc
mov eax, dword [esp]
mov ecx, dword [esp + 0x430]
cmp eax, ecx
je 0x5747ea
mov edx, dword [0xf672fc]
test edx, edx
je 0x5747bf
push ecx
push eax
push 0x71a990
call fcn.005865b0
mov edx, dword [0xf672fc]
add esp, 4
add edx, 0x20
push eax
push edx
call fcn.00572d80
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.00586a10
xor al, al
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
add esp, 0x424
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.00586a10
mov ecx, dword [esp + 0x418]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x5757d0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push ebx
push eax
push 0xf003f
push 0
push 0x71ac9c
xor bl, bl
call fcn.005865b0
add esp, 4
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x575831
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push 0x71ac84
call fcn.005865b0
mov edx, dword [esp + 0x18]
add esp, 4
push eax
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0x575826
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret

Function at 0x578030
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
test eax, eax
jle 0x578098
movzx eax, word [esp + 0x10]
movzx ecx, byte [esp + 0x14]
push ebx
lea eax, [eax + eax*4]
shl eax, 1
add ecx, eax
push ebp
push edi
lea edi, [ecx + ecx*4]
movzx ecx, byte [esp + 0x24]
add ecx, eax
lea ebp, [ecx + ecx*4]
mov ecx, dword [esp + 0x14]
shl edi, 3
shl ebp, 3
xor edx, edx
mov eax, esi
mov ebx, 0x28
div ebx
mov bl, byte [ecx]
mov al, byte [edx + edi + 0x6e9a88]
xor bl, al
mov byte [ecx], bl
mov dl, byte [edx + ebp + 0x6e9a88]
mov al, bl
xor dl, al
mov eax, dword [esp + 0x18]
mov byte [ecx], dl
inc ecx
inc esi
cmp esi, eax
jl 0x578066
pop edi
pop ebp
pop ebx
pop esi
ret 0x14

Function at 0x578240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test ebp, ebp
jle 0x57829b
movzx eax, word [esp + 0x14]
movzx ecx, byte [esp + 0x18]
lea eax, [eax + eax*4]
push ebx
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x10]
push edi
lea edi, [eax + eax*4]
shl edi, 3
jmp 0x578270
xor edx, edx
mov eax, esi
mov ebx, 0x28
div ebx
mov al, byte [ecx]
mov dl, byte [edx + edi + 0x6e9a88]
xor dl, al
mov al, dl
sar al, 7
and al, 1
shl dl, 1
or al, dl
mov byte [ecx], al
inc ecx
inc esi
cmp esi, ebp
jl 0x578270
pop edi
pop ebx
pop esi
pop ebp
ret 0x10

Function at 0x5782a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push edi
xor edi, edi
test eax, eax
jle 0x5782fb
movzx eax, word [esp + 0x10]
movzx ecx, byte [esp + 0x14]
push ebx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
push ebp
lea ebx, [eax + eax*4]
push esi
mov esi, dword [esp + 0x14]
shl ebx, 3
mov al, byte [esi]
mov cl, al
sar cl, 1
shl al, 7
and cl, 0x7f
or cl, al
xor edx, edx
mov eax, edi
mov ebp, 0x28
div ebp
mov eax, dword [esp + 0x18]
mov byte [esi], cl
mov dl, byte [edx + ebx + 0x6e9a88]
xor dl, cl
mov byte [esi], dl
inc esi
inc edi
cmp edi, eax
jl 0x5782c8
pop esi
pop ebp
pop ebx
pop edi
ret 0x10
Function at 0x57bb24
Capabilities:
Get memory capacity

Disassembly:
add ecx, 0xa8
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
xor eax, eax
inc eax
ret
Function at 0x57d953
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov eax, 0x1014
lea ebp, [esp - 0xf94]
call fcn.00693490
mov eax, dword [0x721bb0]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x8000027
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0xf9c]
mov dword [ebp + 0xf90], eax
mov eax, dword [ebp + 0xfa0]
or dword [eax], 0xffffffff
mov dword [ebp - 0x7c], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
jne 0x57d9b0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x7c], eax
jmp 0x57da17
mov dword [ebp - 0x80], 0x71ae00
push esi
jmp 0x57d9f7
cmp dword [ebp - 0x74], 0
je 0x57da11
push esi
push edi
mov eax, dword [ebp + 0xfa0]
mov ecx, dword [eax]
mov edi, dword [ebp - 0x80]
lea esi, [ebp - 0x70]
mov ebx, dword [ebp - 0x74]
lea edx, [esi + ebx]
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x57d9d6
pop edi
pop esi
mov eax, dword [ebp + 0xfa0]
mov dword [eax], ecx
push 0
lea eax, [ebp - 0x74]
push eax
push 0x1000
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x57d9ba
cmp dword [ebp - 0x78], 0
je 0x57da20
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xfa0]
not dword [eax]
mov ecx, dword [ebp + 0xf90]
mov eax, dword [ebp - 0x7c]
call fcn.00692fc7
pop edi
pop esi
pop ebx
add ebp, 0xf94
leave
ret
Function at 0x583a8a
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x6c88b3
call fcn.00692bd4
sub esp, 0x198
mov eax, dword [0x721bb0]
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x1a4], esi
call fcn.005832e8
xor eax, eax
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], eax
mov dword [esi], 0x6e9734
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
call fcn.005ea8f5
push 0x40
pop ecx
xor eax, eax
lea edi, [esi + 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
mov ecx, esi
call fcn.005835c2
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.00692fc7
leave
ret

Function at 0x584dc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x148
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [ebp]
cmp ebx, 0xffffffff
jne 0x584ddf
pop ebp
xor al, al
pop ebx
add esp, 0x148
ret 0xc
mov edx, dword [esp + 0x158]
mov ecx, dword [esp + 0x154]
push esi
mov esi, dword [esp + 0x160]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x613
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
jne 0x584e7a
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
cmp eax, 0x104
mov dword [esp + 0x20], eax
jbe 0x584e34
mov eax, 0x104
mov byte [esi + 0x103], 0
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ecx
mov ecx, eax
mov dword [esp + 0x48], edx
mov edx, ecx
lea edi, [esp + 0x54]
mov dword [esp + 0x50], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
add eax, 0x10
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x48]
push ecx
push eax
mov eax, dword [ebp]
push edx
push eax
jmp 0x584ed5
cmp edx, 0x619
jne 0x584ec6
mov eax, 0x10
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x3c], eax
push 0
push edx
lea eax, [esp + 0x2c]
push 0x20
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], ecx
push eax
jmp 0x584ed4
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x10
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop edi
pop esi
test eax, eax
jne 0x584f05
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x584ef8
cmp eax, 0xe8
je 0x584ef8
cmp eax, 6
jne 0x584f05
pop ebp
xor al, al
pop ebx
add esp, 0x148
ret 0xc
pop ebp
mov al, 1
pop ebx
add esp, 0x148
ret 0xc
Function at 0x585020
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0xffffffff
je 0x585038
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
push 0xfffffffffffffff5
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi + 0x130], eax
lea eax, [esp + 0x10]
lea ebx, [esi + 0x140]
push 0
lea edi, [esi + 0x13c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x585087
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_SetStdHandle]
test eax, eax
jne 0x5850a0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov ebp, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push 0
lea edx, [esi + 4]
push 0
push edx
call ebp
push eax
mov eax, dword [edi]
push eax
call ebp
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
jne 0x5850cd
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
lea edx, [esp + 0x10]
lea edi, [esi + 0x138]
push 0
lea ebx, [esi + 0x134]
push edx
push edi
push ebx
mov dword [esi + 0x12c], eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x58510d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [ebx]
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_SetStdHandle]
test eax, eax
jne 0x585126
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
push 2
push 0
push 0
push esi
call ebp
mov ecx, dword [edi]
push eax
push ecx
call ebp
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
jne 0x58514a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret

Function at 0x585160
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0xffffffff
jne 0x585170
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0x12c]
mov edi, dword [sym.imp.KERNEL32.DLL_SetStdHandle]
push eax
push 0xfffffffffffffff6
call edi
test eax, eax
jne 0x585189
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x130]
push ecx
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x58519c
pop edi
pop esi
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x5851b5
pop edi
pop esi
pop ecx
ret
lea edx, [esp + 8]
push edx
push 0
push esi
push 0x585270
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [esp + 8]
mov dword [esi + 0x144], eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
pop ecx
ret
Function at 0x5864a0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
je 0x586537
mov ecx, edi
push ebx
and ecx, 0xff
push esi
mov byte [0x1067f01], cl
mov byte [0x1067f00], 1
lea edx, [ecx + ecx*2 + 0x65]
lea ecx, [ecx + ecx*2 + 1]
mov dword [esp + 0x10], edx
mov esi, 4
lea ecx, [ecx + ecx*2]
lea edx, [ecx + 0x65]
inc ecx
test eax, eax
jle 0x58650c
push ebp
sub edi, 0x1067f04
mov ebp, eax
mov bl, byte [edi + esi + 0x1067f00]
lea ecx, [ecx + ecx*2]
mov al, cl
add al, 0x65
xor bl, al
mov byte [esi + 0x1067f00], bl
inc esi
inc ecx
dec ebp
jne 0x5864f0
pop ebp
mov bl, byte [esp + 0x10]
lea ecx, [esi - 4]
mov eax, ecx
mov byte [esi + 0x1067f00], 0
sar eax, 8
xor al, bl
xor dl, cl
pop esi
mov byte [0x1067f02], al
pop ebx
mov byte [0x1067f03], dl
mov eax, 0x1067f00
pop edi
ret
mov eax, 0x1067f00
pop edi
ret

Function at 0x586540
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x586549
ret
cmp byte [eax], 1
jne 0x5865a4
movsx ecx, byte [eax + 1]
push ebx
mov bl, byte [eax + 2]
lea ecx, [ecx + ecx*2]
push esi
mov dl, cl
push edi
add dl, 0x65
lea ecx, [ecx + ecx*2 + 3]
xor bl, dl
mov dl, cl
mov byte [eax + 2], bl
mov bl, byte [eax + 3]
add dl, 0x65
xor esi, esi
xor bl, dl
xor edx, edx
mov dh, byte [eax + 2]
inc ecx
mov dl, bl
mov byte [eax + 3], bl
mov edi, edx
test edi, edi
jle 0x58659d
mov bl, byte [esi + eax + 4]
lea ecx, [ecx + ecx*2]
mov dl, cl
add dl, 0x65
xor bl, dl
inc ecx
mov byte [esi + eax], bl
inc esi
cmp esi, edi
jl 0x586586
mov byte [edi + eax], 0
pop edi
pop esi
pop ebx
ret
Function at 0x5865b0
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x1067ef8]
sub esp, 0x40c
test al, 1
push ebx
push edi
jne 0x5865e4
mov bl, al
push 0x1067e78
or bl, 1
mov byte [0x1067ef8], bl
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
push 0x586780
call fcn.006938d1
add esp, 4
mov edi, dword [esp + 0x418]
test edi, edi
jne 0x5865fa
pop edi
xor eax, eax
pop ebx
add esp, 0x40c
ret
push ebp
push esi
push 0x1067e78
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [edi], 1
jne 0x58665c
movsx eax, byte [edi + 1]
mov dl, byte [edi + 2]
mov bl, byte [edi + 3]
lea eax, [eax + eax*2]
xor esi, esi
mov cl, al
add cl, 0x65
lea eax, [eax + eax*2 + 3]
xor dl, cl
xor ecx, ecx
mov byte [edi + 2], dl
mov ch, byte [edi + 2]
mov dl, al
add dl, 0x65
xor bl, dl
inc eax
mov cl, bl
mov byte [edi + 3], bl
mov ebp, ecx
test ebp, ebp
jle 0x586658
mov cl, byte [esi + edi + 4]
lea eax, [eax + eax*2]
mov dl, al
add dl, 0x65
xor cl, dl
inc eax
mov byte [esi + edi], cl
inc esi
cmp esi, ebp
jl 0x586641
mov byte [edi + ebp], 0
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov edx, 1
mov ecx, 0x1067e94
cmp dword [ecx], eax
je 0x586680
add ecx, 4
inc edx
cmp ecx, 0x1067eb8
jl 0x58666e
jmp 0x586686
test edx, edx
mov ebx, edx
jne 0x5866a1
mov ecx, dword [0x1068300]
cmp ecx, 9
jae 0x5866a1
inc ecx
mov dword [0x1068300], ecx
mov ebx, ecx
mov dword [ecx*4 + 0x1067e90], eax
mov esi, dword [ebx*4 + 0x1067eb8]
mov dword [ebx*4 + 0x1067eb8], edi
test esi, esi
je 0x58675b
cmp esi, edi
je 0x58675b
cmp byte [edi], 1
je 0x58675b
cmp byte [esi], 1
je 0x58675b
lea edx, [esp + 0x1c]
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
mov dword [esp + 0x18], eax
je 0x58675b
lea ecx, [esp + 0x1c]
mov byte [esi], 1
and ecx, 0xff
mov ebp, 4
mov byte [esi + 1], cl
lea edx, [ecx + ecx*2 + 0x65]
lea ecx, [ecx + ecx*2 + 1]
mov dword [esp + 0x14], edx
xor edx, edx
lea ecx, [ecx + ecx*2]
lea ebx, [ecx + 0x65]
inc ecx
test eax, eax
mov dword [esp + 0x10], ebx
jle 0x586741
mov bl, byte [esp + edx + 0x1c]
lea ecx, [ecx + ecx*2]
mov al, cl
add al, 0x65
xor bl, al
mov eax, dword [esp + 0x18]
mov byte [esi + ebp], bl
inc ebp
inc ecx
inc edx
cmp edx, eax
jl 0x586722
mov ebx, dword [esp + 0x10]
mov dl, byte [esp + 0x14]
lea eax, [ebp - 4]
mov ecx, eax
mov byte [esi + ebp], 0
sar ecx, 8
xor cl, dl
xor bl, al
mov byte [esi + 2], cl
mov byte [esi + 3], bl
push 0x1067e78
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0x40c
ret

Function at 0x5869d0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
mov eax, ecx
push edi
xor esi, esi
mov edi, eax
mov edx, esi
mov ebx, 8
test dl, 1
je 0x5869ef
shr edx, 1
xor edx, 0xedb88320
jmp 0x5869f1
shr edx, 1
dec ebx
jne 0x5869e0
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x5869d9
pop edi
pop esi
pop ebx
ret
Function at 0x586a50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push edi
test eax, eax
mov edi, ecx
jne 0x586a6b
mov dword [edi + 0x400], 1
xor al, al
pop edi
ret 0xc
mov ecx, dword [esp + 0xc]
push esi
lea esi, [eax + ecx]
cmp eax, esi
jae 0x586a98
mov edx, dword [esp + 0x14]
push ebx
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax]
mov bl, byte [edx]
xor ecx, ebx
mov ebx, dword [edx]
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
inc eax
cmp eax, esi
mov dword [edx], ecx
jb 0x586a7c
pop ebx
pop esi
mov al, 1
pop edi
ret 0xc

Function at 0x586aa0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.00693490
mov eax, dword [esp + 0x1008]
push ebp
push esi
mov esi, dword [esp + 0x1014]
test eax, eax
push edi
mov ebp, ecx
mov dword [esi], 0xffffffff
je 0x586ba5
cmp byte [eax], 0
je 0x586ba5
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x586b0c
pop edi
mov dword [ebp + 0x400], 2
pop esi
xor al, al
pop ebp
add esp, 0x1004
ret 8
push ebx
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x586b7f
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x586b7b
lea ecx, [esp + ecx + 0x14]
lea edx, [esp + 0x14]
cmp edx, ecx
lea eax, [esp + 0x14]
jae 0x586b5d
xor edx, edx
xor ebx, ebx
mov dl, byte [esi]
mov bl, byte [eax]
xor edx, ebx
mov ebx, dword [esi]
shr ebx, 8
mov edx, dword [ebp + edx*4]
xor edx, ebx
inc eax
cmp eax, ecx
mov dword [esi], edx
jb 0x586b41
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x586b29
jmp 0x586b7f
test eax, eax
jne 0x586b89
mov dword [ebp + 0x400], 3
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [esi]
pop ebx
not edx
mov dword [esi], edx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x1004
ret 8
pop edi
mov dword [ebp + 0x400], 1
pop esi
xor al, al
pop ebp
add esp, 0x1004
ret 8
Function at 0x5c0b9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1070a70]
cmp eax, 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
jne 0x5c0bc0
call esi
mov dword [0x1070a70], eax
mov dword [0x1070a6c], eax
mov edi, eax
call esi
mov dword [0x1070a70], eax
xor ebx, ebx
sub eax, edi
cmp dword [0x1070a84], ebx
jle 0x5c0c48
test eax, eax
mov dword [ebp - 8], eax
fild dword [ebp - 8]
jge 0x5c0be5
fadd dword [0x6d08e4]
fstp dword [ebp - 4]
mov eax, dword [0x1070a8c]
fld dword [0x6d3454]
mov esi, ebx
shl esi, 2
fdiv dword [esi + eax]
mov eax, dword [0x1070a80]
fdivr dword [ebp - 4]
fstp dword [esi + eax]
mov ecx, dword [0x1070a74]
fld dword [esi + ecx]
mov eax, dword [0x1070a80]
add eax, esi
fadd dword [eax]
fstp dword [eax]
mov eax, dword [0x1070a80]
lea edi, [esi + eax]
fld dword [edi]
call fcn.00693530
mov dword [ebp - 8], eax
fild dword [ebp - 8]
mov eax, dword [0x1070a74]
inc ebx
fstp dword [ebp - 8]
fld dword [edi]
fsub dword [ebp - 8]
fstp dword [esi + eax]
cmp ebx, dword [0x1070a84]
jl 0x5c0be8
pop edi
pop esi
pop ebx
leave
ret