joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401280
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x4041f8
call fcn.004013d0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x405380
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x40109f
cmp eax, esi
jne 0x401092
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4010a2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401079
xor esi, esi
inc esi
mov eax, dword [0x40537c]
cmp eax, esi
jne 0x4010b5
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4010f0
mov eax, dword [0x40537c]
test eax, eax
jne 0x4010ea
mov dword [0x40537c], esi
push 0x403134
push 0x403128
call section..text
pop ecx
pop ecx
test eax, eax
je 0x4010f0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4011ba
mov dword [0x405034], esi
mov eax, dword [0x40537c]
cmp eax, esi
jne 0x401114
push 0x403124
push 0x40311c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40537c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x401121
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x405384], ebx
je 0x401142
push 0x405384
call fcn.00401364
pop ecx
test eax, eax
je 0x401142
push ebx
push 2
push ebx
call dword [0x405384]
push dword [0x40501c]
push dword [0x405020]
push dword [0x405018]
call fcn.00401a75
add esp, 0xc
mov dword [0x405030], eax
cmp dword [0x405024], ebx
jne 0x4011a0
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x405034], ebx
jne 0x4011ae
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x405030]
call fcn.00401415
ret
call fcn.004014ff
jmp 0x401057
Function at 0x40191c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x40536c]
mov ebx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ebx
push edi
push 9
pop edi
test esi, esi
jne 0x40198c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
xor edx, edx
mov dword [0x40536c], esi
movzx eax, word [esi]
test ax, ax
je 0x40198c
push 0x20
mov ecx, eax
pop ebx
cmp cx, 0x22
jne 0x401968
xor eax, eax
test edx, edx
sete al
mov edx, eax
jmp 0x401976
test edx, edx
jne 0x401976
cmp cx, bx
je 0x401989
cmp cx, di
je 0x401989
add esi, 2
mov dword [0x40536c], esi
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x401957
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x4019a8
push dword [ebx]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [0x40536c]
and dword [ebx], 0
push 0x20
pop ecx
movzx eax, word [esi]
cmp ax, cx
je 0x4019bb
cmp ax, di
jne 0x4019c6
add esi, 2
mov dword [0x40536c], esi
jmp 0x4019ae
mov dword [ebp - 4], esi
test ax, ax
je 0x401a35
push 9
mov edx, esi
mov edi, esi
mov ebx, esi
mov ecx, eax
pop esi
push 0x20
pop eax
cmp cx, ax
je 0x4019ff
mov edi, ebx
cmp cx, si
je 0x4019ff
add edx, 2
mov edi, edx
mov dword [0x40536c], edx
mov ebx, edi
movzx eax, word [edx]
mov ecx, eax
test ax, ax
jne 0x4019d9
mov esi, dword [ebp - 4]
sub edi, esi
and edi, 0xfffffffe
lea eax, [edi + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 8]
push edi
push esi
push eax
mov dword [ebx], eax
call dword [sym.imp.msvcrt.dll_memcpy]
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [eax], esi
xor eax, eax
inc eax
jmp 0x401a37
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401d0e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
xor edi, edi
mov dword [ebp - 4], esi
push 0x20
inc edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401d64
mov ecx, dword [ebp - 4]
mov edx, str.SeDebugPrivilege
push ebx
call fcn.00401c7a
mov ebx, eax
test ebx, ebx
jne 0x401d4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop edi
test ebx, ebx
pop ebx
je 0x401d6c
xor eax, eax
jmp 0x401d7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
mov edx, esi
mov ecx, str.Failed_to_acquire_SeDebugPrivilege
call fcn.00401c1c
pop ecx
push 2
pop eax
pop edi
pop esi
leave
ret
Function at 0x401d81
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
or ecx, 0xffffffff
xor eax, eax
push edi
mov dword [ebp - 0x14], ecx
inc eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], eax
push ecx
lea ecx, [ebp - 0x10]
xor esi, esi
push ecx
push eax
push esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401eb7
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x401e0e
cmp dword [edi], esi
jne 0x401dfb
cmp dword [edi + 8], esi
je 0x401dfb
push dword [edi + 8]
push str.services.exe
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x401df8
cmp dword [edi + 0xc], esi
je 0x401df8
push 0x16
push dword [edi + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x401e08
mov eax, dword [ebp - 0xc]
add edi, 0x10
sub eax, 1
mov dword [ebp - 0xc], eax
jne 0x401dc7
jmp 0x401e0e
mov ecx, dword [edi + 4]
mov dword [ebp - 0x14], ecx
push dword [ebp - 0x10]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 8], ecx
cmp eax, 0xffffffff
je 0x401ebe
push 2
pop ebx
push eax
push esi
push 0x1000
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x401ea8
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 3
push ecx
push ebx
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401e93
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
push eax
push ebx
push ebx
push esi
push 0x24
push dword [ebp - 0x14]
mov edi, esi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401e88
call ebx
mov edi, eax
mov dword [ebp - 8], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401e9d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401eb2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, eax
mov ecx, dword [ebp - 8]
jmp 0x401ec3
call ebx
mov ecx, esi
mov dword [ebp - 8], ecx
mov edi, 0xa0001000
test ecx, ecx
je 0x401f00
inc dword [ebp - 4]
mov edx, str.SeAssignPrimaryTokenPrivilege
call fcn.00401c7a
test eax, eax
je 0x401eeb
push dword [ebp - 8]
inc dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov esi, eax
test esi, esi
jne 0x401eef
call ebx
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x401f00
xor eax, eax
jmp 0x401f13
push dword [ebp - 4]
mov edx, edi
mov ecx, str.Failed_to_create_system_context
call fcn.00401c1c
pop ecx
push 5
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f1a
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 9
mov dword [ebp - 0x20], ecx
lea edi, [ebp - 0x44]
pop ecx
xor ebx, ebx
xor edx, edx
inc ebx
mov dword [ebp - 4], edx
push ebx
xor eax, eax
push edx
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x14
push str.TrustedInstaller
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
xor eax, eax
inc eax
mov dword [ebp - 0x1c], esi
mov edi, eax
test esi, esi
je 0x401fc5
push 2
pop ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14], ebx
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x401fc5
xor edi, edi
xor ebx, ebx
cmp dword [ebp - 0x40], 1
sete bl
mov dword [ebp - 0xc], ebx
jne 0x401fbb
cmp dword [ebp - 8], edi
je 0x401fbb
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x401fbb
lea eax, [ebp - 0x10]
mov dword [ebp - 8], edi
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x401f82
mov edi, dword [ebp - 0xc]
test ebx, ebx
mov ebx, dword [ebp - 0x14]
je 0x401fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov esi, dword [ebp - 0x20]
and dword [esi], 0
test edi, edi
jne 0x402010
push dword [ebp - 0x28]
inc ebx
push edi
push 0x480
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi], eax
test eax, eax
jne 0x402007
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [esi], 0
je 0x402010
xor eax, eax
jmp 0x402022
mov edx, dword [ebp - 4]
mov ecx, str.Failed_to_open_TrustedInstaller_process
push ebx
call fcn.00401c1c
pop ecx
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41e6c0]
sub esp, 0x904
push ebx
xor ebx, ebx
push esi
push edi
cmp eax, ebx
je 0x401039
cmp word [0x41e6c2], bx
je 0x401027
call eax
mov dword [0x41e6c0], eax
push eax
call fcn.004025a3
push eax
call fcn.00408d1f
pop ecx
jmp 0x4010cc
push 0x27
call fcn.004025a3
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
mov dword [ebp - 4], ebx
cmp dword [esi + 0x10], ebx
jbe 0x40109d
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401066
xor ebx, ebx
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x4010c0
push ebx
push 3
call fcn.004025a3
pop ecx
push eax
lea eax, [ebp - 0x904]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4010cd
lea eax, [ebp - 0x904]
push eax
call fcn.00408d1f
pop ecx
call fcn.004046cc
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401d66
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401d91
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401da7
test al, 0x10
jne 0x401da7
push esi
jmp 0x401d87
xor eax, eax
inc eax
pop esi
ret
Function at 0x4021e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x41e6e4]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov ebx, eax
mov edi, 0x409
test ebx, ebx
jne 0x40222b
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x402255
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40223e
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402255
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4022bf
cmp dword [0x41e6f4], 0
jne 0x4022bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x41e6f8]
mov dword [0x41e6f4], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x41e6e4]
push edi
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
jne 0x4022b3
push str.SetThreadPreferredUILanguages
push dword [0x41e6f8]
call esi
mov ebx, eax
test ebx, ebx
je 0x4022bd
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4025a3
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41e0a0], ebx
je 0x4025d6
mov eax, 0x41e0a0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4025d6
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41e0a0]
cmp dword [eax], ebx
jne 0x4025bf
shl esi, 4
cmp dword [esi + 0x41e0a0], ebx
jne 0x4025eb
mov eax, 0x41a650
jmp 0x40275f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40269b
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x402692
call edi
test eax, eax
jne 0x402692
mov eax, dword [esi + 0x41e0ac]
test eax, eax
je 0x402687
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402684
push dword [esi + 0x41e0ac]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41e0ac], edi
jmp 0x40269a
push edi
jmp 0x402695
mov eax, dword [ebp - 8]
mov dword [esi + 0x41e0ac], eax
jmp 0x40269b
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x41e0ac]
test eax, eax
jne 0x40275e
mov ebx, dword [esi + 0x41e0a4]
cmp dword [esi + 0x41e0a8], eax
je 0x4026d3
call fcn.00402548
cmp eax, dword [0x41b4c4]
jne 0x4026d3
mov ebx, dword [esi + 0x41e0a8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x41e074], 0xffffffff
pop ecx
mov dword [esi + 0x41e0ac], eax
jne 0x40273e
and dword [0x41e074], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41e6e4]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40273e
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e074], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41e0ac]
push edi
push ebx
push 0
push dword [0x41e074]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41e0ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40285a
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4028ad
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x402b28
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41e7e4], 0
je 0x402b3f
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402b5b
xor eax, eax
inc eax
jmp 0x402b8c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x402b85
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402b81
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402b8c
xor eax, eax
jmp 0x402b8c
push esi
call fcn.00402a0b
pop ecx
pop esi
leave
ret
Function at 0x403891
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00410f2d
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x4038d0
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00403001
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], esi
mov word [eax + esi*2], cx
mov eax, edi
pop edi
pop esi
ret

Function at 0x403a9c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.00410f2d
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00403001
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00403001
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00401d03
pop ecx
mov dword [esi + 4], eax
xor ecx, ecx
mov word [edi + eax*2], cx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403f58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x41e6f8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00418250
call fcn.00402548
push 3
call fcn.004025a3
push 0x28
mov dword [0x41e720], eax
call fcn.004025a3
push 2
mov dword [0x41e71c], eax
call fcn.004025a3
push 5
mov dword [0x41e718], eax
call fcn.004025a3
push 0x15
mov dword [0x41e714], eax
call fcn.004025a3
push 0x16
mov dword [0x41e710], eax
call fcn.004025a3
push 0x17
mov dword [0x41e70c], eax
call fcn.004025a3
xor ebx, ebx
add esp, 0x1c
mov dword [0x41e708], eax
mov dword [0x41e700], ebx
mov dword [0x41e704], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40404c
push edi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403b4f
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x41e3a4], edi
jne 0x404044
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x41e3a8]
call fcn.00403b4f
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x404026
inc edi
cmp edi, 0x40
jl 0x403feb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e30
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00410f2d
push 2
mov ecx, esi
call fcn.00403001
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
and dword [esi + 4], 0
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
test eax, eax
je 0x404e85
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00403001
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00401d03
pop ecx
xor ecx, ecx
mov dword [esi + 4], eax
mov word [edi + eax*2], cx
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00403001
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.00401d03
xor ecx, ecx
add esp, 0x10
mov dword [esi + 4], eax
mov word [edi + eax*2], cx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404edb
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x404e95
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x405016
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
cmp word [eax + 2], 0x3a
push ebx
push edi
jne 0x4051ca
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x40503e
cmp ecx, 0x2f
jne 0x4051ca
mov ax, word [eax]
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x405070
push dword [ebp + 8]
jmp 0x4051cb
lea eax, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404e30
pop ecx
pop ecx
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405192
push esi
lea ecx, [ebp - 0x18]
call fcn.00410f2d
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00411391
mov edi, str.del__
push edi
lea ecx, [ebp - 0x18]
call fcn.004113e9
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410fd1
mov esi, 0x41b9b4
push esi
lea ecx, [ebp - 0x18]
call fcn.004113e9
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.004113e9
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410fd1
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.004113e9
push edi
lea ecx, [ebp - 0x18]
call fcn.004113e9
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410fd1
push esi
lea ecx, [ebp - 0x18]
call fcn.004113e9
mov esi, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00403094
mov eax, dword [eax]
add esp, 0xc
xor edi, edi
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
pop esi
je 0x4051a5
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x4051a5
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push edi
push edi
push dword [ebp - 0x24]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4051d0
push dword [ebp - 0x24]
call fcn.00402b28
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4051d1
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x406d4d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406d00
add esp, 0x1c
leave
ret