joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53e540
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x10
push esi
push edi
push 0
push 2
call fcn.0062295c
add esp, 8
mov edi, eax
mov esi, 0x66aaa8
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x53e568
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x53e592
call dword [sym.imp.kernel32.dll_GetACP]
push eax
lea eax, [esp + 0xc]
push 0x66aaa4
push eax
call dword [sym.imp.user32.dll_wsprintfA]
lea ecx, [esp + 0x14]
push ecx
push 2
call fcn.0062295c
add esp, 0x14
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push ebp
push 0
push 0
call ebx
mov ebp, dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, eax
push edi
push 0
call ebp
mov esi, eax
push esi
push edi
call ebx
push 0
push esi
push 0
call fcn.00621f94
add esp, 0xc
mov edi, eax
inc edi
lea edx, [edi + edi]
push edx
push 0
call ebp
push edi
push esi
push eax
mov dword [0x713ad8], eax
call fcn.00621f94
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [0x70b434]
test eax, eax
pop ebp
pop ebx
je 0x53e5fd
pop edi
mov dword [0x713acc], 0
pop esi
add esp, 0x10
ret
push str.keystone.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
test eax, eax
mov dword [0x713acc], eax
je 0x53e752
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.KeystoneCreate
push eax
call esi
mov dword [0x713ad0], eax
mov eax, dword [0x713acc]
push str.Call_KsTranslateAccelerator
push eax
call esi
mov ecx, dword [0x713acc]
push str.Call_KsCreateWindow
push ecx
mov dword [0x713ae0], eax
call esi
mov edx, dword [0x713acc]
push str.Call_KsGetWindow
push edx
mov dword [0x713ae4], eax
call esi
mov dword [0x713ae8], eax
mov eax, dword [0x713acc]
push str.Call_KsUpdate
push eax
call esi
mov ecx, dword [0x713acc]
push str.Call_KsDispatchMessage
push ecx
mov dword [0x713aec], eax
call esi
mov edx, dword [0x713acc]
push str.Call_KW_Release
push edx
mov dword [0x713af0], eax
call esi
mov dword [0x713af8], eax
mov eax, dword [0x713acc]
push str.Call_KsSetFocusWindow
push eax
call esi
mov ecx, dword [0x713acc]
push str.Call_KW_GetControlByID
push ecx
mov dword [0x713af4], eax
call esi
mov edx, dword [0x713acc]
push str.Call_KC_GetAttribute
push edx
mov dword [0x713afc], eax
call esi
mov dword [0x713b10], eax
mov eax, dword [0x713acc]
push str.Call_KC_SetAttribute
push eax
call esi
mov ecx, dword [0x713acc]
push str.Call_KC_SendMessage
push ecx
mov dword [0x713b14], eax
call esi
mov edx, dword [0x713acc]
push str.Call_KW_ReLayout
push edx
mov dword [0x713b18], eax
call esi
mov dword [0x713b00], eax
mov eax, dword [0x713acc]
push str.Call_KW_SetFocusControl
push eax
call esi
mov ecx, dword [0x713acc]
push str.Call_KW_AddDirtyControl
push ecx
mov dword [0x713b04], eax
call esi
mov edx, dword [0x713acc]
push str.Call_KsRelease
push edx
mov dword [0x713b08], eax
call esi
mov dword [0x713adc], eax
push str.Call_KW_ShowWindow
mov eax, dword [0x713acc]
push eax
call esi
mov dword [0x713b0c], eax
pop edi
pop esi
add esp, 0x10
ret
Function at 0x53e7e0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Check os version
Terminate process

Disassembly:
sub esp, 0x140
push esi
mov esi, eax
lea eax, [esp + 0xb0]
push eax
mov byte [esp + 0x34], 0
mov dword [0x698364], esi
mov dword [esp + 0xb4], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [esp + 0xb4], 5
jb 0x53e82b
mov ecx, dword [str.Global_]
mov edx, dword [0x66abb0]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov eax, dword [esi*4 + 0x698368]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53e834
push edi
lea edi, [esp + 0x34]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x53e843
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x34]
push eax
push 1
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov dword [0x713b30], eax
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
pop edi
je 0x53e886
mov eax, dword [0x713b30]
test eax, eax
jne 0x53e903
push str.Halo
push str.Halo
call dword [sym.imp.user32.dll_FindWindowA]
mov esi, eax
mov eax, dword [0x713b30]
test eax, eax
je 0x53e8bc
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0x713b30], 0
mov dword [0x698364], 0xffffffff
test esi, esi
je 0x53e8f2
lea ecx, [esp + 4]
push ecx
push esi
mov dword [esp + 0xc], 0x2c
call dword [sym.imp.user32.dll_GetWindowPlacement]
push esi
call dword [sym.imp.user32.dll_SetForegroundWindow]
cmp dword [esp + 0xc], 2
jne 0x53e8eb
push 9
push esi
call dword [sym.imp.user32.dll_ShowWindow]
push 1
call fcn.00621614
push 1
push 0x7e
push 0x92
call fcn.0057a2d0
add esp, 0xc
pop esi
add esp, 0x140
ret
Function at 0x544f90
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov al, byte [0x716e02]
sub esp, 0x10
test al, al
push ebp
mov ebp, dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
push esi
jne 0x545083
mov al, byte [0x716e00]
test al, al
je 0x5450d2
mov al, byte [0x716e01]
test al, al
je 0x5450d2
mov al, byte [0x716eb6]
test al, al
jne 0x5450d2
push edi
call fcn.00449300
mov edi, dword [0x716ec0]
or edx, 0xffffffff
mov dword [esp + 0xc], eax
call fcn.004ce970
mov esi, eax
cmp esi, 0xffffffff
je 0x545079
push ebx
push esi
push 0x3e99999a
push 0
or ebx, 0xffffffff
call fcn.00546930
add esp, 0xc
mov edx, esi
call fcn.004ce970
mov esi, eax
cmp esi, 0xffffffff
jne 0x544ff3
fild dword [esp + 0x10]
pop ebx
fadd dword [0x66ca8c]
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.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x545067
fadd dword [0x66c508]
fcomp dword [esp + 0xc]
fnstsw ax
test ah, 5
jp 0x545079
call fcn.00545300
jmp 0x545023
mov al, byte [0x716e02]
test al, al
pop edi
je 0x5450d2
mov eax, dword [0x716e08]
test eax, eax
mov byte [0x716e02], 0
je 0x54509b
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.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
mov dword [0x716e0c], eax
call fcn.00546780
mov esi, dword [0x716650]
test esi, esi
je 0x5450ed
mov al, byte [esi + 0x24]
test al, al
je 0x5450ed
call fcn.004ce8c0
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x54d360
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 0x54d374
test edi, edi
jne 0x54d382
pop edi
mov eax, 0x57
pop ebx
add esp, 0x3d0
ret
push ebp
push esi
push 0x80
lea esi, [esp + 0x14]
call fcn.00553330
mov eax, esi
push eax
push ebx
lea ecx, [esp + 0x9c]
push str._s_s_
push ecx
call fcn.0061ed33
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x2f0]
push str._s.
push eax
call fcn.0061ed33
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 0x54d452
cmp byte [esp + 0x1c4], 0x2e
je 0x54d438
mov edi, str.checkpoints
lea esi, [esp + 0x1c4]
mov ecx, 0xc
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x54d438
lea ecx, [esp + 0x1c4]
push ecx
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x18]
push 0x66582c
push eax
call fcn.0061ed33
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x54d44b
lea edx, [esp + 0x198]
push edx
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x54d3e4
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.0061ed33
add esp, 0xc
test ebp, ebp
je 0x54d563
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 0x54d535
jmp 0x54d4a0
cmp byte [esp + 0x1c4], 0x2e
je 0x54d4ee
mov edi, str.checkpoints
lea esi, [esp + 0x1c4]
mov ecx, 0xc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x54d4ee
lea eax, [esp + 0x1c4]
push eax
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x18]
push str._scheckpoints_s
push edx
call fcn.0061ed33
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 0x54d4a0
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.0061ed33
add esp, 0xc
lea ecx, [esp + 0x2d8]
push ecx
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x54d563
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54d543
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 0x54d580
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 0x54d599
test esi, esi
jne 0x54d5a6
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push ebx
push edi
push ebp
lea eax, [esp + 0x18]
push 0x66b780
push eax
call fcn.0061ed33
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 0x54d636
push ebp
push edi
xor ebx, ebx
call fcn.0054d010
add esp, 8
cmp eax, 0xffffffff
jne 0x54d5fa
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 0x54d623
lea ebp, [esi + 0x2c]
cmp byte [ebp], 0x2e
jne 0x54d645
cmp ebx, 1
je 0x54d623
push esi
push edi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x54d61e
mov ebx, 1
test byte [esi], 0x10
jne 0x54d602
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 0x54d651
push 0x80
lea eax, [esi + 0x244]
mov edi, ebp
call fcn.00553370
mov eax, dword [esp + 0x124]
mov edx, ebx
add esp, 4
sub edx, eax
jmp 0x54d680
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x54d680
mov edi, ebx
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54d690
mov dx, word [0x65af3c]
mov eax, ebp
mov word [edi], dx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54d6a6
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x54d6b2
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 0x54d6d0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x54d6d0
mov ax, word [0x65af3c]
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 0x550f90
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.00551ab0
test byte [esi + 4], 1
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
push 0
je 0x551007
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 0x55101b
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 0x550ffe
call esi
cmp eax, 0xb7
je 0x550ffe
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 0x551050
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.00551ab0
test byte [esi + 4], 1
je 0x5510b5
push 0x80
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x5510cc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
je 0x5510cc
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 0x5510cc
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 0x551100
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.00551ab0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x551150
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 0x551169
call esi
cmp eax, 3
je 0x551169
call fcn.00551b50
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x551330
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 0x551377
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 0x551390
Capabilities:
Clear file content

Disassembly:
sub esp, 0x800
mov ecx, esi
call fcn.005512d0
test al, al
je 0x5513bb
mov eax, dword [esi + 0x108]
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
je 0x5513bb
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 0x551400
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 0x55143f
cmp dword [esp + 8], esi
jne 0x55143b
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 0x551470
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 0x5514a3
cmp dword [esp + 4], esi
jne 0x5514a3
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 0x570d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x851c30]
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 [0x86cff4]
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 0x570f63
mov ecx, dword [ebx + 0x74]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
jle 0x570f63
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 0x570f4c
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 [0x66c610]
fnstsw ax
test ah, 0x41
jne 0x570f4c
fld dword [esp + 0x14]
fsub dword [0x66c610]
fmul dword [0x66cbc0]
fld dword [ecx + 0x74]
fsub dword [edx + 0x68]
fadd dword [0x66c914]
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 [0x66c8b8]
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 [0x66c408]
fadd st(1)
fstp dword [esp + 0x20]
fstp st(0)
fld dword [ecx + 0x64]
fmul dword [0x66c408]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [ecx + 0x68]
fmul dword [0x66c408]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x570ef8
fstp st(0)
mov dword [esp + 0x18], 0
jmp 0x570f15
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x570f11
fstp st(0)
mov dword [esp + 0x18], 0x3f800000
jmp 0x570f15
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.00453510
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 0x570df2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x5724f0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
mov byte [esp + 3], 0
mov eax, 0x6e8fdc
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, 0x6e9004
jl 0x572500
push ebx
push esi
call fcn.006174a0
xor bl, bl
xor esi, esi
xor ecx, ecx
mov eax, 0x6ea474
cmp byte [eax], 0
je 0x572546
add eax, 0x28
inc ecx
cmp eax, 0x6ea974
jl 0x572534
jmp 0x57255e
lea esi, [ecx + ecx*4]
lea esi, [esi*8 + 0x6ea450]
mov byte [esi + 4], 0
mov dword [esi], 0
mov byte [esi + 0x24], 1
test esi, esi
je 0x57259c
mov eax, dword [0x6ea34c]
push edi
mov ecx, eax
push ecx
push str.mutex__ld
inc eax
lea edi, [esi + 4]
push 0x20
push edi
mov dword [0x6ea34c], eax
call fcn.0061f0cd
add esp, 0x10
push edi
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
pop edi
je 0x57259a
mov bl, 1
jmp 0x57259c
xor esi, esi
test bl, bl
mov dword [0x7143e8], esi
je 0x572657
xor eax, eax
lea esp, [esp]
mov cl, byte [eax*8 + 0x6ea354]
test cl, cl
je 0x5725c3
inc eax
cmp eax, 0x20
jl 0x5725b0
jmp 0x57261f
lea esi, [eax*8 + 0x6ea350]
lea eax, [esp + 0xc]
push eax
push 4
push 0
push 0x572440
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 [0x7143ec], esi
je 0x57261f
push 0
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
test eax, eax
je 0x572616
mov ecx, dword [esi]
push ecx
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x572652
mov edx, dword [esi]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [0x7143e8]
mov eax, dword [esi]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov byte [esi + 4], 0
mov dword [esi], 0
mov byte [esi + 0x24], 0
mov dword [0x7143e8], 0
mov dword [0x7143ec], 0
jmp 0x572657
mov byte [esp + 0xb], 1
mov al, byte [esp + 0xb]
pop esi
mov byte [0x7143e4], 1
mov byte [0x7143f0], 0
pop ebx
add esp, 8
ret

Function at 0x572b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
cmp dword [0x699694], 0xffffffff
push ebx
push esi
push edi
jne 0x572bc1
call fcn.0053e2b0
test eax, eax
je 0x572b7a
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 0x572b51
lea ebx, [esp + 0x18]
call fcn.00551960
mov ebx, str.currentupdate.cfg
lea esi, [esp + 0x18]
call fcn.005518a0
or byte [esp + 0x14], 1
lea eax, [esp + 0x10]
call fcn.00551100
test al, al
je 0x572b7a
lea esi, [esp + 0x10]
call fcn.00551050
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x572aa0
push 0x10400
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
cmp eax, 0xffffffff
je 0x572bb7
mov dword [0x699694], 1
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x699694]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x699694], 0
mov eax, dword [0x699694]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x572f90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push edi
xor eax, eax
mov ecx, 0x10
mov edi, 0x6e9008
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo
push reloc.wsock32.dll_bind
mov dword [esp + 0x1c], 0x3f
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
pop edi
je 0x572fdb
mov byte [0x6e9008], 0
mov eax, 0x6e9008
add esp, 8
ret
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x6e9008
push 0
push 0
push str.Version
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x573003
mov byte [0x6e9008], 0
mov eax, dword [esp]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 0x6e9008
add esp, 8
ret

Function at 0x573020
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo
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 0x573085
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 0x57307a
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