joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e41
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x438800
push 0x400
add eax, 0x3e8
push esi
push ebx
mov dword [0x42a26c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.00405d58
mov edi, eax
cmp edi, 0xffffffff
mov dword [0x40a018], edi
jne 0x402e9b
mov eax, str.Error_launching_installer
jmp 0x4030e0
push esi
mov esi, 0x436800
push esi
call fcn.00406183
push esi
call fcn.00405b83
push eax
push 0x439000
call fcn.00406183
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x418f00], eax
mov esi, eax
jle 0x402fb9
mov eax, dword [0x42a274]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x402eea
mov edi, eax
push edi
push 0x418f08
call fcn.00403358
test eax, eax
je 0x403054
jmp 0x45e2c0
push 1
call fcn.00402d9f
cmp dword [0x42a274], ebx
pop ecx
je 0x403098
cmp dword [ebp - 8], ebx
je 0x402ffc
push dword [0x418ef0]
call fcn.0040336e
lea eax, [ebp + 8]
push 4
push eax
call fcn.00403358
test eax, eax
je 0x403098
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x403098
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, 0x40ce68
mov esi, eax
call fcn.00406678
lea eax, [ebp - 0x22c]
push 0x437800
push eax
call fcn.00405d87
push ebx
push 0x4000100
push 2
push ebx
push ebx
lea eax, [ebp - 0x22c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x40a01c], eax
jne 0x40305e
mov eax, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x4030e0
push 1
call fcn.00402d9f
pop ecx
jmp 0x403098
mov eax, dword [0x42a274]
add eax, 0x1c
push eax
call fcn.0040336e
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x10]
not ecx
and ecx, 4
mov dword [0x418f04], eax
sub eax, ecx
mov ecx, dword [ebp - 0xc]
push esi
push ebx
lea eax, [eax + ecx - 0x1c]
push 0xffffffffffffffff
mov dword [0x418ef8], eax
call fcn.004030e7
cmp eax, dword [ebp - 0x10]
je 0x40309f
mov eax, str.Installer_integrity_check_has_failed._Common_causes_include_nincomplete_download_and_damaged_media._Contact_the_ninstallers_author_to_obtain_a_new_copy._n_nMore_information_at:_nhttp:__nsis.sf.net_NSIS_Error
jmp 0x4030e0
test byte [ebp - 0x24], 1
mov dword [0x42a270], esi
mov eax, dword [esi]
mov dword [0x42a278], eax
je 0x4030b8
inc dword [0x42a27c]
push 8
lea eax, [esi + 0x44]
pop ecx
sub eax, 8
add dword [eax], esi
dec ecx
jne 0x4030be
mov eax, dword [0x418ef4]
push 0x40
mov dword [esi + 0x3c], eax
add esi, 4
push esi
push 0x42a280
call fcn.00405d13
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4039cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [0x42a270]
jmp loc.0045e518

Function at 0x4057b1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083b0
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
jmp loc.0045d960

Function at 0x405863
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426750], 0x44
push eax
xor eax, eax
push 0x426750
push eax
push eax
push 0x4000000
push eax
push eax
jmp loc.0045e838

Function at 0x40592c
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d33
mov edi, eax
cmp edi, 0xffffffff
je 0x40596d
test byte [esp + 0x10], 1
push esi
je 0x40594f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405955
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40595e
xor eax, eax
inc eax
jmp 0x40596f
test byte [esp + 0x10], 4
jne 0x40596d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405974
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405c3f
test bl, 8
mov dword [ebp - 8], eax
je 0x4059b3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2e8], eax
jmp 0x405b30
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4059cd
jmp 0x45dbb8
mov esi, 0x425750
push edi
push esi
call fcn.00406183
cmp dword [ebp + 8], 0
je 0x4059ec
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4059f2
push edi
call fcn.00405b83
cmp word [edi], 0
jne 0x405a02
cmp word [0x425750], 0x5c
jne 0x405a0d
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ad3
cmp word [ebp - 0x22c], 0x2e
jne 0x405a57
cmp word [ebp - 0x22a], 0
je 0x405ab6
cmp word [ebp - 0x22a], 0x2e
jne 0x405a57
cmp word [ebp - 0x228], 0
je 0x405ab6
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406183
test byte [ebp - 0x258], 0x10
je 0x405a82
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ab6
push dword [ebp + 0xc]
push edi
call fcn.00405974
jmp 0x405ab6
push dword [ebp - 4]
push edi
call fcn.0040592c
test eax, eax
jne 0x405aae
cmp dword [ebp - 4], eax
je 0x405aa6
push edi
push 0xfffffffffffffff1
call fcn.004052e2
push 0
push edi
call fcn.00406024
jmp 0x405ab6
inc dword [0x42a2e8]
jmp 0x405ab6
push edi
push 0xfffffffffffffff2
call fcn.004052e2
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a2f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405ade
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405b30
cmp dword [ebp - 8], esi
jne 0x405af2
inc dword [0x42a2e8]
jmp 0x405b30
push edi
call fcn.004064c6
test eax, eax
je 0x405b30
push edi
call fcn.00405b37
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040592c
test eax, eax
jne 0x405b28
cmp dword [ebp - 4], esi
je 0x405aea
push edi
push 0xfffffffffffffff1
call fcn.004052e2
push esi
push edi
call fcn.00406024
jmp 0x405b30
push edi
push 0xffffffffffffffe5
call fcn.004052e2
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405eb2
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x426de8
push 0x40a5c4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405f00
push 1
push 0
push esi
call fcn.00405d58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x40601f
cmp eax, edi
jg 0x40601f
mov esi, 0x4275e8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x40601f
cmp eax, edi
jg 0x40601f
push esi
push ebx
push str._ls_ls_r_n
push 0x4269e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a270]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004061a5
push 4
push 0xc0000000
push esi
call fcn.00405d58
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40601f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406018
push edi
push esi
push ebp
call fcn.00405ddb
test eax, eax
je 0x406018
push str._Rename__r_n
push esi
call fcn.00405cbd
test eax, eax
jne 0x405fb6
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405feb
add eax, 0xa
push 0x40a5a8
push eax
call fcn.00405cbd
mov ebp, eax
test ebp, ebp
je 0x405fe7
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405fd8
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405fd2
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405fed
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269e8
push eax
call fcn.00405d13
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e0a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45d258

Function at 0x406024
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406047
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405eb2
pop ecx
pop ecx
inc dword [0x42a2f0]
ret 8
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x257e181d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xae0031f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40165d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b050]
jne 0x407637
repz ret
push ebp
mov edi, edi
mov ebp, esp
add esp, 0xfffffcd8
mov dword [0x40b358], eax
mov dword [0x40b354], ecx
mov dword [0x40b350], edx
mov dword [0x40b34c], ebx
mov dword [0x40b348], esi
mov dword [0x40b344], edi
mov word [0x40b370], ss
mov word [0x40b364], cs
mov word [0x40b340], ds
mov word [0x40b33c], es
mov word [0x40b338], fs
mov word [0x40b334], gs
pushfd
pop dword [0x40b368]
mov eax, dword [ebp]
mov dword [0x40b35c], eax
mov eax, dword [ebp + 4]
mov dword [0x40b360], eax
lea eax, [ebp + 8]
mov dword [0x40b36c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x40b2a8], 0x10001
mov eax, dword [0x40b360]
mov dword [0x40b264], eax
mov dword [0x40b258], 0xc0000409
mov dword [0x40b25c], 1
mov eax, dword [0x40b050]
mov dword [ebp - 0x328], eax
mov eax, dword [0x40b054]
mov dword [ebp - 0x324], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40771c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x401ca1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
mov esi, esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x27
push esi
push 0x401d90
call dword [sym.imp.msvcrt.dll_wcsncmp]
mov ecx, dword [ebp + 8]
add esp, 0xc
or eax, eax
je 0x402e4d
and dword [ecx], 0
movzx ebx, word [esi]
cmp bx, 0x22
push 2
pop ecx
jne 0x402e35
add esi, ecx
movzx ebx, word [esi]
or bx, bx
je 0x401cf0
cmp bx, 0x22
jne 0x401ce0
cmp word [esi], 0x22
jne 0x401cf8
add esi, ecx
movzx eax, word [esi]
or ax, ax
je 0x401d06
cmp ax, 0x20
jbe 0x401cf6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
inc ebx
lea eax, [ebx + ebx]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
or ebp, ebp
je 0x401d5e
push esi
push ebx
push ebp
call fcn.00401ef3
test eax, eax
jl 0x401d5e
push 0x401d84
push ebx
push ebp
call fcn.00401de5
or eax, eax
jne 0x401d2e
push 0x401d78
push ebx
push ebp
call fcn.00401de5
or eax, eax
jne 0x401d2e
push 0x401d68
push ebx
push ebp
call fcn.00401de5
or eax, eax
jne 0x401d2e
mov eax, ebp
pop esi
pop edi
pop ebx
pop ebp
ret 4
cmp bx, 0x20
jbe 0x401cf8
add esi, ecx
cmp word [esi], 0x20
jbe 0x401cf8
jmp 0x402e3f
mov dword [ecx], 1
add esi, 0x4e
jmp 0x401cd0
Function at 0x40250b
Capabilities:
Query or enumerate registry value

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
sub esp, 0x20
test byte [0x40b074], 1
push edi
push esi
mov edi, 0x40b0ac
jne 0x40253c
or dword [0x40b074], 1
mov ecx, edi
call fcn.00401927
push 0x402ab6
call fcn.00402077
pop esi
lea eax, [ebp - 0x14]
mov ecx, edi
xor esi, esi
push eax
mov dword [ebp - 0x14], esi
call fcn.004023e5
cmp eax, esi
mov dword [ebp - 0x20], eax
jl 0x4026cd
test byte [0x40b074], 2
push ebx
mov edi, 0x80000002
jne 0x40259f
or dword [0x40b074], 2
lea eax, [ebp - 0x1c]
lea ebx, [ebp - 0x18]
push ebx
push eax
push esi
push 0x10
push 0x402774
push 0x4026e8
push edi
mov dword [ebp - 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x403d09
mov byte [0x40b045], 0
cmp byte [0x40b045], 0
jne 0x4026d6
cmp dword [ebp + 0x14], esi
mov dword [ebp + 0x14], esi
jne 0x4026d6
cmp byte [0x40b044], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0x402818
jne 0x4025e3
lea eax, [ebp - 4]
push eax
push 1
push 0
push esi
push edi
call ebx
test eax, eax
je 0x4025e7
mov byte [0x40b044], 1
and dword [ebp - 4], 0
cmp byte [0x40b043], 0
jne 0x402611
cmp dword [ebp + 0x14], 0
jne 0x402611
lea eax, [ebp - 8]
push eax
push 1
push 0
push esi
push 0x80000001
call ebx
test eax, eax
je 0x402615
mov byte [0x40b043], 1
and dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 1
push 0
mov esi, 0x4027a0
push esi
push edi
call ebx
or eax, eax
jne 0x403d1f
cmp byte [0x40b042], 0
jne 0x402658
cmp dword [ebp + 0x14], 0
jne 0x402658
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push esi
push 0x80000001
call ebx
or eax, eax
je 0x40265c
mov byte [0x40b042], 1
and dword [ebp - 0xc], 0
and dword [ebp + 0x14], 0
cmp dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x10]
jne 0x403d28
cmp dword [ebp - 8], 0
jne 0x403d42
cmp dword [ebp - 0xc], 0
jne 0x403d5c
cmp dword [ebp - 0x10], 0
je 0x4026a5
lea eax, [ebp + 0x14]
push eax
push ebx
push esi
push dword [edi]
push dword [ebp - 0x10]
call fcn.004028a1
test al, al
jne 0x403d74
cmp dword [0x40b0ac], 0xffffffff
je 0x403d79
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
push dword [ebp - 0xc]
call edi
pop ebx
pop esi
mov eax, dword [ebp - 0x20]
pop edi
leave
ret 0x10
mov dword [ebp + 0x14], 1
jmp 0x4025b8
cmp dword [ebp - 0x1c], 1
jne 0x402598
mov byte [0x40b045], 1
jmp 0x4026d6
and dword [ebp - 0x10], 0
jmp 0x40262e
lea eax, [ebp + 0x14]
push eax
push ebx
push esi
push dword [edi]
push dword [ebp - 4]
call fcn.00408d9a
test al, al
je 0x402673
jmp 0x403d74
lea eax, [ebp + 0x14]
push eax
push ebx
push esi
push dword [edi]
push dword [ebp - 8]
call fcn.00408d9a
or al, al
je 0x40267d
jmp 0x403d74
lea eax, [ebp + 0x14]
push eax
push ebx
push esi
push dword [edi]
push dword [ebp - 0xc]
call fcn.004028a1
test al, al
je 0x402687
mov eax, dword [ebp + 0x14]
jmp 0x403d7c
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
jmp 0x4026b2
Function at 0x4028a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 8]
push ecx
push ecx
push ebx
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov edi, edi
mov byte [ebp - 1], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403b84
pop ebx
mov al, byte [ebp - 1]
leave
ret 0x14
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
lea eax, [ebp + 0xc]
push edi
push 4
pop edi
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x10
push dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
push ebx
push dword [ebp - 8]
call esi
or eax, eax
jne 0x403bc4
cmp dword [ebp + 0x14], ebx
mov eax, dword [ebp + 8]
je 0x403bbb
cmp eax, ebx
je 0x403bbb
cmp eax, 1
jne 0x403bc4
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
mov dword [ebp + 0xc], edi
jne 0x403c00
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x10
push 0x4069e4
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x403c00
cmp dword [ebp + 0x14], ebx
mov eax, dword [ebp + 8]
je 0x403bf7
cmp eax, ebx
je 0x403bf7
cmp eax, 1
jne 0x403c00
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
jmp 0x4028c9
Function at 0x402ba7
Capabilities:
Get common file path

Disassembly:
mov ebx, ebx
push ebp
mov ebp, esp
sub esp, 0x6a8
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
mov dword [ebp - 0x690], eax
call fcn.00402bea
test eax, eax
jne 0x4034c0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040165d
leave
ret 4
call sub.iertutil.dll_Ordinal_42
test eax, eax
je 0x402bd6
call sub.iertutil.dll_Ordinal_44
test eax, eax
jne 0x402bd6
lea eax, [ebp - 0x28c]
push edi
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x403661
push 0x403788
push edi
lea eax, [ebp - 0x28c]
push eax
call fcn.00407157
or eax, eax
jl 0x403661
lea eax, [ebp - 0x28c]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x694], eax
je 0x403661
lea edi, [ebp - 0x6a8]
lea ecx, [ebp - 0x6a0]
push edi
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
or eax, eax
je 0x403655
mov eax, 0x1c81080
cmp dword [ebp - 0x69c], eax
jb 0x40356f
cmp dword [ebp - 0x6a4], eax
jae 0x403655
mov eax, dword [0x40b62c]
cmp eax, ebx
jne 0x40357d
call fcn.00406b83
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x68c]
push 0x200
push ecx
push 0x2c3
push eax
call edi
or eax, eax
je 0x403655
mov eax, dword [0x40b62c]
cmp eax, ebx
jne 0x4035ad
call fcn.00406b83
lea ecx, [ebp - 0x84]
push 0x40
push ecx
push 0x2d3
push eax
call edi
test eax, eax
je 0x403655
lea edi, [ebp - 0x84]
lea eax, [ebp - 0x68c]
push 0x31
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x403655
lea eax, [ebp - 0x698]
push esi
push eax
call fcn.004070d9
test eax, eax
jne 0x403609
cmp dword [ebp - 0x698], ebx
je 0x403602
mov esi, 0x403728
jmp 0x40360e
mov esi, 0x4036c8
jmp 0x40360e
mov esi, 0x403668
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x403613
sub eax, ecx
sar eax, 1
lea edi, [eax + 1]
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x403654
mov eax, dword [ebp - 0x690]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x690]
push esi
push edi
push ebx
mov dword [eax], ebx
call fcn.00401ef3
pop esi
push dword [ebp - 0x694]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x402bd6
Function at 0x402caa
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
or eax, eax
je 0x402cc3
call fcn.00402cc9
test al, al
je 0x403072
ret
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffb80
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x224], 0
push ebx
push 0x206
lea eax, [ebp - 0x222]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.00402e9e
test eax, eax
je 0x40317a
push esi
push edi
push 6
pop ecx
push ebx
lea edi, [ebp - 0x42c]
push edi
lea eax, [ebp - 0x224]
mov esi, 0x403198
lea edi, [ebp - 0x1c]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or eax, eax
je 0x403178
lea eax, [ebp - 0x42c]
lea edi, [ebp - 0x1c]
push edi
push eax
push 0x403188
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.004031b5
sub esp, 0xffffffec
test eax, eax
jl 0x403178
push 0x44
lea eax, [ebp - 0x480]
pop edi
xor ebx, ebx
push edi
push ebx
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x480], edi
xor eax, eax
add esp, 0xc
lea esi, [ebp - 0x43c]
lea edi, [ebp - 0x43c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
lea esi, [ebp - 0x480]
lea eax, [ebp - 0x224]
push esi
push ebx
push ebx
push 0x8000020
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403178
push dword [ebp - 0x43c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x438]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040165d
leave
ret
Function at 0x402e9e
Capabilities:
Accept command line arguments
Persist via active setup registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xffffff30
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push 0x2e
pop ecx
mov esi, 0x402fb8
lea edi, [ebp - 0xc0]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc8]
push eax
push 1
movsw word es:[edi], word [esi]
xor edi, edi
push edi
lea eax, [ebp - 0xc0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or eax, eax
jne 0x402f83
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push edi
push ebx
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc4], edi
call sub.msvcrt.dll_memset
lea eax, [ebp - 0xcc]
sub esp, 0xfffffff4
push eax
push ebx
lea eax, [ebp - 0xc4]
push eax
push edi
push 0x402fa4
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or eax, eax
jne 0x402f77
cmp dword [ebp - 0xc4], 1
jne 0x402f96
mov eax, dword [ebp - 0xcc]
shr eax, 1
mov word [ebx + eax*2 - 2], di
lea eax, [ebp - 0xd0]
push eax
push ebx
mov dword [ebp - 0xd0], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, edi
je 0x402f77
push dword [esi]
push dword [ebp + 0xc]
push ebx
call fcn.00401ef3
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
inc edi
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0040165d
leave
ret 8
cmp dword [ebp - 0xc4], 2
jne 0x402f77
jmp 0x402f3b

Function at 0x406b83
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40b62c]
or eax, eax
jne 0x406c40
push 0x11c
push eax
lea eax, [ebp - 0x328]
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x328]
sub esp, 0xfffffff4
push eax
mov dword [ebp - 0x328], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406c32
cmp dword [ebp - 0x318], 2
jne 0x406c28
cmp dword [ebp - 0x324], 6
jae 0x406c28
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x40b058]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x406c32
lea eax, [ebp - 0x20c]
push 0
push 8
push eax
call fcn.00407f43
cmp eax, dword [0x40b058]
mov dword [0x40b62c], eax
jne 0x406c32
push eax
call fcn.00407903
jmp 0x406c32
mov eax, dword [0x40b058]
mov dword [0x40b62c], eax
mov eax, dword [0x40b62c]
test eax, eax
jne 0x406c40
mov eax, dword [0x40b058]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040165d
leave
ret

Function at 0x407518
Capabilities:
Parse pe header

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40752b
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407527
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
pop ebp
sete cl
mov eax, ecx
ret