joyce8/EMBER2024-capa huggingface dataset:
Function at 0x546570
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Check os version
Terminate process

Disassembly:
sub esp, 0xc8
push esi
mov esi, dword [esp + 0xd0]
push edi
lea eax, [esp + 0x3c]
push eax
mov dword [0x6399bc], esi
mov dword [0x6bd10c], 0xffffffff
mov dword [esp + 0x40], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, 1
jne 0x5465b7
mov edi, esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], 8
jmp 0x5465c3
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov edi, eax
cmp edi, dword [esp + 0xc]
push ebx
push ebp
jg 0x54663b
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x5465e0
cmp dword [esp + 0x48], 5
mov eax, dword [edi*4 + 0x6399c0]
jae 0x5465f1
add eax, 7
push eax
push 1
push 0
call ebx
mov dword [0x6bd108], eax
call ebp
mov esi, eax
cmp esi, 0xb7
mov eax, dword [0x6bd108]
jne 0x546620
test eax, eax
je 0x546624
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6bd108]
jmp 0x546624
test eax, eax
jne 0x54662f
mov ecx, dword [esp + 0x14]
inc edi
cmp edi, ecx
jle 0x5465e0
jmp 0x546644
sub edi, dword [esp + 0x10]
mov dword [0x6bd10c], edi
jmp 0x546644
mov esi, dword [esp + 0x10]
mov eax, dword [0x6bd108]
cmp esi, 0xb7
pop ebp
pop ebx
je 0x546665
test eax, eax
je 0x546689
mov ecx, dword [0x6bd10c]
or esi, 0xffffffff
cmp ecx, esi
jne 0x5466ec
jmp 0x546668
or esi, 0xffffffff
test eax, eax
je 0x546689
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x6bd108], 0
mov dword [0x6399bc], esi
mov dword [0x6bd10c], esi
cmp dword [esp + 0xd4], 1
je 0x5466db
push 0x61081c
push 0x61081c
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x5466db
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [esp + 0x18], 2
jne 0x5466d4
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.005cafc4
push 1
push 0x7e
push 0x92
call fcn.00582630
add esp, 0xc
pop edi
pop esi
add esp, 0xc8
ret
Function at 0x54ce60
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov al, byte [0x6c0402]
sub esp, 0x10
test al, al
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
jne 0x54cf53
mov al, byte [0x6c0400]
test al, al
je 0x54cfa2
mov al, byte [0x6c0401]
test al, al
je 0x54cfa2
mov al, byte [0x6c04b6]
test al, al
jne 0x54cfa2
push edi
call fcn.00449da0
mov edi, dword [0x6c04c0]
or edx, 0xffffffff
mov dword [esp + 0xc], eax
call fcn.004d3a30
mov esi, eax
cmp esi, 0xffffffff
je 0x54cf49
push ebx
push esi
push 0x3e99999a
push 0
or ebx, 0xffffffff
call fcn.0054e800
add esp, 0xc
mov edx, esi
call fcn.004d3a30
mov esi, eax
cmp esi, 0xffffffff
jne 0x54cec3
fild dword [esp + 0x10]
pop ebx
fadd dword [0x6128a4]
fstp dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push 0x3e8
push ecx
push edx
call fcn.005d2e50
mov ecx, dword [0x647764]
push ecx
mov ecx, dword [0x647760]
push ecx
push edx
push eax
call fcn.005de0d0
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x54cf37
fadd dword [0x612320]
fcomp dword [esp + 0xc]
fnstsw ax
test ah, 5
jp 0x54cf49
call fcn.0054d1d0
jmp 0x54cef3
mov al, byte [0x6c0402]
test al, al
pop edi
je 0x54cfa2
mov eax, dword [0x6c0408]
test eax, eax
mov byte [0x6c0402], 0
je 0x54cf6b
push 0
call dword [eax + 0x28]
add esp, 4
lea edx, [esp + 0x10]
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push 0x3e8
push eax
push ecx
call fcn.005d2e50
mov ecx, dword [0x647764]
push ecx
mov ecx, dword [0x647760]
push ecx
push edx
push eax
call fcn.005de0d0
mov dword [0x6c040c], eax
call fcn.0054e650
mov esi, dword [0x6bfc50]
test esi, esi
je 0x54cfbd
mov al, byte [esi + 0x24]
test al, al
je 0x54cfbd
call fcn.004d3980
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x555270
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x3d0
push ebx
mov ebx, ecx
test ebx, ebx
push edi
mov edi, eax
je 0x555284
test edi, edi
jne 0x555292
pop edi
mov eax, 0x57
pop ebx
add esp, 0x3d0
ret
push ebp
push esi
push 0x80
lea esi, [esp + 0x14]
call fcn.0055b2d0
mov eax, esi
push eax
push ebx
lea ecx, [esp + 0x9c]
push str._s_s_
push ecx
call fcn.005c87a3
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x2f0]
push str._s.
push eax
call fcn.005c87a3
add esp, 0x20
lea ecx, [esp + 0x198]
push ecx
lea edx, [esp + 0x2dc]
push edx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x555362
cmp byte [esp + 0x1c4], 0x2e
je 0x555348
mov edi, str.checkpoints
lea esi, [esp + 0x1c4]
mov ecx, 0xc
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x555348
lea ecx, [esp + 0x1c4]
push ecx
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.005c87a3
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x55535b
lea edx, [esp + 0x198]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5552f4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x2dc]
push str._scheckpoints.
push ecx
call fcn.005c87a3
add esp, 0xc
test ebp, ebp
je 0x555473
lea edx, [esp + 0x198]
push edx
lea eax, [esp + 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x555445
jmp 0x5553b0
cmp byte [esp + 0x1c4], 0x2e
je 0x5553fe
mov edi, str.checkpoints
lea esi, [esp + 0x1c4]
mov ecx, 0xc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x5553fe
lea eax, [esp + 0x1c4]
push eax
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x18]
push str._scheckpoints_s
push edx
call fcn.005c87a3
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x198]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5553b0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x2dc]
push str._scheckpoints
push eax
call fcn.005c87a3
add esp, 0xc
lea ecx, [esp + 0x2d8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x555473
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x555453
sub eax, edx
lea edx, [esp + 0x90]
push edx
mov byte [esp + eax + 0x93], cl
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebp, eax
pop esi
xor eax, eax
cmp ebp, 1
pop ebp
pop edi
setne al
pop ebx
add esp, 0x3d0
ret
Function at 0x555490
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
test ebp, ebp
push esi
mov esi, eax
je 0x5554a9
test esi, esi
jne 0x5554b6
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push ebx
push edi
push ebp
lea eax, [esp + 0x18]
push 0x611578
push eax
call fcn.005c87a3
add esp, 0xc
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x555546
push ebp
push edi
xor ebx, ebx
call fcn.00554f20
add esp, 8
cmp eax, 0xffffffff
jne 0x55550a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x10c
ret 4
test byte [esi], 0x10
je 0x555533
lea ebp, [esi + 0x2c]
cmp byte [ebp], 0x2e
jne 0x555555
cmp ebx, 1
je 0x555533
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x55552e
mov ebx, 1
test byte [esi], 0x10
jne 0x555512
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x10], 0xffffffff
mov edi, dword [esp + 0x10]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x10c
ret 4
lea ebx, [esi + 0x140]
mov edx, ebx
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x555561
push 0x80
lea eax, [esi + 0x244]
mov edi, ebp
call fcn.0055b310
mov eax, dword [esp + 0x124]
mov edx, ebx
add esp, 4
sub edx, eax
jmp 0x555590
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x555590
mov edi, ebx
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5555a0
mov dx, word [0x5fe768]
mov eax, ebp
mov word [edi], dx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5555b6
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5555c2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
dec ebx
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
jmp 0x5555e0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5555e0
mov ax, word [0x5fe768]
mov word [edi], ax
mov edi, dword [esp + 0x10]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x10c
ret 4
Function at 0x558ea0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x904
push ebx
push esi
mov esi, eax
push edi
xor eax, eax
xor bl, bl
mov byte [esp + 0x10], bl
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov cx, word [esi + 6]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 8]
lea edx, [esp + 0x10]
mov eax, edi
call fcn.005599c0
test byte [esi + 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
je 0x558f17
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x558f2b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x558f0e
call esi
cmp eax, 0xb7
je 0x558f0e
call esi
push 0
push 0x800
lea ecx, [esp + 0x118]
push ecx
push 0
push eax
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x558f60
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x900
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov byte [esp + 8], bl
mov ecx, 0x3f
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
mov cx, word [esi + 6]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esi + 8]
lea edx, [esp + 8]
call fcn.005599c0
test byte [esi + 4], 1
je 0x558fc5
push 0x80
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x558fdc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x558fdc
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x558fdc
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0x800
lea ecx, [esp + 0x110]
push ecx
push ebx
push eax
push ebx
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
push ebx
push esi
mov esi, eax
push edi
xor eax, eax
xor bl, bl
mov byte [esp + 0x10], bl
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov cx, word [esi + 6]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esi + 8]
lea edx, [esp + 0x10]
call fcn.005599c0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x559060
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x559079
call esi
cmp eax, 3
je 0x559079
call fcn.00559a60
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x559240
Capabilities:
Get file size

Disassembly:
mov ecx, dword [eax + 0x108]
sub esp, 0x800
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x559287
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x800
lea edx, [esp + 0xc]
push edx
push 0
push eax
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
add esp, 0x800
ret

Function at 0x5592a0
Capabilities:
Clear file content

Disassembly:
sub esp, 0x800
mov ecx, esi
call fcn.005591e0
test al, al
je 0x5592cb
mov eax, dword [esi + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x5592cb
mov al, 1
add esp, 0x800
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x800
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
add esp, 0x800
ret

Function at 0x559310
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x804
push ebx
push edi
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [edx + 0x108]
push esi
push ecx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
je 0x55934f
cmp dword [esp + 8], esi
jne 0x55934b
pop edi
mov al, 1
pop ebx
add esp, 0x804
ret
push 0x26
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x800
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
call edi
pop edi
mov al, bl
pop ebx
add esp, 0x804
ret

Function at 0x559380
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x804
push ebx
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [edx + 0x108]
push esi
push ecx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5593b3
cmp dword [esp + 4], esi
jne 0x5593b3
mov al, 1
pop ebx
add esp, 0x804
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x800
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
add esp, 0x804
ret
Function at 0x579040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x7fb2d0]
mov edx, dword [ecx + 0x34]
sub esp, 0x28
and eax, 0xffff
push ebx
lea eax, [eax + eax*2]
push ebp
mov ebp, dword [edx + eax*4 + 8]
mov ecx, dword [ebp]
mov eax, dword [0x816d04]
and ecx, 0xffff
shl ecx, 5
push esi
mov esi, dword [ecx + eax + 0x14]
mov edx, dword [esi + 0x8c]
and edx, 0xffff
shl edx, 5
mov ebx, dword [edx + eax + 0x14]
cmp dword [esi + 0x3dc], 0xffffffff
push edi
je 0x579213
mov ecx, dword [ebx + 0x74]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
jle 0x579213
mov edx, dword [esp + 0x3c]
mov ecx, eax
imul ecx, ecx, 0x130
add ecx, edx
mov edx, dword [ebx + 0x78]
shl eax, 7
add eax, edx
mov edx, eax
test byte [ecx], 2
je 0x5791fc
fld dword [ecx + 0x5c]
fld dword [ecx + 0x58]
fld dword [ecx + 0x54]
fld st(1)
fmul st(2)
fld st(3)
fmul st(4)
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fsqrt
fstp dword [esp + 0x14]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x14]
fcomp dword [0x612428]
fnstsw ax
test ah, 0x41
jne 0x5791fc
fld dword [esp + 0x14]
fsub dword [0x612428]
fmul dword [0x6129e0]
fld dword [ecx + 0x74]
fsub dword [edx + 0x68]
fadd dword [0x61272c]
fld st(0)
fmul dword [ecx + 0x60]
fadd dword [ecx + 4]
fstp dword [esp + 0x2c]
fld st(0)
fmul dword [ecx + 0x64]
fadd dword [ecx + 8]
fstp dword [esp + 0x30]
fmul dword [ecx + 0x68]
fadd dword [ecx + 0xc]
fstp dword [esp + 0x34]
fld dword [0x6126d0]
fdiv dword [esp + 0x14]
fld st(0)
fmul dword [ecx + 0x54]
fld st(1)
fmul dword [ecx + 0x58]
fstp dword [esp + 0x24]
fxch st(1)
fmul dword [ecx + 0x5c]
fstp dword [esp + 0x28]
fld dword [ecx + 0x60]
fmul dword [0x61221c]
fadd st(1)
fstp dword [esp + 0x20]
fstp st(0)
fld dword [ecx + 0x64]
fmul dword [0x61221c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [ecx + 0x68]
fmul dword [0x61221c]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fcom dword [0x612220]
fnstsw ax
test ah, 5
jp 0x5791a8
fstp st(0)
mov dword [esp + 0x18], 0
jmp 0x5791c5
fcom dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x5791c1
fstp st(0)
mov dword [esp + 0x18], 0x3f800000
jmp 0x5791c5
fstp dword [esp + 0x18]
mov edx, dword [edx + 0x24]
mov eax, dword [esp + 0x18]
movsx ecx, word [ecx + 0x70]
and dl, 1
neg dl
push eax
lea eax, [ebp + 0x98]
push eax
mov eax, dword [esi + 0x3dc]
push ecx
lea edi, [esp + 0x2c]
sbb edx, edx
neg edx
add edx, 9
push edx
lea edx, [esp + 0x3c]
call fcn.00454020
add esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x74]
inc eax
mov dword [esp + 0x1c], eax
movsx eax, ax
cmp eax, ecx
jl 0x5790a2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x57a800
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
mov byte [esp + 3], 0
mov eax, 0x68a834
lea ecx, [ecx]
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [eax], 0xffffffff
add eax, 0x14
cmp eax, 0x68a85c
jl 0x57a810
push ebx
push esi
call fcn.005c0ec0
xor bl, bl
xor esi, esi
xor ecx, ecx
mov eax, 0x68bccc
cmp byte [eax], 0
je 0x57a856
add eax, 0x28
inc ecx
cmp eax, 0x68c1cc
jl 0x57a844
jmp 0x57a86e
lea esi, [ecx + ecx*4]
lea esi, [esi*8 + 0x68bca8]
mov byte [esi + 4], 0
mov dword [esi], 0
mov byte [esi + 0x24], 1
test esi, esi
je 0x57a8ab
mov eax, dword [0x68bba4]
mov ecx, eax
push ecx
inc eax
push str.mutex__ld
mov dword [0x68bba4], eax
lea eax, [esi + 4]
push 0x20
push eax
call fcn.005c8b3d
add esp, 0x10
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x57a8a9
mov bl, 1
jmp 0x57a8ab
xor esi, esi
test bl, bl
mov dword [0x6bd9c8], esi
je 0x57a967
xor eax, eax
jmp 0x57a8c0
mov cl, byte [eax*8 + 0x68bbac]
test cl, cl
je 0x57a8d3
inc eax
cmp eax, 0x20
jl 0x57a8c0
jmp 0x57a92f
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push 0x57a750
lea esi, [eax*8 + 0x68bba8]
push 0x4000
push 0
mov dword [esi], 0
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
mov dword [0x6bd9cc], esi
je 0x57a92f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x57a926
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x57a962
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x6bd9c8]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 4], 0
mov dword [esi], 0
mov byte [esi + 0x24], 0
mov dword [0x6bd9c8], 0
mov dword [0x6bd9cc], 0
jmp 0x57a967
mov byte [esp + 0xb], 1
mov al, byte [esp + 0xb]
pop esi
mov byte [0x6bd9c4], 1
mov byte [0x6bd9d0], 0
pop ebx
add esp, 8
ret

Function at 0x57ae10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
cmp dword [0x63ad0c], 0xffffffff
push ebx
push esi
push edi
jne 0x57aed1
call fcn.00546040
test eax, eax
je 0x57ae8a
xor eax, eax
mov ecx, 0x43
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
test byte [esp + 0x14], 1
mov dword [esp + 0x10], 0x66696c6f
mov word [esp + 0x16], 0xffff
je 0x57ae61
lea ebx, [esp + 0x18]
call fcn.00559870
mov ebx, str.currentupdate.cfg
lea esi, [esp + 0x18]
call fcn.005597b0
or byte [esp + 0x14], 1
lea eax, [esp + 0x10]
call fcn.00559010
test al, al
je 0x57ae8a
lea esi, [esp + 0x10]
call fcn.00558f60
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x57adb0
push 0x10400
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
je 0x57aec7
mov dword [0x63ad0c], 1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x63ad0c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x63ad0c], 0
mov eax, dword [0x63ad0c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57b2a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push edi
xor eax, eax
mov ecx, 0x10
mov edi, 0x68a860
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo_CE
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x1c], 0x3f
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
je 0x57b2eb
mov byte [0x68a860], 0
mov eax, 0x68a860
add esp, 8
ret
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x68a860
push 0
push 0
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x57b313
mov byte [0x68a860], 0
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x68a860
add esp, 8
ret

Function at 0x57b330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo_CE
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x57b395
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.DistID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x57b38a
mov dword [esp], 0
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0xc
ret
Function at 0x57ddc0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov bl, 0xd
mov eax, dword [esi + 8]
push 0xa
push str.applytoall
push eax
call fcn.005dc5ad
add esp, 0xc
test eax, eax
jne 0x57de3e
mov ecx, dword [esi + 8]
mov al, byte [ecx + 0xa]
cmp al, 0x3e
je 0x57de00
cmp al, 0x3c
je 0x57de00
cmp al, 0x21
je 0x57de00
cmp al, 0x3d
je 0x57de00
cmp al, 0x20
je 0x57de00
cmp al, bl
je 0x57de00
cmp al, 9
jne 0x57de3e
lea esp, [esp]
mov edx, dword [esi + 8]
inc edx
mov eax, edx
mov dword [esi + 8], edx
cmp byte [eax - 1], bl
je 0x57de13
cmp eax, dword [esi + 0xc]
jb 0x57de00
cmp eax, dword [esi + 0xc]
jae 0x57de21
cmp byte [eax], 0xa
jne 0x57de21
inc eax
mov dword [esi + 8], eax
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x10], edx
mov edx, dword [esi + 0x14]
push eax
inc edx
push esi
mov dword [esi + 0x14], edx
call fcn.0057eab0
test al, al
jne 0x57de77
pop ebx
ret
mov ecx, dword [esi + 8]
push 6
push 0x5fcfc0
push ecx
call fcn.005dc5ad
add esp, 0xc
test eax, eax
jne 0x57de77
mov edx, dword [esi + 8]
mov al, byte [edx + 6]
cmp al, 0x3e
je 0x57deaf
cmp al, 0x3c
je 0x57deaf
cmp al, 0x21
je 0x57deaf
cmp al, 0x3d
je 0x57deaf
cmp al, 0x20
je 0x57deaf
cmp al, bl
je 0x57deaf
cmp al, 9
je 0x57deaf
mov edx, dword [esi + 8]
inc edx
mov eax, edx
mov dword [esi + 8], edx
cmp byte [eax - 1], bl
je 0x57de8a
cmp eax, dword [esi + 0xc]
jb 0x57de77
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jae 0x57de9a
cmp byte [eax], 0xa
jne 0x57de9a
inc eax
mov dword [esi + 8], eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 8]
inc edx
cmp eax, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jb 0x57ddc3
mov al, 1
pop ebx
ret