joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412808
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.0040655e
test eax, eax
je 0x412892
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x412849
cmp dword [ebp - 8], esi
je 0x412845
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4128a9
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x412837
cmp dword [ebp - 8], esi
je 0x412897
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412897
call fcn.004128ac
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x4128ac
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x424050]
xor eax, ebp
mov dword [ebp + 0xac], eax
call fcn.0040655e
test eax, eax
jne 0x412979
push ebx
push eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4128f0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412978
push edi
lea eax, [ebp - 0x80]
push 0x424540
push eax
call fcn.0040515a
pop ecx
pop ecx
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
mov dword [ebp - 0x7c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x412965
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x412956
push dword [ebp - 0x74]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x412956
push esi
call edi
lea eax, [ebp - 0x7c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412927
pop esi
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.00402f79
test ebx, ebx
je 0x412977
push ebx
call edi
pop edi
pop ebx
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
call fcn.0041e95f
add ebp, 0xb0
leave
ret

Function at 0x414516
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x41551a
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
and ecx, eax
push dword [ecx]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x415536
xor al, al
jmp 0x4155aa
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax - 0xc]
push ebp
push esi
push edi
lea eax, [ebx + 1]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x41555f
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor esi, esi
test ebx, ebx
mov ebp, eax
jle 0x415584
mov edi, dword [esp + 0x18]
call fcn.00403d96
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ebx
jl 0x41556e
mov edi, dword [esp + 0x10]
push edi
mov byte [ebp], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 4

Function at 0x417785
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x424050]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x74]
push ecx
xor eax, ebp
lea ecx, [ebp - 0x6c]
push ecx
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push edi
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], 0x104
call ebx
test eax, eax
jne 0x41781a
push esi
lea eax, [ebp - 0x6c]
push eax
lea esi, [ebp - 0x78]
call fcn.004032f7
mov eax, esi
mov esi, dword [ebp - 0x80]
push eax
call fcn.004069f1
mov eax, dword [ebp - 0x78]
inc dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.00402f79
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x104
push dword [ebp - 0x7c]
call ebx
test eax, eax
je 0x4177d5
pop esi
mov ecx, dword [ebp + 0x98]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041e95f
add ebp, 0x9c
leave
ret 4

Function at 0x417833
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and dword [ebp - 8], 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [ebp + 8]
call edi
cmp eax, 0xea
mov dword [ebp - 0xc], eax
jne 0x4178a6
mov edx, dword [ebp - 8]
push esi
mov esi, ebx
call fcn.00403225
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.00402b4b
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ecx, dword [ebx]
mov dword [ebp - 0xc], eax
call fcn.00402f1b
mov esi, eax
mov edi, ebx
call fcn.00403053
pop esi
xor eax, eax
cmp dword [ebp - 0xc], eax
pop edi
setne al
leave
ret 8
Function at 0x4178b3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0xfc]
sub esp, 0x17c
mov eax, dword [0x424050]
xor eax, ebp
push ebx
mov dword [ebp + 0xf8], eax
mov eax, dword [ebp + 0x110]
push esi
push edi
mov edi, dword [ebp + 0x10c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x104]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], edi
call fcn.00405e30
mov eax, dword [0x4243c4]
mov ecx, 0x4243c4
call dword [eax + 0xc]
mov ebx, dword [ebp + 0x104]
add eax, 0x10
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
add ebx, 0xfffffff0
push ecx
mov eax, ebx
mov esi, esp
mov dword [ebp - 0x68], ebx
call fcn.00402f91
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00417ac9
test al, al
je 0x417975
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0041db07
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0041dcdd
mov esi, dword [ebp - 0x5c]
push eax
call fcn.004069f1
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.00402f79
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x60]
call fcn.00417baf
test al, al
je 0x417975
xor esi, esi
jmp 0x417a5c
cmp dword [ebp + 0x108], 1
jge 0x417986
xor esi, esi
inc esi
jmp 0x417a5c
mov eax, ebx
call fcn.00402f91
add eax, 0x10
mov esi, 0x420870
mov ecx, esi
mov dword [ebp - 0x4c], eax
call fcn.00402f1b
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.00402f2b
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x4c]
call fcn.00402b4b
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp dword [ebp - 0x58], 0xffffffff
setne al
test al, al
je 0x417a3f
lea eax, [ebp - 0x48]
call fcn.00417aa6
test al, al
je 0x417a2d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x104]
lea edi, [ebp - 0x6c]
call fcn.0041805e
mov eax, dword [ebp + 0x108]
mov ebx, dword [ebp - 0x6c]
pop ecx
push dword [ebp - 0x5c]
dec eax
push dword [ebp - 0x64]
lea esi, [ebx - 0x10]
push eax
push ecx
mov eax, esi
mov edi, esp
call fcn.00402f91
mov ecx, dword [ebp - 0x60]
add eax, 0x10
mov dword [edi], eax
call fcn.004178b3
test eax, eax
je 0x417a8b
mov eax, esi
call fcn.00402f79
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4179d8
cmp dword [ebp - 0x58], 0
je 0x417a4e
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 0x68]
call fcn.00402f79
mov ecx, dword [ebp + 0xf8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e95f
add ebp, 0xfc
leave
ret 0x10
lea eax, [ebx - 0x10]
call fcn.00402f79
cmp dword [ebp - 0x58], 0
je 0x417aa2
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
jmp 0x417a51
Function at 0x417d61
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 0x10], bl
jne 0x417da0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00417cf5
cmp byte [ebp + 0x14], bl
pop ecx
pop ecx
je 0x417d98
cmp eax, ebx
setne byte [ebp + 0x17]
cmp eax, ebx
je 0x417d90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0x17]
jmp 0x417e30
cmp eax, ebx
sete byte [ebp + 0x17]
jmp 0x417d85
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5c
mov esi, edi
call fcn.00402a87
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x10], 3
jl 0x417e17
lea eax, [ebp - 4]
push eax
mov eax, esi
xor ecx, ecx
call fcn.00403d2e
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00417cf5
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x417e0c
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
call fcn.004068e5
mov esi, dword [ebp + 0x10]
push ebx
push ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp + 0x10], eax
lea eax, [esi - 0x10]
call fcn.00402f79
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
cmp byte [ebp + 0x14], bl
pop edi
pop esi
je 0x417e28
xor eax, eax
cmp dword [ebp + 0x10], ebx
sete al
jmp 0x417e30
xor eax, eax
cmp dword [ebp + 0x10], ebx
setne al
pop ebx
leave
ret 0x10
Function at 0x41811f
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x41822a
cmp byte [eax], 0
je 0x41822a
mov eax, dword [0x4243c4]
push ebx
push esi
mov ebx, 0x4243c4
push edi
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
push 0x421ab8
lea esi, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.004032f7
lea edi, [ebp - 4]
mov ecx, esi
call fcn.004059f5
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402f79
mov esi, str..bat
mov ecx, esi
call fcn.00402f1b
push eax
push esi
mov eax, edi
push eax
call fcn.00402f2b
mov edi, dword [ebp - 4]
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x4181b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41821f
mov eax, dword [0x4243c4]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
push edi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push eax
push eax
push eax
lea eax, [ebp - 8]
push str._echo_off__r_nATTRIB__r___s___r_n:try__r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push eax
call fcn.00402b38
add esp, 0x1c
push esi
mov esi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [esi - 0xc]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esi - 0x10]
call fcn.00402f79
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x41820f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push esi
push edi
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [edi - 0x10]
call fcn.00402f79
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x418c5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x424050]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3b0]
push ebx
push esi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x3b4]
push edi
mov edi, ecx
mov dword [ebp - 0x74], eax
call dword [0x424080]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x64], ebx
je 0x418cff
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
mov dword [ebp - 0x78], esi
jg 0x418cdf
push esi
call fcn.00418ac1
test al, al
pop ecx
je 0x418cdf
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0041f6a0
mov eax, esp
jmp 0x418cef
mov eax, esi
lea esi, [ebp - 0x70]
call fcn.00418b1a
mov ebx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x78]
push dword [ebp - 0x68]
push esi
push edi
mov esi, eax
call fcn.00418931
test eax, eax
jne 0x418d2a
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x418d1c
lea eax, [ebp - 0x64]
call fcn.00418e08
jmp 0x418d1c
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.0041e6b0
pop ecx
test ebx, ebx
jne 0x418d11
mov eax, 0x8007000e
jmp 0x418de8
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
mov dword [ebp - 0x68], edi
jne 0x418d47
call fcn.004187ec
mov esi, eax
jmp 0x418dc5
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x418d69
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x6c], eax
jne 0x418d70
call fcn.004187ec
jmp 0x418dba
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
push eax
lea esi, [ebp - 0x64]
call fcn.00418e11
cmp dword [ebp - 0x64], 0
jne 0x418d93
mov esi, 0x8007000e
jmp 0x418dbc
push edi
push dword [ebp - 0x6c]
push dword [ebp - 0x64]
call fcn.0041eed0
mov eax, dword [ebp - 0x64]
add esp, 0xc
push dword [ebp + 0x3b8]
mov byte [edi + eax], 0
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x80]
call fcn.00418e31
mov esi, eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x418de2
lea eax, [ebp - 0x64]
call fcn.00418e08
jmp 0x418de2
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.0041e6b0
pop ecx
test ebx, ebx
jne 0x418dd7
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
call fcn.0041e95f
add ebp, 0x3a4
leave
ret 0x10
Function at 0x419c78
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x419c80
mov eax, dword [esp + 0xc]
push esi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x419caf
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc

Function at 0x419e11
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x424050]
push ebx
push esi
xor eax, ebp
push edi
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push 0x2001f
push eax
mov ebx, ecx
push dword [ebx]
mov dword [ebp - 0x78], eax
xor esi, esi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
call fcn.00419d19
mov edi, eax
cmp edi, esi
je 0x419e67
cmp dword [ebp - 0x6c], esi
je 0x419e63
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x419ece
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x419e82
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00419e11
cmp eax, esi
mov dword [ebp - 0x74], eax
jne 0x419ee8
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0x100
call edi
test eax, eax
je 0x419e6f
cmp dword [ebp - 0x6c], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x419eb5
push dword [ebp - 0x6c]
call edi
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x6c], esi
mov ebx, eax
je 0x419ecc
push dword [ebp - 0x6c]
call edi
mov eax, ebx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e95f
add ebp, 0x9c
leave
ret 4
cmp dword [ebp - 0x6c], esi
je 0x419ef6
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
jmp 0x419ece

Function at 0x41a6eb
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
mov esi, eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push eax
call fcn.00407528
cmp dword [esi], 0
je 0x41a718
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41a718
mov byte [esi + 8], 1
pop esi
ret 4

Function at 0x41b260
Capabilities:
Delete directory

Disassembly:
push esi
call fcn.0041b27c
test al, al
jne 0x41b274
mov dword [esi + 4], 1
xor eax, eax
ret
lea eax, [esi + 0x1c]
jmp fcn.0040c063
Function at 0x41b33f
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call fcn.0041bb80
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00405dc2
push 0x5c
call fcn.00402a87
lea ecx, [eax + 1]
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.004068e5
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402f2b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402f79
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41b39f
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi]
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x41b3b7
inc eax
mov dword [edi + 4], eax
mov esi, eax
jmp 0x41b41b
mov eax, dword [0x4243c4]
mov ecx, 0x4243c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push dword [esi]
push ebx
push str.__s___OriginalPath:__s__s
push eax
call fcn.00402b38
add esp, 0x14
lea eax, [edi + 0x104]
call fcn.0041d243
xor esi, esi
push esi
push 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00405c4c
add esp, 0x14
test al, al
jne 0x41b410
xor eax, eax
inc eax
mov dword [edi + 4], eax
mov esi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402f79
lea eax, [ebx - 0x10]
call fcn.00402f79
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x41ba8b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [edi + 0x104]
call fcn.0041d243
push str._SystemFolder_msiexec.exe
lea esi, [ebp - 4]
call fcn.004032f7
mov eax, esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040515a
mov eax, dword [ebp - 4]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00402f79
xor esi, esi
inc esi
push esi
push 0x20
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00405c4c
add esp, 0x14
test al, al
jne 0x41bb46
cmp byte [0x42413c], al
je 0x41bb0b
push 0x10
push ecx
mov eax, esp
and dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], 0x83
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.004098e4
add esp, 0x10
jmp 0x41bb3e
mov eax, dword [0x4243c4]
mov ecx, 0x4243c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push 0x83
lea eax, [ebp + 8]
push eax
call fcn.0040334b
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx - 0x10]
call fcn.00402f79
push 7
mov dword [edi + 4], esi
pop esi
jmp 0x41bb4e
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
xor esi, esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x41d333
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
cmp dword [ebx + 4], esi
mov edi, eax
mov dword [ebx + 0x10], edi
je 0x41d3c0
cmp edi, esi
je 0x41d36b
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
lea esi, [ebx + 0x14]
call fcn.00407528
push dword [ebx + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x41d3c7
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp edi, esi
mov ebx, eax
je 0x41d38b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41d3b5
cmp ebx, esi
mov edi, dword [ebp - 4]
je 0x41d3b1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x41d3c2
cmp ebx, esi
je 0x41d3c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d7dd
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x2e
mov esi, ebx
mov edi, eax
call fcn.00402a87
test eax, eax
jg 0x41d7ff
mov al, 1
jmp 0x41d96b
lea ecx, [ebp - 8]
push ecx
mov esi, ebx
call fcn.00402af0
mov eax, dword [0x4243c4]
mov esi, 0x4243c4
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
push dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.00402b38
add esp, 0x14
cmp dword [edi + 0x10], 0
je 0x41d849
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x10]
push 0
push 0x8000008
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.00405c4c
add esp, 0x14
lea ecx, [ebp - 8]
mov byte [ebp - 1], 1
call fcn.00404ec3
test al, al
je 0x41d881
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41d936
mov eax, dword [0x4243c4]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00406486
mov eax, dword [0x4243c4]
pop ecx
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push 0xca
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.00404f46
mov esi, dword [ebp - 8]
mov ebx, dword [esi - 0xc]
push 0x5c
mov eax, esi
call fcn.00402e36
test eax, eax
pop ecx
pop ecx
jne 0x41d8d4
or ecx, 0xffffffff
jmp 0x41d8d8
sub eax, esi
mov ecx, eax
mov eax, ebx
sub eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea esi, [ebp - 8]
call fcn.00402aa1
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push esi
push dword [eax]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00402b38
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00402f79
push 0
lea ecx, [ebp - 0xc]
call fcn.00409bb0
pop ecx
lea eax, [ebx - 0x10]
mov byte [ebp - 1], 0
call fcn.00402f79
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00402f79
lea eax, [esi - 0x10]
call fcn.00402f79
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [edi + 0x10], 0
je 0x41d952
mov edi, dword [edi + 0x10]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402f79
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8