joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403605
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0040dee0
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x441af8], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x403655
push 0x402e20
push 0x402e30
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x402e4c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4373c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4373cc]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.004035fe
mov eax, dword [0x4373d0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4373d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x403694
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x441af8], 0xc
mov dword [ebp - 4], eax
jne 0x4036f6
push ebx
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x104c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x441af8]
cmp eax, 0xfa9
jne 0x403712
mov dword [0x441094], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40371f
mov dword [0x440a40], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x441090], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x441af8], 0x213
mov dword [ebp - 0x18], edx
jne 0x40375f
push 0x402e68
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.004035f8
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x403691
cmp dword [0x441af8], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x4037c9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x4037d2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x441af8]
mov ecx, dword [0x440a48]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403845
mov edi, ecx
mov ebx, eax
cmp dword [0x441af8], 0x959
jne 0x403839
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402ea0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.00403605
add edi, 8
dec ebx
jne 0x4037f6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403b99
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x441af8], 0x400
push edi
jne 0x403beb
push esi
push esi
call fcn.0040402b
push esi
push esi
call fcn.0040402b
push esi
push esi
push esi
call fcn.00404613
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403573
fstp st(0)
push esi
call fcn.004046c9
pop ecx
push esi
call fcn.0040442a
pop ecx
mov eax, dword [0x437a54]
mov dword [0x441af8], eax
mov eax, dword [0x437a2c]
mov dword [0x441afc], eax
call fcn.00403864
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403c52
cmp dword [esp + 0x18], 0x785074d5
jne 0x403c60
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403c0d
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x4032d0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x40330c
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403c8f
cmp dword [esp + 0x18], 0x785074d5
jne 0x403c98
inc edi
cmp edi, 0x11915
jl 0x403c62
mov eax, dword [0x440a48]
mov dword [0x44108c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405040
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4360f8]
jne 0x40504a
repz ret
jmp fcn.00408e62
Function at 0x408b85
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.0040669a
and dword [ebp - 4], 0
cmp dword [0x438300], 0
mov ebx, eax
jne 0x408c36
push 0x401b48
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408ce7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b3c
push edi
call esi
test eax, eax
je 0x408ce7
push eax
call fcn.00406628
mov dword [esp], 0x401b2c
push edi
mov dword [0x438300], eax
call esi
push eax
call fcn.00406628
mov dword [esp], 0x401b18
push edi
mov dword [0x438304], eax
call esi
push eax
call fcn.00406628
mov dword [esp], 0x401afc
push edi
mov dword [0x438308], eax
call esi
push eax
call fcn.00406628
pop ecx
mov dword [0x438310], eax
test eax, eax
je 0x408c36
push 0x401ae4
push edi
call esi
push eax
call fcn.00406628
pop ecx
mov dword [0x43830c], eax
mov eax, dword [0x43830c]
cmp eax, ebx
je 0x408c8e
cmp dword [0x438310], ebx
je 0x408c8e
push eax
call fcn.004066a3
push dword [0x438310]
mov esi, eax
call fcn.004066a3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408c8e
test edi, edi
je 0x408c8e
call esi
test eax, eax
je 0x408c85
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408c85
test byte [ebp - 0xc], 1
jne 0x408c8e
or dword [ebp + 0x10], 0x200000
jmp 0x408cc7
mov eax, dword [0x438304]
cmp eax, ebx
je 0x408cc7
push eax
call fcn.004066a3
pop ecx
test eax, eax
je 0x408cc7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408cc7
mov eax, dword [0x438308]
cmp eax, ebx
je 0x408cc7
push eax
call fcn.004066a3
pop ecx
test eax, eax
je 0x408cc7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438300]
call fcn.004066a3
pop ecx
test eax, eax
je 0x408ce7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408ce9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40596d
pop dword [ebp - 0x40]
mov eax, 0x92f098d
add eax, 0xf7114fe0
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xebdeba8f
sub dword [ebp - 0x50], 0x9d8c7544
mov dword [ebp - 0x4c], 0x9e7dd7e2
sub dword [ebp - 0x4c], 0x6c4a8b9d
mov dword [ebp - 0x48], 0xcce3b8ba
sub dword [ebp - 0x48], 0x8097748c
mov dword [ebp - 0x44], 0xd3e0ae22
add dword [ebp - 0x44], 0x2c1f51de
lea eax, [ebp - 0x50]
push eax
mov eax, 0x21e828a7
sub eax, 0x21a7b847
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x3f7756fa
add dword [ebp - 0x50], 0x34fb125c
mov dword [ebp - 0x4c], 0x5531d033
sub dword [ebp - 0x4c], 0x13c56ebe
mov dword [ebp - 0x48], 0x5c18a7a9
sub dword [ebp - 0x48], 0xf8a93b3d
mov dword [ebp - 0x44], 0xe8a5f536
sub dword [ebp - 0x44], 0xe8a5f536
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xf6615c6
sub eax, 0xf25a4c6
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x36f6b
push 0
call eax
mov ecx, 0x77d65043
sub ecx, 0x77d60746
mov edx, eax
mov ebx, 0x57b854a5
sub ebx, 0x577754a5
add ebx, dword [ebp - 0x40]
mov edi, 0xbccb5795
sub edi, 0xa1ab9fc7
sub dword [ebp - 0x24], edi
mov esi, dword [ebx]
add dword [ebp - 0x24], ebx
xor esi, edi
add dword [ebp - 0x38], edi
mov dword [edx], esi
add dword [ebp - 0x34], edx
add edx, 0x4a67b75
sub edx, 0x4a67b71
add ebx, 4
loop 0x405a8f
add eax, 0x260d7359
add eax, 0xd9f3a36e
xor ebx, ebx
add ebx, eax
add eax, 0xb179c34c
sub eax, 0xb179c347
mov ecx, 0x7712f971
add ecx, 0x892d068f
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
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.0040232a
lea ebx, [esi + 0x1c]
push 0
mov ecx, ebx
mov dword [ebx + 0xc], 0x4102f8
mov dword [ebx + 0x14], 0x4102f0
call fcn.0040210f
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.0040210f
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.0040e7e0
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.0040210f
lea eax, [ebp - 0x38]
push 0x104
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x38], 0x4102ec
call fcn.00402204
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402245
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x10]
call fcn.0040221e
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x38]
push eax
call fcn.00402be1
push eax
lea ecx, [ebp - 0x38]
call fcn.0040a895
lea ecx, [ebp - 0x60]
call fcn.00402172
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.0040a895
lea ecx, [ebp - 0x38]
call fcn.00402172
jmp 0x4011cb
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040a895
push str.setup.ini
mov ecx, ebx
call fcn.004033a6
mov ecx, ebx
call fcn.00402efd
test eax, eax
je 0x401298
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00402898
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.0040a895
lea ecx, [ebp - 0x1c]
call fcn.00402172
push str.ispro7
mov ecx, edi
call fcn.004033a6
push edi
mov ecx, edi
call fcn.00402f6a
mov ecx, edi
call fcn.00402639
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.004036da
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.004012b2
push 0
sub esp, 0x1c
mov ecx, esp
push 1
push ebx
call fcn.004027d7
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.0040a895
mov byte [esi + 0x54], 1
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x58]
call fcn.00402172
lea ecx, [ebp - 0x38]
call fcn.00402172
mov ecx, esi
call fcn.00401d65
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.004027d7
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.00402172
xor al, al
jmp 0x4018c8
mov esi, 0x1400
push esi
call fcn.0040b334
mov ebx, eax
push esi
push 0
push ebx
call fcn.0040e7e0
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.0040e7e0
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.00402172
cmp edi, 0xffffffff
setne al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401d65
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1424
call fcn.0040e890
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.00402639
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 0x401e18
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.00402639
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.0040d9d4
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 0x401dc4
mov ecx, esi
call fcn.00402639
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.0040d9d4
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.00402639
push dword [esi + 4]
lea eax, [ebp - 0x424]
mov edi, 0x413050
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 0x401ee1
mov ecx, dword [ebp - 0xc]
add ecx, 0x128
mov dword [ebp - 8], ecx
mov cl, byte [ebx]
test cl, cl
je 0x401ee1
cmp cl, 0x2c
je 0x401ebc
inc ebx
jmp 0x401edd
and byte [ebx], 0
add eax, 2
push eax
call fcn.0040d9d4
test eax, eax
pop ecx
je 0x401eda
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 0x401eae
add eax, 2
push eax
call fcn.0040d9d4
test eax, eax
pop ecx
je 0x401efd
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2 + 0x128], ax
mov ecx, esi
call fcn.00402639
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 0x402898
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 0x4029e8
cmp dword [ebp - 0xe8], 1
jne 0x4029e8
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00402a82
push str.123.tmp
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.004033a6
lea ecx, [ebp - 0x20]
call fcn.00402639
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 0x4029c8
lea eax, [ebp - 0x64]
push 0
push eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00402af1
pop ecx
pop ecx
mov ecx, eax
call fcn.00402d98
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a895
lea ecx, [ebp - 0x64]
call fcn.00402172
lea ecx, [ebp - 0x3c]
call fcn.00402172
push 0x4120ec
lea ecx, [ebp - 0x20]
call fcn.004033a6
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.00402808
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov dword [edi], esi
jmp 0x402a76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call fcn.00402639
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.00402172
cmp byte [ebp - 0x1fc], 0
je 0x402a21
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], edi
call fcn.00402a82
push 0x4120e8
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 1
call fcn.004033a6
jmp 0x402a45
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00402a82
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.00402808
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x402a6d
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x20]
call fcn.00402172
test byte [ebp - 4], 1
je 0x402a7b
lea ecx, [ebp - 0x3c]
call fcn.00402172
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402af1
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 0x402b70
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.00402a82
mov esi, 0x4102ec
push 0x4120e8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 1
call fcn.004033a6
jmp 0x402ba1
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.00402a82
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.00402808
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x402bcd
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x3c]
call fcn.00402172
test byte [ebp - 4], 1
je 0x402bdb
lea ecx, [ebp - 0x20]
call fcn.00402172
mov eax, edi
pop edi
pop esi
leave
ret