joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418b39
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push dword [esi + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x419
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 0x74]
call fcn.00421218
push dword [eax]
push edi
push 0x172
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x210
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
call fcn.004090cf
mov byte [esi + 0x78], 1
pop edi
leave
ret

Function at 0x41a5c4
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x41a5d2
mov al, 1
jmp 0x41a644
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.0041a8bd
cmp byte [esi + 1], bl
mov edi, dword [ebp + 8]
je 0x41a61d
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 0x41a632
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
cmp dword [esi + 8], 0xffffffff
lea eax, [edi - 0x10]
setne bl
call fcn.0040175b
mov al, bl
pop edi
pop ebx
pop ebp
ret 8

Function at 0x41a7e0
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 0x41a812
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x41a812
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
je 0x41a864
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 0x41a864
cmp dword [ebp + 0xc], ebx
je 0x41a864
push dword [esi + 0xc]
lea esi, [ebp + 8]
call fcn.0041a901
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov eax, esi
call fcn.0041aa5f
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040175b
jmp 0x41a86b
mov esi, edi
call fcn.00401cde
pop esi
mov eax, edi
pop ebx
leave
ret 8

Function at 0x41a873
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, eax
je 0x41a89e
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 0x41a8a5
call fcn.00401cde
jmp 0x41a8b6
mov eax, dword [ebp + 8]
push edi
push 1
push dword [ebp + 0xc]
mov edi, esi
call fcn.0041a7e0
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x41adb9
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 [0x42a060]
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 0x41ae03
xor al, al
jmp 0x41aeb4
mov ebx, dword [ebx]
mov eax, dword [ebx - 0xc]
cmp eax, 0x4f
jle 0x41ae11
lea ebx, [ebx + eax - 0x4f]
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 0x41ae3c
cmp dword [ebp - 0x60], 0xc8
jbe 0x41aea3
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 0x41ae75
jge 0x41ae64
push 0x80070057
call fcn.00401856
mov eax, dword [esi]
cmp byte [eax], 0x20
je 0x41ae75
push 0x20
lea eax, [ebp - 0x58]
call fcn.00406103
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401c90
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.00423ac2
add ebp, 0x78
leave
ret
Function at 0x41aec6
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x42a5a0]
push ebx
push esi
push edi
mov ecx, 0x42a5a0
call dword [eax + 0xc]
add eax, 0x10
push 0x64
mov dword [ebp - 4], eax
pop eax
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 4]
call fcn.00418867
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.00401d3c
mov esi, eax
lea edi, [ebp - 4]
call fcn.00401835
mov eax, dword [0x42a5a0]
mov ecx, 0x42a5a0
call dword [eax + 0xc]
add eax, 0x10
push 0x64
mov dword [ebp - 4], eax
push 0x64
lea eax, [ebp - 4]
call fcn.00418867
push eax
push str.UserDomain
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp - 4]
call fcn.00401d3c
mov esi, eax
lea edi, [ebp - 4]
call fcn.00401835
mov esi, 0x4259c8
mov ecx, esi
call fcn.00401d3c
push eax
push esi
mov eax, edi
push eax
call fcn.00401c90
push dword [ebx - 0xc]
mov eax, edi
push ebx
push eax
call fcn.00401c90
mov esi, dword [ebp - 4]
add esi, 0xfffffff0
mov eax, esi
call fcn.00401773
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040175b
lea eax, [ebx - 0x10]
call fcn.0040175b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41af99
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 0x41afc2
xor al, al
leave
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
push edi
jle 0x41afd5
lea esi, [esi + eax - 0x4f]
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 0x41b000
cmp edi, 0xea
jne 0x41b00c
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 0x41b537
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x180]
sub esp, 0x200
mov eax, dword [0x42a060]
xor eax, ebp
push esi
mov dword [ebp + 0x17c], eax
push edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 1
jne 0x41b5fc
push str.SYSTEM_AGENT_COM_WINDOW
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x41b58a
xor eax, eax
jmp 0x41b661
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00423c90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x78]
push eax
push 0x104
push edi
push str.mstask.exe
push edi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x41b5c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b661
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x210
push edi
push edi
push edi
push edi
lea eax, [ebp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41b5be
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x41b583
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, edi
je 0x41b5be
push ebx
push 0x14
push str.Schedule
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
cmp ebx, edi
jne 0x41b634
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b660
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41b656
cmp dword [ebp - 0x38], 4
je 0x41b65b
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x41b65b
push ebx
call esi
jmp 0x41b62c
push ebx
call esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x17c]
pop edi
xor ecx, ebp
pop esi
call fcn.00423ac2
add ebp, 0x180
leave
ret
Function at 0x41be87
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x42a060]
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 0x41bf1c
push esi
lea eax, [ebp - 0x6c]
push eax
lea esi, [ebp - 0x78]
call fcn.00401cf3
mov eax, esi
mov esi, dword [ebp - 0x80]
push eax
call fcn.00405e35
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 0x41bed7
pop esi
mov ecx, dword [ebp + 0x98]
pop edi
xor ecx, ebp
pop ebx
call fcn.00423ac2
add ebp, 0x9c
leave
ret 4

Function at 0x41bf35
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 0x41bfa8
mov edx, dword [ebp - 8]
push esi
mov esi, ebx
call fcn.004018d1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.00403d1d
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.00401d3c
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 0x41bfb5
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0xfc]
sub esp, 0x17c
mov eax, dword [0x42a060]
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.0040d33b
mov eax, dword [0x42a5a0]
mov ecx, 0x42a5a0
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.0041c1cb
test al, al
je 0x41c077
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00422b47
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00422d1d
mov esi, dword [ebp - 0x5c]
push eax
call fcn.00405e35
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x60]
call fcn.0041c2b1
test al, al
je 0x41c077
xor esi, esi
jmp 0x41c15e
cmp dword [ebp + 0x108], 1
jge 0x41c088
xor esi, esi
inc esi
jmp 0x41c15e
mov eax, ebx
call fcn.00401773
add eax, 0x10
mov esi, 0x425d74
mov ecx, esi
mov dword [ebp - 0x4c], eax
call fcn.00401d3c
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.00401c90
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x4c]
call fcn.00403d1d
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 0x41c141
lea eax, [ebp - 0x48]
call fcn.0041c1a8
test al, al
je 0x41c12f
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x104]
lea edi, [ebp - 0x6c]
call fcn.0041c768
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.0041bfb5
test eax, eax
je 0x41c18d
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 0x41c0da
cmp dword [ebp - 0x58], 0
je 0x41c150
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.00423ac2
add ebp, 0xfc
leave
ret 0x10
lea eax, [ebx - 0x10]
call fcn.0040175b
cmp dword [ebp - 0x58], 0
je 0x41c1a4
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
jmp 0x41c153
Function at 0x41c46b
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 0x41c4aa
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041c3f7
cmp byte [ebp + 0x14], bl
pop ecx
pop ecx
je 0x41c4a2
cmp eax, ebx
setne byte [ebp + 0x17]
cmp eax, ebx
je 0x41c49a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0x17]
jmp 0x41c53a
cmp eax, ebx
sete byte [ebp + 0x17]
jmp 0x41c48f
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 0x41c521
lea eax, [ebp - 4]
push eax
mov eax, esi
xor ecx, ecx
call fcn.00404725
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0041c3f7
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x41c516
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
call fcn.00405e1a
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 0x41c532
xor eax, eax
cmp dword [ebp + 0x10], ebx
sete al
jmp 0x41c53a
xor eax, eax
cmp dword [ebp + 0x10], ebx
setne al
pop ebx
leave
ret 0x10
Function at 0x41c829
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 [ebx]
test eax, eax
je 0x41c940
cmp dword [eax - 0xc], 0
jge 0x41c849
push 0x80070057
call fcn.00401856
mov eax, dword [ebx]
cmp byte [eax], 0
je 0x41c940
mov eax, dword [0x42a5a0]
push esi
push edi
mov ecx, 0x42a5a0
call dword [eax + 0xc]
add eax, 0x10
push 0x4279a0
lea esi, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.00401cf3
lea edi, [ebp - 4]
mov ecx, esi
call fcn.0040d85e
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
mov esi, str..bat
mov ecx, esi
call fcn.00401d3c
push eax
push esi
mov eax, edi
push eax
call fcn.00401c90
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 0x41c8cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c936
mov eax, dword [0x42a5a0]
mov ecx, 0x42a5a0
call dword [eax + 0xc]
push edi
push edi
push dword [ebx]
add eax, 0x10
push dword [ebx]
mov dword [ebp - 8], eax
push dword [ebx]
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.00403d0a
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 0x41c926
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
mov eax, dword [ebx]
sub eax, 0x10
call fcn.0040175b
leave
ret
Function at 0x41d390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x42a060]
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 [0x42a090]
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 0x41d435
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
mov dword [ebp - 0x78], esi
jg 0x41d415
push esi
call fcn.0041d1f7
test al, al
pop ecx
je 0x41d415
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00424830
mov eax, esp
jmp 0x41d425
mov eax, esi
lea esi, [ebp - 0x70]
call fcn.0041d250
mov ebx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x78]
push dword [ebp - 0x68]
push esi
push edi
mov esi, eax
call fcn.0041d067
test eax, eax
jne 0x41d460
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x41d452
lea eax, [ebp - 0x64]
call fcn.0041e385
jmp 0x41d452
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.00423813
pop ecx
test ebx, ebx
jne 0x41d447
mov eax, 0x8007000e
jmp 0x41d51e
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 0x41d47d
call fcn.0041cf22
mov esi, eax
jmp 0x41d4fb
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41d49f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x6c], eax
jne 0x41d4a6
call fcn.0041cf22
jmp 0x41d4f0
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.0041d53e
cmp dword [ebp - 0x64], 0
jne 0x41d4c9
mov esi, 0x8007000e
jmp 0x41d4f2
push edi
push dword [ebp - 0x6c]
push dword [ebp - 0x64]
call fcn.00423cf0
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.0041d55e
mov esi, eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x41d518
lea eax, [ebp - 0x64]
call fcn.0041e385
jmp 0x41d518
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.00423813
pop ecx
test ebx, ebx
jne 0x41d50d
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
call fcn.00423ac2
add ebp, 0x3a4
leave
ret 0x10
Function at 0x41e38e
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 0x41e396
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 0x41e3c5
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 0x41e547
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x42a060]
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.0041e44f
mov edi, eax
cmp edi, esi
je 0x41e59d
cmp dword [ebp - 0x6c], esi
je 0x41e599
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41e604
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x41e5b8
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0041e547
cmp eax, esi
mov dword [ebp - 0x74], eax
jne 0x41e61e
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 0x41e5a5
cmp dword [ebp - 0x6c], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41e5eb
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 0x41e602
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.00423ac2
add ebp, 0x9c
leave
ret 4
cmp dword [ebp - 0x6c], esi
je 0x41e62c
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
jmp 0x41e604

Function at 0x41ee08
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.0040b62d
cmp dword [esi], 0
je 0x41ee35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41ee35
mov byte [esi + 8], 1
pop esi
ret 4