joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437990
Capabilities:
Get file size

Disassembly:
sub esp, 0x8d4
push ebp
mov ebp, dword [esp + 0x8dc]
test ebp, ebp
push esi
je 0x437b54
push 0x7f55dc
push str._asserts.txt
call fcn.0078ce49
mov esi, eax
add esp, 8
test esi, esi
je 0x437b54
mov al, byte [0x81c668]
push edi
mov byte [esp + 0x110], al
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0066e300
push eax
lea ecx, [esp + 0x114]
push str._n_nWhen:________s_n
push ecx
call fcn.0078cdc6
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x120]
push ecx
push 1
push edx
call fcn.0078cc8d
mov eax, dword [0x856088]
add esp, 0x1c
lea ecx, [esp + 0x110]
push eax
push str.Version:_____d_n
push ecx
call fcn.0078cdc6
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x120]
push ecx
push 1
push edx
call fcn.0078cc8d
add esp, 0x1c
lea eax, [esp + 0xc]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push str.Filename:____s_n
push edx
call fcn.0078cdc6
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x120]
push ecx
push 1
push eax
call fcn.0078cc8d
add esp, 0x1c
lea ecx, [esp + 0xc]
push 0
push 0
push 3
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x437b15
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea edx, [esp + 0x118]
push str.Filesize:____d_n
push edx
call fcn.0078cdc6
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x124]
push ecx
push 1
push eax
call fcn.0078cc8d
add esp, 0x1c
pop ebx
push ebp
lea ecx, [esp + 0x114]
push str.Assert:______s_n
push ecx
call fcn.0078cdc6
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x120]
push ecx
push 1
push edx
call fcn.0078cc8d
push esi
call fcn.0078cc10
add esp, 0x20
pop edi
pop esi
pop ebp
add esp, 0x8d4
ret
Function at 0x4386d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
lea ecx, [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x34]
push esi
call fcn.005e71e0
push 0
lea ecx, [esp + 0x14]
call fcn.005e74d0
test al, al
je 0x438868
lea ecx, [esp + 0x10]
call fcn.005e79a0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
je 0x438868
mov eax, dword [0x809d38]
push ebp
test esi, esi
push edi
mov dword [esp + 0x3c], eax
je 0x43877e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x438738
inc ecx
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.005dcfa0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x3c]
lea ebx, [edi + 1]
push ebx
call fcn.005dd330
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x809d38]
cmp eax, ecx
je 0x438768
mov dword [eax - 4], edi
mov eax, dword [esp + 0x3c]
mov ecx, ebx
mov edi, eax
mov edx, ecx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x809d38]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], eax
call fcn.004027b0
test eax, eax
jle 0x4387aa
push 0
lea ecx, [esp + 0x40]
call fcn.004027b0
inc eax
lea ecx, [esp + 0x14]
push eax
call fcn.005dcfa0
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041f5a0
mov al, byte [esp + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
jne 0x438877
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
push edx
lea edx, [esp + 0x40]
mov ecx, dword [eax]
push ecx
push 0x7f548c
push edx
call fcn.005dd5a0
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.005dd410
mov ecx, dword [esp + 0x3c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x43885d
push 1
lea ecx, [esp + 0x1c]
call fcn.005e7400
push ebx
call fcn.00672b70
add esp, 4
mov esi, eax
lea ecx, [esp + 0x18]
push ebx
push esi
call fcn.005e75d0
lea ecx, [esp + 0x18]
call fcn.005e7590
lea edx, [esp + 0x40]
push 0
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00672c80
add esp, 4
push edi
call ebp
lea ecx, [esp + 0x3c]
call fcn.005dd410
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.005e7290
pop esi
pop ebx
add esp, 0x24
ret
mov ebx, dword [esp + 0x38]
xor esi, esi
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx]
push eax
push esi
push ecx
lea edx, [esp + 0x48]
push str._s_3.3d_s
push edx
call fcn.005dd5a0
mov eax, dword [esp + 0x50]
add esp, 0x14
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
jne 0x4388ca
inc esi
cmp esi, 0x3e7
jl 0x43887d
lea ecx, [esp + 0x10]
call fcn.005dd410
jmp 0x43885d
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.005dd410
mov ebx, dword [esp + 0x14]
jmp 0x4387f7
Function at 0x438c80
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
push ebp
push esi
push edi
lea eax, [esp + 0x18]
xor ebp, ebp
push 0x104
push eax
push ebp
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
jbe 0x438d0e
push ebx
push esi
call fcn.00672b70
add esp, 4
mov ebx, eax
lea eax, [esp + 0x1c]
push ebx
push esi
xor esi, esi
push esi
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x438d04
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x7f7618
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x438d04
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 8]
mov ebp, dword [eax + 0xc]
push ebx
call fcn.00672c80
add esp, 4
pop ebx
mov eax, edi
mov ecx, edi
shr eax, 0x10
shl eax, 0x10
and ecx, 0xffff
or eax, ecx
mov dword [0x856088], eax
mov eax, dword [esp + 0x120]
test eax, eax
je 0x438d32
mov dword [eax], edi
mov eax, dword [esp + 0x124]
test eax, eax
je 0x438d3f
mov dword [eax], ebp
pop edi
pop esi
pop ebp
add esp, 0x110
ret
Function at 0x43cea0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [str.C6D925A3_7A9B_4ca3_866D_8B4D506C3665]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
xor ebx, ebx
push eax
push ebx
mov esi, ecx
push ebx
call ebp
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43cefe
cmp byte [0x81edd8], bl
je 0x43ced4
pop esi
pop ebp
mov al, 1
pop ebx
ret
mov ecx, dword [str.C6D925A3_7A9B_4ca3_866D_8B4D506C3665]
push ebx
push ecx
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, ebx
je 0x43cef8
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov al, bl
pop ebp
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [str.01AF9993_3492_11d3_8F6F_0060089C05B1]
push edx
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x43cf39
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x43cf39
mov eax, dword [esi + 4]
push eax
call edi
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0x43cf72
mov ecx, dword [str.01AF9993_3492_11d3_8F6F_0060089C05B1]
push ecx
push ebx
push ebx
call ebp
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43cf6d
mov edx, dword [esi + 4]
push edx
call edi
push 0x9c4
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 4], ebx
je 0x43cf05
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x43d590
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
push ebx
push esi
push edi
push 1
push str.Debug
push 0
push str.SoftwareWestwoodRenegade
call fcn.0043a1d0
add esp, 0xc
lea ecx, [esp + 0x18]
push eax
call fcn.005dbcb0
mov al, byte [esp + 0x18]
test al, al
je 0x43d6d3
push 0
push str.GameInitInProgress
lea ecx, [esp + 0x1c]
call fcn.005dbd50
test eax, eax
je 0x43d6d3
mov eax, dword [0x809d38]
mov ecx, str.wwconfig.exe
test ecx, ecx
mov dword [esp + 0xc], eax
je 0x43d64f
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x43d608
inc ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.005dcfa0
mov edi, str.wwconfig.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0xc]
lea esi, [ebx + 1]
push esi
call fcn.005dd330
mov edi, dword [esp + 0xc]
mov eax, dword [0x809d38]
cmp edi, eax
je 0x43d63a
mov dword [edi - 4], ebx
mov edi, dword [esp + 0xc]
mov ecx, esi
mov esi, str.wwconfig.exe
mov edx, ecx
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, 0x11
xor eax, eax
lea edi, [esp + 0x2c]
mov edx, dword [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x103
push eax
push ecx
call edi
test eax, eax
je 0x43d6ca
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
mov eax, dword [esp + 0x10]
cmp eax, 0x103
jne 0x43d6e5
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
call edi
test eax, eax
jne 0x43d6ab
lea ecx, [esp + 0xc]
call fcn.005dd410
lea ecx, [esp + 0x14]
call fcn.005dbd30
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x64
ret
test eax, eax
lea ecx, [esp + 0xc]
sete bl
call fcn.005dd410
lea ecx, [esp + 0x14]
call fcn.005dbd30
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x441260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xe0
mov eax, dword [ecx + 0x98]
push ebx
lea ebx, [ecx + 0x90]
push ebp
mov dword [esp + 0x1c], ecx
push esi
mov ecx, dword [ebx + 4]
push edi
push ecx
push eax
push eax
call fcn.00444b50
mov ebp, dword [ebx + 8]
mov edi, eax
add esp, 0xc
cmp edi, ebp
mov esi, edi
je 0x4412a3
push esi
call fcn.00444c10
add esi, 4
add esp, 4
cmp esi, ebp
jne 0x441293
lea eax, [esp + 0x10]
mov dword [ebx + 8], edi
push eax
push 0x20019
push 0
push str.WOLSettingsIgnore_List
push 0
push str.SoftwareWestwoodRenegade
call fcn.0043a1d0
add esp, 0xc
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4413f0
mov eax, dword [esp + 0x10]
xor esi, esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push esi
push esi
push esi
lea ecx, [esp + 0x24]
push esi
lea edx, [esp + 0x80]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x38], 0x80
call ebp
test eax, eax
jne 0x4413e5
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x7c]
push 0
push ecx
push edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4413b7
cmp dword [esp + 0x1c], 1
jne 0x4413b7
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4413b7
mov eax, dword [0x809d3c]
lea ecx, [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x44138e
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x44138e
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.005dd7a0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x14]
push edx
call fcn.005ddc50
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x14]
push eax
push 1
push ecx
mov ecx, ebx
call fcn.00443ef0
lea ecx, [esp + 0x14]
call fcn.005dd990
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x80]
inc esi
push edx
push eax
push esi
push ecx
mov dword [esp + 0x38], 0x80
call ebp
test eax, eax
je 0x44130b
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], esi
mov ebx, dword [esi + 4]
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
inc ebx
mov dword [esi + 4], ebx
mov dword [esp + 0x30], 2
call dword [eax + 4]
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
jne 0x441424
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
Function at 0x44f780
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x50
mov eax, dword [0x820d78]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x84f6e0]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esi, dword [esp + 0x40]
shr esi, 0x14
call fcn.004bc570
xor ecx, ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x25], ecx
push edx
mov dword [esp + 0x2d], ecx
push eax
mov dword [esp + 0x35], ecx
mov byte [esp + 0x2c], 0
mov dword [esp + 0x39], ecx
mov byte [esp + 0x3d], cl
call fcn.004bc5c0
mov eax, dword [edi + 0x48]
add esp, 8
add eax, 0x2a8
lea ecx, [esp + 0x1c]
push eax
call fcn.00431a10
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x44f7fc
pop edi
xor al, al
pop esi
add esp, 0x50
ret
push ebx
add eax, 0x9c
push ebp
push eax
lea ecx, [esp + 0x20]
xor ebp, ebp
xor ebx, ebx
call fcn.004319d0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x44f81f
mov ebp, dword [eax + 0x18]
mov ebx, dword [eax + 0x40]
mov ecx, dword [0x809d3c]
push 1
mov dword [esp + 0x14], ecx
push 0x100
lea ecx, [esp + 0x18]
call fcn.005dd7a0
mov edx, dword [esp + 0x10]
mov ax, word [0x83f43c]
lea ecx, [esp + 0x2c]
push ecx
mov word [edx], ax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edx
push eax
lea ecx, [esp + 0x28]
push str.CINFO_VER_lu_CPU_lu_MEM_lu_TPOINTS_ld_PLAYED_lu_PINGS_S
push ecx
call fcn.005ddb30
mov edx, dword [esp + 0x30]
mov ecx, dword [edi + 0x48]
add esp, 0x20
push edx
push str.matchbot
call fcn.004d6ef0
lea ecx, [esp + 0x10]
mov bl, al
call fcn.005dd990
mov ecx, dword [esp + 0x20]
mov esi, 0x7ce064
test ecx, ecx
mov dword [esp + 0x1c], esi
je 0x44f8a4
mov eax, dword [ecx]
call dword [eax]
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], esi
test ecx, ecx
je 0x44f8b4
mov edx, dword [ecx]
call dword [edx]
mov al, bl
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x50
ret

Function at 0x451a80
Capabilities:
Get hostname

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, dword [0x809d3c]
push 0
push 0
lea ecx, [esp + 8]
mov dword [esp + 8], edx
call fcn.005dd7a0
mov eax, dword [esp]
mov cx, word [0x83f43c]
lea edx, [esp + 8]
mov word [eax], cx
push edx
lea ecx, [esp + 4]
call fcn.005ddc50
lea eax, [esp]
push eax
call fcn.00451900
add esp, 4
lea ecx, [esp]
call fcn.005dd990
add esp, 0x18
ret
Function at 0x453490
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov al, byte [esi + 0xc44]
test al, al
jne 0x4536a9
mov al, byte [0x81c644]
test al, al
jne 0x4534c5
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x4534dd
sub eax, ecx
mov dword [esp + 0x18], eax
jmp 0x4534e9
mov ecx, dword [0x83f454]
add ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
mov byte [esp + 0x13], 0
mov al, byte [0x81c644]
test al, al
jne 0x453510
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x453524
sub eax, ecx
jmp 0x45352c
mov edx, dword [0x83f454]
add eax, edx
sub eax, dword [esp + 0x18]
cmp eax, 0x9c40
jae 0x4536a9
mov eax, dword [esi + 0xc40]
xor ebx, ebx
xor ebp, ebp
test eax, eax
jle 0x4536a9
lea edi, [esi + 0x1b0]
mov al, byte [edi - 9]
test al, al
je 0x4535a7
mov eax, dword [edi]
test eax, eax
je 0x45357d
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4535a7
cmp dword [esp + 0x20], 0x103
jne 0x4535a7
inc ebx
jmp 0x4535a7
mov eax, dword [edi + 8]
test eax, eax
je 0x4535a7
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
mov esi, eax
test esi, esi
je 0x4535a3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
cmp esi, eax
jne 0x4535a3
inc ebx
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xc40]
inc ebp
add edi, 0x1c0
cmp ebp, eax
jl 0x453553
test ebx, ebx
je 0x4536a9
cmp ebx, dword [esp + 0x1c]
je 0x4535dd
push ebx
push str.Waiting_for__d_slave_s__to_shut_down_n
push 0x81e228
call fcn.00435b00
add esp, 0xc
mov dword [esp + 0x1c], ebx
mov al, byte [esp + 0x13]
test al, al
jne 0x4534f6
mov al, byte [0x81c644]
test al, al
jne 0x453603
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x453617
sub eax, ecx
jmp 0x45361f
mov edx, dword [0x83f454]
add eax, edx
sub eax, dword [esp + 0x18]
cmp eax, 0x6978
jbe 0x4534f6
mov eax, dword [esi + 0xc40]
xor ebp, ebp
test eax, eax
mov byte [esp + 0x13], 1
jle 0x4534f6
lea edi, [esi + 0x1b8]
mov eax, dword [edi]
test eax, eax
je 0x453693
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x45368f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call ebx
cmp esi, eax
jne 0x45368f
mov eax, dword [edi]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x45368f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xc40]
inc ebp
add edi, 0x1c0
cmp ebp, eax
jl 0x453649
jmp 0x4534f6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x458730
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x820d98]
sub esp, 0xc
xor eax, eax
push ebx
xor ebx, ebx
cmp ecx, ebx
push edi
je 0x45874e
mov eax, dword [ecx]
push eax
call fcn.004157e0
add esp, 4
mov eax, dword [eax + 0x76c]
cmp eax, 0xffffffff
je 0x45897f
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebx
je 0x45897f
push ebx
add eax, 0x14
push 4
push eax
mov eax, dword [0x829488]
lea ecx, [eax*4 + 0x82948c]
push ecx
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea edi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x10], edi
mov dword [0x829488], eax
jl 0x4587ab
mov dword [0x829488], ebx
push ebx
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x458973
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebx
sub edx, ecx
cmp edx, eax
jne 0x4587f3
call fcn.00406630
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x458800
call fcn.00406630
mov ecx, 0x83f450
call fcn.004065e0
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x45882a
mov edx, ecx
or edx, eax
je 0x45882a
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x458973
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x458973
mov dword [0x829468], eax
mov eax, dword [0x8294e8]
push esi
mov esi, dword [0x829478]
cmp eax, ebx
mov byte [0x81c6fc], 1
not esi
mov dword [esp + 0x10], ebx
jle 0x4588d8
push ebp
mov dword [esp + 0x10], 0x820e44
jmp 0x458867
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x4588b3
mov ecx, dword [eax + 4]
cmp ecx, ebx
jle 0x4588b3
mov edi, dword [eax]
mov ebp, dword [edi + 0xc]
sar ebp, 2
cmp edi, ebx
je 0x4588b3
test ecx, ecx
jle 0x4588b3
mov ecx, edi
call fcn.00406620
xor esi, eax
lea eax, [edi + 0x14]
test ebp, ebp
jle 0x4588a4
mov ecx, ebp
mov edx, dword [eax]
add eax, 4
xor esi, edx
dec ecx
jne 0x45889a
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 4]
inc ebx
mov edx, dword [ecx]
cmp ebx, dword [edx + 4]
jl 0x458888
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x8294e8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x458865
mov edi, dword [esp + 0x18]
xor ebx, ebx
pop ebp
mov eax, dword [0x8294d8]
cmp esi, eax
pop esi
je 0x4588e7
call fcn.00406630
cmp dword [0x8294e8], ebx
je 0x45896c
mov ecx, 0x829464
mov dword [esp + 8], ebx
call fcn.00406620
test eax, eax
je 0x45892e
mov ecx, dword [0x829464]
lea eax, [esp + 8]
push eax
push ecx
call fcn.00407b70
add esp, 8
test al, al
je 0x458929
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x458929
cmp dword [eax], 0x29874362
je 0x45892e
call fcn.00406630
mov ecx, 0x8294b0
mov dword [esp + 8], ebx
call fcn.00406620
test eax, eax
je 0x45896c
mov eax, dword [0x8294b0]
lea edx, [esp + 8]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x458967
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x458967
cmp dword [eax], 0xbad0bad
je 0x45896c
call fcn.00406630
mov byte [0x81c6fc], 0
cmp edi, ebx
je 0x45897f
mov eax, dword [edi]
pop edi
pop ebx
add esp, 0xc
ret
mov eax, dword [0x89fe34]
pop edi
pop ebx
add esp, 0xc
ret