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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [esi + 8], ebx
mov dword [ebp - 8], 3
mov dword [ebp - 4], eax
je 0x404196
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call edi
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40415c
cmp dword [esi + 0xc], ebx
je 0x404163
cmp eax, 0xea
jne 0x404183
push dword [ebp - 4]
mov ecx, esi
call fcn.00404008
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call edi
mov dword [esi + 4], eax
cmp dword [esi + 4], ebx
pop edi
jne 0x4041ac
cmp dword [ebp - 8], 3
je 0x404196
mov dword [esi + 4], 0x57
cmp dword [esi + 4], ebx
jne 0x4041ac
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4041ac
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
jmp 0x4041b3
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x65592162
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x64a90f8a
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4014a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5ea00c], 0
jne 0x40152c
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x4014f2
lea eax, [ebp - 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4014d8
sub eax, edx
push eax
lea edx, [ebp - 0x14]
push edx
mov ecx, 0x5e9ffc
call fcn.00404d00
jmp 0x401512
cmp dword [0x5ea010], 0x10
mov eax, dword [0x5e9ffc]
mov dword [0x5ea00c], 0
jae 0x40150f
mov eax, 0x5e9ffc
mov byte [eax], 0
cmp dword [0x5ea00c], 0
jne 0x40152c
push 9
push str._unknown_
mov ecx, 0x5e9ffc
call fcn.00404d00
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x5e9ffc
call fcn.004610a0
mov esp, ebp
pop ebp
ret

Function at 0x401680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5ea018], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
je 0x4016b7
cmp byte [0x5efd36], 0
je 0x4016b7
mov esi, edx
call fcn.004013b0
mov ebx, eax
test ebx, ebx
jne 0x4016e2
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push 1
push eax
push edi
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004610a0
mov esp, ebp
pop ebp
ret
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x1c]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edx, word [ebp - 0x14]
mov edi, dword [sym.imp.MSVCR100.dll___iob_func]
mov dword [ebp - 0x20], edx
call edi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
mov eax, ebx
add esp, 4
dec eax
je 0x401730
dec eax
je 0x401729
dec eax
je 0x401722
xor eax, eax
jmp 0x401735
mov eax, 6
jmp 0x401735
mov eax, 2
jmp 0x401735
mov eax, 4
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push esi
call ebx
call edi
mov ecx, dword [ebp - 0x24]
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push 1
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
call edi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
mov edx, dword [ebp - 0x20]
add esp, 0x14
push edx
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004610a0
mov esp, ebp
pop ebp
ret
Function at 0x401780
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp edx, 2
jge 0x4017a1
cmp byte [0x5efd35], 0
je 0x4017ef
push edi
call fcn.00401680
add esp, 4
push edi
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00404d00
mov eax, dword [ebp - 0x20]
mov esi, 0x10
cmp dword [ebp - 0xc], esi
jae 0x4017d6
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0xc], esi
jb 0x4017ef
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004610a0
mov esp, ebp
pop ebp
ret
Function at 0x4045a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b6b1
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5eef28]
mov ecx, dword [eax + 4]
lea esi, [eax + 4]
mov dword [ebp - 0x150], eax
mov eax, dword [eax]
cmp eax, ecx
je 0x404600
mov edx, dword [ebp - 0x150]
push edx
push ecx
call fcn.004088c0
mov edi, dword [esi]
add esp, 8
mov ebx, eax
call fcn.00406af0
mov dword [esi], ebx
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
lea edi, [ebx + 0x10]
test eax, eax
je 0x404694
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404640
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x130]
call fcn.00404d00
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x150]
lea edx, [ebp - 0x130]
push edx
mov ecx, esi
call fcn.00405dc0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], edi
jb 0x40469a
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40469a
mov esi, dword [ebp - 0x150]
push 7
push str.C:_tmp_
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00404d00
lea ecx, [ebp - 0x130]
push ecx
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00405dc0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], edi
jb 0x4046f6
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 8
push str.C:_temp_
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
call fcn.00404d00
lea eax, [ebp - 0x14c]
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00405dc0
cmp dword [ebp - 0x138], edi
jb 0x40474b
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004610a0
mov esp, ebp
pop ebp
ret
Function at 0x404770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b931
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5eef28]
xor ebx, ebx
cmp eax, ebx
jne 0x404939
mov edi, 0x10
push edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x4047ca
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x4047cc
xor eax, eax
mov dword [0x5eef28], eax
cmp dword [0x5f73e0], ebx
je 0x404850
mov edx, dword [0x5f73d0]
cmp dword [0x5f73e4], edi
jae 0x4047ec
mov edx, 0x5f73d0
mov eax, edx
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404807
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x130]
call fcn.00404d00
lea eax, [ebp - 0x130]
mov dword [ebp - 4], ebx
mov ecx, dword [0x5eef28]
push eax
call fcn.00405cf0
cmp dword [ebp - 0x11c], edi
jb 0x404934
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jmp 0x404931
call fcn.004045a0
push 0x104
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 0xf
test eax, eax
je 0x4048e2
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404891
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.00404d00
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 1
push ecx
mov ecx, dword [0x5eef28]
call fcn.00405dc0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], 0x10
jb 0x4048e2
mov edx, dword [ebp - 0x130]
push edx
call edi
add esp, 4
push 2
push 0x5c039c
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
call fcn.00404d00
lea eax, [ebp - 0x14c]
mov dword [ebp - 4], 2
mov ecx, dword [0x5eef28]
push eax
call fcn.00405dc0
cmp dword [ebp - 0x138], 0x10
jb 0x404934
mov ecx, dword [ebp - 0x14c]
push ecx
call edi
add esp, 4
mov eax, dword [0x5eef28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004610a0
mov esp, ebp
pop ebp
ret
Function at 0x40ca50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b02a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d6c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [esi], ebx
push 8
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x40cb45
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov dword [edi], ebx
push 8
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x40cb20
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x5ce490
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x5ce490
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3
Function at 0x40fe84
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 4], ecx
push dword [0x5c0400]
push 0
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00406560
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp dword [eax + 0x10], 0
sete cl
movzx eax, cl
test eax, eax
je 0x40feb9
xor al, al
jmp 0x40ff88
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 8
jb 0x40fecc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x40fed2
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x40ff13
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x40ff0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._LauncherCrashHelper__Load_library_failed_lu
push 4
call fcn.0041b5a4
add esp, 0xc
xor al, al
jmp 0x40ff88
push str.InitCrashReportHelper
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
push str.UninitCrashReportHelper
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
push str.SetCrashReportHelperOffline
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], eax
push str.SetCrashReportHelperCallback
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
push str.AddCrashReportHelperFile
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
mov al, 1
leave
ret 4
Function at 0x4110e7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
cmp dword [eax + 0x38], 1
je 0x411107
jmp 0x411266
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jne 0x411173
mov eax, dword [ebp - 0x10]
add eax, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 8
jb 0x41112c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x411132
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR100.dll__waccess]
pop ecx
pop ecx
test eax, eax
jne 0x411173
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x411173
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
push str._WeGameLauncerApp__found_game_installed.tmp__tick_u
push 4
call fcn.0041b5a4
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jbe 0x411266
call fcn.00435f9d
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
call dword [eax + 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jne 0x411209
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jbe 0x411207
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
sub ecx, dword [eax + 8]
cmp ecx, 0x15f90
jb 0x411207
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x4111e7
push dword [ebp - 8]
push 0x15f90
push str._WeGameLauncerApp__wait_install_timeout__u___tick_u
push 4
call fcn.0041b5a4
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov byte [eax + 4], 1
mov eax, dword [ebp - 0x10]
and dword [eax + 8], 0
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
mov dword [eax], 0xa
jmp 0x411266
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x411226
push str._WeGameLauncerApp__not_install_state__launcher_exit.
push 4
call fcn.0041b5a4
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov byte [eax + 4], 1
mov eax, dword [ebp - 0x10]
and dword [eax + 8], 0
cmp dword [ebp - 4], 0
je 0x411240
cmp dword [ebp - 4], 1
jne 0x411254
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
mov dword [eax], 0xc
jmp 0x411266
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
mov dword [eax], 0xb
leave
ret
Function at 0x411e27
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x24], ecx
push 0
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x411e4d
push str._WeGameLauncerApp__Shutdown
push 0
call fcn.0041b5a4
pop ecx
pop ecx
call fcn.00435f9d
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x28]
call dword [eax + 8]
call fcn.00454080
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
call dword [eax + 4]
call fcn.00410f31
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 4]
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x411e98
call fcn.00410f31
mov ecx, eax
call fcn.00411ef8
mov eax, dword [ebp - 0x24]
add eax, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x411eb4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
jmp 0x411eba
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
push 0
push dword [ebp - 0x30]
call dword [sym.imp.MSVCR100.dll__waccess]
pop ecx
pop ecx
test eax, eax
jne 0x411ef6
mov eax, dword [ebp - 0x24]
add eax, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 8
jb 0x411ee7
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
jmp 0x411eed
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret
Function at 0x4163e2
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560e21
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x284], 2
push 0x56f1d0
push dword [ebp + 8]
lea eax, [ebp - 0x280]
push eax
call fcn.00412033
add esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 0x264], 0
push 0x24c
push 0
lea eax, [ebp - 0x260]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp - 0x26c], 8
jb 0x416467
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x2c4], eax
jmp 0x416473
lea eax, [ebp - 0x280]
mov dword [ebp - 0x2c4], eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x2c4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4165e7
mov eax, dword [ebp - 0x264]
and eax, 0x10
jne 0x4165cc
xor eax, eax
mov word [ebp - 0x294], ax
xor eax, eax
lea edi, [ebp - 0x292]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4165cc
xor eax, eax
mov word [ebp - 0x2a4], ax
xor eax, eax
lea edi, [ebp - 0x2a2]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x2a4]
movzx ecx, word [ebp - 0x294]
cmp eax, ecx
jg 0x416569
movzx eax, word [ebp - 0x2a4]
movzx ecx, word [ebp - 0x294]
cmp eax, ecx
jne 0x41652d
movzx eax, word [ebp - 0x2a2]
movzx ecx, word [ebp - 0x292]
cmp eax, ecx
jg 0x416569
movzx eax, word [ebp - 0x2a4]
movzx ecx, word [ebp - 0x294]
cmp eax, ecx
jne 0x4165cc
movzx eax, word [ebp - 0x2a2]
movzx ecx, word [ebp - 0x292]
cmp eax, ecx
jne 0x4165cc
movzx eax, word [ebp - 0x29e]
movzx ecx, word [ebp - 0x28e]
inc ecx
inc ecx
cmp eax, ecx
jb 0x4165cc
lea eax, [ebp - 0x238]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2c0]
push eax
call fcn.00412033
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2ac], 8
jb 0x41659d
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c8], eax
jmp 0x4165a9
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x2c8], eax
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x2c0]
call fcn.00406660
mov byte [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4165e2
jmp 0x4165e7
jmp 0x416489
cmp dword [ebp - 0x10], 0xffffffff
je 0x4165f6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x280]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004610a0
leave
ret
Function at 0x4174e7
Capabilities:
Print debug messages
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5610ac
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x234], ax
push 0x206
push 0
lea eax, [ebp - 0x232]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x234]
push eax
push dword [0x5d3348]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x41755c
push str.GetGameIdFormEnvironmentVariable_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x4175cf
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e60
and dword [ebp - 4], 0
push 1
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.004186f3
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406660
mov byte [ebp - 4], 2
push 0x5ea18c
lea ecx, [ebp - 0x2d4]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::operator___int__]
mov byte [ebp - 0x2d5], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.004187a3
lea ecx, [ebp - 0x27c]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov al, byte [ebp - 0x2d5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004610a0
leave
ret