joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4281b0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, dword [0x446494]
sub esp, 0x26c
test eax, eax
push edi
jne 0x4283b5
xor eax, eax
mov ecx, 0x40
mov dword [esp + 5], eax
lea edi, [esp + 0x69]
mov dword [esp + 9], eax
mov byte [esp + 4], 0
mov dword [esp + 0xd], eax
mov word [esp + 0x11], ax
mov byte [esp + 0x13], al
mov byte [esp + 0x68], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x4465c8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jb 0x428228
push 0x4465c8
push 0x44396c
call fcn.0042c270
add esp, 4
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.00407adb
add esp, 0xc
jmp 0x428274
push ebp
lea edx, [esp + 0x6c]
push esi
push edx
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push 0x443950
call fcn.0042c270
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x70]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop ebp
lea eax, [esp + 0x68]
push 0
push eax
call fcn.004303d4
add esp, 8
cmp eax, 0xffffffff
je 0x4283b5
mov ecx, dword [esp + 0x274]
lea edx, [esp + 4]
push ecx
push 0x44394c
push edx
call fcn.00407adb
mov ecx, 0x40
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 [0x4465c4]
lea edx, [esp + 4]
and eax, 1
push eax
push ecx
lea eax, [esp + 0x70]
push edx
push eax
push 0x44393c
call fcn.0042c270
add esp, 4
lea ecx, [esp + 0x17c]
push eax
push ecx
call fcn.00407adb
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 [0x4466cc]
jne 0x42837c
test eax, eax
je 0x4283b5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x44391c
call fcn.0042c270
add esp, 4
push eax
mov eax, dword [0x4466cc]
add eax, 0x24
push eax
call fcn.00424080
add esp, 0xc
pop edi
add esp, 0x26c
ret
test eax, eax
je 0x4283a8
lea ecx, [esp + 0x16c]
push ecx
push 0x443908
call fcn.0042c270
mov edx, dword [0x4466cc]
add esp, 4
add edx, 0x24
push eax
push edx
call fcn.00424080
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 0x429c70
Capabilities:
Copy file
Get common file path
Parse pe header
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x240
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
je 0x429c85
call fcn.00429e30
push ebp
lea eax, [esp + 0x14c]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov edi, 0x4429c4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x14c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 4]
push esi
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
push esi
push 0
push 0x443a14
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
push 0
lea eax, [esp + 0x150]
push esi
push eax
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x429de3
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x40
push edx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
cmp word [esp + 0x14], 0x5a4d
jne 0x429ddc
mov eax, dword [esp + 0x50]
mov ebp, dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push 0
push eax
push edi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0xf8
push edx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [esp + 0x54], 0x4550
jne 0x429ddc
cmp dword [esp + 0x88], 0x80000000
jbe 0x429ddc
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
push edi
mov dword [esp + 0x98], 0x10000000
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0xf8
push edx
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExA]
push 8
push 0
push esi
call edi
test eax, eax
mov dword [ebx], eax
pop ebp
je 0x429e08
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x240
ret 4
mov eax, dword [esp + 0x250]
push 8
push 0
push eax
mov byte [esi], 0
call edi
xor ecx, ecx
pop edi
test eax, eax
setne cl
mov dword [ebx], eax
pop esi
mov eax, ecx
pop ebx
add esp, 0x240
ret 4
Function at 0x42a2a0
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.00429fe0
lea ecx, [esp + 0xa8]
mov esi, eax
push ecx
call fcn.00429fe0
add esi, eax
add esp, 8
cmp esi, 0x104
jb 0x42a2f7
pop esi
xor eax, eax
pop ebx
add esp, 0x284
ret
push ebp
push edi
mov edi, 0x4429c4
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 0x42a467
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 0x42a460
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 0x42a460
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 0x42a454
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jne 0x42a454
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.0042a050
add esp, 0x14
test al, al
je 0x42a454
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.0042a0e0
add esp, 0x10
push eax
push 0
call ebx
push eax
call ebp
test eax, eax
mov dword [esp + 0x14], eax
je 0x42a454
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.0042a170
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 0x42b340
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 0x42b362
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 0x42b3b3
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 0x42b3cc
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 0x42b3f9
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 0x42b435
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 0x42b44e
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 0x42b476
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 0x42b500
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 0x42b51c
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x42b650
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
jne 0x42b53c
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
mov byte [esi + 0x14], 1
pop esi
pop ecx
ret
Function at 0x42b550
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
jne 0x42b561
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 0x42b57a
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x1638]
push ecx
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x42b58d
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 0x42b5a6
pop edi
pop esi
pop ecx
ret
lea edx, [esp + 8]
push edx
push 0
push esi
push 0x42b650
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 0x42b5d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x42b5dd
xor al, al
pop esi
ret
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42b5eb
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 0x42b61e
push 0x64
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42b613
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 0x42b630
push eax
call edi
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x42b642
push eax
call edi
mov dword [esi + 8], 0xffffffff
pop edi
mov al, 1
pop esi
ret
Function at 0x42c160
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 0x42c1f7
mov ecx, edi
push ebx
and ecx, 0xff
push esi
mov byte [0x4467c9], cl
mov byte [0x4467c8], 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 0x42c1cc
push ebp
sub edi, 0x4467cc
mov ebp, eax
mov bl, byte [edi + esi + 0x4467c8]
lea ecx, [ecx + ecx*2]
mov al, cl
add al, 0x65
xor bl, al
mov byte [esi + 0x4467c8], bl
inc esi
inc ecx
dec ebp
jne 0x42c1b0
pop ebp
mov bl, byte [esp + 0x10]
lea ecx, [esi - 4]
mov eax, ecx
mov byte [esi + 0x4467c8], 0
sar eax, 8
xor al, bl
xor dl, cl
pop esi
mov byte [0x4467ca], al
pop ebx
mov byte [0x4467cb], dl
mov eax, 0x4467c8
pop edi
ret
mov eax, 0x4467c8
pop edi
ret

Function at 0x42c200
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x42c209
ret
cmp byte [eax], 1
jne 0x42c264
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 0x42c25d
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 0x42c246
mov byte [edi + eax], 0
pop edi
pop esi
pop ebx
ret
Function at 0x42c270
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x4467c0]
sub esp, 0x40c
test al, 1
push ebx
push edi
jne 0x42c2a4
mov bl, al
push 0x446720
or bl, 1
mov byte [0x4467c0], bl
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
push 0x42c440
call fcn.00408998
add esp, 4
mov edi, dword [esp + 0x418]
test edi, edi
jne 0x42c2ba
pop edi
xor eax, eax
pop ebx
add esp, 0x40c
ret
push ebp
push esi
push 0x446720
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [edi], 1
jne 0x42c31c
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 0x42c318
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 0x42c301
mov byte [edi + ebp], 0
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edx, 1
mov ecx, 0x446744
cmp dword [ecx], eax
je 0x42c340
add ecx, 4
inc edx
cmp ecx, 0x446768
jl 0x42c32e
jmp 0x42c346
test edx, edx
mov ebx, edx
jne 0x42c361
mov ecx, dword [0x446bc8]
cmp ecx, 9
jae 0x42c361
inc ecx
mov dword [0x446bc8], ecx
mov ebx, ecx
mov dword [ecx*4 + 0x446740], eax
mov esi, dword [ebx*4 + 0x446768]
mov dword [ebx*4 + 0x446768], edi
test esi, esi
je 0x42c41b
cmp esi, edi
je 0x42c41b
cmp byte [edi], 1
je 0x42c41b
cmp byte [esi], 1
je 0x42c41b
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 0x42c41b
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 0x42c401
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 0x42c3e2
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 0x446720
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0x40c
ret

Function at 0x42fb60
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 0x42fb7f
shr edx, 1
xor edx, 0xedb88320
jmp 0x42fb81
shr edx, 1
dec ebx
jne 0x42fb70
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x42fb69
pop edi
pop esi
pop ebx
ret
Function at 0x42fc30
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.004205a0
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 0x42fd35
cmp byte [eax], 0
je 0x42fd35
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 0x42fc9c
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 0x42fd0f
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x42fd0b
lea ecx, [esp + ecx + 0x14]
lea edx, [esp + 0x14]
cmp edx, ecx
lea eax, [esp + 0x14]
jae 0x42fced
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 0x42fcd1
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 0x42fcb9
jmp 0x42fd0f
test eax, eax
jne 0x42fd19
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 0x42fd92
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x1010
call fcn.004205a0
mov eax, dword [esp + 0x1014]
push ebx
push esi
mov esi, ecx
test eax, eax
mov dword [esp + 8], esi
je 0x42feea
cmp byte [eax], 0
je 0x42feea
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x42fde5
mov dword [esi + 0x400], 2
pop esi
xor al, al
pop ebx
add esp, 0x1010
ret 0x10
mov eax, dword [esp + 0x1020]
push 0
push 0
push eax
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42fe1b
push ebx
mov dword [esi + 0x400], 4
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
add esp, 0x1010
ret 0x10
push ebp
push edi
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x1000
push edx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
mov dword [esp + 0x14], eax
je 0x42feca
mov esi, dword [esp + 0x1030]
mov ebp, dword [esp + 0x102c]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42fec2
cmp ebp, edi
lea ecx, [esp + 0x20]
jbe 0x42fe67
lea edx, [esp + edi + 0x20]
sub ebp, edi
jmp 0x42fe6d
lea edx, [esp + ebp + 0x20]
xor ebp, ebp
lea edi, [esp + 0x20]
cmp edi, edx
jae 0x42fe9c
mov edi, dword [esi]
xor eax, eax
mov al, byte [ecx]
xor ebx, ebx
mov bl, byte [esi]
xor eax, ebx
mov ebx, dword [esp + 0x10]
shr edi, 8
mov eax, dword [ebx + eax*4]
xor eax, edi
inc ecx
cmp ecx, edx
mov dword [esi], eax
jb 0x42fe75
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test ebp, ebp
je 0x42fec2
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x1000
push edx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x42fe4f
jmp 0x42fec6
test eax, eax
jne 0x42fed4
mov esi, dword [esp + 0x10]
mov dword [esi + 0x400], 3
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x1010
ret 0x10
mov dword [esi + 0x400], 1
pop esi
xor al, al
pop ebx
add esp, 0x1010
ret 0x10

Function at 0x430355
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x43037c
call fcn.00408beb
mov dword [eax], esi
call fcn.00408bd8
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040ce7d
mov eax, esi
jmp 0x4303d1
test dword [ebp + 0xc], 0xfffffff9
jne 0x430362
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4303a9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.00408bfe
pop ecx
call fcn.00408bd8
mov eax, dword [eax]
jmp 0x4303d1
test al, 0x10
jne 0x4303cf
test al, 1
je 0x4303cf
test byte [ebp + 0xc], 2
je 0x4303cf
call fcn.00408beb
mov dword [eax], 5
call fcn.00408bd8
mov dword [eax], 0xd
jmp 0x4303a0
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4067e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x56c3c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.00492a50
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.HaloDesktopInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x808], esi
test esi, esi
je 0x4068c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406894
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x52c8f4
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x406882
push 0
push 0
push 0x1400
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
ret
push edi
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x4068b2
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x4068bf
lea edx, [ebp - 0x808]
push edx
push eax
call fcn.004062d0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0045945a
mov esp, ebp
pop ebp
ret