joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]

Function at 0x42f0e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc ebp
cld
mov eax, dword [eax + 0x20]
test eax, eax
jbe 0x42f2d2
xchg cl, ah
add dword [eax], eax
invalid
mov dword [ebp - 0x20], eax

Function at 0x42f0ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc ebp
cld
mov eax, dword [eax + 0x20]
test eax, eax
jbe 0x42f2d2
xchg cl, ah
add dword [eax], eax
invalid
mov dword [ebp - 0x20], eax
Function at 0x473f7c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
sbb al, 0x38
xchg esp, eax
xchg edi, eax
or eax, 0x433f53c7
aas
inc ebx

Function at 0x473f84
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
sbb al, 0x38
xchg esp, eax
xchg edi, eax
or eax, 0x433f53c7
aas
inc ebx

Function at 0x473f8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
hlt
loope 0x473f93
not cl
xchg ebx, eax
and ebp, dword [edx]
sub al, byte [edx + 9]
arpl word [edx - 0x65], si
mov ch, bh
sahf
sti
imul eax, dword [esi - 5], 0x235e3276
pop esi
and eax, dword [edx]
out dx, eax
inc esi
sti
jbe 0x473f7e
adc ah, dh
int1
mov ds, word [ecx + 0x65b70bb6]
div bh
invalid
or dword [eax], edx
imul byte [eax + ebp]
cmp byte [edi + edx*4 + 0x3f53c70d], dl
inc ebx
dec ebp
rcl dword [esi], 5
mov eax, dword [0x37779d3d]
cmp eax, 0xd837779d
mov ch, 0xb4
loopne 0x473f1e
invalid
loopne 0x473f1e
rcr esp, 1
push edx
push 0x7a
wait
fcom qword [edx + 0x6a]
jp 0x473f36
ja 0x473fbe
sar dword [ecx + 0x77b062f], 0x82
mov ch, 0xf3
inc ebp
pop ebx
mov esp, 0xfa83c1ff
cli
nop
jne 0x473f48
mov al, ah
jo 0x473f6d

Function at 0x473f9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
hlt
loope 0x473f93
not cl
xchg ebx, eax
and ebp, dword [edx]
sub al, byte [edx + 9]
arpl word [edx - 0x65], si
mov ch, bh
sahf
sti
imul eax, dword [esi - 5], 0x235e3276
pop esi
and eax, dword [edx]
out dx, eax
inc esi
sti
jbe 0x473f7e
adc ah, dh
int1
mov ds, word [ecx + 0x65b70bb6]
div bh
invalid
or dword [eax], edx
imul byte [eax + ebp]
cmp byte [edi + edx*4 + 0x3f53c70d], dl
inc ebx
dec ebp
rcl dword [esi], 5
mov eax, dword [0x37779d3d]
cmp eax, 0xd837779d
mov ch, 0xb4
loopne 0x473f1e
invalid
loopne 0x473f1e
rcr esp, 1
push edx
push 0x7a
wait
fcom qword [edx + 0x6a]
jp 0x473f36
ja 0x473fbe
sar dword [ecx + 0x77b062f], 0x82
mov ch, 0xf3
inc ebp
pop ebx
mov esp, 0xfa83c1ff
cli
nop
jne 0x473f48
mov al, ah
jo 0x473f6d

Function at 0x473fa4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
leave
xchg ecx, eax
insd dword es:[edi], dx
fimul dword [ebp - 0x1309513d]
loope 0x473f60
invalid
mov ss, esi
xor dword [eax], 0x3b
and eax, 0x102b0542
adc al, byte [ebx]
das

Function at 0x473fbc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
hlt
loope 0x473f93
not cl
xchg ebx, eax
and ebp, dword [edx]
sub al, byte [edx + 9]
arpl word [edx - 0x65], si
mov ch, bh
sahf
sti
imul eax, dword [esi - 5], 0x235e3276
pop esi
and eax, dword [edx]
out dx, eax
inc esi
sti
jbe 0x473f7e
adc ah, dh
int1
mov ds, word [ecx + 0x65b70bb6]
div bh
invalid
or dword [eax], edx
imul byte [eax + ebp]
cmp byte [edi + edx*4 + 0x3f53c70d], dl
inc ebx
dec ebp
rcl dword [esi], 5
mov eax, dword [0x37779d3d]
cmp eax, 0xd837779d
mov ch, 0xb4
loopne 0x473f1e
invalid
loopne 0x473f1e
rcr esp, 1
push edx
push 0x7a
wait
fcom qword [edx + 0x6a]
jp 0x473f36
ja 0x473fbe
sar dword [ecx + 0x77b062f], 0x82
mov ch, 0xf3
inc ebp
pop ebx
mov esp, 0xfa83c1ff
cli
nop
jne 0x473f48
mov al, ah
jo 0x473f6d
Function at 0x4bb771
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33c8
cmp edx, dword [eax]
je 0x4bb793
add eax, 8
inc ecx
cmp eax, 0x4c3458
jl 0x4bb784
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33c8]
jne 0x4bb8c1
mov eax, dword [0x4c8df0]
cmp eax, 1
je 0x4bb89b
test eax, eax
jne 0x4bb7c4
cmp dword [0x4c32f4], 1
je 0x4bb89b
cmp edx, 0xfc
je 0x4bb8c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb7fb
lea eax, [ebp - 0x1a4]
push 0x4c09b8
push eax
call fcn.004bc150
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc5e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb83e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc5e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c09b4
push edi
call fcn.004be4b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0998
push eax
call fcn.004bc150
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc160
lea eax, [ebp - 0xa0]
push 0x4c0994
push eax
call fcn.004bc160
push dword [esi + 0x4c33cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc160
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c096c
push eax
call fcn.004be424
add esp, 0x2c
pop edi
jmp 0x4bb8c1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33cc]
push 0
push eax
push dword [esi]
call fcn.004bc5e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x1001ca60
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1001cbb5
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x1001ca8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1001ca91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1001ca80
mov eax, 1
add ebx, ebx
jne 0x1001caa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1001ca98
jne 0x1001cab4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1001ca98
xor ecx, ecx
sub eax, 3
jb 0x1001cac8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1001cb3a
mov ebp, eax
add ebx, ebx
jne 0x1001cad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1001cae0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1001cb04
inc ecx
add ebx, ebx
jne 0x1001caf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1001cae5
jne 0x1001cb01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1001cae5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1001cb24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1001cb15
jmp 0x1001ca86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1001cb24
add edi, ecx
jmp 0x1001ca86
pop esi
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x1001cb83
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c2b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c2f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1001cb41
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c2f8]
or eax, eax
je 0x1001cb7d
mov dword [ebx], eax
add ebx, 4
jmp 0x1001cb5e
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1001cbb4
cmp al, 0xef
ja 0x1001cba7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1001cb89
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1001cb96
popal
jmp 0x100110e1
Function at 0x401460
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov dword [esp], str.Enter_the_filename__without_path_:
call sub.msvcrt.dll_printf
lea eax, [ebp - 0x75]
mov dword [esp + 4], eax
mov dword [esp], 0x40b088
call sub.msvcrt.dll_scanf
lea eax, [ebp - 0x75]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.notes__s
mov dword [esp + 4], 0x96
lea eax, [ebp - 0x10b]
mov dword [esp], eax
call fcn.004028b0
mov dword [esp + 4], 0x40b094
lea eax, [ebp - 0x10b]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4014e4
mov dword [esp], str.Error:_Could_not_open_file_for_writing_
call sub.msvcrt.dll_puts
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov dword [esp], 0x40b0c0
call sub.msvcrt.dll_system
mov dword [esp], str.Enter_text_for_the_file__press_ESC_to_save_and_exit_:
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_getchar
mov dword [esp], 0x40b0fc
call sub.msvcrt.dll_printf
mov dword [ebp - 0xc], 0
call sub.msvcrt.dll__getch
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0x1b
jne 0x401580
mov dword [esp], str._n_ESC_detected._Exiting..._
call sub.msvcrt.dll_puts
mov dword [esp], 0x5dc
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
lea eax, [ebp - 0x10b]
mov dword [esp + 4], eax
mov dword [esp], str.Text_written_to__s_successfully__n
call sub.msvcrt.dll_printf
mov dword [esp], 0xa
call sub.msvcrt.dll_putchar
mov dword [esp], str.Press_Enter_to_proceed...
call sub.msvcrt.dll_printf
call sub.msvcrt.dll_getchar
jmp 0x401605
cmp byte [ebp - 0x11], 0xd
jne 0x401596
lea edx, [ebp - 0x16f]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
jmp 0x4015e3
cmp byte [ebp - 0x11], 8
jne 0x4015b4
cmp dword [ebp - 0xc], 0
jle 0x4015b4
mov dword [esp], 0x40b15a
call sub.msvcrt.dll_printf
sub dword [ebp - 0xc], 1
jmp 0x4015de
cmp byte [ebp - 0x11], 8
je 0x401514
movsx eax, byte [ebp - 0x11]
mov dword [esp], eax
call sub.msvcrt.dll_putchar
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
movzx edx, byte [ebp - 0x11]
mov byte [ebp + eax - 0x16f], dl
jmp 0x401514
lea eax, [ebp - 0x16f]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40b15e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x401501
leave
ret
Function at 0x4022c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x40230b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402304
test esi, esi
je 0x402304
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4022e0
mov dword [esp], 0x40e044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4024f0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402618
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40257e
cmp eax, 4
jne 0x4025a0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40258e
cmp edx, 4
je 0x40258e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004024f0
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402ec4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a9624
call fcn.004a8254
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
and dword [edi + 0xc], 0
and dword [ebp - 4], 0
lea ebx, [edi + 0x14]
mov esi, ebx
mov dword [edi], vtable.TiXmlAttribute.0
call fcn.00402f9e
lea esi, [edi + 0x30]
call fcn.00402f9e
push dword [ebp + 0xc]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402f32
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00402f32
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x405f56
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405f6d
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405fa2
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405f9e
cmp edi, eax
jae 0x405fa2
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405f90
cmp edi, eax
jb 0x405fa6
xor eax, eax
jmp 0x405fb0
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x406148
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x4061d6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x40617f
cmp dword [ebp - 8], 2
jne 0x4061d5
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405d72
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405bfd
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4061bd
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4061cd
push eax
call fcn.0047b48a
pop ecx
mov edx, esi
call fcn.00405bdc
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x4065af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4065c6
test al, 0x10
je 0x4065c6
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x408ebc
Capabilities:
Create directory

Disassembly:
mov eax, 0x4aa345
call fcn.004a8254
sub esp, 0x38
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x28]
call fcn.00409005
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
mov dword [ebp + 8], 0x5c
call fcn.00409093
cmp eax, 0xffffffff
je 0x408fb3
push eax
lea eax, [ebp - 0x28]
push eax
lea esi, [ebp - 0x44]
call fcn.00409031
cmp dword [eax + 0x18], 8
jb 0x408f10
mov eax, dword [eax + 4]
jmp 0x408f13
add eax, 4
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
push 1
lea esi, [ebp - 0x44]
mov edi, eax
call fcn.00406802
cmp edi, ebx
je 0x408f68
cmp edi, 0x50
je 0x408f68
cmp edi, 0xb7
je 0x408f68
cmp edi, ebx
jle 0x408f4a
and edi, 0xffff
or edi, 0x80070000
push ebx
push 1
lea esi, [ebp - 0x28]
call fcn.00406802
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x408f74
lea eax, [ebp - 0x24]
push ebx
push 0x80
push 1
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x408fa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x408fa4
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x408f4a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x408f4a
mov edi, 0x80070057
jmp 0x408f4a

Function at 0x4093a3
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x4093d1
push dword [esp + 0xc]
call fcn.0047b48a
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4093d1
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x4093eb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x409474
push ebx
call fcn.0047794d
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x409465
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b95bc
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x409465
cmp dword [ebp - 0xc], ebx
je 0x409465
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x409474
push dword [ebp - 4]
call fcn.0047a4c4
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret
Function at 0x4094b0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4aa10b
call fcn.004a8254
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4da2a0
mov dword [ebp - 0x10], edi
call fcn.00405ea3
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.00478300
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040607b
push esi
call fcn.0040a67c
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40960b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.00478300
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x409664
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x409727
mov eax, dword [ebp - 0x94]
dec eax
je 0x409713
dec eax
jne 0x409727
mov eax, dword [ebp - 0xa0]
mov esi, dword [ebp - 0x9c]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x4096b1
cmp esi, edx
jne 0x40969f
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x40970f
cmp esi, edi
jne 0x4096e9
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x40970f
cmp eax, 5
jne 0x4096db
cmp dword [ebp - 0x9c], 2
jne 0x4096c2
push eax
jmp 0x4096e2
cmp dword [ebp - 0x9c], 1
jne 0x4096cf
mov edi, ecx
jmp 0x409727
cmp dword [ebp - 0x9c], edi
jne 0x409727
push 3
jmp 0x4096e2
cmp eax, 4
ja 0x4096e5
push 4
pop edi
jmp 0x409727
cmp eax, ecx
jb 0x409727
cmp esi, 2
jae 0x4096f2
cmp eax, ecx
jbe 0x4096f9
cmp byte [ebp + 0x76], dl
je 0x40970a
cmp eax, ecx
jb 0x409700
cmp esi, 2
jae 0x409704
cmp eax, ecx
jbe 0x409727
cmp byte [ebp + 0x76], 3
jne 0x409727
call fcn.00409533
mov edi, eax
jmp 0x409727
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret