joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406746
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040622c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x40677b
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a5c8], eax
jmp 0x406920
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406796
test eax, eax
je 0x4068cb
test cl, 2
je 0x4068cb
push edi
push ebx
mov esi, 0x427090
push esi
call fcn.00405c14
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4067b9
push str..
push esi
call edi
jmp 0x4067bf
push ebx
call fcn.004061ff
cmp word [ebx], 0
jne 0x4067cf
cmp word [0x427090], 0x5c
jne 0x4067d7
push 0x4082d0
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4068ba
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.00405911
xor edi, edi
cmp word [eax], di
je 0x40681e
cmp word [ebp - 0x28], di
je 0x40681e
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406838
movzx eax, word [esi + 2]
cmp ax, di
je 0x406897
cmp eax, 0x2e
jne 0x406838
cmp word [esi + 4], di
je 0x406897
push esi
push dword [ebp - 4]
call fcn.00405c14
test byte [ebp - 0x25c], 0x10
je 0x40685f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406897
push dword [ebp + 0xc]
push ebx
call fcn.00406746
jmp 0x406897
push ebx
call fcn.00405a3b
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40688f
test byte [ebp + 0xc], 4
je 0x406887
push ebx
push 0xfffffffffffffff1
call fcn.00404bd1
push edi
push ebx
call fcn.00406713
jmp 0x406897
inc dword [0x42a5c8]
jmp 0x406897
push ebx
push 0xfffffffffffffff2
call fcn.00404bd1
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4067fe
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4068bc
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x4068cb
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40691f
cmp dword [ebp - 0xc], esi
je 0x40690f
push ebx
call fcn.00405cf2
test eax, eax
je 0x40691f
push ebx
call fcn.004061d0
push ebx
call fcn.00405a3b
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406917
test byte [ebp + 0xc], 4
je 0x40690f
push ebx
push 0xfffffffffffffff1
call fcn.00404bd1
push esi
push ebx
call fcn.00406713
jmp 0x40691f
inc dword [0x42a5c8]
jmp 0x40691f
push ebx
push 0xffffffffffffffe5
call fcn.00404bd1
pop esi
pop ebx
leave
ret 8
Function at 0x406cbe
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x428094], 0
jne 0x406cfc
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406cd2
mov dword [ecx*4 + 0x428090], eax
inc ecx
cmp ecx, 0x100
jl 0x406ccd
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406d29
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x428090]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406d0a
not eax
pop ebp
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x42859d
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x438ef0
call fcn.004290e4
push 1
call fcn.00428707
pop ecx
test al, al
jne 0x428454
push 7
call fcn.00428eac
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004286d2
mov byte [ebp - 0x24], al
mov eax, dword [0x43f814]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x42844d
test eax, eax
jne 0x4284be
mov dword [0x43f814], ecx
push 0x42c30c
push 0x42c2f4
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4284a1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x428597
push 0x42c2f0
push 0x42c2c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x43f814], 2
jmp 0x4284c3
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00428874
pop ecx
call fcn.00428ea0
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4284f3
push esi
call fcn.004287ea
pop ecx
test al, al
je 0x4284f3
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00428e38
call esi
call fcn.00428ea6
mov esi, eax
cmp dword [esi], edi
je 0x428511
push esi
call fcn.004287ea
pop ecx
test al, al
je 0x428511
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00428fc2
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00428ff5
test al, al
jne 0x42853c
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x428545
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00428891
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x428597
call fcn.00429129
ret
call fcn.004282db
jmp 0x428435

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x26f53891
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
mov ecx, 0x48901a1
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401195
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4011ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4011dd
cmp esi, ecx
jae 0x4011ee
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4011cb
cmp esi, ecx
jae 0x4011ee
cmp word [esi], 0
je 0x4011ee
lfence
mov eax, esi
jmp 0x4011f0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401822
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 0xc]
call fcn.00403531
push str.installsource
lea eax, [ebp - 0xc]
push 0x422460
push eax
call fcn.0040162b
mov esi, dword [ebp - 0xc]
xor edi, edi
inc edi
add esp, 0xc
cmp dword [ebp - 8], edi
jle 0x4018bd
mov eax, dword [ebp - 0x10]
push esi
push dword [eax + edi*4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4018b1
mov ecx, dword [ebp - 8]
lea eax, [edi + 1]
cmp eax, ecx
jge 0x4018b4
mov eax, dword [ebp - 0x10]
push 0x422540
push dword [eax + edi*4 + 4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4018bb
mov ecx, dword [ebp - 8]
inc edi
cmp edi, ecx
jl 0x401880
jmp 0x4018bd
mov bl, 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.00401302
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408525
leave
ret

Function at 0x4018df
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 8]
push str.brand
mov dword [ebp - 8], ebx
call fcn.0040309d
mov esi, str.WUZP
push esi
call fcn.0040ffd1
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.004034a1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [ebp - 8]
xor edi, edi
inc edi
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], edi
jle 0x401957
push esi
push dword [eax + edi*4]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x401955
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x40193c
jmp 0x401957
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.00401302
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408525
leave
ret
Function at 0x401ced
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x18], esi
je 0x401d14
test esi, esi
js 0x401d30
cmp esi, dword [ebx + 0x18]
jge 0x401d30
mov eax, dword [ebx + 0x14]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [ebx + 0x18]
jne 0x401cf9
lea ecx, [ebx + 0x14]
call fcn.00402e1e
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
lea ecx, [ebx + 0x20]
pop ebx
jmp fcn.0040317b
push 1
push 0xc000008c
call fcn.004010aa
int3

Function at 0x401f2d
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x420f4c
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x401f5c
xor al, al
jmp 0x401f90
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x401f75
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0xc], ebx
ja 0x401f8c
cmp dword [ebp - 0x10], 0x40000000
jb 0x401f8e
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408525
leave
ret

Function at 0x401fa0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
mov edi, ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401fd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401fd7
xor al, al
jmp 0x40204b
mov dword [ebp - 8], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 8]
call fcn.00403531
push 0x104
lea ecx, [ebp - 8]
call fcn.00403115
push eax
push ebx
push 0x422750
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004030e9
test esi, esi
je 0x40203e
cmp esi, 0x6f
je 0x40203e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40203e
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 0x20]
call fcn.00403012
mov bl, 1
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401302
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408525
leave
ret 4
Function at 0x40205c
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x402080
xor al, al
jmp 0x40213f
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 0xc]
call fcn.00403531
push 0x104
lea ecx, [ebp - 0xc]
call fcn.00403115
push eax
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.004030e9
test esi, esi
js 0x402130
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.0040309d
push 0x422334
lea ecx, [ebp - 8]
call fcn.00402dc5
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4020f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402125
push 0x42252c
lea ecx, [ebp - 8]
call fcn.00402dc5
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.00401fa0
test al, al
je 0x402125
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 0x24]
call fcn.00403012
mov byte [edi + 0x28], 1
mov bl, 1
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401302
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00401302
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00408525
leave
ret

Function at 0x40214c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 8], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 8]
call fcn.00403531
push 0x800
push ebx
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x4021ba
push str.GetTempPath2W
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4021ba
mov esi, 0x104
lea ecx, [ebp - 8]
push esi
call fcn.00403115
mov ecx, dword [ebp - 0xc]
push eax
push esi
call dword [0x41c248]
call dword [ebp - 0xc]
jmp 0x4021d0
mov esi, 0x104
lea ecx, [ebp - 8]
push esi
call fcn.00403115
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
call fcn.004030e9
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402208
cmp eax, esi
jae 0x402208
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.00401fa0
test al, al
je 0x402208
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 0x24]
call fcn.00403012
mov byte [edi + 0x28], bl
mov bl, 1
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401302
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408525
leave
ret
Function at 0x4022ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x210]
push edi
push eax
mov esi, ecx
call fcn.00408a40
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push edi
push 0x4224e0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40234d
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], edi
push eax
push edi
push 1
push 0x100
push 0x4000002
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileEx]
test eax, eax
js 0x40234d
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x40234f
push eax
call fcn.00402224
test al, al
mov eax, dword [ebp - 0x214]
jne 0x40234f
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x41c248]
call esi
mov eax, edi
jmp 0x40234f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408525
leave
ret

Function at 0x40235d
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 8], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 8]
call fcn.00403531
mov esi, 0x104
lea ecx, [ebp - 8]
push esi
call fcn.00403115
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004030e9
test esi, esi
je 0x40243d
cmp esi, 0x104
jae 0x40243d
push dword [edi + 0x20]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.0040309d
push 0x422374
lea ecx, [ebp - 0xc]
call fcn.00402dc5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov dword [ebp - 0x14], eax
cmp eax, 1
je 0x4023f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0xc]
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402418
cmp dword [ebp - 0x14], 1
jne 0x402435
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
jmp 0x402435
cmp dword [ebp - 0x14], 1
jne 0x402427
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
lea eax, [ebp - 0xc]
push eax
lea ecx, [edi + 0x14]
call fcn.00402e59
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.00401302
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401302
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408525
leave
ret
Function at 0x402925
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push 3
push esi
push esi
push esi
push 0x4224f4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4029b6
push ebx
push edi
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
mov ebx, str.WindowsUpdateAttempts
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402989
cmp dword [ebp - 0x10], edi
jne 0x402989
mov eax, dword [ebp - 8]
jmp 0x40298e
mov eax, esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jae 0x402997
inc eax
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
push edi
push esi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00408525
leave
ret

Function at 0x4029c3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00408a40
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402ac4
cmp eax, esi
jae 0x402ac4
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], edi
push eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x214], edi
call fcn.0040457f
test eax, eax
je 0x402ab9
push ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], edi
push eax
lea ecx, [ebp - 0x218]
call fcn.00404629
mov esi, dword [ebp - 0x210]
cmp dword [esi - 0xc], edi
je 0x402ab1
cmp dword [esi - 0xc], 7
jl 0x402ab1
push edi
lea eax, [ebp - 0x21c]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x4224f4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402ab1
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push edi
push str.WindowsUpdateVersion
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00401302
lea ecx, [ebp - 0x218]
call fcn.0040456b
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408525
leave
ret
Function at 0x403b32
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x425018]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 8], eax
mov al, byte [ebp + 0x10]
mov dword [esi + 0x10], edi
mov byte [esi + 0x14], al
mov byte [esi + 0x15], 1
mov dword [esi + 0x18], edi
test al, al
je 0x403bbf
call fcn.0040132b
push eax
lea ecx, [esp + 0xc]
call fcn.00403531
lea edx, [esp + 8]
mov dword [esp + 0x18], 0x422f8c
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.00405d1c
push dword [esp + 8]
lea eax, [esp + 0x10]
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 8]
mov dword [esi + 0x18], eax
call fcn.00403bfc
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x403be7
lea eax, [esp + 0x20]
push eax
push edi
push esi
push 0x403c70
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00408525
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403d38
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.00403dde
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x403dcb
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 8], eax
test eax, eax
je 0x403dc4
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [ebx + 0xc], edx
test edx, edx
je 0x403dc4
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403dc4
mov ecx, dword [ebp - 0x14]
mov al, 1
mov dword [ebx + 0x10], ecx
jmp 0x403dcd
mov ecx, ebx
call fcn.00403dde
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408525
leave
ret 4

Function at 0x4040ce
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x404132
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x404132
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x404132
cmp dword [edx + ecx], 0x4550
jne 0x404132
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x404117
mov edi, 0x8664
cmp ax, di
je 0x404132
add ecx, 0x98
add ecx, edx
mov eax, dword [ecx]
test eax, eax
je 0x404132
add eax, 0xc
cmp esi, eax
sbb eax, eax
not eax
and eax, ecx
jmp 0x404134
xor eax, eax
pop edi
pop esi
pop ebp
ret 4