joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405de2
Capabilities:
Query environment variable

Disassembly:
push 0x814
mov eax, 0x42984b
call fcn.004120da
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov esi, ecx
push 0x42e920
mov dword [ebp - 0x81c], esi
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x818], edi
call fcn.0040b587
xor eax, eax
mov dword [ebp - 4], edi
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push edi
push eax
mov dword [ebp - 0x818], 1
call fcn.0041a070
add esp, 0xc
push 0x400
lea eax, [ebp - 0x810]
push eax
push 0x42ead8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x810]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x405e62
sub eax, ecx
sar eax, 1
mov ebx, eax
lea eax, [ebp - 0x810]
push eax
mov eax, esi
call fcn.0040c629
test al, al
je 0x405ea8
cmp dword [esi + 0x14], 8
jb 0x405e8f
mov eax, dword [esi]
jmp 0x405e91
mov eax, esi
lea ecx, [ebp - 0x810]
sub ecx, eax
sar ecx, 1
push ebx
push ecx
mov eax, esi
mov ecx, esi
call fcn.0040c057
jmp 0x405eeb
push edi
mov eax, esi
call fcn.0040c5bd
test al, al
je 0x405eeb
cmp dword [esi + 0x14], 8
jb 0x405ebe
mov eax, dword [esi]
jmp 0x405ec0
mov eax, esi
lea edi, [ebx + ebx]
push edi
lea ecx, [ebp - 0x810]
push ecx
push eax
call fcn.004118e0
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x405ee1
mov eax, dword [esi]
jmp 0x405ee3
mov eax, esi
xor ecx, ecx
mov word [edi + eax], cx
xor edi, edi
push 0x42eac4
push esi
call fcn.0040b5cf
push 8
pop ebx
cmp dword [esi + 0x14], ebx
jb 0x405f02
mov eax, dword [esi]
jmp 0x405f04
mov eax, esi
push edi
push eax
call fcn.0041082c
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x405f42
cmp dword [esi + 0x14], ebx
jb 0x405f1b
mov eax, dword [esi]
jmp 0x405f1d
mov eax, esi
push eax
call fcn.0040fa13
pop ecx
cmp eax, 0xffffffff
jne 0x405f42
cmp dword [esi + 0x14], ebx
jb 0x405f32
mov eax, dword [esi]
jmp 0x405f34
mov eax, esi
push edi
push str.info
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x814]
cmp eax, edi
je 0x405fa3
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405f4f
sub eax, edx
sar eax, 1
je 0x405fa3
push 0x42ead4
push esi
call fcn.0040b5cf
push dword [ebp - 0x814]
push esi
call fcn.0040b5cf
cmp dword [esi + 0x14], ebx
jb 0x405f80
mov eax, dword [esi]
jmp 0x405f82
mov eax, esi
push 6
push eax
call fcn.0041082c
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x405fa3
cmp dword [esi + 0x14], ebx
jb 0x405f9a
mov eax, dword [esi]
jmp 0x405f9c
mov eax, esi
push eax
call fcn.0040fa13
pop ecx
mov eax, esi
call fcn.0041215d
ret 4
Function at 0x406182
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x406191
lea eax, [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4061cb
xor ebx, ebx
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.0040c1b5
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x1c
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4061b6

Function at 0x4061e9
Capabilities:
Check os version
Create process on windows

Disassembly:
push 0x158
mov eax, 0x4295b4
call fcn.00412110
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x164]
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.0041a070
push ebx
mov dword [ebp - 0x164], esi
call fcn.00405ccd
add esp, 0x10
mov esi, 0x114
push esi
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.0041a070
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 5
jb 0x40626a
jne 0x40625e
cmp dword [ebp - 0x120], 1
jbe 0x40626a
mov dword [ebp - 0x158], str.runas
jmp 0x406274
mov dword [ebp - 0x158], str.Open
mov dword [ebp - 0x15c], ebx
cmp dword [ebp + 0x18], ebx
jbe 0x406293
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x40628b
lea eax, [ebp + 8]
mov dword [ebp - 0x14c], eax
jmp 0x406299
mov dword [ebp - 0x14c], ebx
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x144], ebx
jae 0x4062ab
lea eax, [ebp + 0x24]
mov dword [ebp - 0x154], eax
cmp dword [ebp + 0x50], ebx
jbe 0x4062ca
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x4062c2
lea eax, [ebp + 0x40]
mov dword [ebp - 0x150], eax
jmp 0x4062d0
mov dword [ebp - 0x150], ebx
xor eax, eax
cmp dword [ebp + 0x60], ebx
setne al
mov dword [ebp - 0x148], eax
cmp dword [ebp + 0x5c], ebx
je 0x4062ed
mov dword [ebp - 0x160], 0x40
or dword [ebp - 0x160], 0x400
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x406365
cmp dword [ebp + 0x5c], ebx
je 0x40632f
cmp dword [ebp - 0x12c], ebx
je 0x40632f
push 0xffffffffffffffff
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.0040c1b5
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp + 0x24]
call fcn.0040c1b5
push 1
lea esi, [ebp + 0x40]
call fcn.0040c1b5
mov eax, ebx
call fcn.0041216c
ret 0x5c
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.0040c1b5
push 1
jmp 0x40633f
Function at 0x406375
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 0x38], 8
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 4], ebx
jae 0x406391
lea ecx, [ebp + 0x24]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x40639d
lea eax, [ebp + 8]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x4063d5
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.0040c1b5
push 1
lea esi, [ebp + 0x24]
call fcn.0040c1b5
push 1
lea esi, [ebp + 0x40]
call fcn.0040c1b5
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x54
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x406447
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp + 0x54], 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x40]
jae 0x406401
lea eax, [ebp + 0x40]
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406447
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
jne 0x406447
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 4]
jmp 0x4063ac
Function at 0x40644f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x814
mov eax, 0x4297d4
call fcn.004120da
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x814], ebx
mov dword [ebp - 0x81c], edi
push 0x42e920
mov esi, ebx
mov dword [ebp - 4], 2
call fcn.0040b587
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x81c], 1
mov dword [ebp - 0x818], edi
jae 0x40649d
lea eax, [ebp + 8]
lea ecx, [ebp - 0x818]
push ecx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4065c0
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push edi
push eax
call fcn.0041a070
mov eax, dword [ebp + 0x24]
add esp, 0xc
cmp dword [ebp + 0x38], 8
mov dword [ebp - 0x820], 0x800
jae 0x4064f0
lea eax, [ebp + 0x24]
lea ecx, [ebp - 0x820]
push ecx
lea ecx, [ebp - 0x810]
push ecx
push edi
push edi
push eax
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4065b4
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40651e
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [ebp - 0x810]
push eax
mov eax, ebx
call fcn.0040c629
test al, al
je 0x406564
cmp dword [ebx + 0x14], 8
jb 0x40654b
mov eax, dword [ebx]
jmp 0x40654d
mov eax, ebx
lea ecx, [ebp - 0x810]
sub ecx, eax
sar ecx, 1
push edi
push ecx
mov eax, ebx
mov ecx, ebx
call fcn.0040c057
jmp 0x4065b4
mov eax, dword [ebp - 0x814]
push 0
mov ebx, edi
call fcn.0040c5bd
test al, al
je 0x4065ae
mov esi, dword [ebp - 0x814]
cmp dword [esi + 0x14], 8
jb 0x406587
mov eax, dword [esi]
jmp 0x406589
mov eax, esi
lea ebx, [edi + edi]
push ebx
lea ecx, [ebp - 0x810]
push ecx
push eax
call fcn.004118e0
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edi
jb 0x4065a8
mov esi, dword [esi]
xor eax, eax
mov word [ebx + esi], ax
mov ebx, dword [ebp - 0x814]
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.0040c1b5
push 1
lea esi, [ebp + 0x24]
call fcn.0040c1b5
mov eax, ebx
call fcn.0041215d
ret 0x38
Function at 0x406691
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push 0x9c
mov eax, 0x429fcd
call fcn.004120da
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa8], ebx
push 0xf
pop esi
mov dword [ebp - 4], ebx
push ebx
push 0x42e465
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402dcc
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x4066dd
lea eax, [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa4], eax
cmp eax, 0xffffffff
jne 0x406707
mov dword [edi + 0x14], esi
jmp 0x406872
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, 0x800
push edi
call fcn.0040d87f
mov esi, eax
pop ecx
mov dword [ebp - 0x9c], esi
cmp esi, ebx
je 0x406859
push edi
push ebx
push esi
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x90], 0x67452301
mov dword [ebp - 0x8c], 0xefcdab89
mov dword [ebp - 0x88], 0x98badcfe
mov dword [ebp - 0x84], 0x10325476
call fcn.0041a070
add esp, 0xc
push ebx
lea eax, [ebp - 0xa8]
push eax
push edi
push esi
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4067cb
mov ecx, dword [ebp - 0xa8]
cmp ecx, ebx
je 0x4067cf
push esi
lea esi, [ebp - 0x98]
call fcn.004068a3
push edi
push ebx
push dword [ebp - 0x9c]
call fcn.0041a070
add esp, 0xc
push ebx
lea eax, [ebp - 0xa8]
push eax
push edi
push dword [ebp - 0x9c]
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x9c]
test eax, eax
jne 0x406784
lea ecx, [ebp - 0x98]
call fcn.0040693d
push edi
push ebx
push esi
call fcn.0041a070
add esp, 0xc
cmp dword [ebp + 0x24], ebx
je 0x40681a
xor edi, edi
mov dword [ebp - 0x9c], esi
movzx eax, byte [ebp + edi - 0x40]
push eax
push str._02x
push dword [ebp - 0x9c]
call fcn.0040db4c
add dword [ebp - 0x9c], 2
add esp, 0xc
inc edi
cmp edi, 0x10
jl 0x4067f2
jmp 0x406849
push 4
pop edi
mov dword [ebp - 0x9c], esi
movzx eax, byte [ebp + edi - 0x40]
push eax
push str._02x
push dword [ebp - 0x9c]
call fcn.0040db4c
add dword [ebp - 0x9c], 2
add esp, 0xc
inc edi
cmp edi, 0xc
jl 0x406823
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402e41
push esi
call fcn.0040e17b
pop ecx
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0xa0]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
lea esi, [ebp - 0x2c]
mov byte [edi], bl
call fcn.00402d2b
push ebx
push 1
mov ecx, esi
call fcn.00402ec6
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.0040c1b5
mov eax, dword [ebp - 0xa0]
call fcn.0041215d
ret 0x20
Function at 0x4073c4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov byte [ebp - 1], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4073d8
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
lea eax, [edi + edi]
push eax
mov dword [ebp - 8], edi
call fcn.0040e262
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4074bb
push 2
pop ecx
cmp edi, ecx
jle 0x407458
push 0x5c
pop edx
cmp word [esi], dx
jne 0x407458
cmp word [esi + 2], dx
jne 0x407458
add esi, 4
jmp 0x407422
cmp ax, dx
je 0x407431
add esi, ecx
movzx eax, word [esi]
test ax, ax
jne 0x40741b
jmp 0x407431
cmp ax, dx
je 0x40743b
add esi, ecx
movzx eax, word [esi]
test ax, ax
jne 0x40742c
mov edi, esi
sub edi, dword [ebp + 8]
sar edi, 1
push edi
push dword [ebp + 8]
push dword [ebp - 8]
push ebx
call fcn.0040ea76
add esp, 0x10
xor eax, eax
mov word [ebx + edi*2], ax
mov byte [ebp - 1], 1
cmp word [esi], 0
jmp 0x407466
cmp ax, 0x5c
je 0x407473
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x407462
mov edi, esi
sub edi, dword [ebp + 8]
sar edi, 1
push edi
push dword [ebp + 8]
push dword [ebp - 8]
push ebx
call fcn.0040ea76
xor eax, eax
mov word [ebx + edi*2], ax
xor edi, edi
push edi
push ebx
call fcn.0041082c
add esp, 0x18
test eax, eax
je 0x4074a9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4074b0
cmp word [esi], di
jne 0x40745c
jmp 0x4074b4
mov byte [ebp - 1], 0
push ebx
call fcn.0040e141
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4074d5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x433774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
call fcn.00407376
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00407101
mov esi, 0x100
add esp, 0xc
test dword [ebp + 0xc], esi
je 0x407524
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x407518
lea eax, [ebp - 0x20]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
or dword [ebp - 0x24], 0xffffffff
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x407534
lea eax, [ebp - 0x20]
push esi
push 0x40
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040f33c
mov ebx, dword [ebp - 0x24]
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.0040c1b5
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040db3d
leave
ret
Function at 0x4092f6
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a272
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.0041a300
mov eax, dword [0x433774]
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 [ebp + 8]
xor ebx, ebx
test byte [0x4369e4], 1
mov dword [ebp - 0x1030], eax
jne 0x40937b
or dword [0x4369e4], 1
mov dword [ebp - 4], ebx
push ebx
push 0x42e465
mov ecx, 0x4369c8
mov dword [0x4369dc], 0xf
mov dword [0x4369d8], ebx
mov byte [0x4369c8], bl
call fcn.00402dcc
push 0x42a8f9
call fcn.0040e5b2
or dword [ebp - 4], 0xffffffff
pop ecx
xor esi, esi
inc esi
cmp dword [0x4369d8], esi
jae 0x40948b
push 0x1000
lea eax, [ebp - 0x1010]
push ebx
push eax
call fcn.0041a070
add esp, 0xc
lea eax, [ebp - 0x1034]
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x4093c6
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1034]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edi, [ebp - 0x1010]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4093cd
mov esi, str.Lenovo
movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x1010]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [ebp - 0x1010]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4093f1
mov esi, str.MagicPlus
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
lea eax, [ebp - 0x1010]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [ebp - 0x1010]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x409418
mov esi, str.leplushelp.txt
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1010]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 0x102c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409448
sub eax, esi
push eax
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x102c]
call fcn.00402dcc
lea esi, [ebp - 0x102c]
mov edi, 0x4369c8
mov dword [ebp - 4], 1
call fcn.00402d2b
or dword [ebp - 4], 0xffffffff
push ebx
push 1
mov ecx, esi
call fcn.00402ec6
xor esi, esi
mov ecx, dword [ebp - 0x1030]
push 0xffffffffffffffff
push ebx
push 0x4369c8
call fcn.00403359
mov eax, esi
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.0040db3d
leave
ret
Function at 0x4095bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x28
mov eax, 0x4299dc
call fcn.004120da
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x34], esp
push str.InstallDir
call fcn.0040b587
sub esp, 0x1c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, esp
mov dword [ebp - 0x30], esp
push str.SOFTWAREMagicPlus
call fcn.0040b587
mov byte [ebp - 4], 1
cmp dword [0x436988], ebx
jne 0x40960a
push 1
call fcn.0040e1e2
pop ecx
mov dword [0x436988], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040644f
cmp dword [ebp - 0x1c], ebx
jbe 0x409636
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x409627
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409636
xor ebx, ebx
inc ebx
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.0040c1b5
mov eax, ebx
call fcn.0041215d
ret
Function at 0x409664
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x34
mov eax, 0x429e8a
call fcn.004120da
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x40], eax
call fcn.00405ccd
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00405cfc
push str.channel.ini
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040b5cf
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.0040b561
sub esp, 0x1c
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x38], esp
push 0x42ef60
call fcn.0040b587
sub esp, 0x1c
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x30], esp
push str.130
call fcn.0040b587
mov byte [ebp - 4], 3
cmp dword [0x436984], ebx
jne 0x4096ee
push 1
call fcn.0040e1e2
pop ecx
mov dword [0x436984], eax
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00406375
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x409705
lea eax, [ebp - 0x2c]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, 0xffffffff
je 0x4097f5
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push ebx
push edi
call esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [eax + 0xa]
push edi
mov dword [ebp - 0x3c], eax
call fcn.0040d87f
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x4097d9
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
call esi
push edi
push ebx
push dword [ebp - 0x34]
call fcn.0041a070
mov esi, dword [ebp - 0x3c]
add esp, 0xc
push ebx
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x34]
mov dword [ebp - 0x38], ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4097d9
mov ecx, dword [ebp - 0x34]
mov edx, ecx
mov al, byte [edx]
cmp al, 0x20
je 0x40979f
cmp al, 0xd
je 0x40979f
cmp al, 0xa
je 0x40979f
cmp al, 9
jne 0x4097a6
cmp al, bl
je 0x4097d0
inc edx
jmp 0x40978d
cmp byte [edx], bl
je 0x4097d0
lea eax, [esi + ecx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x4097c7
cmp cl, 0xd
je 0x4097c7
cmp cl, 0xa
je 0x4097c7
cmp cl, 9
je 0x4097c7
cmp cl, bl
jne 0x4097d0
cmp eax, edx
je 0x4097d0
mov byte [eax], bl
dec eax
jmp 0x4097ad
mov ecx, dword [ebp - 0x40]
push edx
call fcn.00402e41
cmp dword [ebp - 0x30], ebx
je 0x4097e7
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], ebx
je 0x4097f5
push dword [ebp - 0x34]
call fcn.0040e17b
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.0040c1b5
call fcn.0041215d
ret 8
Function at 0x40adfa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x90
mov eax, 0x42a1fe
call fcn.004120da
and dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x40ae19
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40afc4
push 0
call fcn.00405ccd
pop ecx
mov ebx, 0x42e920
push ebx
lea ecx, [ebp - 0x48]
call fcn.00405de2
lea edi, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00408647
mov eax, edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00408a63
sub esp, 0x1c
mov byte [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0x84], esp
push ebx
call fcn.0040b587
lea eax, [ebp - 0x64]
push eax
call fcn.00408d38
add esp, 0x20
mov byte [ebp - 4], 4
cmp dword [ebp - 0x54], 0
jbe 0x40aeb9
lea eax, [ebp - 0x80]
push 0x42f3d0
push eax
lea ebx, [ebp - 0x64]
call fcn.0040c8c9
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040bf6c
push 1
xor edi, edi
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.0040c1b5
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x18], 8
push ebx
push ebx
jae 0x40aeca
lea eax, [ebp - 0x2c]
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x84], esp
push eax
call fcn.0040b587
mov byte [ebp - 4], 6
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x40aeeb
lea eax, [ebp + 8]
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x9c], esp
push eax
call fcn.0040b587
mov byte [ebp - 4], 7
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x40af0c
lea eax, [ebp - 0x48]
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x98], esp
push eax
call fcn.0040b587
mov byte [ebp - 4], 8
cmp dword [0x436980], 0
jne 0x40af4b
push ebx
call fcn.0040e1e2
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40af44
xor eax, eax
mov edi, ecx
stosb byte es:[edi], al
mov dword [0x436980], ecx
jmp 0x40af4b
and dword [0x436980], 0
mov byte [ebp - 4], 4
call fcn.004061e9
xor edi, edi
push ebx
lea esi, [ebp - 0x64]
test eax, eax
je 0x40af9b
call fcn.0040c1b5
push ebx
lea esi, [ebp - 0x2c]
call fcn.0040c1b5
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 1
call fcn.0040b6d3
push ebx
lea esi, [ebp - 0x48]
call fcn.0040c1b5
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.0040c1b5
mov eax, ebx
call fcn.0041215d
ret 0x1c
call fcn.0040c1b5
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.0040c1b5
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 1
call fcn.0040b6d3
push ebx
lea esi, [ebp - 0x48]
call fcn.0040c1b5
xor ebx, ebx
jmp 0x40af85