joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb7f8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405868
mov eax, dword [ebp - 8]
call fcn.00405868
xor eax, eax
push ebp
push 0x4bb9c2
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4bb98a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4195e0]
call fcn.0041e33c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4bb890
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040a7d4
test al, al
je 0x4bb886
mov eax, dword [ebp - 8]
call fcn.00405878
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.004055e0
mov eax, dword [ebp - 0x1c]
call fcn.00405878
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bb89a
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.00405878
push eax
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4195e0]
call fcn.0041e33c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4bb979
push dword fs:[eax]
mov dword fs:[eax], esp
mov cx, 2
mov edx, 0xfffffffc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041e0b4
mov edx, dword [ebp - 0x14]
add edx, 8
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041e0b4
mov edx, dword [ebp - 0x14]
add edx, 8
add edx, dword [ebp - 0x18]
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041e124
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb980
mov eax, dword [ebp - 0x10]
call fcn.00404508
mov eax, dword [ebp - 0xc]
call fcn.00404508
ret
Function at 0x4bce10
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5d
push 0
push 0
dec ecx
jne 0x4bce18
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405868
lea eax, [ebp - 0x168]
mov edx, dword [0x408ab4]
call fcn.00405ea0
xor eax, eax
push ebp
push 0x4bd03d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x2ac]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0043c5c8
mov eax, dword [ebp - 0x2ac]
mov edx, 0x4bd054
call fcn.00405810
je 0x4bce7c
lea eax, [ebp - 4]
mov edx, 0x4bd054
call fcn.004056b4
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2b0]
mov ecx, 0x4bd060
mov edx, dword [ebp - 4]
call fcn.00405700
mov eax, dword [ebp - 0x2b0]
call fcn.00405878
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
lea eax, [ebp - 0x2c0]
mov edx, ebx
mov cl, 4
call fcn.00416584
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x2d0]
call fcn.00417b80
lea edx, [ebp - 0x2d0]
pop eax
call fcn.00417b88
je 0x4bcfc7
jmp 0x4bcfac
mov eax, dword [ebp - 0x2a8]
sub eax, 0x10
jne 0x4bcf71
lea edx, [ebp - 0x2d4]
lea eax, [ebp - 0x27c]
call fcn.0040b1dc
mov eax, dword [ebp - 0x2d4]
mov edx, 0x4bd06c
call fcn.00405810
je 0x4bcfac
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x27c]
call fcn.0040b1dc
mov eax, dword [ebp - 0x2d8]
mov edx, 0x4bd078
call fcn.00405810
je 0x4bcfac
lea eax, [ebp - 0x2e0]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.00405658
mov ecx, dword [ebp - 0x2e0]
lea eax, [ebp - 0x2dc]
mov edx, dword [ebp - 4]
call fcn.00405700
mov eax, dword [ebp - 0x2dc]
call fcn.004bce10
jmp 0x4bcfac
lea eax, [ebp - 0x2e8]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.00405658
mov ecx, dword [ebp - 0x2e8]
lea eax, [ebp - 0x2e4]
mov edx, dword [ebp - 4]
call fcn.00405700
mov eax, dword [ebp - 0x2e4]
call fcn.00405878
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x2a8]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4bcee1
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x168]
call fcn.0040aaf0
mov eax, dword [ebp - 4]
call fcn.0040af84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd044
lea eax, [ebp - 0x2e8]
mov edx, 6
call fcn.0040540c
lea eax, [ebp - 0x2d0]
mov edx, dword [0x401100]
mov ecx, 2
call fcn.00405fbc
lea eax, [ebp - 0x2b0]
mov edx, 2
call fcn.0040540c
lea eax, [ebp - 0x168]
mov edx, dword [0x408ab4]
call fcn.00405f70
lea eax, [ebp - 4]
call fcn.004053e8
ret
Function at 0x4bd308
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405868
xor eax, eax
push ebp
push 0x4bd39d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4bd3b4
mov edx, dword [ebp - 4]
call fcn.00405700
push 0xff
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xff
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 8]
call fcn.00405878
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.0040a1cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd3a4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040540c
ret

Function at 0x4bd484
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405868
xor eax, eax
push ebp
push 0x4bd55e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4bd574
mov edx, dword [ebp - 4]
call fcn.00405700
mov eax, dword [ebp - 8]
call fcn.00405878
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4bd4ce.0
jmp dword [eax*4 + 0x4bd4d5]
mov eax, ebx
mov edx, 0x4bd580
call fcn.0040543c
jmp 0x4bd543
mov eax, ebx
mov edx, 0x4bd590
call fcn.0040543c
jmp 0x4bd543
mov eax, ebx
mov edx, 0x4bd5a0
call fcn.0040543c
jmp 0x4bd543
mov eax, ebx
mov edx, 0x4bd5b4
call fcn.0040543c
jmp 0x4bd543
mov eax, ebx
mov edx, 0x4bd5c4
call fcn.0040543c
jmp 0x4bd543
mov eax, ebx
mov edx, 0x4bd5d8
call fcn.0040543c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd565
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040540c
ret
Function at 0x4bfa04
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405868
xor eax, eax
push ebp
push 0x4bfb45
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4bfb15
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405878
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040a7d4
test al, al
jne 0x4bfa85
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00403858
lea eax, [ebp - 0x1d0]
call fcn.004035f4
call fcn.004030d4
push dword [0x651ef8]
push 0x4bfb5c
push dword [0x651efc]
push 0x4bfb5c
push dword [0x651f00]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.0040577c
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004ba8b0
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405b98
call fcn.00403f50
call fcn.004030d4
lea eax, [ebp - 0x1d0]
call fcn.00403920
call fcn.004030d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bfb1f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfb4c
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.0040540c
lea eax, [ebp - 4]
call fcn.004053e8
ret
Function at 0x40320e
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, 0x411ea8
push dword [esp + 8]
push 0x200
push esi
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x403253
push 0x3b
push esi
call fcn.00404145
add esp, 8
test eax, eax
je 0x403244
mov byte [eax], 0
push 0x411ea8
call fcn.00403270
add esp, 4
jmp 0x40325a
mov byte [0x411ea8], 0
mov eax, 0
pop esi
cmp byte [0x411ea8], 1
adc eax, 0xffffffff
and eax, 0x411ea8
ret

Function at 0x40333c
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov esi, 0xffffffff
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, esi
mov edi, eax
je 0x403372
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x403394
push dword [esp + 0x10]
push dword [0x413690]
push str._s_n_s
push 1
push 0x10
push 1
call fcn.004027d8
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x40358f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
push ebx
push esi
push edi
xor esi, esi
call fcn.0040b61d
push eax
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x410658
lea ecx, [ebp - 0x88]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, str.SharedDLLs
call edi
push ebx
lea eax, [ebp - 0x88]
push eax
call edi
cmp dword [0x410328], esi
jne 0x403642
push str._HKEY_LOCAL_MACHINE_
lea eax, [ebp - 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call fcn.0040b61d
push eax
lea ecx, [ebp - 0x394]
push ecx
call edi
push str.____
lea ecx, [ebp - 0x394]
push ecx
call edi
push ebx
lea ecx, [ebp - 0x394]
push ecx
call edi
push 0x410584
lea ecx, [ebp - 0x394]
push ecx
call edi
lea ecx, [ebp - 0x394]
push ecx
push str.RegKey
call fcn.0040246c
add esp, 8
cmp eax, 0xfffffffe
jne 0x403642
xor eax, eax
jmp 0x40377f
lea eax, [ebp - 4]
lea ecx, [ebp - 0x88]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403753
mov dword [ebp - 8], 0x14
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xc], eax
cmp dword [0x410328], eax
jne 0x403695
mov dword [0x410328], 1
call fcn.004023da
cmp eax, 0xfffffffe
jne 0x403695
xor eax, eax
jmp 0x40377f
xor ecx, ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x24]
push edx
lea ebx, [ebp - 0xc]
push ebx
mov dword [ebp - 0x8c], ecx
push ecx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4036fd
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x4036ce
cmp eax, 3
je 0x4036e2
cmp eax, 4
je 0x4036e8
jmp 0x4036fd
lea eax, [ebp - 0x24]
push eax
call fcn.004078d0
add esp, 4
mov dword [ebp - 0x8c], eax
jmp 0x4036fd
cmp dword [ebp - 8], 4
jne 0x4036fd
push 4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x8c]
push ecx
call fcn.00407780
add esp, 0xc
cmp dword [ebp - 0x8c], 0
jne 0x403716
cmp dword [ebp + 0xc], 0
je 0x403716
mov dword [ebp - 0x8c], 1
mov eax, dword [ebp - 0x8c]
push 4
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403778
mov eax, dword [0x413684]
mov esi, 1
push eax
push esi
push 0x10
push esi
call fcn.004027d8
add esp, 0x10
jmp 0x403778
mov eax, dword [0x413684]
mov esi, 1
push eax
push esi
push 0x10
push esi
call fcn.004027d8
add esp, 0x10
cmp dword [0x410328], 0
jne 0x403778
call fcn.004023b1
cmp esi, 1
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404cc1
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov eax, dword [0x4136dc]
mov ebp, esp
sub esp, 0xc94
push esi
mov esi, 0x40f998
push esi
push 0x410588
push eax
call fcn.004010c4
add esp, 0xc
push eax
call fcn.00402438
add esp, 4
cmp dword [0x40f430], 0
je 0x404d6c
cmp dword [0x40f740], 0
je 0x404d33
push 0x40ffb0
push 0x40fda8
push 0x412740
lea eax, [ebp - 0xc94]
push 0x40f538
push 0x40f020
push esi
push str._s__s___s___q___s____s____s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
jmp 0x404dbf
cmp dword [0x40f430], 0
je 0x404d6c
push 0x40ffb0
lea eax, [ebp - 0xc94]
push 0x40fda8
push 0x412740
push 0x40f020
push 0x40f998
push str._s__s___s____s____s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
jmp 0x404dbf
cmp dword [0x40f740], 0
push 0x40ffb0
push 0x40fda8
push 0x412740
je 0x404da5
push 0x40f538
lea eax, [ebp - 0xc94]
push 0x40f998
push str._s__q___s____s____s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
jmp 0x404dbf
push 0x40f998
lea eax, [ebp - 0xc94]
push str._s___s____s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x44
xor esi, esi
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.00407010
add esp, 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x64], 0x44
push eax
lea ecx, [ebp - 0x64]
mov word [ebp - 0x34], 1
push ecx
push esi
push esi
lea edx, [ebp - 0xc94]
push esi
push esi
push esi
push esi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
push str.0x_08lXH
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x10]
push str.CreateProcess__
push 0x410588
push ecx
push 0x410590
push dword [0x4136bc]
call fcn.004010c4
add esp, 0xc
push eax
call fcn.004010c4
add esp, 0xc
push eax
push 1
push 0x10
push 1
call fcn.004027d8
add esp, 0x10
xor eax, eax
jmp 0x404e86
call fcn.004023eb
push 0
mov eax, dword [0x40f74c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00405763
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0x103
je 0x404e66
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405267
Capabilities:
Get disk information

Disassembly:
push ebp
mov al, byte [0x412740]
mov ebp, esp
sub esp, 4
push ebx
mov byte [ebp - 4], al
push esi
push edi
push 0x412740
call dword [sym.imp.USER32.dll_CharNextA]
mov al, byte [eax]
lea ecx, [ebp - 4]
push ecx
mov byte [ebp - 3], al
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
call dword [sym.imp.USER32.dll_CharUpperA]
cmp dword [0x410538], 0
jne 0x4052b2
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [0x410538], eax
push dword [ebp + 0xc]
mov edi, 0x412740
push edi
push 0x410674
push 0x412de0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
push edi
call fcn.004053ab
add esp, 0xc
test eax, eax
je 0x405395
mov ebx, 0x412de0
mov eax, dword [0x410538]
test eax, eax
je 0x405305
cmp eax, 2
je 0x405305
cmp eax, 3
je 0x405335
cmp eax, 4
je 0x405335
jmp 0x405359
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
lea eax, [ebp - 4]
push eax
mov eax, dword [0x412980]
push dword [0x413214]
push esi
push eax
push dword [0x41298c]
push str._s_n_s_d_s_s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
jmp 0x405359
push ebx
mov eax, dword [0x412950]
push 0x410588
push eax
call fcn.004010c4
add esp, 0xc
push eax
push 0x41086c
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push 2
push 0x31
push 2
call fcn.004027d8
add esp, 0x10
cmp eax, 2
je 0x4053a7
push dword [ebp + 0xc]
push edi
push 0x410674
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
push dword [ebp + 0xc]
push edi
call fcn.004053ab
add esp, 0xc
test eax, eax
jne 0x4052eb
mov eax, 1
mov dword [0x40f758], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x4053a0

Function at 0x405433
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push esi
push edi
xor esi, esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp eax, esi
jbe 0x4054b7
push eax
push 2
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x4054b7
push edi
call dword [sym.imp.KERNEL32.dll_LocalLock]
push eax
mov ebx, eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4054a9
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
push ecx
push 0x410658
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4054a9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov esi, 1
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 4], edx
push edi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
test esi, esi
jne 0x4054c5
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40559a
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x6dc
cmp dword [0x40f740], eax
push ebx
push esi
push edi
je 0x4055da
cmp byte [0x40f438], al
jne 0x4055c0
cmp dword [0x40f744], eax
jne 0x4055da
push 0x40f438
mov eax, dword [0x40f744]
push eax
push 1
push 0x40f538
call fcn.0040bb3c
add esp, 0x10
mov eax, dword [0x413688]
test eax, eax
jle 0x4055f7
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 0x412bc0
call fcn.004079c0
add esp, 4
cmp byte [0x40f790], 0
je 0x40560d
push 0x40f790
call fcn.004079c0
add esp, 4
mov esi, 0x40f998
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40562b
push 0x3e8
push esi
call fcn.00406300
add esp, 8
mov eax, dword [0x412dd4]
xor esi, esi
push eax
push dword [0x40f754]
call fcn.0040b65b
add esp, 8
cmp dword [ebp + 8], esi
je 0x405721
mov ebx, 0x40ffb0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x405721
mov edi, dword [0x40f740]
mov eax, dword [0x413234]
push eax
mov dword [0x40f740], esi
push 1
push 0x40
push 2
call fcn.004027d8
add esp, 0x10
mov dword [0x40f740], edi
lea ecx, [ebp - 0x6dc]
push 1
push dword [ebp + 8]
push edi
push 0x40f020
lea eax, [ebp - 0x4a0]
push 0x40fda8
push ebx
push ecx
push eax
call fcn.00405894
add esp, 0x20
lea ecx, [ebp - 0x4a0]
push 0x410890
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x6dc]
lea edx, [ebp - 0x4a0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x44
lea ecx, [ebp - 0x54]
push esi
push ecx
call fcn.00407010
add esp, 0xc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push ecx
lea edx, [ebp - 0x54]
mov word [ebp - 0x24], 1
push edx
push esi
push esi
lea eax, [ebp - 0x4a0]
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x405721
mov eax, dword [0x41320c]
push eax
push 1
push 0x30
push 1
call fcn.004027d8
add esp, 0x10
cmp byte [0x40fba0], 0
je 0x405737
push 0x40fba0
call fcn.004079c0
add esp, 4
call fcn.00406f71
cmp eax, 1
jne 0x40574b
push 0
call fcn.00406d0a
add esp, 4
call fcn.00401de8
mov eax, dword [0x40f74c]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406342
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
lea eax, [ebp - 8]
push esi
push edi
push eax
push str.CLSID
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x406430
xor esi, esi
mov edi, str.ThreadingModel
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x410540]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x406427
lea eax, [ebp - 4]
push eax
push str.InprocServer32
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40641e
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x10], 0x100
push eax
push ecx
push 0
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4063ea
mov ebx, dword [esi + 0x410548]
push ebx
call fcn.00407b50
add esp, 4
inc eax
push eax
push ebx
push 1
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x406415
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 4
cmp esi, 8
jl 0x406371
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x406435
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406d0a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
cmp dword [0x40f740], 0
push esi
jne 0x406e0e
cmp dword [ebp + 8], 0
je 0x406d2b
mov eax, dword [0x413674]
jmp 0x406d30
mov eax, dword [0x41297c]
push eax
push 0x41086c
push 6
push 0x34
push 2
call fcn.004027d8
add esp, 0x14
cmp eax, 6
jne 0x406e0e
call fcn.0040b5ca
test eax, eax
je 0x406de3
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x406d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x78]
push str.OpenProcessToken_Error__d_in_fDoReboot__.
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x406e13
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push esi
push esi
push ecx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x406de3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x78]
push str.AdjustTokenPrivileges_Error__d_in_fDoReboot
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x406e13
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x406e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x78]
push str.Error_ExitWindows_Error__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x406e13
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406f71
Capabilities:
Persist via run registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea edi, [ebp - 0x3c]
mov ecx, 0xc
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp dword [0x40f76c], ebx
jne 0x406fa3
cmp dword [0x40f77c], ebx
je 0x406fed
lea eax, [ebp - 4]
xor esi, esi
push eax
lea ecx, [ebp - 0x3c]
push 1
push esi
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406fed
push esi
lea eax, [ebp - 8]
push esi
push esi
push esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x406fe4
cmp dword [ebp - 8], esi
jbe 0x406fe4
mov ebx, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret