joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a06c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f28
call fcn.0041d328
push ebx
push esi
push edi
mov dword [ebp - 8], 0x1388
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0x814]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlVirtualDeviceDrivers
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41a0e3
mov eax, dword [ebp + 8]
mov dword [eax], 0x10001
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x41a2c6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2f28]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x518504
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41a141
mov eax, dword [ebp + 8]
mov dword [eax], 0x10006
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41a2c6
mov eax, dword [ebp - 0x810]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x2f28]
test ecx, ecx
je 0x41a213
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 0x808]
push eax
call fcn.0041d60a
add esp, 4
push 0x518508
lea eax, [ebp - 0x808]
push eax
call fcn.0041d3d4
add esp, 8
test eax, eax
jne 0x41a1e9
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d0c4
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
call fcn.0041d0c4
add esp, 4
mov ecx, dword [ebp - 0x810]
add ecx, eax
inc ecx
mov dword [ebp - 0x810], ecx
jmp 0x41a141
mov eax, dword [ebp - 0x818]
mov byte [ebp + eax - 0x1ba0], 0
mov eax, dword [ebp - 0x818]
inc eax
push eax
lea eax, [ebp - 0x1ba0]
push eax
push 7
push 0
push 0x518514
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41a281
mov eax, dword [ebp + 8]
mov dword [eax], 0x10006
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41a2c6
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41a2bc
mov eax, dword [ebp + 8]
mov dword [eax], 0x10002
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x41a2c6
mov eax, 1
jmp 0x41a2c6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a2cb
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, str.hardlock
lea ecx, [ebp - 0xc]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov al, byte [eax + 8]
mov byte [ecx + 8], al
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push 0x518524
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41a316
xor eax, eax
jmp 0x41a424
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0x518558
push 0
push 0x51855c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41a35b
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41a424
lea eax, [ebp - 0xc]
push eax
call fcn.0041d0c4
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push 0x51857c
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0x518584
push 0
push 0x518588
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41a3ce
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41a424
lea eax, [ebp - 0xc]
push eax
call fcn.0041d0c4
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push str.Driver
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x41a41a
xor eax, eax
jmp 0x41a424
mov eax, 1
jmp 0x41a424
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a429
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesPcmciaDataBase
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41a45c
xor eax, eax
jmp 0x41a4f2
push str.FAST_ElectronicHardlock_V1.0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a47f
xor eax, eax
jmp 0x41a4f2
push str.FAST_Electronic
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a4a2
xor eax, eax
jmp 0x41a4f2
push str.Aladdin_Knowledge_Systems_Ltd.Hardlock_V2.0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a4c5
xor eax, eax
jmp 0x41a4f2
push str.Aladdin_Knowledge_Systems_Ltd.
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a4e8
xor eax, eax
jmp 0x41a4f2
mov eax, 1
jmp 0x41a4f2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a794
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0xf01ff
push 0x518710
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41a7d9
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20005
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x41a816
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41a804
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20008
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
jmp 0x41a816
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a81b
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0xf01ff
push 0x51871c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41a860
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20005
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x41a8a1
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41a88f
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20007
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
jmp 0x41a8a1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a8a6
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0xf01ff
push str.Hardlock
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41a8eb
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20005
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x41a92e
lea eax, [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41a91c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20006
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
jmp 0x41a92e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a9f1
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x5183cc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*8], 0
je 0x41ab59
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0x41bb24
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41aaaf
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41aaa7
cmp dword [ebp + 0xc], 0
je 0x41aa9d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0x2010007
call dword [ebp + 0xc]
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
jmp 0x41aa14
push 0xff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x41aafc
cmp dword [ebp + 0xc], 0
je 0x41aaf4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0x2010007
call dword [ebp + 0xc]
add esp, 8
inc dword [ebp - 0xc]
jmp 0x41aa14
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41ab51
cmp dword [ebp + 0xc], 0
je 0x41ab47
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0x2010007
call dword [ebp + 0xc]
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
jmp 0x41aa14
cmp dword [0x5183cc], 0
je 0x41ab72
mov eax, dword [0x5183cc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41b782
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [eax], 0
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
push 0x200
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.HLVDD.DLL
lea eax, [ebp - 0x208]
push eax
call fcn.0041d138
add esp, 8
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
je 0x41b85c
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x41b85c
push str.HLVDDGetVersion
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41b84f
call dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..FEnteDev
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
je 0x41b923
mov word [ebp - 0x218], 0
mov word [ebp - 0x214], 0
mov ax, word [ebp - 0x214]
mov word [ebp - 0x216], ax
push 0
lea eax, [ebp - 0x20c]
push eax
push 6
lea eax, [ebp - 0x218]
push eax
push 6
lea eax, [ebp - 0x218]
push eax
push 0x9c402450
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x41b8f5
jmp 0x41b923
xor eax, eax
mov ax, word [ebp - 0x216]
cmp eax, 0xfafa
je 0x41b916
mov eax, dword [ebp + 8]
mov word [eax], 0x100
jmp 0x41b923
mov ax, word [ebp - 0x214]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41b92a
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov dword [0x42c66c], 0
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax*8]
shl eax, 4
add eax, dword [ebp + 8]
mov dword [0x42c670], eax
mov dword [ebp - 4], 0
jmp 0x41b95d
inc dword [ebp - 4]
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jge 0x41b9c5
mov eax, dword [ebp - 4]
lea eax, [eax + eax*8]
shl eax, 4
mov ecx, dword [ebp + 8]
cmp dword [eax + ecx], 2
jne 0x41b9c0
push str.ntvdm
mov eax, dword [ebp - 4]
lea eax, [eax + eax*8]
shl eax, 4
add eax, dword [ebp + 8]
add eax, 8
push eax
call fcn.0041e370
add esp, 8
test eax, eax
jne 0x41b9c0
mov eax, dword [ebp - 4]
lea eax, [eax + eax*8]
shl eax, 4
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx + 4]
push eax
push 0x41ba3b
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x41b95a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b9ca
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov dword [0x42c66c], 0
mov dword [0x42c670], 0
mov dword [ebp - 4], 0
jmp 0x41b9f6
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*8 + 4], 0
je 0x41ba21
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0x41ba3b
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x41b9f3
mov eax, dword [0x42c66c]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x41ba34
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41be40
Capabilities:
Query service status

Disassembly:
call fcn.0041bdd0
cmp eax, 2
je 0x41be55
cmp eax, 3
je 0x41be5a
mov eax, 9
ret
jmp 0x41bee0
jmp 0x41be60
push ebx
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x41be81
mov eax, 2
pop edi
pop esi
pop ebx
ret
push 0xf01ff
push str.HLServer
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x41bea8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 2
pop edi
pop esi
pop ebx
ret
push 0x42c650
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41becb
cmp dword [0x42c654], 4
mov esi, 3
jne 0x41becb
mov esi, 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
ret
push 0
push str.HL_Server_for_Win32
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, 1
sbb eax, eax
add eax, 4
ret
Function at 0x41c805
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
jne 0x41c849
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x41c85c
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0041d13c
add esp, 8
push str.StringFileInfo_
lea eax, [ebp - 0x810]
push eax
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0041d138
add esp, 8
push 0x518a20
lea eax, [ebp - 0x810]
push eax
call fcn.0041d138
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0041d138
add esp, 8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.0041cfac
add esp, 4
mov dword [ebp - 0x814], eax
mov eax, dword [ebp - 0x814]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x41c946
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x810]
push eax
mov eax, dword [ebp - 0x814]
push eax
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0x10], 0
jne 0x41c936
push 0x518a24
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041d13c
add esp, 8
jmp 0x41c946
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp - 0x814]
push eax
call fcn.0041ce53
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x41c95d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ccbb
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437360
push 0x41ee40
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x518a7c], eax
mov al, ah
and eax, 0xff
mov dword [0x518a88], eax
mov eax, dword [0x518a7c]
shr dword [0x518a7c], 0x10
and eax, 0xff
mov dword [0x518a84], eax
shl eax, 8
add eax, dword [0x518a88]
mov dword [0x518a80], eax
call fcn.0041ed95
mov dword [ebp - 4], 0
call fcn.0041eca7
call fcn.0041ec9c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x436348], eax
call fcn.0041e810
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x518a54], eax
call fcn.0041e745
call fcn.0041cebb
mov esi, dword [0x436348]
mov al, byte [esi]
cmp al, 0x22
je 0x41cd6f
cmp al, 0x20
jbe 0x41cd9b
inc esi
cmp byte [esi], 0x20
ja 0x41cd67
jmp 0x41cd9b
inc esi
cmp byte [esi], 0x22
je 0x41cd9a
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x41cd95
movzx eax, bl
push eax
call fcn.0041e702
add esp, 4
test eax, eax
je 0x41cd8f
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x41cd78
cmp byte [esi], 0x22
jne 0x41cd9b
inc esi
cmp byte [esi], 0
je 0x41cdab
cmp byte [esi], 0x20
ja 0x41cdab
inc esi
cmp byte [esi], 0
jne 0x41cda0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x41cdcb
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0041ceeb
jmp 0x41ce07
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cf0d
Capabilities:
Terminate process

Disassembly:
mov dword [0x518ab4], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x518ab0], bl
jne 0x41cf69
cmp dword [0x436344], 0
je 0x41cf57
mov esi, dword [0x436340]
sub esi, 4
cmp dword [0x436344], esi
ja 0x41cf57
mov eax, dword [esi]
test eax, eax
je 0x41cf4c
call eax
sub esi, 4
cmp dword [0x436344], esi
jbe 0x41cf44
push 0x51a55c
push 0x51a554
call fcn.0041cf8c
add esp, 8
push 0x51a564
push 0x51a560
call fcn.0041cf8c
add esp, 8
test ebx, ebx
jne 0x41cf89
push dword [esp + 0xc]
invalid
invalid

Function at 0x41d9cd
Capabilities:
Delete file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x41d9e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41d9fa
push eax
call fcn.0042025e
add esp, 4
mov eax, 0xffffffff
jmp 0x41d9fc
xor eax, eax
ret
Function at 0x42058f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
cmp esi, dword [0x518da8]
jb 0x4205c1
mov dword [0x518a70], 9
mov dword [0x518a74], 0
mov eax, 0xffffffff
jmp 0x420782
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], 0
test edx, edx
je 0x420780
mov al, byte [esi + 0x518db0]
test al, 2
jne 0x420780
test al, 0x48
je 0x420604
mov al, byte [esi + str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_]
cmp al, 0xa
je 0x420604
dec edx
mov byte [ecx], al
mov dword [ebp - 8], 1
mov byte [esi + str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_], 0xa
inc ecx
push 0
lea eax, [ebp - 0x10]
push eax
push edx
push ecx
push dword [esi*4 + 0x518df0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42065d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x420641
mov dword [0x518a70], 9
mov dword [0x518a74], eax
mov eax, 0xffffffff
jmp 0x420782
cmp eax, 0x6d
je 0x420780
push eax
call fcn.0042025e
add esp, 4
mov eax, 0xffffffff
jmp 0x420782
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov al, byte [esi + 0x518db0]
test al, 0x80
je 0x42077b
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0xa
jne 0x42067d
or al, 4
jmp 0x42067f
and al, 0xfb
mov ebx, dword [ebp + 0xc]
mov byte [esi + 0x518db0], al
mov edi, ebx
mov eax, dword [ebp - 8]
add eax, ebx
mov dword [ebp - 0xc], eax
cmp ebx, eax
jae 0x420775
mov al, byte [edi]
cmp al, 0x1a
je 0x420763
cmp al, 0xd
je 0x4206b0
inc edi
mov byte [ebx], al
jmp 0x420757
mov ecx, dword [ebp - 0xc]
dec ecx
cmp ecx, edi
jbe 0x4206d4
lea ecx, [edi + 1]
cmp byte [ecx], 0xa
jne 0x4206cb
add edi, 2
mov byte [ebx], 0xa
jmp 0x420757
mov edi, ecx
mov byte [ebx], al
jmp 0x420757
inc edi
push 0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 1]
mov dword [ebp - 8], 0
push eax
push 1
push ecx
push dword [esi*4 + 0x518df0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420702
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x420754
cmp dword [ebp - 0x10], 0
je 0x420754
test byte [esi + 0x518db0], 0x48
je 0x420731
cmp byte [ebp - 1], 0xa
jne 0x420722
mov byte [ebx], 0xa
jmp 0x420757
mov byte [ebx], 0xd
inc ebx
mov al, byte [ebp - 1]
mov byte [esi + str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_], al
jmp 0x420758
cmp dword [ebp + 0xc], ebx
jne 0x420741
cmp byte [ebp - 1], 0xa
jne 0x420741
mov byte [ebx], 0xa
jmp 0x420757
push 1
push 0xffffffffffffffff
push esi
call fcn.00420789
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x420758
mov byte [ebx], 0xd
inc ebx
cmp edi, dword [ebp - 0xc]
jb 0x42069a
jmp 0x420775
mov al, byte [esi + 0x518db0]
test al, 0x40
jne 0x420775
or al, 2
mov byte [esi + 0x518db0], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x420782
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret