joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4172aa
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [eax - 0x20]
and esi, ecx
cmp byte [eax + 0x1c], 0
je 0x4172ed
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 8], 2
jne 0x4172de
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4172f3
cmp dword [ebp + 8], 0
jne 0x4172ed
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 1
je 0x417309
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0xc]
push eax
mov eax, esi
call fcn.004168fe
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x419a2e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi], bl
jne 0x419aa1
mov al, byte [ebp + 8]
push edi
mov byte [esi + 1], al
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov byte [esi], 1
call fcn.0040158b
push esi
lea edi, [ebp + 8]
call fcn.00419d1c
cmp byte [esi + 1], bl
mov edi, dword [ebp + 8]
je 0x419a83
push ebx
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp byte [esi + 1], bl
mov dword [esi + 8], eax
jne 0x419a98
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
lea eax, [edi - 0x10]
call fcn.0040175b
pop edi
mov al, 1
pop ebx
pop ebp
ret 8

Function at 0x419c3f
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
mov esi, eax
jne 0x419c71
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x419c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
je 0x419cc3
mov eax, dword [esi + 0xc]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push 0x7f90
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0xc]
shr ecx, 1
cmp eax, ebx
mov word [edx + ecx*2], bx
je 0x419cc3
cmp dword [ebp + 0xc], ebx
je 0x419cc3
push dword [esi + 0xc]
lea esi, [ebp + 8]
call fcn.00419d60
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov eax, esi
call fcn.00419ebe
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040175b
jmp 0x419cca
mov esi, edi
call fcn.00401d06
pop esi
mov eax, edi
pop ebx
leave
ret 8

Function at 0x419cd2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, eax
je 0x419cfd
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp + 0x10]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x419d04
call fcn.00401d06
jmp 0x419d15
mov eax, dword [ebp + 8]
push edi
push 1
push dword [ebp + 0xc]
mov edi, esi
call fcn.00419c3f
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x419f5a
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xdc
mov eax, dword [0x429060]
push ebx
push esi
push edi
xor edi, edi
push edi
xor eax, ebp
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x5c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ebx, ecx
push 0x80000001
mov dword [ebp - 0x64], ebx
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x419fa4
xor al, al
jmp 0x41a05a
mov ebx, dword [ebx]
mov eax, dword [ebx - 0xc]
cmp eax, 0xff
jle 0x419fb7
lea ebx, [ebx + eax - 0xff]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push ebx
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
mov dword [ebp - 0x58], eax
jne 0x419fe2
cmp dword [ebp - 0x60], 0xc8
jbe 0x41a049
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401773
add eax, 0x10
mov dword [ebp - 0x58], eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, edi
je 0x41a01b
jge 0x41a00a
push 0x80070057
call fcn.00401861
mov eax, dword [esi]
cmp byte [eax], 0x20
je 0x41a01b
push 0x20
lea eax, [ebp - 0x58]
call fcn.00405b7b
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401cb8
mov esi, dword [ebp - 0x58]
push dword [esi - 0xc]
push esi
push 1
push edi
push ebx
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x58], eax
lea eax, [esi - 0x10]
call fcn.0040175b
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x58], edi
sete al
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042254d
add ebp, 0x78
leave
ret

Function at 0x41a06c
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41a095
xor al, al
leave
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov eax, dword [esi - 0xc]
cmp eax, 0xff
push edi
jle 0x41a0ad
lea esi, [esi + eax - 0xff]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
push 0
push 0
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x41a0d8
cmp edi, 0xea
jne 0x41a0e4
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret
Function at 0x41a984
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x429060]
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 0x41aa19
push esi
lea eax, [ebp - 0x6c]
push eax
lea esi, [ebp - 0x78]
call fcn.00401d1b
mov eax, esi
mov esi, dword [ebp - 0x80]
push eax
call fcn.004058ad
mov eax, dword [ebp - 0x78]
inc dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.0040175b
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 0x41a9d4
pop esi
mov ecx, dword [ebp + 0x98]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042254d
add ebp, 0x9c
leave
ret 4

Function at 0x41aa32
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 0x41aaa5
mov edx, dword [ebp - 8]
push esi
mov esi, ebx
call fcn.004018dc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.00403840
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.00401d64
mov esi, eax
mov edi, ebx
call fcn.00401835
pop esi
xor eax, eax
cmp dword [ebp - 0xc], eax
pop edi
setne al
leave
ret 8
Function at 0x41aab2
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0xfc]
sub esp, 0x17c
mov eax, dword [0x429060]
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.0040c50c
mov eax, dword [0x429570]
mov ecx, 0x429570
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.00401773
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0041acc8
test al, al
je 0x41ab74
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004215dc
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004217b2
mov esi, dword [ebp - 0x5c]
push eax
call fcn.004058ad
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x60]
call fcn.0041adae
test al, al
je 0x41ab74
xor esi, esi
jmp 0x41ac5b
cmp dword [ebp + 0x108], 1
jge 0x41ab85
xor esi, esi
inc esi
jmp 0x41ac5b
mov eax, ebx
call fcn.00401773
add eax, 0x10
mov esi, 0x424cbc
mov ecx, esi
mov dword [ebp - 0x4c], eax
call fcn.00401d64
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.00401cb8
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x4c]
call fcn.00403840
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 0x41ac3e
lea eax, [ebp - 0x48]
call fcn.0041aca5
test al, al
je 0x41ac2c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x104]
lea edi, [ebp - 0x6c]
call fcn.0041b25b
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.00401773
mov ecx, dword [ebp - 0x60]
add eax, 0x10
mov dword [edi], eax
call fcn.0041aab2
test eax, eax
je 0x41ac8a
mov eax, esi
call fcn.0040175b
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x41abd7
cmp dword [ebp - 0x58], 0
je 0x41ac4d
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.0040175b
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp - 0x68]
call fcn.0040175b
mov ecx, dword [ebp + 0xf8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042254d
add ebp, 0xfc
leave
ret 0x10
lea eax, [ebx - 0x10]
call fcn.0040175b
cmp dword [ebp - 0x58], 0
je 0x41aca1
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
jmp 0x41ac50
Function at 0x41af5e
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 0x41af9d
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041aef4
cmp byte [ebp + 0x14], bl
pop ecx
pop ecx
je 0x41af95
cmp eax, ebx
setne byte [ebp + 0x17]
cmp eax, ebx
je 0x41af8d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0x17]
jmp 0x41b02d
cmp eax, ebx
sete byte [ebp + 0x17]
jmp 0x41af82
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5c
mov esi, edi
call fcn.0040143c
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x10], 3
jl 0x41b014
lea eax, [ebp - 4]
push eax
mov eax, esi
xor ecx, ecx
call fcn.00404248
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0041aef4
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x41b009
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
call fcn.00405892
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.0040175b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040175b
cmp byte [ebp + 0x14], bl
pop edi
pop esi
je 0x41b025
xor eax, eax
cmp dword [ebp + 0x10], ebx
sete al
jmp 0x41b02d
xor eax, eax
cmp dword [ebp + 0x10], ebx
setne al
pop ebx
leave
ret 0x10
Function at 0x41b31c
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 0x41b427
cmp byte [eax], 0
je 0x41b427
mov eax, dword [0x429570]
push ebx
push esi
mov ebx, 0x429570
push edi
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
push 0x4267f0
lea esi, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.00401d1b
lea edi, [ebp - 4]
mov ecx, esi
call fcn.0040ca2f
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
mov esi, str..bat
mov ecx, esi
call fcn.00401d64
push eax
push esi
mov eax, edi
push eax
call fcn.00401cb8
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 0x41b3b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41b41c
mov eax, dword [0x429570]
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.0040382d
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.0040175b
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x41b40c
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.0040175b
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41be6e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x429060]
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 [0x429090]
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 0x41bf13
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
mov dword [ebp - 0x78], esi
jg 0x41bef3
push esi
call fcn.0041bcd5
test al, al
pop ecx
je 0x41bef3
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.004232c0
mov eax, esp
jmp 0x41bf03
mov eax, esi
lea esi, [ebp - 0x70]
call fcn.0041bd2e
mov ebx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x78]
push dword [ebp - 0x68]
push esi
push edi
mov esi, eax
call fcn.0041bb45
test eax, eax
jne 0x41bf3e
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x41bf30
lea eax, [ebp - 0x64]
call fcn.0041cedd
jmp 0x41bf30
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.0042229e
pop ecx
test ebx, ebx
jne 0x41bf25
mov eax, 0x8007000e
jmp 0x41bffc
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 0x41bf5b
call fcn.0041ba00
mov esi, eax
jmp 0x41bfd9
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41bf7d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x6c], eax
jne 0x41bf84
call fcn.0041ba00
jmp 0x41bfce
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.0041c01c
cmp dword [ebp - 0x64], 0
jne 0x41bfa7
mov esi, 0x8007000e
jmp 0x41bfd0
push edi
push dword [ebp - 0x6c]
push dword [ebp - 0x64]
call fcn.00422780
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.0041c061
mov esi, eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x41bff6
lea eax, [ebp - 0x64]
call fcn.0041cedd
jmp 0x41bff6
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.0042229e
pop ecx
test ebx, ebx
jne 0x41bfeb
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
call fcn.0042254d
add ebp, 0x3a4
leave
ret 0x10
Function at 0x41ce88
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 0x41ce90
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 0x41cebf
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 0x41d025
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x429060]
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.0041cf2d
mov edi, eax
cmp edi, esi
je 0x41d07b
cmp dword [ebp - 0x6c], esi
je 0x41d077
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41d0e2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x41d096
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0041d025
cmp eax, esi
mov dword [ebp - 0x74], eax
jne 0x41d0fc
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], pe_nt_image_headers32
call edi
test eax, eax
je 0x41d083
cmp dword [ebp - 0x6c], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41d0c9
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 0x41d0e0
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.0042254d
add ebp, 0x9c
leave
ret 4
cmp dword [ebp - 0x6c], esi
je 0x41d10a
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
jmp 0x41d0e2

Function at 0x41d8e6
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.0040a7b9
cmp dword [esi], 0
je 0x41d913
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d913
mov byte [esi + 8], 1
pop esi
ret 4
Function at 0x41ea9c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
test byte [eax + 0x60], 1
jne 0x41eaaa
xor al, al
leave
ret
push edi
call fcn.0041f404
mov edi, eax
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 3
jge 0x41eac0
xor al, al
jmp 0x41eb29
test eax, eax
push esi
mov esi, 0x80070057
jge 0x41ead0
push esi
call fcn.00401861
mov eax, dword [edi]
cmp byte [eax], 0x5c
jne 0x41eb03
cmp dword [eax - 0xc], 1
jge 0x41eae3
push esi
call fcn.00401861
mov eax, dword [edi]
cmp byte [eax + 1], 0x5c
jne 0x41eb03
cmp dword [eax - 0xc], 2
jge 0x41eaf7
push esi
call fcn.00401861
mov eax, dword [edi]
cmp byte [eax + 2], 0x5c
je 0x41eb03
xor al, al
jmp 0x41eb28
xor esi, esi
call fcn.00403af9
mov byte [ebp + esi - 4], al
inc esi
cmp esi, 3
jl 0x41eb05
lea eax, [ebp - 4]
push eax
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
setne al
pop esi
pop edi
leave
ret

Function at 0x41eb2c
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.0041f404
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0040c531
push 0x5c
call fcn.0040143c
lea ecx, [eax + 1]
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.00405892
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401cb8
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41eb8c
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 0x41eba4
inc eax
mov dword [edi + 8], eax
mov esi, eax
jmp 0x41ec08
mov eax, dword [0x429570]
mov ecx, 0x429570
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.0040382d
add esp, 0x14
lea eax, [edi + 0x10c]
call fcn.00420d09
xor esi, esi
push esi
push 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00404f7c
add esp, 0x14
test al, al
jne 0x41ebfd
xor eax, eax
inc eax
mov dword [edi + 8], eax
mov esi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [ebx - 0x10]
call fcn.0040175b
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x420e5c
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 0x420ee9
cmp edi, esi
je 0x420e94
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
lea esi, [ebx + 0x14]
call fcn.0040a7b9
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 0x420ef0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp edi, esi
mov ebx, eax
je 0x420eb4
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 0x420ede
cmp ebx, esi
mov edi, dword [ebp - 4]
je 0x420eda
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x420eeb
cmp ebx, esi
je 0x420ee9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret