joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ea46
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e004]
jne 0x401010
repz ret
jmp fcn.00401562

Function at 0x409246
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.00405eb4
and dword [ebp - 4], 0
cmp dword [0x4507a0], 0
mov ebx, eax
jne 0x4092f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093a8
push eax
call fcn.00405e42
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4507a0], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4507a4], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4507a8], eax
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x4507b0], eax
test eax, eax
je 0x4092f7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x4507ac], eax
mov eax, dword [0x4507ac]
cmp eax, ebx
je 0x40934f
cmp dword [0x4507b0], ebx
je 0x40934f
push eax
call fcn.00405ebd
push dword [0x4507b0]
mov esi, eax
call fcn.00405ebd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40934f
test edi, edi
je 0x40934f
call esi
test eax, eax
je 0x409346
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409346
test byte [ebp - 0xc], 1
jne 0x40934f
or dword [ebp + 0x10], 0x200000
jmp 0x409388
mov eax, dword [0x4507a4]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409388
mov eax, dword [0x4507a8]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4507a0]
call fcn.00405ebd
pop ecx
test eax, eax
je 0x4093a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5e0024dc
Capabilities:
Copy file
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and byte [ebp - 0x208], 0
push esi
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x207]
and byte [ebp - 0x410], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40f]
cmp dword [ebp + 0x18], 0xa
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x5e002525
xor eax, eax
jmp 0x5e0025f6
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [esi + 0xc]
call edi
push dword [esi + 0xc]
call fcn.5e005a22
test eax, eax
pop ecx
jne 0x5e0025f3
lea eax, [ebp - 0x208]
push 0x208
push eax
push 0xfffffffffffffffa
call fcn.5e0076e6
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.5e005af8
and byte [eax + 1], 0
lea eax, [ebp - 0x410]
push eax
push dword [esi + 0xc]
call fcn.5e008b24
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
mov eax, dword [esi + 0x20]
inc eax
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x14]
push dword [esi + 0x24]
call fcn.5e002ab8
add esp, 0x10
test eax, eax
jne 0x5e0025d3
push 1
mov word [esi + 0x38], 3
call fcn.5e010d37
push 0
lea eax, [ebp - 0x208]
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x5e002fb9
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
xor esi, esi
cmp dword [0x5e01c4ec], esi
jne 0x5e003093
cmp dword [ebp + 8], esi
mov eax, dword [0x5e01fb78]
jne 0x5e002fdd
mov eax, dword [0x5e01f020]
push eax
push 0x5e001460
push 6
push 0x34
push 2
call fcn.5e0047be
add esp, 0x14
cmp eax, 6
jne 0x5e003093
call fcn.5e0088ae
test eax, eax
je 0x5e003069
lea eax, [ebp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x5e003028
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e001434
jmp 0x5e003082
lea eax, [ebp - 0xc]
push eax
push 0x5e001420
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x5e003069
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e0013f0
jmp 0x5e003082
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x5e003093
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e0013d4
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x5e003096
push 1
pop eax
pop esi
leave
ret

Function at 0x5e003099
Capabilities:
Persist via run registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0xc
pop ecx
mov esi, 0x5e001464
lea edi, [ebp - 0x3c]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
cmp dword [0x5e01c504], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
movsw word es:[edi], word [esi]
jne 0x5e0030c9
cmp dword [0x5e01c508], ebx
je 0x5e00310f
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x3c]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5e00310f
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x5e003106
cmp dword [ebp - 8], ebx
jbe 0x5e003106
push 1
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x5e0050d3
Capabilities:
Create directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 1
pop edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x5e0050f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5e005150
xor edi, edi
push esi
call fcn.5e0031af
push eax
push 0x5e001538
call fcn.5e0044f1
add esp, 0xc
push 0xfffffffffffffffe
pop ebx
cmp eax, ebx
je 0x5e005141
test edi, edi
je 0x5e005123
call fcn.5e00446a
cmp eax, ebx
jne 0x5e005150
jmp 0x5e005141
push esi
push 0x5e001338
push dword [0x5e01edc8]
call fcn.5e0031db
push eax
call fcn.5e00449f
add esp, 0x10
cmp eax, ebx
jne 0x5e005145
mov eax, ebx
jmp 0x5e005152
call fcn.5e004445
cmp eax, ebx
mov eax, ebx
je 0x5e005152
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x5e00523a
Capabilities:
Get file size

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push dword [esp + 0x28]
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5e005274
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x5e005291
push dword [esp + 0x10]
push dword [0x5e01fb98]
push 0x5e001544
push 1
push 0x10
push 1
call fcn.5e0047be
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x5e005438
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
and dword [ebp - 4], 0
push ebx
push esi
push edi
call fcn.5e008968
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x8c]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x8c]
push 0x5e00130c
push eax
call esi
mov ebx, 0x5e001574
lea eax, [ebp - 0x8c]
push ebx
push eax
call esi
cmp dword [0x5e01d0e0], 0
jne 0x5e0054e4
lea eax, [ebp - 0x398]
push 0x5e00155c
push eax
call edi
call fcn.5e008968
push eax
lea eax, [ebp - 0x398]
push eax
call esi
lea eax, [ebp - 0x398]
push 0x5e001554
push eax
call esi
lea eax, [ebp - 0x398]
push ebx
push eax
call esi
lea eax, [ebp - 0x398]
push 0x5e0014e4
push eax
call esi
lea eax, [ebp - 0x398]
push eax
push 0x5e00154c
call fcn.5e0044f1
pop ecx
cmp eax, 0xfffffffe
pop ecx
je 0x5e005529
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x5e0055b4
xor ebx, ebx
push 1
cmp dword [0x5e01d0e0], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x14
pop edi
jne 0x5e005530
mov dword [0x5e01d0e0], edi
call fcn.5e00446a
cmp eax, 0xfffffffe
jne 0x5e005530
xor eax, eax
jmp 0x5e0055e2
lea eax, [ebp - 0xc]
xor esi, esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5e005579
mov eax, dword [ebp - 0x10]
dec eax
je 0x5e005569
dec eax
dec eax
je 0x5e00555e
dec eax
je 0x5e005564
jmp 0x5e005579
cmp dword [ebp - 0xc], 4
jne 0x5e005579
mov esi, dword [ebp - 0x28]
jmp 0x5e005575
lea eax, [ebp - 0x28]
push eax
call fcn.5e011de8
pop ecx
mov esi, eax
cmp esi, ebx
jne 0x5e005580
cmp dword [ebp + 0xc], ebx
je 0x5e005580
mov esi, edi
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push ebx
inc esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x5e0055da
push dword [0x5e01fb8c]
push edi
push 0x10
push edi
call fcn.5e0047be
add esp, 0x10
mov dword [ebp - 4], edi
jmp 0x5e0055da
push dword [0x5e01fb8c]
push 1
pop edi
push edi
push 0x10
push edi
call fcn.5e0047be
add esp, 0x10
cmp dword [0x5e01d0e0], 0
mov dword [ebp - 4], edi
jne 0x5e0055da
call fcn.5e004445
xor eax, eax
cmp dword [ebp - 4], eax
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5e005da0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaec
push ebx
call fcn.5e00761d
xor ebx, ebx
cmp dword [0x5e01c4ec], ebx
je 0x5e005ddf
cmp byte [0x5e01c1e4], bl
mov eax, dword [0x5e01c4f0]
jne 0x5e005dca
cmp eax, ebx
jne 0x5e005ddf
push 0x5e01c1e4
push eax
push 1
push 0x5e01c2e4
call fcn.5e008580
add esp, 0x10
mov eax, dword [0x5e01fb90]
cmp eax, ebx
jle 0x5e005dfa
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 0x5e01f940
call fcn.5e0108dd
pop ecx
cmp byte [0x5e01c524], bl
je 0x5e005e0d
push 0x5e01c524
call fcn.5e0108dd
pop ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, 0x5e01c72c
push edi
call esi
test eax, eax
je 0x5e005e2e
push 0x3e8
push edi
call fcn.5e0071f0
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push 1
push eax
call fcn.5e009e97
pop ecx
test eax, eax
pop ecx
je 0x5e005e70
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.5e008b24
lea eax, [ebp - 0x6a0]
push eax
call fcn.5e011a4c
push eax
push dword [0x5e01c500]
call fcn.5e0089a6
add esp, 0x14
cmp dword [ebp + 8], ebx
je 0x5e005f42
mov edi, 0x5e01cd44
push edi
call esi
test eax, eax
je 0x5e005f42
push dword [0x5e01fb50]
mov esi, dword [0x5e01c4ec]
mov dword [0x5e01c4ec], ebx
push 1
push 0x40
push 2
call fcn.5e0047be
push 1
lea eax, [ebp - 0x498]
push dword [ebp + 8]
mov dword [0x5e01c4ec], esi
push esi
push 0x5e01bdd0
push 0x5e01cb3c
push edi
push eax
lea eax, [ebp - 0xaec]
push eax
call fcn.5e0061d9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x30
lea eax, [ebp - 0xaec]
push 0x5e001644
push eax
call esi
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0xaec]
push eax
call esi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xaec]
push ebx
push eax
push ebx
mov word [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x5e005f42
push dword [0x5e01f90c]
push 1
push 0x30
push 1
call fcn.5e0047be
add esp, 0x10
cmp byte [0x5e01c934], bl
pop edi
pop esi
je 0x5e005f57
push 0x5e01c934
call fcn.5e0108dd
pop ecx
call fcn.5e003099
cmp eax, 1
jne 0x5e005f68
push ebx
call fcn.5e002fb9
pop ecx
call fcn.5e003f11
push dword [0x5e01c4f8]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop ebx
leave
ret
Function at 0x5e006023
Capabilities:
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe38
push ebx
push esi
push edi
push 0x5e01fde0
lea eax, [ebp - 0x208]
push 0x208
push eax
push 0
push 0x5e001660
push 0x5e0015ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x208]
push eax
push 0x5e020220
lea eax, [ebp - 0x410]
push 0x5e0013b8
push eax
call esi
lea eax, [ebp - 0x208]
mov ebx, 0x5e01f2a0
push eax
push ebx
lea eax, [ebp - 0xa28]
push 0x5e001658
push eax
call esi
mov ax, word [0x5e001654]
lea edi, [ebp - 0x208]
mov word [ebp - 0x820], ax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x820]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xa28]
mov ecx, edx
push eax
lea eax, [ebp - 0x820]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x5e020440
call fcn.5e0074ba
add esp, 0x2c
lea eax, [ebp - 0x410]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x618]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x618]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5e00130c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, 0x5e001648
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
lea edi, [ebp - 0xe38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
lea edi, [ebp - 0xc30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0xc30]
push 0
push eax
lea eax, [ebp - 0xe38]
push eax
lea eax, [ebp - 0x618]
push 0x5e020220
push eax
call fcn.5e0055e7
add esp, 0x18
dec eax
dec eax
je 0x5e0061bf
dec eax
dec eax
je 0x5e0061bf
dec eax
jne 0x5e0061bb
push ebx
push 0x5e001338
push dword [0x5e01f00c]
call fcn.5e0031db
push eax
push 1
push 0x10
push 1
call fcn.5e0047be
add esp, 0x1c
jmp 0x5e006168
xor eax, eax
jmp 0x5e0061d4
lea eax, [ebp - 0x410]
push eax
push 0x5e01cd44
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5e00636c
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push ebx
push edi
call fcn.5e0088dc
test eax, eax
je 0x5e006459
xor ebx, ebx
lea eax, [ebp - 0x448]
push ebx
push 1
push ebx
push 0x5e001314
push 0x5e01cb3c
push 0x5e01cd44
push eax
lea eax, [ebp - 0x65c]
push eax
xor edi, edi
call fcn.5e0061d9
add esp, 0x20
lea eax, [ebp - 4]
push eax
push 0x18
push dword [0x5e01c4f8]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x5e006455
lea eax, [ebp - 0x864]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x5e006455
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.5e008b24
pop ecx
pop ecx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
sub eax, ebx
je 0x5e006407
dec eax
je 0x5e00640a
jmp 0x5e006497
push 1
pop edi
lea eax, [ebp - 0x20c]
push eax
call fcn.5e009912
test eax, eax
pop ecx
je 0x5e00644b
push 0x5e0016a0
lea eax, [ebp - 0x448]
push 1
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x20c]
push 0x5e00168c
push eax
call fcn.5e009993
add esp, 0x18
test eax, eax
je 0x5e00644b
push 1
pop ebx
test edi, edi
je 0x5e006455
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, ebx
jmp 0x5e0064c6
push 1
push 1
push 0
push 0x5e001314
push 0x5e01cb3c
lea eax, [ebp - 0x448]
push 0x5e01cd44
push eax
lea eax, [ebp - 0x65c]
push eax
call fcn.5e0061d9
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.5e008bb8
add esp, 0x28
test eax, eax
jne 0x5e00649b
xor eax, eax
jmp 0x5e0064c6
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x20c]
push 0x5e00168c
push eax
push dword [ebp + 8]
call fcn.5e008c71
add esp, 0x14
neg eax
sbb eax, eax
neg eax
pop edi
pop ebx
leave
ret
Function at 0x5e0075b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x5e01c934
mov esi, 0x5e01fde0
push 0x5e0013d0
push esi
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x208]
push esi
push 0x208
push eax
push 0
push 0x5e0018ec
push 0x5e0015ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x208]
push eax
call fcn.5e011de8
pop ecx
pop edi
pop esi
leave
ret

Function at 0x5e00761d
Capabilities:
Delete directory
Delete file
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and byte [ebp - 0x410], 0
push esi
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40f]
and byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x207]
push 0x5e01fde0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x410]
push 0x208
push eax
push 0
push 0x5e001660
push 0x5e0015ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x410]
mov esi, 0x5e01f2a0
push eax
push esi
lea eax, [ebp - 0x208]
push 0x5e001658
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x208]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
leave
ret
Function at 0x5e007797
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x74]
push 0xc
xor esi, esi
rep stosd dword es:[edi], eax
pop eax
mov dword [ebp - 8], esi
push 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], eax
pop edi
lea eax, [ebp - 0x108]
mov dword [ebp - 0x74], 0x44
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x108], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x18]
cmp dword [ebp - 0xf8], 2
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
lea eax, [ebp - 0x24]
push eax
jne 0x5e00780b
push 0x5e001924
jmp 0x5e007810
push 0x5e00190c
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
je 0x5e00788e
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
mov edi, 0x103
cmp dword [ebp - 4], edi
jne 0x5e007866
push 1
push 0x3e8
call ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 4], edi
je 0x5e00784f
push 0
push 0x1388
call ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0xbc2
pop ebx
jne 0x5e007891
mov dword [0x5e01c50c], 1
jmp 0x5e007891
mov dword [ebp - 8], edi
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x5e007898
Capabilities:
Check os version
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
and dword [ebp - 4], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x5e0078c5
push 1
pop eax
leave
ret
cmp dword [ebp - 0xa0], 4
push ebx
push esi
push edi
jne 0x5e00799c
cmp dword [ebp - 0x9c], 0xa
jne 0x5e00799c
cmp word [ebp - 0x98], 0x8ae
jae 0x5e00799c
lea eax, [ebp - 0x10]
mov esi, 0x5e00193c
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5e007994
test ebx, ebx
je 0x5e00799c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x5e0079a4
push edi
push ebx
push dword [ebp - 0x10]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x5e0079a4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5e00130c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x5e0079a4
cmp dword [ebp - 8], 0
je 0x5e007994
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
shr edx, 0x10
cmp ecx, 2
jb 0x5e007994
jne 0x5e007974
cmp eax, 0x1e
jb 0x5e007994
cmp edx, 0x10a5
sbb edx, edx
xor ebx, ebx
neg edx
cmp eax, 0x1e
sete bl
and edx, ebx
xor eax, eax
cmp ecx, 2
sete al
test eax, edx
je 0x5e00799c
call fcn.5e0079ad
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 4], 1
jmp 0x5e00799c