joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push 1
pop esi
lea eax, [ebp - 0xb8]
push eax
mov dword [0x413110], esi
mov dword [ebp - 0xb8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xa8]
sub eax, 0
je 0x405362
dec eax
je 0x40535a
dec eax
jne 0x40536c
lea eax, [ebp - 0x24]
mov dword [0x413110], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
push 4
sub eax, 0
pop ecx
je 0x405352
dec eax
je 0x40534c
dec eax
je 0x405340
dec eax
jne 0x405352
mov dword [0x413110], 5
jmp 0x405352
mov dword [0x413110], 3
jmp 0x405352
mov dword [0x413110], ecx
cmp dword [ebp - 0xb4], ecx
jb 0x40536c
mov dword [0x41310c], esi
jmp 0x40536c
mov dword [0x413110], 7
pop esi
leave
ret
Function at 0x405948
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x412b7c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
shl eax, 0xa
add ebx, eax
lea eax, [ebp - 0x108]
push str.TEMP
push eax
call esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00405d13
mov edi, dword [ebp + 0xc]
pop ecx
test eax, eax
pop ecx
je 0x4059b8
push eax
push edi
call esi
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push edi
call fcn.00405af0
pop ecx
test eax, eax
pop ecx
je 0x4059b8
push edi
call fcn.00405a8e
test eax, eax
pop ecx
jne 0x405a1c
push 0x105
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x4059e0
push ebx
push edi
call fcn.00405af0
pop ecx
test eax, eax
pop ecx
je 0x4059e0
push edi
call fcn.00405a8e
test eax, eax
pop ecx
jne 0x405a1c
push 0x412744
push edi
call esi
push edi
push ebx
push 3
call fcn.00405a24
add esp, 0xc
test eax, eax
jge 0x405a1c
push edi
push ebx
push 4
call fcn.00405a24
add esp, 0xc
test eax, eax
jge 0x405a1c
shr ebx, 0xa
push ebx
push 0x1b97
call fcn.00405c0b
pop ecx
xor eax, eax
pop ecx
jmp 0x405a1f
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405a24
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x405a7d
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.00405af0
pop ecx
test eax, eax
pop ecx
je 0x405a7d
push esi
call fcn.00405a8e
test eax, eax
pop ecx
jne 0x405a8a
inc ebx
cmp ebx, 0x1a
jl 0x405a48
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x405a86

Function at 0x405a8e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push str._INS5566._MP
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push eax
call fcn.00406e97
push 0
push 0x80
push 2
push 0
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [0x4128c0], eax
jge 0x405ad7
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret
Function at 0x405af0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push 0x107
push 1
call fcn.00403d6e
mov ecx, dword [ebp + 8]
and byte [eax], 0
mov dl, byte [ecx]
mov byte [eax], dl
mov dl, byte [ecx + 1]
mov byte [eax + 1], dl
mov dl, byte [ecx + 2]
and byte [eax + 3], 0
mov byte [eax + 2], dl
movsx cx, byte [ecx]
sub ecx, 0x40
cmp cx, 0x1a
jbe 0x405b33
add ecx, 0xffe0
test cx, cx
jbe 0x405b74
cmp cx, 0x1a
ja 0x405b74
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x405b74
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004062e2
add esp, 0xc
cmp eax, dword [ebp + 0xc]
jbe 0x405b74
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x405fd1
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
cmp dword [esp + 0x2c], esi
push edi
je 0x40603d
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea eax, [esp + 0x18]
push esi
push eax
call edi
test eax, eax
je 0x4060ca
push dword [0x4130cc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40601d
lea eax, [esp + 0x10]
push eax
push dword [0x4130cc]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x406033
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [esp + 0x18]
push esi
push eax
jmp 0x405fee
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push esi
mov edi, eax
push esi
push esi
lea eax, [esp + 0x1c]
push esi
add edi, 0x1f4
push eax
call ebp
test eax, eax
je 0x4060cf
call ebx
cmp eax, edi
jae 0x4060cf
cmp dword [esp + 0x14], 0x12
je 0x4060c3
push dword [0x4130cc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x406094
lea eax, [esp + 0x10]
push eax
push dword [0x4130cc]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x4060b8
push esi
push esi
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push esi
push eax
jmp 0x40605c
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
pop eax
jmp 0x4060d1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4064b5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x4064c7
push 0x40f3dc
jmp 0x4064c8
push esi
push dword [ebp + 8]
push str.INSTALL.EXE
call fcn.00406514
add esp, 0xc
push esi
push dword [ebp + 8]
push str.ZDATA.DLL
call fcn.00406514
add esp, 0xc
push esi
push dword [ebp + 8]
push str.WUTL95I.DLL
call fcn.00406514
add esp, 0xc
cmp dword [0x40f18c], esi
je 0x40650e
push dword [0x4130d4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
pop esi
pop ebp
ret

Function at 0x406514
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
lea eax, [ebp - 0x324]
push eax
push dword [ebp + 8]
push dword [0x412fa8]
call fcn.00403f0d
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x108]
push dword [ebp + 0xc]
push eax
call fcn.00406e97
cmp dword [ebp + 0x10], 0
je 0x40655d
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
call fcn.0040706a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret

Function at 0x4065fb
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x214
and dword [esp], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x228]
mov esi, str.NOT_POSSIBLE_VALUE
mov ebp, str.main
push dword [esp + 0x10]
push str.file_d
push edi
call ebx
add esp, 0xc
lea eax, [esp + 0x14]
push dword [0x4130d4]
push 0x105
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x406664
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x14
jl 0x406621
push dword [0x4130d4]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [esp + 0x230]
push ebp
push edi
call esi
push dword [0x4130d4]
push dword [esp + 0x234]
push 0x40f42c
push edi
call esi
push dword [0x413114]
lea eax, [esp + 0x120]
push 0x40f05c
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x11c]
push dword [0x4130d4]
push eax
push str.exeostype
push edi
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x40670b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x105
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
push edi
call fcn.00406dde
push str._iserr31.ini
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x220]
push 0x20a
mov esi, 0x1b9c
push eax
push esi
call fcn.004052a3
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call fcn.00406930
pop ecx
lea eax, [ebp - 0x220]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
lea eax, [ebp - 0x14]
mov ebx, str.SharedErrors
push eax
push ebx
call edi
lea eax, [ebp - 0x220]
push 0x20a
push eax
push 0x1b97
call fcn.004052a3
push 0x1b97
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call fcn.00406930
pop ecx
lea eax, [ebp - 0x220]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
lea eax, [ebp - 0x220]
push 0x20a
push eax
push 0x1b98
call fcn.004052a3
push 0x1b98
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call fcn.00406930
pop ecx
lea eax, [ebp - 0x220]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
lea eax, [ebp - 0x220]
push 0x20a
push eax
push 0x1bc6
call fcn.004052a3
push 0x1bc6
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call fcn.00406930
pop ecx
lea eax, [ebp - 0x220]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40686a
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebx
push esi
push edi
push 0x4000
push 1
call fcn.00403d6e
push 0x105
mov ebx, eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
push dword [esp + 0x14]
call fcn.00406dde
push str._isenv31.ini
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x412bc0]
mov esi, ebx
mov eax, dword [ecx]
test eax, eax
je 0x4068d0
mov edi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add edi, 4
lea esi, [esi + eax + 1]
mov eax, dword [edi]
test eax, eax
jne 0x4068b4
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [esp + 0x28]
sub esi, ebx
inc esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x4128c0], eax
mov edi, eax
jne 0x4068ff
xor eax, eax
jmp 0x40692c
push 0
push 0x4128c4
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [0x4128c8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
call fcn.00403dba
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x406c35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push str._INS0432.INI
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00406e97
push 0
push 0x80
push 2
push 0
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x4128c4
push dword [ebp + 0xc]
mov dword [0x4128c0], eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [0x4128c8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop esi
leave
ret

Function at 0x4079b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x412be0]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4079cf
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x412bdc], 1
mov byte [0x412bd8], bl
jne 0x407a29
mov ecx, dword [0x414490]
test ecx, ecx
je 0x407a17
mov esi, dword [0x41448c]
sub esi, 4
cmp esi, ecx
jb 0x407a17
mov eax, dword [esi]
test eax, eax
je 0x407a10
call eax
mov ecx, dword [0x414490]
sub esi, 4
cmp esi, ecx
jae 0x407a02
push 0x40f01c
push 0x40f014
call fcn.00407a60
add esp, 8
push 0x40f024
push 0x40f020
call fcn.00407a60
add esp, 8
test ebx, ebx
jne 0x407a50
push ebp
mov dword [0x412be0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x407bf0
Capabilities:
Encode data using xor

Disassembly:
imul ebp, edi
push 0x695e43
imul esi, esi
imul ebp, ebx, 0x6a40204e
mov bl, 0xd1
dec ecx
jmp 0x407c0a
test eax, 0x41964f40
mov ebp, 0xffff3379
inc ecx
xor ebp, 0xc968
xchg esi, edi
add ebp, 0x5ef
inc ch
imul edi, edx
inc edx
lea eax, [0x92]
add eax, 0xa9b
add ebp, eax
xor edx, ebx
sub ebp, 0xb2c
mov bl, 2
mov eax, ecx
cmp ebp, 0xb7f
jb 0x407c24
mov ah, dl
mov ch, dh
call 0x407ccc
jbe 0x407c64
dec esi
mov dh, bh
adc ebx, 0x67ec9c39
inc edi
imul eax, ebp
and al, 0xf9
cmp al, 0x58
add ebp, ecx
lea edx, [0xfea5c817]
jbe 0x407c7d
dec esi
lea ebp, [0xd8c9b9bf]
or ebp, esi
inc ebp
lea edi, [0x7a0]
xor edi, 0xf99
test dh, 0x73
mov dl, cl
dec ecx
mov esi, 0xfffb4bb0
neg ch
add esi, 0x4a2e3
cmp eax, 0x7214
jb 0x407ca6
mov ebx, esi
sub edi, esi
mov ebp, edi
sub edi, 0x116e
cmp al, 0x7f
cmp eax, 0x9b09
je 0x407cc4
imul ebp, ebx, 0x13921e4a
inc ebp
test ecx, ecx
mov ch, 0xbc
cmp edi, 0x3ba
jae 0x407c8a
pop ebp
movd mm2, ebp
lea ebx, [0x34456a74]
sub ebp, esi
movd esi, mm2
add ah, bl
add esi, 0xfff45b09
imul edi, edx
add esi, 0xc8763
xchg ebp, ebx
lea ebp, [0x2e5b4edb]
xchg edx, eax
mov ebx, ebp
cmp ecx, eax
jae 0x407d01
dec cl
sbb cl, bl
inc eax
ja 0x407d07
bswap ecx
inc ebx
cmp eax, ecx
jbe 0x407d11
imul eax, ecx, 0x6468b6e1
test dl, bh
inc ecx
push 0xffff395a
not cl
pop ebx
lea eax, [0x2406f2c9]
xor ebx, 0xc411
test ch, 0x41
lea edx, [ebx]
mov eax, 0xaf649c3b
add edx, 0x2b5
bswap ebx
xor edx, 0xa062a
jae 0x407d47
add ah, 0xdd
test bh, bl
xor edx, 0xa2301
lea edi, [0xedb70326]
xadd ebp, edx
imul ecx, ebp, 0x26279fe
add ebp, 0x3c
mov eax, ebp
movsx ebx, dx
movzx ebp, di
push esi
inc edx
ret
Function at 0x409de0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4101c0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x409e04
add eax, 8
inc ebp
cmp eax, 0x410250
jb 0x409df5
cmp ecx, dword [ebp*8 + 0x4101c0]
jne 0x409fab
mov eax, dword [0x412bec]
cmp eax, 1
je 0x409f6d
test eax, eax
jne 0x409e30
cmp dword [0x40fdf4], 1
je 0x409f6d
cmp ecx, 0xfc
je 0x409fab
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409e6b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x409eb4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40d590
add ebx, ecx
push ebx
call fcn.0040b580
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d570
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4101c4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040b4f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x414380]
test eax, eax
je 0x409f7e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x409f88
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4101c4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40a6a0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40a85e
push 0x3d
push edi
call fcn.0040bed0
mov esi, eax
add esp, 8
test esi, esi
je 0x40a85e
cmp edi, esi
je 0x40a85e
mov dl, byte [esi + 1]
mov ecx, dword [0x412bc4]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x412bc0]
cmp eax, ecx
jne 0x40a6f7
push eax
call fcn.0040a930
add esp, 4
mov dword [0x412bc0], eax
test eax, eax
jne 0x40a772
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a71e
mov eax, dword [0x412bc8]
test eax, eax
je 0x40a71e
call fcn.00408d30
test eax, eax
je 0x40a76d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x40a72a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040a9a0
add esp, 4
mov dword [0x412bc0], eax
test eax, eax
je 0x40a85e
mov dword [eax], 0
mov eax, dword [0x412bc8]
test eax, eax
jne 0x40a76d
push 4
call fcn.0040a9a0
add esp, 4
mov dword [0x412bc8], eax
test eax, eax
je 0x40a85e
mov dword [eax], 0
mov eax, dword [0x412bc0]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0040a8b0
mov esi, eax
add esp, 8
test esi, esi
jl 0x40a86f
cmp dword [ebx], 0
je 0x40a86f
test ebp, ebp
je 0x40a867
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040aa50
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x40a7c9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x40a7b8
lea eax, [esi*4]
push eax
push ebx
call fcn.0040bd30
add esp, 8
test eax, eax
je 0x40a7e3
mov dword [0x412bc0], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a856
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040a9a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a856
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0040aa50
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x40a7e7
test ebp, ebp
jne 0x40a856
test esi, esi
jge 0x40a879
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040bd30
add esp, 8
test eax, eax
je 0x40a85e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x412bc0], eax
jmp 0x40a7e7
Function at 0x40c9b0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40c9c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40c9cb
xor eax, eax
test eax, eax
je 0x40c9dc
push eax
call fcn.0040c0b0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x71d370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x71d38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x746074
push ecx
mov edi, eax
call fcn.00731198
mov esi, eax
add esp, 8
test esi, esi
jne 0x71d3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0073102e
push esi
call fcn.00730fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x720850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x7208ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x74b720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7208ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.007311e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x7208ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x74b720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x72092a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00732082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x720957
mov word [eax], si
add eax, 2
push eax
call fcn.00732030
add esp, 4
jmp 0x720959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x7208ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7208b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x720ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret