joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4078c6
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push 0x40342c
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x10]
push 0x4033a0
mov dword [ebp - 0x440], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
xor edi, edi
push eax
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x430], 0x20019
call fcn.0040923c
test eax, eax
jl 0x407a79
lea eax, [ebp - 0x430]
push eax
push 1
call fcn.00407cdd
cmp eax, edi
jge 0x407965
push eax
push 0x4035d0
push 2
lea eax, [ebp - 0x438]
push edi
push eax
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], 1
call fcn.0040633e
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x430]
lea eax, [ebp - 0x414]
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x407a79
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x428], edi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x424]
push eax
push edi
push edi
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
mov dword [ebp - 0x424], edi
push dword [ebp - 0x41c]
mov dword [ebp - 0x42c], 4
mov dword [ebp - 0x444], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
jne 0x407a2a
cmp dword [ebp - 0x42c], 4
jne 0x407a31
push dword [ebp - 0x424]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407a31
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x418], eax
jae 0x407a79
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x424]
mov edx, dword [ebp - 0x440]
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp - 0x418], eax
cmp eax, dword [ebp + 8]
jae 0x407a79
jmp 0x407a60
cmp eax, 0x103
je 0x407a79
lea eax, [ebp - 0x434]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00407860
test eax, eax
jl 0x407a60
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x407a66
inc dword [ebp - 0x420]
inc dword [ebp - 0x428]
cmp dword [ebp - 0x428], 0x64
jl 0x407999
push dword [ebp - 0x41c]
call fcn.00408c16
mov eax, dword [ebp + 8]
pop edi
pop esi
cmp dword [ebp - 0x418], eax
jbe 0x407a97
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x418]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404945
leave
ret 0xc
Function at 0x407e7d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
cmp ebx, edi
jne 0x407eaa
mov eax, 0x80070057
jmp 0x407f7e
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x18]
mov dword [ebx], edi
call fcn.00407cdd
cmp eax, edi
mov dword [ebp + 0x14], eax
jl 0x407f62
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x407f4e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call esi
cmp eax, edi
jne 0x407f4e
cmp dword [ebp - 4], edi
je 0x407f5a
cmp dword [ebp - 0xc], 1
je 0x407f0c
mov dword [ebp + 0x14], 0x8007000d
jmp 0x407f62
add dword [ebp - 4], 2
push dword [ebp - 4]
call fcn.00406f88
pop ecx
mov dword [ebx], eax
cmp eax, edi
jne 0x407f28
mov dword [ebp + 0x14], 0x8007000e
jmp 0x407f62
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call esi
cmp eax, edi
jne 0x407f4e
mov eax, dword [ebp - 4]
mov ecx, dword [ebx]
shr eax, 1
xor edx, edx
mov word [ecx + eax*2 - 2], dx
jmp 0x407f5d
jle 0x407f5a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], edi
jge 0x407f6c
push dword [ebx]
call fcn.00406fd6
pop ecx
mov dword [ebx], edi
pop esi
cmp dword [ebp - 8], edi
je 0x407f7b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
pop edi
pop ebx
leave
ret 0x14

Function at 0x407f89
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x20]
mov dword [ebp - 4], 2
call fcn.00407cdd
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x40800b
push esi
lea eax, [ebp + 0x20]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 0x24]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x407fda
jle 0x407fd6
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x40800b
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x408002
jle 0x408000
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0x20
Function at 0x40833f
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x40838c
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40839f
cmp dword [ebp + 8], 2
je 0x408389
lea eax, [ebp - 4]
push eax
push 2
push 1
push edi
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x40838c
jmp 0x40839f
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4083a6
call fcn.00406c2e
mov edi, eax
cmp dword [ebp - 4], esi
je 0x4083b4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 0xc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
inc ebx
jmp 0x408647
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x408624
cmp eax, 5
jne 0x408663
mov ecx, dword [ebp + 0x10]
inc ecx
cmp ebx, ecx
jae 0x4086ff
push dword [ebp + 0x14]
call fcn.004085c4
mov dword [ebp - 4], eax
cmp eax, 0x800704c7
je 0x408710
inc ebx
push edi
call esi
cmp eax, 0xffffffff
je 0x408614
test al, 0x10
jne 0x408710
mov dword [ebp - 4], 0x80070057
jmp 0x408710
cmp eax, 3
je 0x408671
cmp eax, 2
jne 0x4086ff
mov eax, dword [ebp + 0xc]
lea esi, [edi + eax*2 - 2]
jmp 0x408687
cmp word [esi], 0x5c
je 0x40868b
test eax, eax
jbe 0x40868d
dec esi
dec esi
dec eax
cmp esi, edi
ja 0x40867a
test eax, eax
je 0x408657
cmp esi, edi
je 0x408657
cmp eax, 2
jbe 0x4086b7
push dword [ebp + 0x14]
xor ecx, ecx
push dword [ebp + 0x10]
mov word [esi], cx
push eax
push edi
call fcn.004085f9
push 0x5c
pop ecx
mov dword [ebp - 4], eax
mov word [esi], cx
test eax, eax
jl 0x408710
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
inc ebx
jmp 0x4086ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x4086d2
cmp eax, 5
jne 0x4086f8
mov ecx, dword [ebp + 0x10]
inc ecx
cmp ebx, ecx
jae 0x4086ff
push dword [ebp + 0x14]
call fcn.004085c4
mov dword [ebp - 4], eax
cmp eax, 0x800704c7
je 0x408710
inc ebx
push 0
push edi
call esi
test eax, eax
je 0x4086c2
jmp 0x408710
cmp eax, 0xb7
je 0x408710
test eax, eax
jle 0x40870d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40871f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
je 0x40882f
push dword [ebp + 8]
call fcn.0040857f
test eax, eax
je 0x40882f
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], edi
push edi
jmp 0x408789
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x408761
cmp eax, 5
jne 0x408797
mov ecx, dword [ebp + 0xc]
inc ecx
cmp dword [ebp - 4], ecx
jae 0x40881f
push dword [ebp + 0x10]
call fcn.004085c4
mov ebx, eax
cmp ebx, 0x800704c7
je 0x408834
inc dword [ebp - 4]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x408751
jmp 0x408834
cmp eax, 0xb7
je 0x408834
cmp eax, 3
jne 0x40881f
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4087ad
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call fcn.00406f88
mov edi, eax
pop ecx
test edi, edi
jne 0x4087d5
mov ebx, 0x8007000e
jmp 0x408834
push dword [ebp + 8]
lea eax, [esi + 1]
push eax
push edi
call fcn.004057bb
movzx ebx, word [edi + 6]
xor eax, eax
push edi
mov word [edi + 6], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40880a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40880a
mov ebx, 0x80070003
jmp 0x408834
push dword [ebp + 0x10]
mov word [edi + 6], bx
push dword [ebp + 0xc]
push esi
push edi
call fcn.004085f9
mov ebx, eax
jmp 0x408834
test eax, eax
jle 0x40881b
and eax, 0xffff
or eax, 0x80070000
jmp 0x40881b
mov ebx, 0x80070057
push edi
call fcn.00406fd6
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x408b26
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [eax + esi + 1]
cmp ecx, dword [ebp + 0xc]
jb 0x408b58
mov ebx, 0x8007007a
jmp 0x408b82
test eax, eax
jne 0x408b65
call fcn.00406c2e
mov ebx, eax
jmp 0x408b82
push 0x5c
pop ecx
lea eax, [edi + eax*2]
mov word [eax], cx
lea ecx, [esi + esi + 2]
push ecx
push dword [ebp + 0x10]
add eax, 2
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x4093e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp edi, esi
jne 0x4093f9
cmp ebx, esi
jne 0x4093fd
cmp ebx, esi
jge 0x40942e
mov dword [ebp - 4], 0x80070057
test edi, edi
je 0x409411
test ebx, ebx
jle 0x409411
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40941a
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
pop esi
test eax, eax
je 0x409427
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
leave
ret 0x14
lea eax, [ebx + ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
test eax, eax
je 0x409462
jle 0x40945d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x409471
test edi, edi
jne 0x409476
test ecx, ecx
jbe 0x409476
mov dword [ebp - 4], 0x800700ea
cmp dword [ebp - 4], esi
jl 0x40949e
mov edx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x10], 2
sete al
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], edx
je 0x4094a1
cmp edx, 1
jne 0x409495
cmp dword [ebp + 0x10], 2
je 0x4094a1
mov dword [ebp - 4], 0x8007065d
jmp 0x4094a1
mov edx, dword [ebp + 8]
cmp dword [ebp - 4], 0x800700ea
jne 0x4094be
xor eax, eax
shr ecx, 1
cmp edx, 7
sete al
inc eax
add ecx, eax
mov esi, ecx
jmp 0x409404
cmp dword [ebp - 4], esi
jl 0x409404
shr ecx, 1
mov esi, ecx
je 0x4094d5
cmp word [edi + esi*2 - 2], 0
je 0x4094d6
inc esi
cmp edx, 7
jne 0x4094e9
cmp esi, 2
jl 0x4094e8
cmp word [edi + esi*2 - 4], 0
je 0x4094e9
inc esi
cmp esi, ebx
jle 0x4094f9
mov dword [ebp - 4], 0x800700ea
jmp 0x409404
dec esi
xor ecx, ecx
lea eax, [edi + esi*2]
mov word [eax], cx
cmp edx, 7
jne 0x409411
mov word [eax - 2], cx
jmp 0x409411
Function at 0x409519
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov ebx, 0x80070057
cmp dword [ebp + 0x14], esi
je 0x4095a3
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x409569
cmp eax, 0xea
je 0x409569
cmp eax, esi
jle 0x40959d
and eax, 0xffff
or eax, 0x80070000
jmp 0x40959d
mov ebx, dword [ebp - 4]
shr ebx, 1
inc ebx
inc ebx
lea eax, [ebx + ebx]
push eax
call fcn.00406f88
mov edi, eax
pop ecx
cmp edi, esi
jne 0x409587
mov ebx, 0x8007000e
jmp 0x4095a3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004093e0
mov ebx, eax
cmp ebx, esi
jge 0x4095ac
push edi
call fcn.00406fd6
pop ecx
xor edi, edi
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x4095b5
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x4095c1
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x4095cd
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18

Function at 0x409853
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, eax
mov edi, ecx
mov esi, 0x80070057
je 0x409911
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x409894
mov esi, 0x8007000e
jmp 0x409901
inc esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x4098ad
call fcn.00406c2e
mov esi, eax
jmp 0x409901
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x4098ef
cmp eax, 2
je 0x4098ef
cmp eax, 3
je 0x4098eb
cmp eax, 4
je 0x4098d7
jbe 0x4098d0
cmp eax, 6
jbe 0x4098ef
mov esi, 0x80070057
jmp 0x409901
neg edi
sbb edi, edi
and edi, 0x7ff8fffb
add edi, 0x80070005
mov esi, edi
jmp 0x409901
xor esi, esi
jmp 0x409901
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fffb
add ebx, 0x80070005
mov esi, ebx
cmp dword [ebp - 4], 0
je 0x409911
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x447ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3b000]
push edi
jmp 0x447eea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x447ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x447ee0
mov eax, 1
add ebx, ebx
jne 0x447f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x447f14
jne 0x447f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x447f33
dec eax
add ebx, ebx
jne 0x447f20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x447ef8
add ebx, ebx
jne 0x447f2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x447f85
xor ecx, ecx
sub eax, 3
jb 0x447f4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x447fba
sar eax, 1
mov ebp, eax
jmp 0x447f56
add ebx, ebx
jne 0x447f56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x447f24
inc ecx
add ebx, ebx
jne 0x447f64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x447f24
add ebx, ebx
jne 0x447f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x447f66
jne 0x447f82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x447f66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x447fa4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x447f96
jmp 0x447ee6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x447fa4
add edi, ecx
jmp 0x447ee6
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x447fc2
cmp byte [edi], 9
jne 0x447fc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x447fc7
lea edi, [esi + 0x45000]
mov eax, dword [edi]
or eax, eax
je 0x44803f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x711b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7127c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x447ff4
mov ecx, edi
jns 0x448023
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x71280]
or eax, eax
je 0x448039
mov dword [ebx], eax
add ebx, 4
jmp 0x448011
call dword [esi + 0x71290]
mov ebp, dword [esi + 0x71284]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x448073
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x40142c
Capabilities:
Identify system language via api
Read .ini file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x3c]
mov ecx, ebx
call fcn.00406c28
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
mov ebp, str.Startup
push str.copy
push ebp
call edi
test eax, eax
setne al
mov ecx, ebx
mov byte [esi + 6], al
call fcn.00406c28
push eax
push 1
push str.engine
push ebp
call edi
neg eax
sbb al, al
and byte [esp + 0x10], 0
inc al
lea edi, [esp + 0x11]
mov byte [esi + 5], al
xor eax, eax
mov ecx, ebx
stosw word es:[edi], ax
call fcn.00406c28
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea eax, [esp + 0x14]
push 3
push eax
push 0x40a620
push str.EnableLangDlg
push ebp
call edi
cmp eax, 1
jne 0x4014be
cmp byte [esp + 0x10], 0x79
je 0x4014ba
cmp byte [esp + 0x10], 0x59
jne 0x4014be
mov byte [esi + 8], 1
mov ecx, ebx
call fcn.00406c28
push eax
lea eax, [esi + 0x48]
push 0x1f4
push eax
push 0x40a620
push str.AppName
push ebp
call edi
mov ecx, ebx
call fcn.00406c28
push eax
push 1
mov ebp, str.Languages
push str.count
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
and dword [esp + 0x14], 0
mov dword [esi + 0x244], eax
test eax, eax
jle 0x40156a
lea eax, [esi + 0x248]
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push str.key_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, ebx
call fcn.00406c28
push eax
lea eax, [esp + 0x20]
push 0xa
push eax
lea eax, [esp + 0x34]
push str.0x0009
push eax
push ebp
call edi
lea eax, [esp + 0x1e]
push eax
call fcn.00407141
inc dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x18]
add dword [esp + 0x18], 2
mov word [ecx], ax
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x244]
jl 0x401510
mov ecx, ebx
call fcn.00406c28
push eax
lea eax, [esp + 0x20]
push 0xa
push eax
push str.0x0009
push str.Default
push ebp
call edi
lea eax, [esp + 0x1e]
push eax
call fcn.00407141
mov word [esi + 0x240], ax
mov ax, word [esi + 0x23c]
pop ecx
push eax
mov ecx, esi
call fcn.00401615
test al, al
jne 0x4015f8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea edi, [esi + 0x312]
push eax
mov ecx, esi
mov word [edi], ax
call fcn.00401615
test al, al
jne 0x40160d
mov ax, word [edi]
mov ecx, esi
and eax, 0x3ff
or ah, 4
push eax
mov word [edi], ax
call fcn.00401615
test al, al
jne 0x40160d
push edi
mov ecx, esi
call fcn.00401643
test al, al
jne 0x40160d
mov ax, word [esi + 0x240]
mov word [edi], ax
jmp 0x40160d
mov ax, word [esi + 0x23c]
mov byte [esi + 0x23e], 1
mov word [esi + 0x312], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x401d2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x22a], bl
jne 0x401e4f
cmp byte [esi + 0x539], bl
jne 0x401e4f
mov ax, word [esi + 0x5a8]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push eax
push 0x6b
push 5
push dword [esi + 0x224]
call edi
cmp eax, ebx
jne 0x401da9
mov ax, word [esi + 0x5a8]
and ax, 0x3ff
or ah, 4
push eax
push 0x6b
push 5
push dword [esi + 0x224]
call edi
cmp eax, ebx
jne 0x401da9
push 5
push 0x6b
push dword [esi + 0x224]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x401e4f
push eax
push dword [esi + 0x224]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x401c94
push ebx
push eax
push dword [esi + 0x224]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov dword [esi + 0x540], eax
lea eax, [ebp - 0xc]
push eax
push 0x9003
mov ecx, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00405a71
test al, al
je 0x401e2f
lea eax, [esi + 0x270]
lea ecx, [ebp - 0xc]
push eax
call fcn.00406c28
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
push 0x9102
push dword [esi + 0x540]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [ebp - 0x14]
call fcn.004016cb
push dword [ebp - 0x18]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 8]
call fcn.004016cb
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403152
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x22f], bl
jne 0x4032e8
cmp byte [esi + 0x22b], bl
jne 0x4032e8
cmp byte [esi + 0x22e], bl
je 0x4032e8
cmp byte [esi + 0x228], bl
jne 0x4032e8
lea eax, [ebp - 0x270]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4032e8
lea eax, [ebp - 0x16c]
push eax
push ebx
lea eax, [ebp - 0x270]
push str.Setup
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4032e8
lea eax, [ebp - 0x16c]
push ebx
push eax
lea ecx, [esi + 0x240]
call fcn.00406c28
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4032e8
push edi
push ebx
push 0x4000000
push 3
push ebx
push 1
lea eax, [ebp - 0x16c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x10
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
push str.__clone_of_
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x68], 0x44
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24c]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.0040171c
push 0x40a2f0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.0040171c
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esi + 0x234]
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0040171c
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
call fcn.00406c28
push eax
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x10]
call fcn.004016cb
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x24]
call fcn.004032ee
cmp dword [ebp - 8], 0xffffffff
pop edi
je 0x4032e4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4032ea
xor al, al
pop esi
pop ebx
leave
ret