joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41821b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561385
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5d6c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Tenio_Initialize_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 8], 0
je 0x4182a3
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
test eax, eax
jbe 0x4182a3
lea ecx, [ebp - 0x14]
call fcn.0041860c
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x444], eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x444]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x444]
call dword [eax + 0x38]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004186a9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4

Function at 0x41a844
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56169a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5d6c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0041b1c9
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jne 0x41a8ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_file_mapping_object___d_._n
call dword [sym.imp.MSVCR100.dll_printf]
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
and dword [eax], 0
mov eax, dword [ebp - 0x1c]
and dword [eax + 8], 0
jmp 0x41a947
push 4
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 8], 0
jne 0x41a8fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_map_view_of_file___d_._n
call dword [sym.imp.MSVCR100.dll_printf]
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
and dword [eax], 0
jmp 0x41a947
push 0x1c
call fcn.00461094
pop ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x41a91e
mov ecx, dword [ebp - 0x14]
call fcn.0041a957
mov dword [ebp - 0x20], eax
jmp 0x41a922
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
push 4
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
push dword [eax + 8]
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret
Function at 0x41ae13
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0xffffffff
je 0x41ae82
cmp dword [ebp + 0xc], 0
je 0x41ae82
mov eax, dword [ebp + 8]
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
call dword [eax + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x41ae82
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
jb 0x41ae82
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 4]
leave
ret 0xc

Function at 0x41ce7e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561b06
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5d6c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0x34
mov byte [ebp - 0x19], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41cec1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
jmp 0x41cec7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
push 0
push dword [ebp - 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41cfa8
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.0041db8f
and dword [ebp - 4], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.0041dbfc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41cf11
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
jmp 0x41cf17
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x44]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41cf95
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x56fcac
push dword [ebp - 0x20]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41cf95
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
shr eax, 0x10
and eax, 0xffff
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
and eax, 0xffff
mov ecx, dword [ebp + 0xc]
mov word [ecx + 2], ax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
shr eax, 0x10
and eax, 0xffff
mov ecx, dword [ebp + 0xc]
mov word [ecx + 4], ax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
and eax, 0xffff
mov ecx, dword [ebp + 0xc]
mov word [ecx + 6], ax
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0042dc8b
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret
Function at 0x4215a6
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562815
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb4], ecx
fld qword [0x570648]
fstp qword [ebp - 0x1c]
mov eax, dword [0x5ea420]
or eax, dword [0x5ea424]
jne 0x4215f9
push 0x5ea420
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
and dword [ebp - 0x38], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7d]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0xb8], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x58]
call fcn.00406430
mov dword [ebp - 4], 1
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x421788
cmp dword [ebp - 0x34], 0x12
je 0x421727
mov eax, dword [0x5ea41c]
and eax, 1
jne 0x42168f
mov eax, dword [0x5ea41c]
or eax, 1
mov dword [0x5ea41c], eax
mov byte [ebp - 4], 2
mov ecx, 0x5ea40c
call fcn.0042188a
push 0x56caf4
call fcn.004611eb
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [0x5ea410]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x5ea40c
call fcn.00421aab
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov eax, dword [eax]
sub eax, dword [ebp - 0x74]
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x421711
push dword [ebp - 0x34]
push 0x570640
lea eax, [ebp - 0x58]
push eax
call fcn.0041e3a8
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x5ea40c
call fcn.004218e9
mov dword [ebp - 0xb0], eax
push dword [0x5c0400]
push 0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0xb0]
call fcn.00406230
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x42173b
cmp dword [0x5ea3f8], 0
je 0x42173b
mov ecx, dword [0x5ea3f8]
call fcn.004211ee
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x68]
sbb ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], ecx
fild qword [ebp - 0xc0]
fmul qword [0x570638]
fild qword [0x5ea420]
fdivp st(1)
fstp qword [ebp - 0x64]
fld qword [ebp - 0x1c]
fcomp qword [ebp - 0x64]
fnstsw ax
test ah, 5
jp 0x421783
jmp 0x421788
jmp 0x421637
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00406430
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.004610a0
leave
ret
Function at 0x4285dc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov byte [ebp - 5], 0
cmp dword [ebp + 0xc], 0
jne 0x4285f6
mov al, byte [ebp - 5]
jmp 0x42869a
mov eax, dword [ebp + 0xc]
and dword [eax], 0
and dword [eax + 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x428613
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x428619
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push 0
push 0x80
push 3
push 0
push 3
push connect
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x428697
and dword [ebp - 0x10], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x428669
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42868a
mov esi, dword [ebp - 0xc]
xor edi, edi
mov eax, dword [ebp - 0x10]
xor edx, edx
mov cl, 0x20
call fcn.004614d0
or esi, eax
or edi, edx
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [eax + 4], edi
mov byte [ebp - 5], 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 5]
pop edi
pop esi
leave
ret
Function at 0x42875c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563b48
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push dword [ebp + 8]
call fcn.0041838b
mov dword [ebp - 0x74], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
or dword [ebp - 4], 0xffffffff
call fcn.00428340
add esp, 0x20
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x69]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 2
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.00406660
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004276fd
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x428822
mov byte [ebp - 0x51], 0
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00406660
mov byte [ebp - 4], 1
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x51]
jmp 0x42894a
cmp dword [ebp - 0x34], 8
jb 0x428830
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x80], eax
jmp 0x428836
lea eax, [ebp - 0x48]
mov dword [ebp - 0x80], eax
push 0
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR100.dll__waccess]
pop ecx
pop ecx
test eax, eax
jne 0x42887e
mov byte [ebp - 0x52], 1
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00406660
mov byte [ebp - 4], 1
mov dword [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x52]
jmp 0x42894a
lea eax, [ebp - 0x48]
push eax
call fcn.0042875c
pop ecx
movzx eax, al
test eax, eax
jne 0x4288c6
mov byte [ebp - 0x53], 0
mov byte [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00406660
mov byte [ebp - 4], 1
mov dword [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x53]
jmp 0x42894a
push 0x5707f4
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
mov dword [ebp - 0x70], eax
push dword [ebp - 0x70]
push 0x5707f4
lea ecx, [ebp - 0x48]
call fcn.00410870
cmp dword [ebp - 0x34], 8
jb 0x4288f6
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x84], eax
jmp 0x4288ff
lea eax, [ebp - 0x48]
mov dword [ebp - 0x84], eax
push 0
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp dword [ebp - 0x4c], 1
sete al
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00406660
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x54]
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
Function at 0x42a09c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563f70
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x294], ecx
and dword [ebp - 0x258], 0
xor eax, eax
mov word [ebp - 0x254], ax
push 0x206
push 0
lea eax, [ebp - 0x252]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x42a148
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x42a12e
push 0x5709a0
push 4
call fcn.0041b5a4
pop ecx
pop ecx
push 0x57097c
push 0x103
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e60
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x29c], eax
mov dword [ebp - 4], 1
push 0x570930
push dword [ebp - 0x29c]
lea eax, [ebp - 0x48]
push eax
call fcn.00412118
add esp, 0xc
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406660
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
push eax
call fcn.0042875c
pop ecx
movzx eax, al
test eax, eax
jne 0x42a1e4
push 0x56e44c
mov ecx, dword [ebp + 8]
call fcn.00404e60
mov eax, dword [ebp - 0x258]
or eax, 1
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00406660
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
jmp 0x42a219
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406f40
mov eax, dword [ebp - 0x258]
or eax, 1
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00406660
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
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 4
Function at 0x42ae5f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x258], 0
push 0x24c
push 0
lea eax, [ebp - 0x254]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x258]
and eax, 1
jne 0x42aeea
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x42aed8
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x42af49
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x42af49
mov eax, dword [ebp - 0x258]
and eax, 0xfffffffe
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42af3b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x42af29
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x42af49
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x42af49
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004610a0
leave
ret

Function at 0x42b4cd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564323
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
and dword [ebp - 0x23c], 0
mov ax, word [0x570a48]
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x264]
cmp dword [eax + 0x14], 8
jb 0x42b544
mov eax, dword [ebp - 0x264]
mov eax, dword [eax]
mov dword [ebp - 0x268], eax
jmp 0x42b550
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x268], eax
push dword [ebp - 0x268]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00404e60
mov dword [ebp - 4], 1
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406f40
mov eax, dword [ebp - 0x23c]
or eax, 1
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x238]
call fcn.00406660
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
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 0x10
Function at 0x42c850
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
push str.Path
push 0x56fa08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 1
cmp dword [ebp - 0x218], 0
je 0x42c90a
mov eax, dword [ebp - 0x218]
movzx eax, word [eax]
test eax, eax
je 0x42c90a
mov eax, dword [ebp - 0x218]
movzx eax, word [eax]
cmp eax, 0x20
je 0x42c8fa
mov eax, dword [ebp - 0x218]
movzx eax, word [eax]
cmp eax, 9
je 0x42c8fa
and dword [ebp - 0x214], 0
jmp 0x42c90a
mov eax, dword [ebp - 0x218]
inc eax
inc eax
mov dword [ebp - 0x218], eax
jmp 0x42c8c8
cmp dword [ebp - 0x214], 0
jne 0x42c99c
mov dword [ebp - 0x21c], 1
lea eax, [ebp - 0x210]
test eax, eax
je 0x42c95c
push 0x3a
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR100.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x42c949
and dword [ebp - 0x21c], 0
jmp 0x42c95c
movzx eax, word [ebp - 0x210]
cmp eax, 0x5c
jne 0x42c95c
and dword [ebp - 0x21c], 0
cmp dword [ebp - 0x21c], 0
je 0x42c982
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x228]
call fcn.0042cacc
jmp 0x42c99a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x228]
call fcn.0042c850
jmp 0x42ca00
and dword [ebp - 0x220], 0
cmp dword [ebp + 0xc], 0
je 0x42ca00
cmp dword [ebp + 0x10], 0
jle 0x42ca00
cmp dword [ebp + 8], 0
je 0x42ca00
and dword [ebp - 0x224], 0
cmp dword [ebp + 8], 0
je 0x42c9db
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
cmp eax, dword [ebp + 0x10]
jae 0x42c9db
mov dword [ebp - 0x224], 1
cmp dword [ebp - 0x224], 0
je 0x42ca00
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
mov dword [ebp - 0x220], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004610a0
leave
ret 0xc
Function at 0x42d204
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x42d227
push str._LauncherVerifier__handle_already_exist.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
jmp 0x42d2f2
mov byte [ebp - 1], 1
mov dword [ebp - 8], 0x1008
push dword [0x5d3848]
push 1
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x42d272
push dword [0x5d3848]
push dword [ebp - 8]
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x42d2e5
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x42d2e5
push dword [ebp - 8]
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42d2c9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 8], 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x42d2e5
push str._LauncherVerifier__write_base_info_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
and dword [eax], 0
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp dword [eax], 0
setne cl
mov al, cl
leave
ret