joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.004066d0
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004066d0
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4066d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x4066df
pop dword [ebp - 0x30]
mov eax, 0x4b1c3ed7
add eax, 0xb5242808
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x39c26
push 0
mov eax, 0x302f082f
add eax, 0xd0147801
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x315182f4
sub ecx, 0x31513e8c
mov esi, eax
mov edx, 0xf49887bb
sub edx, 0xf453c1bb
add edx, dword [ebp - 0x30]
mov edi, 0x7fcf7e88
add edi, 0xd1c6bf34
sub dword [ebp - 0x28], 0x8e2b3053
mov ebx, dword [edx]
sub dword [ebp - 0x28], ecx
xor ebx, edi
sub dword [ebp - 0x24], ecx
mov dword [esi], ebx
add esi, 4
add edx, 4
loop 0x40673e
add eax, 0x50b1662d
sub eax, 0x50b061ba
xor ebx, ebx
add ebx, eax
add eax, 0xdd39db2f
add eax, 0x22c624d6
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40611c
pop dword [ebp - 0x10]
mov eax, 0x63daca28
add eax, 0x9c6596f4
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x68d9b880
sub dword [ebp - 0x20], 0x1a877335
mov dword [ebp - 0x1c], 0x8e2fe2ee
sub dword [ebp - 0x1c], 0x5bfc96a9
mov dword [ebp - 0x18], 0x805900c6
add dword [ebp - 0x18], 0xcbf34368
mov dword [ebp - 0x14], 0x6d5d7e6
sub dword [ebp - 0x14], 0x6d5d7e6
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x22044a2e
sub dword [ebp - 0x20], 0xad91e0d8
mov dword [ebp - 0x1c], 0xb9a628b6
add dword [ebp - 0x1c], 0x87c638bf
mov dword [ebp - 0x18], 0x74465081
add dword [ebp - 0x18], 0xef291beb
mov dword [ebp - 0x14], 0x24404ef4
add dword [ebp - 0x14], 0xdbbfb10c
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x7dd0e5ae
add eax, 0x826f8b52
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3261f
push 0
call eax
mov ecx, 0x75f467d6
sub ecx, 0x75f430bd
mov esi, eax
mov edx, 0x410000
add edx, dword [ebp - 0x10]
mov edi, 0x49c2e5ec
add edi, 0xa2c9b27a
xor dword [ebp - 8], esi
mov ebx, dword [edx]
xor dword [ebp - 8], edx
sub ebx, edi
add dword [ebp - 8], edx
mov dword [esi], ebx
add esi, 0x23888996
sub esi, 0x23888992
add edx, 4
loop 0x406233
add eax, 0x5d38e6e7
sub eax, 0x5d3817b0
mov ebx, eax
add eax, 0x50f1c561
add eax, 0xaf0e3aa4
mov ecx, 0x3eb2b7e3
add ecx, 0xc18d481d
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x403fb0
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 0x40401a
mov ecx, esi
jmp 0x40401f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x40402c
cmp dword [eax + 8], ebx
je 0x40402e
mov eax, dword [eax]
jmp 0x404012
mov eax, esi
cmp eax, esi
jne 0x404089
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.004071b0
mov edx, eax
mov ecx, 0xffffffe
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x4040a8
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.00406ac0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push str.error_command_table_add__08X
push 0x4bb480
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.0046d0ac
int3
Function at 0x405590
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 0x405603
cmp eax, edi
jne 0x4055fb
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 0x40560b
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x40560b
cmp eax, edi
jne 0x40560e
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.0046d1a0
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x408610
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 + 0xc94]
mov dword [ebp - 0xc], edi
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xc98]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xca0]
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 ecx, [ebp - 4]
push ecx
push 0xc
lea eax, [esi + 0xca4]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xcb0]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
add esi, 0xcb4
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, 0xcbc
push eax
push edi
call ebx
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push eax
push 4
add edi, 0xcb8
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, 0xcc0
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, 0xe2c
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, 0xe38
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, 0x196c
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xcb0]
imul eax, dword [ecx + 0xc94]
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 + 0xc98]
push eax
call esi
mov eax, dword [ebp - 8]
push 1
mov eax, dword [eax + 0xc9c]
imul eax, dword [edi]
push eax
call esi
mov edi, dword [ebp - 8]
push 4
mov eax, dword [edi + 0xcc4]
imul eax, dword [edi + 0xca8]
push eax
call esi
mov eax, dword [edi + 0xcc8]
imul eax, dword [edi + 0xcac]
push 6
push eax
call esi
mov eax, dword [ebx]
imul eax, dword [edi + 0xca4]
push 5
push eax
call esi
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408a20
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push 0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
lea edi, [eax + 0x338]
mov ecx, edi
call fcn.004089b0
cmp eax, 0xffffffff
je 0x408a99
imul ebx, eax, 0x2c
add ebx, edi
cmp dword [ebx + 0x2624c], 0
mov dword [ebx + 0x26248], 0
je 0x408a99
mov dword [ebx + 0x26248], 1
mov edx, 2
push 2
push dword [edi + 0x55dd8]
mov ecx, edi
call fcn.00464610
mov eax, dword [edi + 0x55ddc]
lea ecx, [edi + 0x55dd0]
add esp, 8
add eax, dword [ebx + 0x2624c]
mov dword [edi + 0x55dd8], eax
pop edi
pop esi
pop ebx
jmp fcn.00463230
pop edi
pop esi
pop ebx
ret
Function at 0x408aa0
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 + 0x25a4c]
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x408ad4
push eax
call dword [sym.imp.PAL.dll_PalSoundPlayIs]
add esp, 4
test eax, eax
jne 0x408b41
inc esi
add edi, 0x44
cmp esi, 8
jl 0x408ac0
mov ecx, ebx
call fcn.004089b0
cmp eax, 0xffffffff
je 0x408b41
imul edi, eax, 0x2c
add edi, ebx
cmp dword [edi + 0x26248], 0
je 0x408b41
cmp dword [edi + 0x26250], 0
mov dword [edi + 0x26248], 0
je 0x408b41
push 2
push dword [ebx + 0x55dd8]
mov edx, 2
mov ecx, ebx
call fcn.00464610
mov eax, dword [ebx + 0x55ddc]
lea ecx, [ebx + 0x55dd0]
add esp, 8
add eax, dword [edi + 0x26250]
mov dword [ebx + 0x55dd8], eax
pop edi
pop esi
pop ebx
jmp fcn.00463230
pop edi
pop esi
pop ebx
ret

Function at 0x40c170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4d0008]
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 0x40c24b
mov eax, dword [esi + 0x214]
push edi
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esi + 0x214]
lea ecx, [edi + 0x410]
lea edx, [edi + 0x104]
push ecx
test eax, eax
je 0x40c1f1
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 0x40c20e
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 + 4]
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40c220
mov dword [esi + 0x210], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
Function at 0x40c260
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d0008]
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 0x40c2ba
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00477eb8
add esp, 0xc
test eax, eax
je 0x40c405
push 0
push 0x23
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
js 0x40c2ef
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00477eb8
add esp, 0xc
test eax, eax
je 0x40c405
push 0x4c1b18
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c3d4
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 0x40c3d4
cmp dword [ebp - 0x210], 0
je 0x40c3d4
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046f210
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 0x40c38d
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00477eb8
add esp, 0xc
test eax, eax
je 0x40c405
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046f210
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
push str.ProgramW6432
call ebx
test eax, eax
jne 0x40c3e7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
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 0x40c3bf
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00477eb8
add esp, 0xc
test eax, eax
jne 0x40c3bf
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d15f
mov esp, ebp
pop ebp
ret 4
Function at 0x40c420
Capabilities:
Get common file path
Get disk information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x76c
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x218]
push dword [edi + 0x214]
mov dword [edi + 0x20c], 0xffffffff
push str._s_save
push eax
mov dword [edi + 0x210], 0
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x218]
add esp, 0xc
lea ebx, [edi + 4]
mov eax, ecx
mov edx, ebx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40c476
mov eax, dword [edi + 0x214]
cmp byte [eax + 0x514], 0
jne 0x40c5b9
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0046f210
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x208
push 0
push eax
call fcn.0046f210
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 0x40c4f2
push 0
push 0x23
lea eax, [ebp - 0x420]
push eax
push 0
call esi
test eax, eax
js 0x40c5b9
mov ecx, dword [edi + 0x214]
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 0x40c5b9
mov esi, dword [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and esi, 0x10
jne 0x40c5b9
lea eax, [ebp - 0x110]
push eax
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0x4bb480
push str.SaveFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x628]
mov eax, ecx
sub ebx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x40c591
mov dword [edi + 0x210], 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
push 2
push 0x4bb5e4
push ebx
call fcn.00477e40
add esp, 0xc
test eax, eax
jne 0x40c5d4
mov eax, 4
jmp 0x40c5fd
push 3
lea eax, [ebp - 0x76c]
mov dword [ebp - 0x76c], 0
push ebx
push eax
call fcn.00477d10
add esp, 0xc
lea eax, [ebp - 0x76c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [edi + 0x20c], eax
test eax, eax
je 0x40c63e
cmp eax, 1
je 0x40c63e
cmp eax, 5
je 0x40c637
push dword [edi + 0x214]
call fcn.0040c260
test eax, eax
jne 0x40c637
mov dword [edi + 0x210], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040c170
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
Function at 0x41fb30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push 0x6c6654
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
mov dword [ebp - 0x208], edx
cmp edx, 0xffffffff
je 0x41fc73
mov ecx, dword [0x625650]
xor eax, eax
mov dword [ebp - 0x20c], eax
push esi
push edi
test ecx, ecx
jle 0x41fc3c
mov edi, 0x625757
nop
mov esi, dword [edi - 0x103]
test esi, esi
js 0x41fc21
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0046f210
push edi
lea eax, [edi + 0xff]
push eax
lea eax, [edi - 0xff]
push eax
movsx eax, byte [edi + 0x17f]
push eax
push esi
lea eax, [ebp - 0x204]
push str._06d__1d___s____s____s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [ebp - 0x204]
add esp, 0x28
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x41fbe7
push 0
lea eax, [ebp - 0x210]
sub esi, ecx
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [ebp - 0x210]
jne 0x41fc55
mov ecx, dword [0x625650]
mov eax, dword [ebp - 0x20c]
inc eax
add edi, 0x284
mov dword [ebp - 0x20c], eax
cmp eax, ecx
jl 0x41fb90
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
Function at 0x41fc90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x8000080
push 3
push 0
push 0
push connect
push 0x6c6654
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41feb1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
lea ecx, [eax + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41feb1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [0x625650], esi
cmp dword [ebp - 0x10], esi
jbe 0x41fe8b
nop
mov cl, byte [esi + edi]
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0xc], xmm0
cmp cl, 0x2c
je 0x41fd49
inc esi
mov byte [ebp + eax - 0xc], cl
inc eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
jne 0x41fd32
cmp eax, 8
jae 0x41fec3
mov byte [ebp + eax - 0xc], 0
lea eax, [ebp - 0xc]
push eax
call fcn.0047afe9
imul ecx, dword [0x625650], 0x284
inc esi
add esp, 4
mov dword [ecx + 0x625654], eax
xor eax, eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
je 0x41fd8c
inc esi
mov byte [ebp + eax - 0xc], cl
inc eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
jne 0x41fd75
cmp eax, 8
jae 0x41fec3
mov byte [ebp + eax - 0xc], 0
lea eax, [ebp - 0xc]
push eax
call fcn.0047afe9
imul ecx, dword [0x625650], 0x284
add esi, 2
add esp, 4
mov byte [ecx + 0x6258d6], al
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x41fddb
nop word [eax + eax]
imul eax, dword [0x625650], 0x284
inc esi
mov byte [eax + ecx + 0x625658], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x41fdc0
imul eax, dword [0x625650], 0x284
add esi, 3
mov byte [eax + ecx + 0x625658], 0
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x41fe1b
nop word [eax + eax]
imul eax, dword [0x625650], 0x284
inc esi
mov byte [eax + ecx + 0x625856], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x41fe00
imul eax, dword [0x625650], 0x284
add esi, 3
mov byte [eax + ecx + 0x625856], 0
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x41fe5b
nop word [eax + eax]
imul eax, dword [0x625650], 0x284
inc esi
mov byte [eax + ecx + 0x625757], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x41fe40
imul eax, dword [0x625650], 0x284
add esi, 3
mov byte [eax + ecx + 0x625757], 0
mov eax, dword [0x625650]
inc eax
mov dword [0x625650], eax
cmp eax, 0x400
jge 0x41fe8b
cmp esi, dword [ebp - 0x10]
jb 0x41fd20
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x625650]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop esi
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
call fcn.0046d6fb
int3