joyce8/EMBER2024-capa huggingface dataset:
Function at 0x870540
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x540
push ebx
lea eax, [esp + 0x33c]
push 0x104
xor bl, bl
push eax
push 0
mov byte [esp + 0x13], bl
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push 0
push 0
lea ecx, [esp + 0x13c]
push 0x104
lea edx, [esp + 0x348]
push ecx
push edx
call fcn.0087a007
add esp, 4
inc eax
push eax
lea eax, [esp + 0x350]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x134]
push 0x5c
push ecx
call fcn.0087cf51
add esp, 8
test eax, eax
je 0x8705af
mov byte [eax], bl
lea edx, [esp + 8]
push edx
push 3
push 0
push 0x96eca0
call fcn.00875080
add esp, 4
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x870724
push ebp
mov edx, dword [esp + 0xc]
push eax
push eax
mov ebx, dword [sym.imp.advapi32.dll_RegEnumValueA]
push eax
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x104
mov ebp, 1
call ebx
cmp eax, 0x103
je 0x87070c
push esi
push edi
test eax, eax
jne 0x8706da
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x244]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x248]
push ecx
call fcn.0087cf51
add esp, 8
test eax, eax
je 0x870658
mov byte [eax], 0
lea edx, [esp + 0x140]
lea eax, [esp + 0x244]
push edx
push eax
call fcn.0087cd32
add esp, 8
test eax, eax
jne 0x8706da
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push eax
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x8706da
mov eax, dword [0x97fc64]
test eax, eax
je 0x8706c1
lea edx, [esp + 0x1c]
push edx
push 0x96ec88
call fcn.00875080
add esp, 4
push eax
mov eax, dword [0x97fc64]
add eax, 0x24
push eax
call fcn.0086cff0
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegDeleteValueA]
test eax, eax
jne 0x8706da
mov byte [esp + 0x13], 1
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x4c]
mov eax, ebp
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], 0x104
push eax
inc ebp
call ebx
cmp eax, 0x103
jne 0x870611
pop edi
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, byte [esp + 0xb]
pop ebp
pop ebx
add esp, 0x540
ret
mov al, bl
pop ebx
add esp, 0x540
ret
Function at 0x870730
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push ebx
push eax
push 0xf003f
push 0
push 0x96ed00
xor bl, bl
call fcn.00875080
add esp, 4
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x870791
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push 0x96ece8
call fcn.00875080
mov edx, dword [esp + 0x18]
add esp, 4
push eax
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0x870786
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 0x870890
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x96ed74
call fcn.00875080
mov esi, dword [sym.imp.kernel32.dll_OpenFileMappingA]
add esp, 4
push eax
push 0
push 0xf001f
call esi
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x8708e4
push 0x96ed68
call fcn.00875080
add esp, 4
push eax
push edi
push 0xf001f
call esi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x8708e0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x10]
push 0x1000
push 0
push 0
push 0xf001f
push edi
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x87090e
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push 0x96ed54
call fcn.00875080
mov esi, dword [sym.imp.kernel32.dll_OpenMutexA]
add esp, 4
push eax
push 0
push 0x100000
call esi
mov ebp, eax
test ebp, ebp
jne 0x870963
push 0x96ed48
call fcn.00875080
add esp, 4
push eax
push ebp
push 0x100000
call esi
mov ebp, eax
test ebp, ebp
jne 0x870963
push ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push 0xffffffffffffffff
push ebp
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ecx, dword [ebx]
mov eax, ebx
test ecx, ecx
je 0x87098c
add eax, ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, 0xffc
jae 0x87098a
mov ecx, dword [eax]
test ecx, ecx
jne 0x870974
jmp 0x87098c
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov esi, 0xffc
sub edx, ebx
sub esi, ecx
cmp edx, esi
jb 0x8709a3
mov eax, ebx
jmp 0x8709c1
mov esi, dword [esp + 0x18]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
add eax, ecx
push ebx
mov dword [eax], 0
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call esi
push ebp
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push ebp
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x870f10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x96ee60
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x20], 0
call fcn.00875080
add esp, 4
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x870fdd
cmp dword [esp + 8], 2
jne 0x870fd2
lea edx, [esp + 0xc]
lea eax, [esp]
push edx
push eax
push 0
push 0
push 0x96ee54
call fcn.00875080
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp dword [esp], 1
jb 0x870fd2
mov edx, dword [esp + 0x14]
push edx
push 1
call fcn.00870ff0
mov eax, dword [esp + 0x14]
add esp, 8
lea ecx, [esp]
mov dword [esp], 0
push eax
push ecx
push 4
push 0
push 0x96ee48
call fcn.00875080
mov edx, dword [esp + 0x18]
add esp, 4
push eax
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret
Function at 0x870ff0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, dword [0x97fb38]
sub esp, 0x26c
test eax, eax
push edi
jne 0x8711bb
xor eax, eax
mov ecx, pe_nt_image_headers32
mov dword [esp + 5], eax
lea edi, [esp + 0x69]
mov dword [esp + 9], eax
push ebp
mov dword [esp + 0x11], eax
push esi
mov word [esp + 0x19], ax
mov byte [esp + 0xc], 0
mov byte [esp + 0x1b], al
mov byte [esp + 0x70], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x70]
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push 0x96eedc
call fcn.00875080
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0087cfc3
add esp, 0xc
cmp eax, 0xffffffff
pop esi
pop ebp
je 0x8711bb
mov ecx, dword [esp + 0x274]
lea edx, [esp + 4]
push ecx
push 0x96eed8
push edx
call fcn.00879f55
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x179]
mov byte [esp + 0x178], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x284]
add esp, 0xc
stosb byte es:[edi], al
mov eax, dword [0x97fc60]
lea edx, [esp + 4]
and eax, 1
push eax
push ecx
lea eax, [esp + 0x70]
push edx
push eax
push 0x96eec8
call fcn.00875080
add esp, 4
lea ecx, [esp + 0x17c]
push eax
push ecx
call fcn.00879f55
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x2c], edx
add esp, 0x18
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], edx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], edx
push eax
push ecx
push edx
push edx
push edx
push edx
push edx
mov dword [esp + 0x3c], edx
push edx
lea edx, [esp + 0x18c]
push edx
push 0
mov dword [esp + 0x4c], 0x44
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
mov eax, dword [0x97fc64]
jne 0x871182
test eax, eax
je 0x8711bb
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x96eea8
call fcn.00875080
add esp, 4
push eax
mov eax, dword [0x97fc64]
add eax, 0x24
push eax
call fcn.0086cff0
add esp, 0xc
pop edi
add esp, 0x26c
ret
test eax, eax
je 0x8711ae
lea ecx, [esp + 0x16c]
push ecx
push 0x96ee94
call fcn.00875080
mov edx, dword [0x97fc64]
add esp, 4
add edx, 0x24
push eax
push edx
call fcn.0086cff0
add esp, 0xc
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
pop edi
add esp, 0x26c
ret
Function at 0x8730b0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x284
push ebx
push esi
lea eax, [esp + 0xa4]
push 0x104
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov ebx, dword [esp + 0x290]
push ebx
call fcn.00872df0
lea ecx, [esp + 0xa8]
mov esi, eax
push ecx
call fcn.00872df0
add esi, eax
add esp, 8
cmp esi, 0x104
jb 0x873107
pop esi
xor eax, eax
pop ebx
add esp, 0x284
ret
push ebp
push edi
mov edi, 0x9640e8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0xb0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
push 1
lea eax, [esp + 0xc0]
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x873277
lea ecx, [esp + 0x78]
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
mov eax, dword [esp + 0x9c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x873270
mov ebx, dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
push 0
call ebx
mov ebp, dword [sym.imp.kernel32.dll_HeapAlloc]
push eax
call ebp
mov esi, eax
test esi, esi
je 0x873270
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push 0
push edx
push eax
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x873264
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jne 0x873264
lea edx, [esp + 0x10]
lea eax, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
push esi
call fcn.00872e60
add esp, 0x14
test al, al
je 0x873264
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1b4]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.00872ef0
add esp, 0x10
push eax
push 0
call ebx
push eax
call ebp
test eax, eax
mov dword [esp + 0x14], eax
je 0x873264
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x1b8]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
push esi
call fcn.00872f80
add esp, 0x18
push esi
push 0
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x284
ret
Function at 0x874150
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
lea eax, [esi + 4]
cmp ecx, 0xffffffff
mov dword [esp + 0x10], eax
je 0x874172
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov ebp, dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
call ebp
mov dword [esi + 0x1638], eax
lea eax, [esp + 0x14]
lea ebx, [esi + 0x1648]
push 0
lea edi, [esi + 0x1644]
push eax
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x8741c3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov ecx, dword [ebx]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.kernel32.dll_SetStdHandle]
test eax, eax
jne 0x8741dc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov ebx, dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 2
push 0
lea edx, [esi + 8]
push 0
push edx
call ebx
push eax
mov eax, dword [edi]
push eax
call ebx
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
test eax, eax
jne 0x874209
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov ecx, dword [edi]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0xfffffffffffffff6
call ebp
lea edx, [esp + 0x14]
mov dword [esi + 0x1634], eax
lea edi, [esi + 0x1640]
push 0
add esi, 0x163c
push edx
push edi
push esi
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x874245
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov eax, dword [esi]
push eax
push 0xfffffffffffffff6
call dword [sym.imp.kernel32.dll_SetStdHandle]
test eax, eax
jne 0x87425e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
push 2
push 0
push 0
push ecx
call ebx
mov edx, dword [edi]
push eax
push edx
call ebx
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
test eax, eax
jne 0x874286
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov eax, dword [edi]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret

Function at 0x874310
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 1
mov esi, ecx
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x87432c
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x874460
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
jne 0x87434c
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
mov byte [esi + 0x14], 1
pop esi
pop ecx
ret
Function at 0x874360
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
jne 0x874371
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0x1634]
mov edi, dword [sym.imp.kernel32.dll_SetStdHandle]
push eax
push 0xfffffffffffffff6
call edi
test eax, eax
jne 0x87438a
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x1638]
push ecx
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x87439d
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 + 0x10], eax
jne 0x8743b6
pop edi
pop esi
pop ecx
ret
lea edx, [esp + 8]
push edx
push 0
push esi
push 0x874460
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esp + 8]
mov dword [esi], eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
pop ecx
ret

Function at 0x8743e0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x8743ed
xor al, al
pop esi
ret
mov eax, dword [esi + 0x10]
test eax, eax
je 0x8743fb
push eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x87442e
push 0x64
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x874423
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x874440
push eax
call edi
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x874452
push eax
call edi
mov dword [esi + 8], 0xffffffff
pop edi
mov al, 1
pop esi
ret
Function at 0x874f70
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.kernel32.dll_lstrlen]
test eax, eax
je 0x875007
mov ecx, edi
push ebx
and ecx, 0xff
push esi
mov byte [0x97fd51], cl
mov byte [0x97fd50], 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 0x874fdc
push ebp
sub edi, 0x97fd54
mov ebp, eax
mov bl, byte [edi + esi + 0x97fd50]
lea ecx, [ecx + ecx*2]
mov al, cl
add al, 0x65
xor bl, al
mov byte [esi + 0x97fd50], bl
inc esi
inc ecx
dec ebp
jne 0x874fc0
pop ebp
mov bl, byte [esp + 0x10]
lea ecx, [esi - 4]
mov eax, ecx
mov byte [esi + 0x97fd50], 0
sar eax, 8
xor al, bl
xor dl, cl
pop esi
mov byte [0x97fd52], al
pop ebx
mov byte [0x97fd53], dl
mov eax, 0x97fd50
pop edi
ret
mov eax, 0x97fd50
pop edi
ret

Function at 0x875010
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x875019
ret
cmp byte [eax], 1
jne 0x875074
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 0x87506d
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 0x875056
mov byte [edi + eax], 0
pop edi
pop esi
pop ebx
ret
Function at 0x875080
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x97fd48]
sub esp, 0x40c
test al, 1
push ebx
push edi
jne 0x8750b4
mov bl, al
push 0x97fca8
or bl, 1
mov byte [0x97fd48], bl
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
push 0x875250
call fcn.008796d0
add esp, 4
mov edi, dword [esp + 0x418]
test edi, edi
jne 0x8750ca
pop edi
xor eax, eax
pop ebx
add esp, 0x40c
ret
push ebp
push esi
push 0x97fca8
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [edi], 1
jne 0x87512c
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 0x875128
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 0x875111
mov byte [edi + ebp], 0
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edx, 1
mov ecx, 0x97fccc
cmp dword [ecx], eax
je 0x875150
add ecx, 4
inc edx
cmp ecx, 0x97fcf0
jl 0x87513e
jmp 0x875156
test edx, edx
mov ebx, edx
jne 0x875171
mov ecx, dword [0x980150]
cmp ecx, 9
jae 0x875171
inc ecx
mov dword [0x980150], ecx
mov ebx, ecx
mov dword [ecx*4 + 0x97fcc8], eax
mov esi, dword [ebx*4 + 0x97fcf0]
mov dword [ebx*4 + 0x97fcf0], edi
test esi, esi
je 0x87522b
cmp esi, edi
je 0x87522b
cmp byte [edi], 1
je 0x87522b
cmp byte [esi], 1
je 0x87522b
lea edx, [esp + 0x1c]
push esi
push edx
call dword [sym.imp.kernel32.dll_lstrcpy]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
test eax, eax
mov dword [esp + 0x18], eax
je 0x87522b
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 0x875211
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 0x8751f2
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 0x97fca8
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0x40c
ret

Function at 0x878970
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 0x87898f
shr edx, 1
xor edx, 0xedb88320
jmp 0x878991
shr edx, 1
dec ebx
jne 0x878980
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x878979
pop edi
pop esi
pop ebx
ret
Function at 0x878a40
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.0087a1b0
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 0x878b45
cmp byte [eax], 0
je 0x878b45
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 0x878aac
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 0x878b1f
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x878b1b
lea ecx, [esp + ecx + 0x14]
lea edx, [esp + 0x14]
cmp edx, ecx
lea eax, [esp + 0x14]
jae 0x878afd
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 0x878ae1
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 0x878ac9
jmp 0x878b1f
test eax, eax
jne 0x878b29
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