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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x459a30
call fcn.00454cfb
mov dword [eax], esi
call fcn.00454ce8
push 0x16
pop esi
mov dword [eax], esi
call fcn.0045d63b
mov eax, esi
jmp 0x459a85
test dword [ebp + 0xc], 0xfffffff9
jne 0x459a16
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x459a5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00454d0e
pop ecx
call fcn.00454ce8
mov eax, dword [eax]
jmp 0x459a85
test al, 0x10
jne 0x459a83
test al, 1
je 0x459a83
test byte [ebp + 0xc], 2
je 0x459a83
call fcn.00454cfb
mov dword [eax], 5
call fcn.00454ce8
mov dword [eax], 0xd
jmp 0x459a54
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46976b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48f4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045ba3c
and dword [ebp - 0x14], 0
cmp dword [0x491d8c], 0
mov dword [ebp - 0x18], eax
jne 0x46981e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4698c6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4698c6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x478a5c
push ebx
mov dword [0x491d8c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x491d90], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x491d94], eax
call edi
push eax
call esi
mov dword [0x491d9c], eax
test eax, eax
je 0x46981e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x491d98], eax
mov eax, dword [0x491d98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x469877
cmp dword [0x491d9c], ecx
je 0x469877
push eax
call esi
push dword [0x491d9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x469877
test ebx, ebx
je 0x469877
call edi
test eax, eax
je 0x46986e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46986e
test byte [ebp - 8], 1
jne 0x469877
or dword [ebp + 0x10], 0x200000
jmp 0x4698aa
mov eax, dword [0x491d90]
cmp eax, dword [ebp - 0x18]
je 0x4698aa
push eax
call esi
test eax, eax
je 0x4698aa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4698aa
mov eax, dword [0x491d94]
cmp eax, dword [ebp - 0x18]
je 0x4698aa
push eax
call esi
test eax, eax
je 0x4698aa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x491d8c]
call esi
test eax, eax
je 0x4698c6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4698c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452fc3
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x13320f13
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, str.nSo
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x532e3edf
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40105b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call ebx
push edx
mov dword [ebp - 0x228], eax
call esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov dword [esp], 0
call ebx
lea ebx, [ebp - 0x210]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathW]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4012c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.0040105b
test eax, eax
jne 0x401362
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x402b7c
sub eax, 0x40211a
mov dword [esp], 0x40211a
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401362
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.0040165d
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00401ba8
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c000
mov dword [esp], 0x40300c
call fcn.0040287f
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x2a038ec
Capabilities:
Encode data using xor

Disassembly:
xor ch, ch
out 0x5e, al
mov al, 0x8c
add byte [eax], al
jmp 0x2a038f6
pushal
call 0x2a038fc
pop ebp
sub ebp, 0x10
sub ebp, 0x26038ec
jmp 0x2a03912
mov eax, 0x26038ec
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ad
mov edx, 0x9b0dd32f
xor byte [eax], dl
inc eax
dec ecx
jne 0x2a03929
jmp 0x2a0393c
movsb byte es:[edi], byte [esi]
loop 0x2a038e3
cmpsb byte [esi], byte es:[edi]
adc ebp, dword [edi]
das
das
scasb al, byte es:[edi]
out dx, al
xlatb
das
das
das
sub al, 0xe2
xchg edi, eax
and ebp, dword [edi]
das
das
xchg ebp, eax
pop es
das
das
das
fmul st(5)
sub al, 0xe7
movsb byte es:[edi], byte [esi]
scasb al, byte es:[edi]
and ebp, dword [edi]
das
das
sub al, 0xea
mov byte [0xa6d30b4b], al
sub ecx, dword [ebx]
jg 0x2a039b2
jecxz 0x2a0393d
push cs
das
inc edi
xor dword [esi], edx
adc dword [0x470b032e], ebp
jo 0x2a0396e
inc edi
mov dword [0x2f2f2ac7], eax
das
invalid
das
movsb byte es:[edi], byte [esi]
stosb byte es:[edi], al
daa
das
das
das
movsb byte es:[edi], byte [esi]
mov edx, 0x2f2f2f23
movsb byte es:[edi], byte [esi]
mov byte [0x2f2f2f3f], al
das
das
out dx, al
invalid
jb 0x2a039a1
and ebp, dword [edi]
movsb byte es:[edi], byte [esi]
mov dword [0x2f2f2b0b], eax
das
inc edi
jecxz 0x2a03990
push cs
das
inc edi
xor dword [esi], edx
adc dword [0xa20b032e], ebp
dec ebx
or edx, ebx
cmpsb byte [esi], byte es:[edi]
and ecx, dword [ebx]
invalid
Function at 0x4010ad
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 1
push dword [ebp + 8]
mov esi, ecx
call fcn.004023b2
lea ebx, [esi + 0x1c]
push 0
mov ecx, ebx
mov dword [ebx + 0xc], 0x4102f8
mov dword [ebx + 0x14], 0x4102f0
call fcn.004020c6
lea edi, [esi + 0x38]
mov dword [ebx], 0x4102ec
push 0
mov ecx, edi
mov dword [edi + 0xc], 0x4102f8
mov dword [edi + 0x14], 0x4102f0
call fcn.004020c6
xor eax, eax
mov dword [edi], 0x4102ec
and byte [esi + 0x54], 0
push 0xc8
mov word [esi + 0x56], ax
mov word [esi + 0x58], ax
mov dword [esi + 0x5c], eax
push eax
lea eax, [esi + 0x128]
push eax
call fcn.0040f040
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [eax + 0x10]
test eax, eax
je 0x401141
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x4011c1
push 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x2c], 0x4102f8
mov dword [ebp - 0x24], 0x4102f0
call fcn.004020c6
lea eax, [ebp - 0x38]
push 0x104
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x38], 0x4102ec
call fcn.004022a2
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00403ef1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x10]
call fcn.004022bc
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x38]
push eax
call fcn.00402d8a
push eax
lea ecx, [ebp - 0x38]
call fcn.0040222b
lea ecx, [ebp - 0x60]
call fcn.00402199
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.0040222b
lea ecx, [ebp - 0x38]
call fcn.00402199
jmp 0x4011cb
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040222b
push str.setup.ini
mov ecx, ebx
call fcn.004034df
mov ecx, ebx
call fcn.004030a6
test eax, eax
je 0x401298
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00402a41
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.0040222b
lea ecx, [ebp - 0x1c]
call fcn.00402199
push str.ispro7
mov ecx, edi
call fcn.004034df
push edi
mov ecx, edi
call fcn.00403113
mov ecx, edi
call fcn.004027e2
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.setup.ini
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.00403813
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.004012b2
push 0
sub esp, 0x1c
mov ecx, esp
push 1
push ebx
call fcn.00402980
lea ecx, [ebp - 0x60]
call fcn.004012e9
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x60]
push eax
call fcn.0040180a
test al, al
je 0x401279
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.0040222b
mov byte [esi + 0x54], 1
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x58]
call fcn.00402199
lea ecx, [ebp - 0x38]
call fcn.00402199
mov ecx, esi
call fcn.00401d9b
push dword [ebp + 8]
mov ecx, esi
call fcn.00401a2b
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40180a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov dword [ebp - 4], ecx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.004012b2
push 2
sub esp, 0x1c
mov ecx, esp
push 1
push dword [ebp + 8]
call fcn.00402980
lea ecx, [ebp - 0x2c]
call fcn.004018cf
test al, al
jne 0x401856
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x24]
call fcn.00402199
xor al, al
jmp 0x4018c8
mov esi, 0x1400
push esi
call fcn.0040b9fc
mov ebx, eax
push esi
push 0
push ebx
call fcn.0040f040
add esp, 0x10
mov ecx, dword [ebp - 4]
push esi
push ebx
call fcn.004019bd
mov edi, eax
test edi, edi
je 0x4018a3
cmp edi, 0xffffffff
je 0x4018a3
lea eax, [ebp + 8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push ebx
call fcn.0040f040
add esp, 0xc
jmp 0x40186f
lea ecx, [ebp - 0x2c]
call fcn.004017e2
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x24]
call fcn.00402199
cmp edi, 0xffffffff
setne al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401d9b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1424
call fcn.0040f0c0
and byte [ebp - 0x24], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
and byte [ebp - 0x18], 0
lea esi, [ecx + 0x1c]
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.004027e2
push dword [esi + 4]
mov ebx, str.Languages
push 1
push str.count
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [ebp - 0xc]
and dword [ebp - 4], 0
test eax, eax
mov dword [edi + 0x5c], eax
jle 0x401e4e
lea eax, [edi + 0x60]
mov dword [ebp - 8], eax
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push str.key_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
call fcn.004027e2
push dword [esi + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
lea eax, [ebp - 0x24]
push str.0x0009
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x16]
push eax
call fcn.0040e093
inc dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], ax
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x5c]
jl 0x401dfa
mov ecx, esi
call fcn.004027e2
push dword [esi + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
push str.0x0009
push str.Default
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x16]
push eax
call fcn.0040e093
and byte [ebp - 0x424], 0
pop ecx
mov word [edi + 0x58], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x423]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004027e2
push dword [esi + 4]
lea eax, [ebp - 0x424]
mov edi, 0x4131e0
push 0x400
push eax
push edi
push str.RequireExactLangMatch
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x424]
lea eax, [ebp - 0x424]
test ecx, ecx
lea ebx, [ebp - 0x424]
je 0x401f17
mov ecx, dword [ebp - 0xc]
add ecx, 0x128
mov dword [ebp - 8], ecx
mov cl, byte [ebx]
test cl, cl
je 0x401f17
cmp cl, 0x2c
je 0x401ef2
inc ebx
jmp 0x401f13
and byte [ebx], 0
add eax, 2
push eax
call fcn.0040e093
test eax, eax
pop ecx
je 0x401f10
mov ecx, dword [ebp - 8]
inc dword [ebp - 4]
add dword [ebp - 8], 2
mov word [ecx], ax
inc ebx
mov eax, ebx
test ebx, ebx
jne 0x401ee4
add eax, 2
push eax
call fcn.0040e093
test eax, eax
pop ecx
je 0x401f33
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2 + 0x128], ax
mov ecx, esi
call fcn.004027e2
push dword [esi + 4]
lea eax, [ebp - 0x1424]
push 0x1000
push eax
push edi
push str.cmdline
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x1424]
push eax
call fcn.00401a2b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a41
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
and byte [ebp - 0x1fc], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x1fb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 4], 0
stosb byte es:[edi], al
lea eax, [ebp - 0x1fc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0xf4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov ebx, 0x4102f8
mov edi, 0x4102f0
mov esi, 0x4102ec
je 0x402b91
cmp dword [ebp - 0xe8], 1
jne 0x402b91
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00402c2b
push str.123.tmp
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.004034df
lea ecx, [ebp - 0x20]
call fcn.004027e2
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x402b71
lea eax, [ebp - 0x64]
push 0
push eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00402c9a
pop ecx
pop ecx
mov ecx, eax
call fcn.00402f41
push eax
lea ecx, [ebp - 0x20]
call fcn.0040222b
lea ecx, [ebp - 0x64]
call fcn.00402199
lea ecx, [ebp - 0x3c]
call fcn.00402199
push 0x4120ec
lea ecx, [ebp - 0x20]
call fcn.004034df
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.004029b1
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov dword [edi], esi
jmp 0x402c1f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call fcn.004027e2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.00402199
cmp byte [ebp - 0x1fc], 0
je 0x402bca
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], edi
call fcn.00402c2b
push 0x4120e8
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 1
call fcn.004034df
jmp 0x402bee
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00402c2b
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.004029b1
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x402c16
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x20]
call fcn.00402199
test byte [ebp - 4], 1
je 0x402c24
lea ecx, [ebp - 0x3c]
call fcn.00402199
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c9a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and byte [ebp - 0x140], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push 0x104
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x140], 0
je 0x402d19
lea eax, [ebp - 0x140]
mov edi, 0x4102f0
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x4102f8
mov dword [ebp - 0xc], edi
call fcn.00402c2b
mov esi, 0x4102ec
push 0x4120e8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 1
call fcn.004034df
jmp 0x402d4a
lea eax, [ebp - 0x140]
mov edi, 0x4102f0
push esi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x4102f8
mov dword [ebp - 0x28], edi
call fcn.00402c2b
mov esi, 0x4102ec
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x4102f8
mov dword [ecx + 0x14], edi
call fcn.004029b1
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x402d76
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x3c]
call fcn.00402199
test byte [ebp - 4], 1
je 0x402d84
lea ecx, [ebp - 0x20]
call fcn.00402199
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x403113
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
and dword [ebp - 4], 0
and byte [ebp - 0x10], 0
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push edi
push eax
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0xc], esi
call fcn.004033b2
mov edi, eax
mov ecx, edi
call fcn.004027e2
mov ecx, dword [ebp + 8]
mov ebx, dword [edi + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.004032dc
mov edi, eax
mov ecx, edi
call fcn.004027e2
mov edi, dword [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.00403ef1
push eax
push 0
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call edi
mov ebx, eax
lea ecx, [ebp - 0x34]
neg ebx
sbb bl, bl
inc bl
call fcn.00402199
lea ecx, [ebp - 0x50]
call fcn.00402199
lea ecx, [ebp - 0x14]
call fcn.004022bc
test bl, bl
jne 0x40321a
mov ecx, esi
call fcn.004027e2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40327e
cmp word [ebp - 4], 3
jge 0x40321a
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
and byte [ebp - 0x10], bl
and dword [ebp - 8], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14], 0x104
push eax
mov dword [ebp - 0xc], esi
call fcn.004033b2
mov ebx, eax
mov ecx, ebx
call fcn.004027e2
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004032dc
mov ebx, eax
mov ecx, ebx
call fcn.004027e2
mov ebx, dword [ebx + 4]
lea ecx, [ebp - 0x14]
call fcn.00403ef1
push eax
push 0
push dword [ebp - 0x18]
push ebx
jmp 0x40317a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and byte [ebp - 0x154], 0
push 0x40
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004027e2
push ebx
lea eax, [ebp - 0x154]
push dword [edi + 4]
push str._s_d.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403239
lea eax, [ebp - 0x154]
mov ecx, esi
push eax
call fcn.00403297
jmp 0x40328e
mov ecx, esi
call fcn.004027e2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4