joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df3d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x40df57
push dword [ebp + 0x14]
call fcn.0040d65b
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
test dword [ecx + edi*8 - 0x7a380001], ecx
jl 0x40df5c
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0040d6a6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040d65b
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0040d6a6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040d65b
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0040d696
jno 0x40e124
invalid
stc
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.0040d6a6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040d65b
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0040d696
dec eax
popfd
bnd js 0x40e124
movsd dword es:[edi], dword [esi]
pushfd
stc
invalid
Function at 0x4025a9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
lea ecx, [ebp - 0xc]
call fcn.00411480
lea ecx, [ebp - 0x18]
call fcn.00411480
push 0x3c
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00416930
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, 0x740
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], 0xa
test bl, 1
je 0x402601
mov ecx, 0x8740
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], ecx
test bl, 2
mov eax, str.runas
cmove eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
and ebx, 0x10000
jne 0x402621
or ecx, 0x100
mov dword [ebp - 0x50], ecx
mov eax, dword [0x430e6c]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404cf6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004115b2
cmp dword [ebp - 8], esi
je 0x402689
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40268c
test ebx, ebx
jne 0x402680
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
push dword [ebp - 0x18]
call fcn.00419909
push dword [ebp - 0xc]
call fcn.00419909
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x402900
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.0040323d
xor edi, edi
mov dword [0x430e5c], esi
lea eax, [ebp - 4]
mov dword [0x430e64], edi
push eax
push edi
push esi
push 0x402cd8
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, eax
mov dword [0x430e60], edx
test edx, edx
je 0x402960
cmp dword [0x430e98], 2
je 0x402951
call fcn.004083b3
mov edx, dword [0x430e60]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x430e60]
mov eax, dword [0x430e64]
mov dword [0x430ffc], edi
test eax, eax
je 0x4029a2
cmp eax, 1
je 0x402996
cmp eax, 2
je 0x402992
cmp eax, 3
je 0x40298e
cmp eax, 0x67
jle 0x402988
cmp eax, 0x6b
jle 0x402a06
push eax
push 0x14
push edi
jmp 0x4029fe
push 0x12
jmp 0x402998
push 0x13
jmp 0x402998
push 0x11
push edi
call fcn.00409adb
pop ecx
pop ecx
jmp 0x402a06
mov ecx, edi
mov dword [ebp + 8], ecx
cmp dword [0x431000], ecx
jne 0x402a06
test edx, edx
je 0x4029cd
lea eax, [ebp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x4029cd
test ecx, ecx
jne 0x4029cd
xor eax, eax
jmp 0x402a0b
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x4029df
push ecx
push 0x21
jmp 0x40298b
movzx eax, cx
cmp eax, 0xe
jne 0x4029f0
cmp dword [0x430e9c], 0xffffffff
je 0x402a06
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409adb
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4
Function at 0x403769
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], eax
mov edi, eax
call fcn.00411449
xor esi, esi
lea ecx, [ebp - 0x18]
push esi
call fcn.00404031
push 0x2f
mov ebx, eax
mov eax, dword [ebp + 8]
pop ecx
push 0x5c
pop edx
movzx eax, word [eax + edi*2 - 2]
cmp ax, dx
je 0x4037af
cmp ax, cx
jne 0x4037e3
xor eax, eax
mov word [ebx + edi*2 - 2], ax
dec edi
mov dword [ebp - 4], edi
jmp 0x4037e3
test edi, edi
jle 0x4037db
push 0x2f
pop ecx
push 0x5c
pop edx
movzx eax, word [ebx + edi*2]
cmp ax, cx
je 0x4037d9
cmp ax, dx
je 0x4037d9
dec edi
test edi, edi
jg 0x4037c6
test edi, edi
je 0x403838
xor eax, eax
mov word [ebx + edi*2], ax
push ebx
call fcn.004057e3
pop ecx
test eax, eax
je 0x4037bc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403817
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00404399
pop ecx
pop ecx
test eax, eax
jne 0x4038bc
push ebx
call fcn.004057e3
pop ecx
test eax, eax
jne 0x4038b2
push ebx
push 0xc
push 1
call fcn.00409adb
add esp, 0xc
jmp 0x4038bc
cmp dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
jne 0x403859
mov ax, word [ecx]
or ax, 0x20
sub ax, 0x61
cmp ax, 0x19
ja 0x403859
cmp word [ecx + 2], 0x3a
je 0x4038b9
push ecx
jmp 0x403827
sub eax, edi
lea esi, [ebx + edi*2]
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
push esi
call fcn.00416a90
xor ecx, ecx
lea eax, [edi + 1]
add esp, 0xc
cmp word [esi], cx
cmove eax, edi
mov edi, eax
jmp 0x403896
movzx eax, cx
push 0x5c
pop ecx
cmp ax, cx
je 0x4038a1
push 0x2f
pop ecx
cmp ax, cx
je 0x4038a1
inc edi
movzx eax, word [ebx + edi*2]
mov ecx, eax
test ax, ax
jne 0x403882
xor eax, eax
push ebx
mov word [ebx + edi*2], ax
call fcn.004057e3
pop ecx
test eax, eax
je 0x4038cc
mov eax, dword [ebp - 4]
cmp edi, eax
jl 0x40385c
xor esi, esi
inc esi
push dword [ebp - 0x18]
call fcn.00419909
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push ebx
push 0xc
push 1
call fcn.00409adb
add esp, 0xc
xor esi, esi
jmp 0x4038bc
Function at 0x403be2
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00411480
push 2
mov ecx, edi
call fcn.00404031
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
xor ebx, ebx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], ebx
mov word [eax], cx
test esi, esi
je 0x403c39
inc esi
mov ecx, edi
push esi
call fcn.00404031
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [edi]
push esi
call fcn.00404eab
pop ecx
xor ecx, ecx
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
mov esi, dword [edi + 4]
mov dword [ebp + 8], esi
lea eax, [esi + 0xf]
push eax
mov ecx, edi
call fcn.00404031
push ebx
push dword [ebp + 0xc]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [edi]
push esi
call fcn.00404eab
add esp, 0x10
mov dword [edi + 4], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403c88
mov esi, dword [ebp + 8]
inc ebx
lea eax, [esi + 0xf]
cmp ebx, 0xfff
jl 0x403c42
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403c8f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00411449
push 0x426ba8
lea ecx, [ebp - 0xc]
call fcn.00411750
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor esi, esi
cmp ebx, 0xffffffff
je 0x403d6b
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004115b2
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004018e1
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00411750
test byte [ebp - 0x25c], 0x10
je 0x403d33
push 0x426bb0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403d4e
push 0x426bb4
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403d4e
push dword [ebp - 0xc]
call fcn.00403c8f
pop ecx
jmp 0x403d4a
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x403d95
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403d95
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403ccf
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x430ed8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x403d95
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403d95
xor esi, esi
inc esi
push dword [ebp - 0xc]
call fcn.00419909
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4041e0
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4300c0]
sub esp, 0xa0
push esi
push edi
xor edi, edi
mov esi, edi
jmp 0x404207
cmp eax, dword [ebp + 8]
je 0x40420b
inc esi
mov eax, esi
shl eax, 4
mov eax, dword [eax + 0x4300c0]
test eax, eax
jne 0x4041f6
shl esi, 4
cmp dword [esi + 0x4300c0], edi
jne 0x404220
mov eax, 0x426a08
jmp 0x404395
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x60]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x60]
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
mov dword [ebp - 4], edi
call ebx
push 2
pop edx
test eax, eax
jne 0x4042ca
xor ecx, ecx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419900
pop ecx
mov ecx, dword [ebp - 4]
mov edi, eax
inc ecx
lea eax, [ebp - 0x60]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 4]
ja 0x4042c3
call ebx
test eax, eax
jne 0x4042c3
mov eax, dword [esi + 0x4300cc]
test eax, eax
je 0x4042bb
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4042c3
push 2
pop eax
push eax
push dword [esi + 0x4300cc]
call fcn.004198f2
pop ecx
mov dword [esi + 0x4300cc], edi
jmp 0x4042c9
mov dword [esi + 0x4300cc], edi
jmp 0x4042ca
push edi
call fcn.00419909
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x4300cc]
test eax, eax
jne 0x404394
mov ebx, dword [esi + 0x4300c4]
cmp dword [esi + 0x4300c8], eax
je 0x404302
call fcn.0040478c
cmp eax, dword [0x426db0]
jne 0x404302
mov ebx, dword [esi + 0x4300c8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
push 2
pop edx
lea edi, [eax + 1]
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419900
pop ecx
mov ecx, dword [0x4300bc]
mov dword [esi + 0x4300cc], eax
cmp ecx, 0xffffffff
jne 0x404379
and dword [0x4300bc], 0
lea eax, [ebp - 0xa0]
push 0x1f
push eax
movzx eax, word [0x430e68]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x404373
lea eax, [ebp - 0xa0]
push eax
call fcn.0041b0f0
pop ecx
mov ecx, eax
mov dword [0x4300bc], ecx
jmp 0x404379
mov ecx, dword [0x4300bc]
lea eax, [edi + 1]
push eax
push dword [esi + 0x4300cc]
push edi
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x4300cc]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x404dc3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.00411480
mov ecx, dword [ebp + 8]
lea esi, [edi + 2]
push esi
call fcn.00404031
lea eax, [edi + 1]
mov edi, dword [ebp + 8]
push eax
push esi
mov ecx, edi
call fcn.00404031
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [edi]
push esi
call fcn.00404eab
pop ecx
mov dword [edi + 4], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4057e3
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405825
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x405810
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x405828
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405825
test al, 0x10
jne 0x405825
push esi
jmp 0x405806
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x405a7a
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
push ebx
push edi
push 0x3a
pop edx
cmp word [eax + 2], dx
jne 0x405bfc
movzx ecx, word [eax + 4]
push esi
push 0x5c
pop esi
cmp cx, si
je 0x405aa8
cmp ecx, 0x2f
jne 0x405bfb
mov ax, word [eax]
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], dx
mov word [ebp - 8], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x405bf8
lea eax, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403be2
pop ecx
pop ecx
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405bef
lea ecx, [ebp - 0x18]
call fcn.00411480
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.004115b2
mov ebx, str.del__
lea ecx, [ebp - 0x18]
push ebx
call fcn.00411750
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00411712
mov esi, 0x427c74
lea ecx, [ebp - 0x18]
push esi
call fcn.00411750
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.00411750
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00411712
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00411750
push ebx
lea ecx, [ebp - 0x18]
call fcn.00411750
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00411712
push esi
lea ecx, [ebp - 0x18]
call fcn.00411750
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 1
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00405873
add esp, 0xc
lea ecx, [ebp - 4]
xor ebx, ebx
push ebx
push ecx
push esi
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call fcn.00419909
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x405c07
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x405c07
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x24]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call fcn.00419909
pop ecx
push dword [ebp - 0x24]
call fcn.00419909
pop ecx
mov eax, dword [ebp + 8]
pop esi
push eax
call fcn.00419909
pop ecx
pop edi
pop ebx
leave
ret
push dword [ebp - 0x24]
call fcn.00403da4
push dword [ebp - 0x18]
call fcn.00419909
push dword [ebp - 0x24]
call fcn.00419909
add esp, 0xc
jmp 0x405bf8
Function at 0x406323
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x430fd8], esi
jle 0x406377
mov eax, dword [0x430fd4]
lea ecx, [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.00411418
lea eax, [ebp - 0xc]
push eax
call fcn.00405f4e
mov eax, dword [0x430fd4]
pop ecx
push dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call fcn.00419909
inc esi
pop ecx
cmp esi, dword [0x430fd8]
jl 0x406334
pop esi
leave
ret

Function at 0x406390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push 0x4279ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x430eb8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040a376
call fcn.0040478c
push 3
call fcn.004041e0
push 0x28
mov dword [0x430e7c], eax
call fcn.004041e0
push 2
mov dword [0x430ebc], eax
call fcn.004041e0
push 5
mov dword [0x430e78], eax
call fcn.004041e0
push 0x15
mov dword [0x430e84], eax
call fcn.004041e0
push 0x16
mov dword [0x430e88], eax
call fcn.004041e0
push 0x17
mov dword [0x430e8c], eax
call fcn.004041e0
add esp, 0x1c
mov dword [0x430e94], eax
xor ebx, ebx
mov dword [0x430e90], ebx
mov esi, ebx
mov dword [0x430e80], ebx
push ebx
push esi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406484
push esi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040575f
add esp, 0x18
mov edi, ebx
cmp dword [edi + 0x4303c4], esi
jne 0x40647c
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [edi + 0x4303c8]
call fcn.0040575f
add esp, 0xc
add edi, 8
cmp edi, 0x28
jb 0x40645e
inc esi
cmp esi, 0x40
jl 0x406423
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40775d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0041b7fe
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00407688
add esp, 0x1c
leave
ret
Function at 0x408cc1
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov esi, 0x4b6
push eax
push esi
mov edi, ecx
call fcn.0040841d
mov eax, dword [ebp - 4]
mov ecx, edi
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push esi
mov dword [edi + 0x58], eax
call fcn.00409cef
push 1
lea ebx, [esi + 1]
mov ecx, edi
push ebx
call fcn.00409cef
mov esi, 0x2b4
lea eax, [ebp - 0x2c4]
push esi
push 0
push eax
call fcn.00416930
add esp, 0xc
lea eax, [ebp - 0x4d0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push esi
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push ebx
push dword [edi + 4]
mov dword [edi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407d79
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, edi
mov dword [edi + 0x54], eax
call fcn.00408753
mov ecx, edi
mov esi, eax
call fcn.004097c9
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x409ca0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00408500
test eax, eax
jne 0x409cbe
push eax
push eax
push esi
push 0x409ee4
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x430e78]
mov ecx, esi
push dword [esi + 4]
call fcn.004099ce
push 0x2d
call fcn.004041e0
pop ecx
push eax
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.004099ce
pop esi
ret

Function at 0x40a376
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x40a37e
mov dword [edx*4 + 0x433ce0], ecx
inc edx
cmp edx, 0x100
jb 0x40a379
mov esi, 0x800
jmp 0x40a3c6
mov ecx, dword [edx*4 + 0x4338e0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x433ce0]
mov dword [edx*4 + 0x433ce0], ecx
inc edx
cmp edx, esi
jb 0x40a3aa
mov eax, 0x424b80
mov esi, 0x424aa0
mov dword [0x433cc0], eax
mov dword [0x433cb8], eax
mov dword [0x433cbc], esi
call fcn.0040fdcd
mov ecx, dword [0x433cb8]
test eax, eax
cmove ecx, esi
mov dword [0x433cb8], ecx
pop esi
ret