joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f013d
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp byte [ebp + 0xc], 0
movzx eax, ax
jne 0x4f0182
test edi, edi
jl 0x4f0182
cmp ax, 0x20
je 0x4f0177
cmp word [ebp + 8], 0x71
jne 0x4f0182
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x4f53ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x563fe8]
jne 0x4f53d4
repz ret
jmp fcn.004fc219

Function at 0x508d38
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004fbb7a
and dword [ebp - 4], 0
cmp dword [0x56b52c], 0
mov ebx, eax
jne 0x508de9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x508e9a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x508e9a
push eax
call fcn.004fbb08
mov dword [esp], 0x545264
push edi
mov dword [0x56b52c], eax
call esi
push eax
call fcn.004fbb08
mov dword [esp], 0x545250
push edi
mov dword [0x56b530], eax
call esi
push eax
call fcn.004fbb08
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x56b534], eax
call esi
push eax
call fcn.004fbb08
pop ecx
mov dword [0x56b53c], eax
test eax, eax
je 0x508de9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004fbb08
pop ecx
mov dword [0x56b538], eax
mov eax, dword [0x56b538]
cmp eax, ebx
je 0x508e41
cmp dword [0x56b53c], ebx
je 0x508e41
push eax
call fcn.004fbb83
push dword [0x56b53c]
mov esi, eax
call fcn.004fbb83
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x508e41
test edi, edi
je 0x508e41
call esi
test eax, eax
je 0x508e38
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x508e38
test byte [ebp - 0xc], 1
jne 0x508e41
or dword [ebp + 0x10], 0x200000
jmp 0x508e7a
mov eax, dword [0x56b530]
cmp eax, ebx
je 0x508e7a
push eax
call fcn.004fbb83
pop ecx
test eax, eax
je 0x508e7a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x508e7a
mov eax, dword [0x56b534]
cmp eax, ebx
je 0x508e7a
push eax
call fcn.004fbb83
pop ecx
test eax, eax
je 0x508e7a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x56b52c]
call fcn.004fbb83
pop ecx
test eax, eax
je 0x508e9a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x508e9c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xbd5203
Capabilities:
Encode data using xor

Disassembly:
mov word [esp], bp
push 0xebd2d4f2
mov dword [esp + 4], 0xbd8b56
push edi
pushal
call fcn.00c2c4e2
Function at 0x44b610
Capabilities:
Accept command line arguments

Disassembly:
push ecx
mov al, byte [0x66004e]
mov cl, byte [0x660043]
xor cl, al
push esi
mov byte [0x660043], cl
mov cl, byte [0x660041]
or cl, 0xc
shr cl, 2
and ecx, 0xff
mov dword [esp + 4], ecx
fild dword [esp + 4]
fdivr qword [0x6639d0]
fadd qword [0x663970]
fstp qword [0x6639d0]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov dl, byte [0x660042]
mov al, byte [0x660049]
mov ecx, dword [0x660030]
xor al, dl
mov byte [0x660049], al
mov eax, dword [0x660034]
mov edx, dword [0x660048]
and eax, 4
add ecx, eax
and edx, 0xff
mov dword [0x660030], ecx
mov ecx, dword [0x66003c]
and ecx, 0xc
lea eax, [esp + 4]
imul ecx, edx
mov edx, dword [0x660038]
push eax
xor edx, ecx
push esi
mov dword [0x660038], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [0x663bd4], eax
mov eax, dword [0x663bd0]
test eax, eax
jne 0x44b72c
test esi, esi
je 0x44b70f
mov edx, dword [0x663abc]
push 0x6637d8
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.LoadIconWithScaleDown
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov dword [0x663ac4], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x663abc]
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
xor eax, eax
mov dword [0x663bd0], 1
pop esi
pop ecx
ret 4
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret 4
Function at 0x6219db
Capabilities:
Encode data using xor

Disassembly:
sub ebp, ebx
mov edx, 0xfe54e535
adc byte [ebp - 0x51], dl
and al, 0xa1
test eax, 0xf17387be
test edi, ecx
aam 0xc9
aad 0x17
pop ss
sub byte [edx], cl
je 0x62195b
pop ss
imul esp, dword [esi - 0x48], 0x68
invalid
btr dword [eax + 0x64], esi
fisub dword [edi + 0x64]
cwde
stc
mov dh, 0xca
mov cl, 0x64
jl 0x6219f5
dec ebx
daa
jmp 0xbf570d90
jne 0x621991
add al, 0xa3
sbb dl, byte [ebx]
loop 0x621972
out dx, eax
jb 0x621a16
push eax
add dword [eax - 0xcf7fc5e], edi
imul edi, dword [0xf88fab2], 0x8dde0c44
call 0xf8f57a6f
fimul word [ebp - 0x6c9f8c18]
clc
add eax, dword [0xb4803f2b]
push es
loopne 0x621a56
jb 0x621a20
mov ch, 0x72
xchg ecx, eax
xchg esi, esp
sub al, 0x45
xchg edi, eax
lodsb al, byte [esi]
xchg ecx, eax
push ebp
xchg esi, eax
ja 0x621a18
ja 0x621a18
push esp
in al, dx
jg 0x621a91
adc bl, byte [ecx - 0x4093548d]
add al, 0x4d
insb byte es:[edi], dx
mov edi, 0x4656536
dec ebp
or ebx, ebx
xchg esp, eax
rcl byte [ebp - 0x357a266a], cl
or byte [edx], dl
adc byte [ecx], bl
fimul dword [ebx + edi*2]
mov fs, word [ebp + edi + 0x6e]
mov cs, word [esi + 0x50]
or dl, byte [ebp - 0x1ceb92ae]
sbb eax, 0x88a5bb7a
add ebx, dword [ebx]
test eax, eax
mov eax, dword [0x10753ec5]
dec ebp
cmp byte [ecx + 0x11], dl
adc eax, 0x6a83f545
adc dword [0x6a83f545], edx
xchg esi, eax
rep outsd dx, dword [esi]
adc byte [esi - 0x4d6b6d57], dh
fbstp tbyte [eax - 0x4a5ff51a]
cli
mov al, byte [0x3243929f]
aad 0x63
mov al, byte [0x977f381b]
xchg byte [ebp + 0x60], al
mov dword [0x23f53410], eax
jmp 0x621a1a
in al, 0x45
jae 0x621ac0
push edx
xor esp, dword [ebp - 0x5c]
push ebp
and eax, 0x739b10cf
xor eax, 0x9967ae83
mov esi, 0x13d55b81
loopne 0x621a9a
push cs
out dx, eax
sbb bh, bh
rol byte [ebx], 1
and eax, 0xc4e792df
and edi, dword [edi]
popfd
out 0x25, eax
adc dword [eax + 0x21], esi
mov ch, 0x2d
pop ss
add byte [edi], dh
int1
out 0x85, eax
mov cl, 0x93
lahf
dec edx
sbb esp, dword [esi - 0x30ad010e]
xor esp, dword [0x90fd6432]
arpl word [edx + eax], bx
bound ebx, qword gs:[edx - 0x55739aef]
mov esi, eax
rcl dword [edi], 0xab
jno 0x621b34
cli
int3
inc ebx
daa
jg 0x621ac0
lodsd eax, dword [esi]
aam 0xf2
fisub word [ecx - 0xc]
jl 0x621bb5
xchg esp, eax
adc edx, dword [esi + edx - 0x7e5b16a6]
mov bl, 0x72
mov dword [0x5e5f7f13], eax
stc
add dword [ebp - 0x545324e7], esi
popfd
inc dword [edx + 7]
jne 0x621bd1
pop ss
jne 0x621b6a
adc dh, byte [edx - 0x3cbaf425]
movsd dword es:[edi], dword [esi]
mov bl, 0x59
nop
retf
add ch, bh
adc ebp, dword [esi]
mov al, byte [0xe340e05]
push cs
pop esp
sbb al, 0xe6
dec ecx
cmp ebx, dword [edx - 0x6c]
mov edi, 0xc5218e08
mov ch, 0x5d
and dh, byte [0x885084cc]
int1
sbb al, bl
mov al, byte [0xddf3dd4c]
xor byte [0x51529b5d], al
fldcw word [edi + 0x6fb25dd3]
sbb eax, 0x73a369a0
movsd dword es:[edi], dword [esi]
cmp eax, 0x631e85b9
mov dword [0x96acff13], eax
jmp 0x621b72
pop edx
ret
sub byte [ebx + edx*2], dl
push ss
insb byte es:[edi], dx
push cs
adc al, 6
xchg ebx, eax
or eax, ebp
lds edx, [eax + 0x353999ea]
invalid
Function at 0x62c9ab
Capabilities:
Encode data using xor

Disassembly:
mov cl, 0xd2
aam 0xcf
mov dword [0xb41126e2], eax
xchg ebx, eax
add byte [edi], ah
or eax, 0x769a765e
popal
in al, 0x2d
xor al, 0x47
jg 0x62c9ae
iretd
test eax, 0xd74acd75
mov dword [ebp - 0x4d], edx
daa
xchg ecx, esi
invalid

Function at 0x659a76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x662930
cmp edx, dword [eax]
je 0x659a98
add eax, 8
inc ecx
cmp eax, 0x6629c0
jl 0x659a89
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x662930]
jne 0x659bc6
mov eax, dword [0xa65d18]
cmp eax, 1
je 0x659ba0
test eax, eax
jne 0x659ac9
cmp dword [0x6602e4], 1
je 0x659ba0
cmp edx, 0xfc
je 0x659bc6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659b00
lea eax, [ebp - 0x1a4]
push 0x65d858
push eax
call fcn.00656af0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00656c70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659b43
lea eax, [ebp - 0x1a4]
push eax
call fcn.00656c70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65d854
push edi
call fcn.00656e00
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65d838
push eax
call fcn.00656af0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00656b00
lea eax, [ebp - 0xa0]
push 0x65d834
push eax
call fcn.00656b00
push dword [esi + 0x662934]
lea eax, [ebp - 0xa0]
push eax
call fcn.00656b00
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65d80c
push eax
call fcn.0065b41c
add esp, 0x2c
pop edi
jmp 0x659bc6
lea eax, [ebp + 8]
lea esi, [esi + 0x662934]
push 0
push eax
push dword [esi]
call fcn.00656c70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404040
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
movzx eax, bl
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
mov eax, ebx
shr eax, 8
movzx eax, al
push esi
push edi
xor edx, eax
mov edi, ecx
imul ecx, edx, 0x1000193
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 4]
xor ecx, eax
mov dword [ebp - 4], edi
imul ecx, ecx, 0x1000193
mov eax, ebx
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edi + 0x18]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp edi, esi
jne 0x4040aa
mov ecx, esi
jmp 0x4040af
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4040bc
cmp dword [eax + 8], ebx
je 0x4040be
mov eax, dword [eax]
jmp 0x4040a2
mov eax, esi
cmp eax, esi
jne 0x404119
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax]
lea eax, [ebp - 0xc]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.00407240
mov edx, eax
mov ecx, 0xffffffe
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x404138
inc eax
mov ecx, ebx
mov dword [ebx + 8], eax
mov dword [esi + 4], edx
mov dword [edi], edx
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00406b50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push str.error_command_table_add__08X
push 0x4c2500
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call fcn.004747ca
int3
Function at 0x405620
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 0xb]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp dword [ecx + 4], edi
jne 0x405693
cmp eax, edi
jne 0x40568b
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x40569b
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x40569b
cmp eax, edi
jne 0x40569e
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push 0x10
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.004748be
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4086e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov edi, ecx
mov esi, edx
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 8], esi
push ecx
push 4
lea eax, [esi + 0xc98]
mov dword [ebp - 0xc], edi
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xc9c]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xca4]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xca0]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea eax, [esi + 0xca8]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xcb4]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
add esi, 0xcb8
push eax
push 4
push esi
push edi
call ebx
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 4
add eax, 0xcc0
push eax
push edi
call ebx
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push eax
push 4
add edi, 0xcbc
push edi
push dword [ebp - 0xc]
call ebx
mov ebx, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push eax
push 0xc
add ebx, 0xcc4
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0xc
add eax, 0xe30
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0xb34
add eax, 0xe3c
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 8
add eax, 0x1970
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xcb4]
imul eax, dword [ecx + 0xc98]
push eax
call dword [sym.imp.PAL.dll_PalSoundSetPrimaryVolume]
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
mov esi, dword [sym.imp.PAL.dll_PalSoundSetVolume]
push 3
imul eax, dword [ecx + 0xc9c]
push eax
call esi
mov eax, dword [ebp - 8]
push 1
mov eax, dword [eax + 0xca0]
imul eax, dword [edi]
push eax
call esi
mov edi, dword [ebp - 8]
push 4
mov eax, dword [edi + 0xcc8]
imul eax, dword [edi + 0xcac]
push eax
call esi
mov eax, dword [edi + 0xccc]
imul eax, dword [edi + 0xcb0]
push 6
push eax
call esi
mov eax, dword [ebx]
imul eax, dword [edi + 0xca8]
push 5
push eax
call esi
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408af0
Capabilities:
Print debug messages

Disassembly:
push edi
push 0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
lea edi, [eax + 0x338]
mov ecx, edi
call fcn.00408a80
cmp eax, 0xffffffff
je 0x408b6a
push ebx
imul ebx, eax, 0x2c
add ebx, edi
cmp dword [ebx + 0x262d0], 0
mov dword [ebx + 0x262cc], 0
je 0x408b69
push esi
mov dword [ebx + 0x262cc], 1
mov edx, 2
push 2
push dword [edi + 0x55e5c]
mov ecx, edi
call fcn.0046dcf0
mov eax, dword [edi + 0x55e60]
lea ecx, [edi + 0x55e54]
add esp, 8
add eax, dword [ebx + 0x262d0]
mov dword [edi + 0x55e5c], eax
pop esi
pop ebx
pop edi
jmp fcn.0046c920
pop ebx
pop edi
ret
Function at 0x408b70
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push 0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
xor esi, esi
lea ebx, [eax + 0x338]
lea edi, [ebx + 0x25ad0]
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x408ba4
push eax
call dword [sym.imp.PAL.dll_PalSoundPlayIs]
add esp, 4
test eax, eax
jne 0x408c11
inc esi
add edi, 0x44
cmp esi, 8
jl 0x408b90
mov ecx, ebx
call fcn.00408a80
cmp eax, 0xffffffff
je 0x408c11
imul edi, eax, 0x2c
add edi, ebx
cmp dword [edi + 0x262cc], 0
je 0x408c11
cmp dword [edi + 0x262d4], 0
mov dword [edi + 0x262cc], 0
je 0x408c11
push 2
push dword [ebx + 0x55e5c]
mov edx, 2
mov ecx, ebx
call fcn.0046dcf0
mov eax, dword [ebx + 0x55e60]
lea ecx, [ebx + 0x55e54]
add esp, 8
add eax, dword [edi + 0x262d4]
mov dword [ebx + 0x55e5c], eax
pop edi
pop esi
pop ebx
jmp fcn.0046c920
pop edi
pop esi
pop ebx
ret

Function at 0x40c2c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4d8008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 5
lea eax, [ebp - 0x310]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
js 0x40c39b
mov eax, dword [esi + 4]
push edi
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esi + 4]
lea ecx, [edi + 0x410]
lea edx, [edi + 0x104]
push ecx
test eax, eax
je 0x40c33b
lea eax, [edi + 0x208]
push eax
push edx
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push str._s_s_s_s_save
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x40c358
push edx
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push str._s_s_s_save
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
mov ecx, esi
mov edx, eax
sub ecx, edx
pop edi
lea edx, [ecx + 8]
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40c370
mov dword [esi + 0x214], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0047487d
mov esp, ebp
pop ebp
ret
Function at 0x40c3b0
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d8008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x24
push eax
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
js 0x40c40a
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0047f554
add esp, 0xc
test eax, eax
je 0x40c555
push 0
push 0x23
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
js 0x40c43f
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0047f554
add esp, 0xc
test eax, eax
je 0x40c555
push 0x4c9060
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c524
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40c524
cmp dword [ebp - 0x210], 0
je 0x40c524
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00476930
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x20c]
add esp, 0xc
push 0x208
push eax
push str.ProgramFiles_x86_
call ebx
test eax, eax
je 0x40c4dd
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0047f554
add esp, 0xc
test eax, eax
je 0x40c555
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00476930
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
push str.ProgramW6432
call ebx
test eax, eax
jne 0x40c537
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret 4
push 0
push 0x26
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
js 0x40c50f
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0047f554
add esp, 0xc
test eax, eax
jne 0x40c50f
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047487d
mov esp, ebp
pop ebp
ret 4
Function at 0x40c570
Capabilities:
Get common file path
Get disk information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x76c
mov eax, dword [0x4d8008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea eax, [ebp - 0x218]
push esi
push edi
push dword [ebx + 4]
mov dword [ebx + 0x210], 0xffffffff
push str._s_save
push eax
mov dword [ebx + 0x214], 0
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edi, [ebx + 8]
mov eax, ecx
mov edx, edi
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40c5c3
mov eax, dword [ebx + 4]
cmp byte [eax + 0x514], 0
jne 0x40c708
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00476930
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x420]
add esp, 0xc
push 0
push 0x1a
push eax
push 0
call esi
test eax, eax
jns 0x40c626
push 0
push 0x23
lea eax, [ebp - 0x420]
push eax
push 0
call esi
test eax, eax
js 0x40c708
mov ecx, dword [ebx + 4]
lea eax, [ecx + 0x30c]
push eax
lea eax, [ecx + 0x104]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x110]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x110]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x768]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40c708
mov esi, dword [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and esi, 0x10
jne 0x40c708
push 0x208
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00476930
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0x4c2500
push str.SaveFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x628]
mov eax, ecx
sub edi, eax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x40c6e0
mov dword [ebx + 0x214], 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c710
sub ecx, edx
cmp ecx, 2
jl 0x40c730
cmp byte [edi], 0x5c
jne 0x40c730
cmp byte [edi + 1], 0x5c
jne 0x40c730
mov eax, 4
jmp 0x40c765
cmp ecx, 3
jge 0x40c73c
mov eax, 1
jmp 0x40c765
push 3
lea eax, [ebp - 0x76c]
mov dword [ebp - 0x76c], 0
push edi
push eax
call fcn.0047f430
add esp, 0xc
lea eax, [ebp - 0x76c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebx + 0x210], eax
test eax, eax
je 0x40c7a3
cmp eax, 1
je 0x40c7a3
cmp eax, 5
je 0x40c79c
push dword [ebx + 4]
call fcn.0040c3b0
test eax, eax
jne 0x40c79c
mov dword [ebx + 0x214], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.0040c2c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047487d
mov esp, ebp
pop ebp
ret