joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405286
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x427ab6
call fcn.0041b8d0
sub esp, 0x278
push ebx
push esi
push edi
push 0x3003
lea ecx, [ebp - 0x1c]
call fcn.004133d0
mov esi, eax
and dword [ebp - 4], 0
push 0x3009
lea ecx, [ebp - 0x3c]
call fcn.004133d0
mov edi, eax
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.004133d0
mov byte [ebp - 4], 2
mov edx, dword [esi + 4]
test edx, edx
mov ecx, 0x401650
jne 0x4052dc
mov edx, ecx
mov esi, dword [edi + 4]
test esi, esi
mov edi, ecx
je 0x4052e7
mov edi, esi
mov eax, dword [eax + 4]
test eax, eax
jne 0x4052f0
mov eax, ecx
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push edx
push ebx
push esi
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0041341e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0041341e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041341e
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40538d
push ebx
lea eax, [ebp - 0x144]
push esi
push eax
call fcn.0041ba87
add esp, 0xc
test eax, eax
je 0x40536e
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x144]
push eax
push esi
call fcn.0041bb31
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x405391
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x405394
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x4053a5
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x427ad8
call fcn.0041b8d0
sub esp, 0x30
push esi
push edi
push 0x3003
lea ecx, [ebp - 0x3c]
call fcn.004133d0
mov esi, eax
and dword [ebp - 4], 0
push 0x300a
lea ecx, [ebp - 0x2c]
call fcn.004133d0
mov edi, eax
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004133d0
mov byte [ebp - 4], 2
mov edx, dword [esi + 4]
test edx, edx
mov ecx, 0x401650
jne 0x4053f7
mov edx, ecx
mov esi, dword [edi + 4]
test esi, esi
jne 0x405400
mov esi, ecx
mov eax, dword [eax + 4]
test eax, eax
jne 0x405409
mov eax, ecx
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041341e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0041341e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041341e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40544d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x427ad8
call fcn.0041b8d0
sub esp, 0x30
push esi
push edi
push 0x3003
lea ecx, [ebp - 0x3c]
call fcn.004133d0
mov esi, eax
and dword [ebp - 4], 0
push 0x3011
lea ecx, [ebp - 0x2c]
call fcn.004133d0
mov edi, eax
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004133d0
mov byte [ebp - 4], 2
mov edx, dword [esi + 4]
test edx, edx
mov ecx, 0x401650
jne 0x40549f
mov edx, ecx
mov esi, dword [edi + 4]
test esi, esi
jne 0x4054a8
mov esi, ecx
mov eax, dword [eax + 4]
test eax, eax
jne 0x4054b1
mov eax, ecx
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041341e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0041341e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041341e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4054f5
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x427b12
call fcn.0041b8d0
sub esp, 0x340
push 0x3028
lea ecx, [ebp - 0x3c]
call fcn.004133d0
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x154]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405521
mov eax, dword [ebp - 0x38]
test eax, eax
push esi
mov esi, 0x401650
jne 0x40553a
mov eax, esi
push ebx
push edi
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.00413a76
push 0x3003
lea ecx, [ebp - 0x1c]
call fcn.004133d0
mov edi, eax
mov byte [ebp - 4], 1
push 0x300f
lea ecx, [ebp - 0x2c]
call fcn.004133d0
mov ebx, eax
mov byte [ebp - 4], 2
push 0x3004
lea ecx, [ebp - 0x4c]
call fcn.004133d0
mov byte [ebp - 4], 3
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x405589
mov ecx, esi
mov edx, dword [ebx + 4]
test edx, edx
jne 0x405592
mov edx, esi
mov eax, dword [eax + 4]
test eax, eax
jne 0x40559b
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
mov ebx, 0xfb
push ebx
lea ecx, [ebp - 0x34c]
push ecx
push esi
push edx
push eax
call edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.0041341e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0041341e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041341e
push 0x301b
lea ecx, [ebp - 0x2c]
call fcn.004133d0
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
push 0x301a
lea ecx, [ebp - 0x1c]
call fcn.004133d0
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x405609
mov ecx, esi
mov eax, dword [eax + 4]
test eax, eax
jne 0x405612
mov eax, esi
lea edx, [ebp - 0x154]
push edx
push ebx
lea edx, [ebp - 0x250]
push edx
push esi
push ecx
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.0041341e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0041341e
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.0041bc58
test eax, eax
pop ecx
pop ecx
pop edi
pop ebx
je 0x405664
test esi, esi
jle 0x405664
xor esi, esi
inc esi
jmp 0x405666
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041341e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405efa
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x427b91
call fcn.0041b8d0
sub esp, 0x288
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x41
xor eax, eax
cmp esi, ebx
pop ecx
lea edi, [ebp - 0x18b]
mov byte [ebp - 0x18c], bl
rep stosd dword es:[edi], eax
je 0x405f36
push esi
lea eax, [ebp - 0x18c]
push eax
call fcn.00413a76
cmp dword [ebp + 0xc], ebx
je 0x405f5a
cmp esi, ebx
je 0x405f4b
lea eax, [ebp - 0x18c]
push eax
call fcn.00413543
push dword [ebp + 0xc]
lea eax, [ebp - 0x18c]
push eax
call fcn.00413a76
cmp esi, ebx
jne 0x405f67
cmp dword [ebp + 0xc], ebx
je 0x406000
lea eax, [ebp - 0x18c]
push ebx
push eax
call fcn.0041c2eb
test eax, eax
pop ecx
pop ecx
je 0x406000
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004133d0
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x48]
call fcn.004133d0
mov byte [ebp - 4], 1
push 0x42e128
lea eax, [ebp - 0x48]
push 0x1003
push eax
call fcn.00413429
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x1c]
push 0x1047
push eax
call fcn.00413429
mov ecx, dword [ebp - 0x44]
add esp, 0x18
cmp ecx, ebx
mov eax, 0x401650
jne 0x405fd0
mov ecx, eax
cmp dword [ebp - 0x18], ebx
je 0x405fd8
mov eax, dword [ebp - 0x18]
push ebx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.0041341e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041341e
xor eax, eax
jmp 0x4060e4
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
call fcn.00405ea1
mov dword [ebp - 4], 2
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
je 0x406054
push dword [ebp + 0x14]
lea eax, [ebp - 0x294]
push 0x401664
push 0x4016c8
push eax
call fcn.0041c293
add esp, 0x10
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405e10
push ebx
push ebx
push 0x402
push dword [ebp + 0x14]
call esi
push 0x4016c4
lea ecx, [ebp - 0x38]
call fcn.00405e10
push 0x401658
lea ecx, [ebp - 0x38]
call fcn.00405e10
xor eax, eax
cmp dword [ebp - 0x20], 0x10
push 0xf
pop ecx
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x84], 0x3c
jae 0x40609d
lea eax, [ebp - 0x34]
mov dword [ebp - 0x70], eax
xor edi, edi
lea eax, [ebp - 0x84]
inc edi
push eax
mov dword [ebp - 0x68], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4060c8
cmp dword [ebp + 0x14], ebx
jne 0x4060d4
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4060d4
push ebx
push ebx
push 0x401
push dword [ebp + 0x14]
call esi
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x38]
call fcn.00405948
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x408e96
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x427ef3
call fcn.0041b8d0
sub esp, 0x20
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc4], 0x10
jb 0x408eaa
mov eax, dword [esi + 0xb0]
jmp 0x408eb0
lea eax, [esi + 0xb0]
xor ebx, ebx
push ebx
push eax
call fcn.0041c2eb
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x408eef
cmp dword [esi + 0xc4], 0x10
jb 0x408ed1
mov eax, dword [esi + 0xb0]
jmp 0x408ed7
lea eax, [esi + 0xb0]
push 1
push ebx
push ebx
push eax
push 0x401718
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x408f7d
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004133d0
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004133d0
mov byte [ebp - 4], 1
cmp dword [esi + 0xc4], 0x10
jb 0x408f19
mov eax, dword [esi + 0xb0]
jmp 0x408f1f
lea eax, [esi + 0xb0]
push eax
lea eax, [ebp - 0x1c]
push 0x1063
push eax
call fcn.00413429
push 0x42e128
lea eax, [ebp - 0x2c]
push 0x1003
push eax
call fcn.00413429
mov ecx, dword [ebp - 0x28]
add esp, 0x18
cmp ecx, ebx
mov eax, 0x401650
jne 0x408f52
mov ecx, eax
cmp dword [ebp - 0x18], ebx
je 0x408f5a
mov eax, dword [ebp - 0x18]
push ebx
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
call fcn.0041341e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041341e
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40da05
Capabilities:
Hide graphical window
Read .ini file

Disassembly:
mov eax, 0x4285cc
call fcn.0041b8d0
sub esp, 0x344
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push 0x3003
lea ecx, [ebp - 0x34]
call fcn.004133d0
mov esi, eax
and dword [ebp - 4], 0
push 0x3026
lea ecx, [ebp - 0x24]
call fcn.004133d0
mov edi, eax
mov byte [ebp - 4], 1
mov ebx, 0x3027
push ebx
lea ecx, [ebp - 0x44]
call fcn.004133d0
mov byte [ebp - 4], 2
mov ecx, dword [esi + 4]
test ecx, ecx
mov esi, 0x401650
jne 0x40da61
mov ecx, esi
mov edi, dword [edi + 4]
test edi, edi
jne 0x40da6a
mov edi, esi
mov eax, dword [eax + 4]
test eax, eax
jne 0x40da73
mov eax, esi
push ecx
push 0x208
lea ecx, [ebp - 0x350]
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0041341e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0041341e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0041341e
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp - 0x350]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40dae0
mov eax, dword [ebp - 0x10]
push 0xea
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
jmp 0x40dbb9
push 0x3003
lea ecx, [ebp - 0x44]
call fcn.004133d0
mov edi, eax
mov dword [ebp - 4], 3
push 0x3025
lea ecx, [ebp - 0x24]
call fcn.004133d0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
push ebx
lea ecx, [ebp - 0x34]
call fcn.004133d0
mov byte [ebp - 4], 5
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x40db20
mov ecx, esi
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 4]
test edx, edx
jne 0x40db2c
mov edx, esi
mov eax, dword [eax + 4]
test eax, eax
jne 0x40db35
mov eax, esi
push ecx
push 0x104
lea ecx, [ebp - 0x148]
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.0041341e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0041341e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0041341e
lea eax, [ebp - 0x350]
push eax
call fcn.00413543
xor eax, eax
or ecx, 0xffffffff
lea edi, [ebp - 0x148]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x350]
push eax
call fcn.0041b9b7
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp - 0x350]
push eax
add ecx, 0xac
call fcn.00405e80
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40eec6
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x4286e0
call fcn.0041b8d0
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 4], edi
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call fcn.004050c6
mov dword [ebp - 4], edi
lea ecx, [esi + 0x4c]
call fcn.00406f64
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
lea ecx, [esi + 0x78]
call fcn.00405169
mov byte [ebp - 4], 2
lea ecx, [esi + 0xac]
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
call fcn.00409575
mov byte [ebp - 4], 3
push edi
push edi
push 0xd1
mov dword [esi + 0xc8], edi
push dword [0x4301bc]
lea ecx, [esi + 0xcc]
call fcn.00414091
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
mov dword [esi + 0x224], edi
mov dword [esi + 0x228], edi
mov dword [esi], 0x40179c
call fcn.0040fcde
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x401eb0
push eax
mov dword [ebp - 0x10], eax
call fcn.0041c510
test eax, eax
pop ecx
pop ecx
je 0x40ef95
mov ecx, esi
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xc8], ebx
call fcn.00407cfe
jmp 0x40f009
push 0x401ea4
push dword [ebp - 0x10]
call fcn.0041c510
test eax, eax
pop ecx
pop ecx
je 0x40efae
mov dword [esi + 0x228], ebx
push 0x401ea4
push dword [ebp - 0x10]
call fcn.0041c510
test eax, eax
pop ecx
pop ecx
jne 0x40f009
push 0x401e98
push dword [ebp - 0x10]
call fcn.0041c510
test eax, eax
pop ecx
pop ecx
jne 0x40f009
mov ecx, esi
call fcn.0040e8a5
push edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040e847
cmp eax, 2
je 0x40effb
mov ecx, esi
call fcn.0040874c
test eax, eax
jne 0x40f003
mov dword [esi + 0xa8], ebx
jmp 0x40f009
mov dword [esi + 0xa4], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.0040fbe5
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40f02a
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x428702
call fcn.0041b8d0
sub esp, 0x380
push ebx
push esi
push edi
push 0
lea ecx, [ebp - 0x1c]
call fcn.004133d0
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 0x1c]
push 0x1034
push eax
call fcn.00413429
add esp, 0xc
push 0x3009
lea ecx, [ebp - 0x2c]
call fcn.004133d0
mov edi, eax
mov byte [ebp - 4], 1
push 0x3006
lea ecx, [ebp - 0x3c]
call fcn.004133d0
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x18]
test ebx, ebx
mov ecx, 0x401650
jne 0x40f092
mov ebx, ecx
mov edx, dword [edi + 4]
test edx, edx
jne 0x40f09b
mov edx, ecx
mov eax, dword [eax + 4]
test eax, eax
jne 0x40f0a4
mov eax, ecx
push ebx
push 0x105
lea edi, [ebp - 0x24c]
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.0041341e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0041341e
push esi
call fcn.00413543
mov ebx, dword [ebp + 0xc]
xor eax, eax
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ebx
sub eax, ecx
dec eax
push eax
lea eax, [ebp - 0x24c]
push eax
push esi
call fcn.0041b9b7
push ebx
lea eax, [ebp - 0x144]
push esi
push eax
call fcn.0041ba87
add esp, 0x18
test eax, eax
je 0x40f134
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x144]
push eax
push esi
call fcn.0041bb31
add esp, 0xc
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40f157
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x40f15a
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041341e
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x410580
Capabilities:
Accept command line arguments

Disassembly:
cmp dword [esp + 8], 0x105
jb 0x4105b3
call fcn.0041054e
mov edx, eax
cmp byte [edx], 0
je 0x4105ca
push edi
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push dword [esp + 0x10]
call fcn.00405029
test eax, eax
pop edi
jne 0x4105b7
xor eax, eax
jmp 0x4105cd
push 2
push 0x401f1c
push dword [esp + 0xc]
call fcn.0041b9b7
add esp, 0xc
xor eax, eax
inc eax
ret 8

Function at 0x41064b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push 0x401f5c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x410674
xor eax, eax
inc eax
jmp 0x4106d2
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push 0x401f40
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call esi
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push 0x401f20
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x4106c0
cmp dword [ebp - 8], edi
jne 0x4106c9
cmp esi, edi
jne 0x4106cd
cmp dword [ebp - 0xc], edi
je 0x4106cd
xor eax, eax
jmp 0x4106d0
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4107ff
Capabilities:
Read .ini file
Set current directory

Disassembly:
mov eax, 0x428860
call fcn.0041b8d0
sub esp, 0x138
push ebx
push esi
push edi
push 0x3003
lea ecx, [ebp - 0x2c]
call fcn.004133d0
and dword [ebp - 4], 0
push 0x3004
lea ecx, [ebp - 0x3c]
call fcn.004133d0
mov byte [ebp - 4], 1
and byte [ebp - 0x144], 0
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
push 0x105
lea eax, [ebp - 0x144]
push eax
push dword [0x4301b8]
call fcn.004134a1
test eax, eax
je 0x410882
xor eax, eax
mov cl, byte [ebp + eax - 0x144]
mov byte [eax + str.Unknown], cl
inc eax
test cl, cl
jne 0x410865
push str.Unknown
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x300c
lea ecx, [ebp - 0x1c]
call fcn.004133d0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x28]
test edx, edx
mov esi, 0x401650
jne 0x4108a1
mov edx, esi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4108aa
mov ecx, esi
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4108b3
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
mov ebx, 0xfb
push ebx
lea edx, [ebp - 0x13c]
push edx
push esi
push ecx
push eax
call edi
xor eax, eax
mov cl, byte [ebp + eax - 0x13c]
mov byte [eax + 0x42e228], cl
inc eax
test cl, cl
jne 0x4108ce
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041341e
push 0x3005
lea ecx, [ebp - 0x1c]
call fcn.004133d0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x410906
mov edx, esi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x41090f
mov ecx, esi
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x410918
mov eax, esi
push edx
push ebx
lea edx, [ebp - 0x13c]
push edx
push esi
push ecx
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov cl, byte [ebp + eax - 0x13c]
mov byte [eax + 0x42e128], cl
inc eax
test cl, cl
jne 0x41092b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041341e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0041341e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041341e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x41096d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
push esi
push edi
push 0x41
pop ecx
xor eax, eax
push 0x41
xor ebx, ebx
mov byte [ebp - 0x210], bl
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
pop ecx
push 0x41
mov byte [ebp - 0x318], bl
lea edi, [ebp - 0x317]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x108], bl
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
mov esi, 0x105
push esi
lea eax, [ebp - 0x318]
push eax
call fcn.004105d0
push esi
lea eax, [ebp - 0x210]
push eax
push dword [0x4301b8]
call fcn.004134a1
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00410580
test eax, eax
je 0x410a7c
push 0x10
lea eax, [ebp - 0x108]
push 0x401fcc
push eax
call fcn.0041b9b7
push 0xa
lea eax, [ebp - 0x108]
push 0x401fc0
push eax
call fcn.0041b9b7
mov edx, str._OrigPath
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0041b9b7
push 3
lea eax, [ebp - 0x108]
push 0x401fbc
push eax
call fcn.0041b9b7
xor eax, eax
or ecx, 0xffffffff
lea edi, [ebp - 0x210]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0041b9b7
push 2
lea eax, [ebp - 0x108]
push 0x401fb8
push eax
call fcn.0041b9b7
add esp, 0x48
mov ecx, dword [0x42fc50]
call fcn.00407a53
push 1
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x318]
push eax
push 0x401fb0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410c8b
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4288b4
call fcn.0041b8d0
sub esp, 0xc60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push 0x3003
lea ecx, [ebp - 0x24]
call fcn.004133d0
mov dword [ebp - 4], ebx
push 0x3032
lea ecx, [ebp - 0x34]
call fcn.004133d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
jne 0x410cd3
mov ecx, 0x401650
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x410cdf
mov eax, 0x401650
push ecx
push 0x801
lea ecx, [ebp - 0x838]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp eax, ebx
jne 0x410cfe
xor esi, esi
jmp 0x410e3d
mov byte [ebp - 4], 2
lea esi, [ebp - 0x838]
mov dword [ebp - 0x83c], esi
cmp byte [esi], bl
je 0x410e33
push esi
call sub.Msi.dll_MsiRecordGetInteger
mov dword [ebp - 0x840], eax
cmp eax, 5
jne 0x410e09
push ebx
lea ecx, [ebp - 0x850]
call fcn.004133d0
mov byte [ebp - 4], 3
push ebx
lea ecx, [ebp - 0x860]
call fcn.004133d0
mov byte [ebp - 4], 4
mov byte [ebp - 0xc64], bl
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0xc63]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc68], 0x401
lea eax, [ebp - 0xc68]
push eax
lea eax, [ebp - 0xc64]
push eax
push 0x401fe0
push esi
call sub.Msi.dll_MsiGetProductPropertyA
mov dword [ebp - 0xc6c], eax
mov dword [ebp - 0x14], 1
push 0x42e128
push 0x1003
lea eax, [ebp - 0x850]
push eax
call fcn.00413429
lea eax, [ebp - 0xc64]
push eax
push 0x1070
lea eax, [ebp - 0x860]
push eax
call fcn.00413429
add esp, 0x18
mov ecx, dword [ebp - 0x84c]
cmp ecx, ebx
jne 0x410dd0
mov ecx, 0x401650
mov eax, dword [ebp - 0x85c]
cmp eax, ebx
jne 0x410ddf
mov eax, 0x401650
push ebx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x860]
call fcn.0041341e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x850]
call fcn.0041341e
jmp 0x410e33
push esi
cmp byte [esi], bl
je 0x410e1e
call fcn.0041c602
pop ecx
mov esi, eax
mov dword [ebp - 0x83c], esi
jmp 0x410e09
call fcn.0041c602
pop ecx
mov esi, eax
jmp 0x410d08
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x34]
call fcn.0041341e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041341e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret