joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x2aca3aeb
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x42983666
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x427b1f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x427b25
ret

Function at 0x45fa99
Capabilities:
Get number of processors

Disassembly:
fdiv dword [ebx]
rcl byte [ebp + 0x68], 0x64
sti
inc ebp
add byte [edi + edi*8 + 0x30], ah
Function at 0x4bb91e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404faa
mov eax, dword [ebp - 8]
call fcn.00404faa
xor eax, eax
push ebp
push 0x4bba32
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x420], eax
xor eax, eax
mov dword [ebp - 0x41c], eax
xor esi, esi
lea eax, [ebp - 0x418]
mov dword [eax], esi
inc esi
add eax, 4
cmp esi, 0x100
jne 0x4bb971
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
mov esi, pe_nt_image_headers32
lea ebx, [ebp - 0x418]
mov edi, dword [ebx]
mov al, byte [ebp - 0x10]
mov edx, edi
add al, dl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dl, byte [edx + ecx - 1]
add al, dl
and eax, 0xff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x418]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x418], edi
mov eax, dword [ebp - 8]
call fcn.00404dba
cmp eax, dword [ebp - 0x14]
jne 0x4bb9df
mov dword [ebp - 0x14], 1
jmp 0x4bb9e2
inc dword [ebp - 0x14]
add ebx, 4
dec esi
jne 0x4bb996
mov eax, dword [ebp - 0xc]
call fcn.00404afa
mov eax, dword [ebp - 4]
call fcn.00404dba
test eax, eax
jle 0x4bba7a
mov dword [ebp - 0x18], eax
mov esi, 1
mov al, byte [ebp - 0x420]
inc eax
and eax, 0xff
mov dword [ebp - 0x420], eax
mov edi, dword [ebp + eax*4 - 0x418]
mov eax, edi
add al, byte [ebp - 0x41c]
and eax, 0xff
mov dword [ebp - 0x41c], eax
mov ebx, dword [ebp + eax*4 - 0x418]
mov dword [ebp + eax*4 - 0x418], edi
mov eax, dword [ebp - 0x420]
mov dword [ebp + eax*4 - 0x418], ebx
lea eax, [ebp - 0x424]
mov edx, edi
add dl, bl
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + esi - 1]
xor dl, cl
call fcn.00404ce2
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp - 0xc]
call fcn.00404dc2
mov eax, dword [ebp - 0xc]
inc esi
dec dword [ebp - 0x18]
jne 0x4bba04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bba39
lea eax, [ebp - 0x424]
call fcn.00404afa
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b1e
ret
Function at 0x402980
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0040de80
mov esi, eax
add esp, 4
test esi, esi
je 0x40299c
cmp byte [esi], 0
jne 0x4029bc
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040de80
mov esi, eax
add esp, 4
test esi, esi
je 0x402af0
cmp byte [esi], 0
je 0x402af0
mov eax, esi
xor ebp, ebp
mov cl, byte [eax]
inc ebp
test cl, cl
mov dword [esp + 0x1c], ebp
je 0x4029d8
cmp cl, 0x20
je 0x4029d8
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4029cb
mov cl, byte [eax]
test cl, cl
je 0x4029f1
cmp cl, 0x20
jne 0x4029ed
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x4029f1
jmp 0x4029de
test cl, cl
jne 0x4029c0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0040db30
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x402a1f
push 0x417480
call fcn.0040e16c
add esp, 4
push 2
call fcn.0040e097
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, ebp
lea ecx, [eax*4 + 4]
push ecx
call fcn.0040db30
add esp, 4
test eax, eax
jne 0x402a6e
push 0x417480
call fcn.0040e16c
add esp, 4
push 2
call fcn.0040e097
mov esi, dword [esp + 0x18]
mov ebp, eax
add eax, 4
mov edx, dword [esi]
mov ecx, dword [edx]
mov dword [eax - 4], ecx
mov ecx, dword [esi]
add ecx, 4
mov dword [esi], ecx
mov dword [eax], ebx
mov cl, byte [ebx]
add eax, 4
test cl, cl
je 0x402a9d
cmp cl, 0x20
je 0x402aa2
mov cl, byte [ebx + 1]
inc ebx
test cl, cl
jne 0x402a90
cmp cl, 0x20
jne 0x402aa6
mov byte [ebx], 0
inc ebx
mov cl, byte [ebx]
test cl, cl
je 0x402abf
cmp cl, 0x20
jne 0x402abb
mov cl, byte [ebx + 1]
inc ebx
test cl, cl
je 0x402abf
jmp 0x402aac
test cl, cl
jne 0x402a85
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
add edx, ecx
dec ecx
test ecx, ecx
mov dword [edi], ecx
je 0x402ae6
mov ecx, dword [esi]
add eax, 4
mov ecx, dword [ecx]
mov dword [eax - 4], ecx
mov ebx, dword [esi]
add ebx, 4
mov dword [esi], ebx
mov ecx, dword [edi]
dec ecx
mov dword [edi], ecx
jne 0x402ace
mov dword [eax], 0
mov dword [esi], ebp
mov dword [edi], edx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406520
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x18], ebx
je 0x4065c8
mov ebp, dword [esp + 0x14]
mov eax, dword [0x41cd24]
test eax, eax
jne 0x406584
mov eax, dword [0x41cd20]
mov ecx, dword [0x41cdd8]
push 0x2000
push eax
push ecx
call fcn.0041227f
add esp, 0xc
mov dword [0x41cd24], eax
test eax, eax
je 0x4065d1
jl 0x4065dc
mov ecx, dword [0x424f78]
mov edx, dword [0x41cd20]
add ecx, 0x2000
mov dword [0x41cdc4], edx
mov dword [0x424f78], ecx
cmp ebx, eax
mov edx, ebx
jb 0x40658c
mov edx, eax
mov esi, dword [0x41cdc4]
mov ecx, edx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add ebp, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x41cdc4]
mov eax, dword [0x41cd24]
add edi, edx
sub eax, edx
sub ebx, edx
mov dword [0x41cdc4], edi
mov dword [0x41cd24], eax
jne 0x40653d
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
sub eax, ebx
pop ebp
pop ebx
ret
push 0x417d88
push 0x419ea0
call fcn.0040dba4
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406600
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x41a8fc]
test eax, eax
jne 0x40665c
mov eax, dword [0x41cd20]
mov ecx, dword [0x41cdd8]
push 0x2000
push eax
push ecx
call fcn.0041227f
add esp, 0xc
mov dword [0x41cd24], eax
test eax, eax
jle 0x40665c
mov ecx, dword [0x424f78]
add ecx, 0x2000
dec eax
mov dword [0x424f78], ecx
mov ecx, dword [0x41cd20]
mov dword [0x41cd24], eax
xor eax, eax
mov dword [0x41cdc4], ecx
mov al, byte [ecx]
inc ecx
mov dword [0x41cdc4], ecx
ret
or eax, 0xffffffff
ret
Function at 0x406660
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x41c70c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov ecx, ebp
je 0x40669b
mov edi, dword [0x41c700]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edi + edx*4]
xor eax, edx
inc ecx
dec esi
jne 0x40667d
mov esi, dword [esp + 0x18]
mov dword [0x41c70c], eax
mov eax, dword [0x41a8d8]
xor ebx, ebx
cmp eax, ebx
jne 0x406864
cmp esi, ebx
je 0x406864
cmp dword [0x424f74], ebx
je 0x4066c9
pop edi
pop esi
pop ebp
mov eax, 0x32
pop ebx
ret
mov eax, dword [0x416044]
test byte [eax + 0x14], 8
jne 0x406753
mov ecx, dword [0x41cd30]
push esi
push ebp
push ecx
call fcn.004134b1
add esp, 4
push eax
call fcn.00410070
add esp, 0xc
cmp eax, esi
je 0x406864
cmp dword [0x41a8a4], ebx
jne 0x406864
push 0x41cde0
push 0x417da4
push 0x419ea0
call fcn.0040dba4
push 0x419ea0
call fcn.0040df5d
push 0x419e60
push 9
push 0x424f30
call fcn.0040e1d8
mov cl, byte [0x424f30]
add esp, 0x1c
xor edx, edx
cmp cl, 0x79
setne dl
pop edi
inc edx
pop esi
pop ebp
mov dword [0x424f74], edx
mov eax, 0x32
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov edi, dword [0x41a900]
cmp eax, ebx
jne 0x406767
mov edi, dword [0x41cdd4]
cmp dword [0x41c704], ebx
je 0x40677b
mov dword [0x41b37c], ebx
mov dword [0x41c704], ebx
mov al, byte [ebp]
mov bl, 0xa
cmp al, bl
mov ecx, ebp
jne 0x406792
mov eax, dword [0x41b37c]
test eax, eax
je 0x406792
lea ecx, [ebp + 1]
add esi, ebp
mov dword [0x41b37c], 0
cmp ecx, esi
mov eax, edi
jae 0x406864
mov ebp, 1
mov dl, byte [ecx]
cmp dl, 0xd
jne 0x4067d1
mov byte [eax], dl
inc eax
lea edx, [esi - 1]
mov byte [eax], bl
inc eax
cmp ecx, edx
jne 0x4067c9
mov dword [0x41b37c], ebp
jmp 0x4067e0
cmp byte [ecx + 1], bl
jne 0x4067e0
inc ecx
jmp 0x4067e0
cmp dl, bl
jne 0x4067dd
mov byte [eax], 0xd
inc eax
mov byte [eax], bl
jmp 0x4067df
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, esi
jb 0x4067ad
cmp eax, edi
jbe 0x406864
mov esi, eax
mov eax, dword [0x41cd30]
sub esi, edi
push esi
push edi
push eax
call fcn.004134b1
add esp, 4
push eax
call fcn.00410070
add esp, 0xc
cmp eax, esi
je 0x406864
mov eax, dword [0x41a8a4]
test eax, eax
jne 0x406864
push 0x41cde0
push 0x417da4
push 0x419ea0
call fcn.0040dba4
push 0x419ea0
call fcn.0040df5d
push 0x419e60
push 9
push 0x424f30
call fcn.0040e1d8
mov dl, byte [0x424f30]
add esp, 0x1c
xor ecx, ecx
cmp dl, 0x79
setne cl
pop edi
inc ecx
pop esi
pop ebp
mov dword [0x424f74], ecx
mov eax, 0x32
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40c560
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [0x41a8a4]
sub esp, 0x10
test eax, eax
push ebx
je 0x40c580
mov eax, dword [0x41cd30]
push eax
call fcn.0040e500
add esp, 4
pop ebx
add esp, 0x10
ret
mov cx, word [0x41cd66]
mov eax, dword [0x41cd68]
push esi
mov word [esp + 8], cx
mov ecx, dword [esp + 8]
lea edx, [esp + 8]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
jne 0x40c5c2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push 0x419b08
call fcn.0040defd
add esp, 8
xor edi, edi
jmp 0x40c601
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40c5fc
call ebx
push eax
push 0x419b20
call fcn.0040defd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edi, 1
mov eax, dword [0x41cd30]
push eax
call fcn.0040e500
add esp, 4
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push 0x41cde0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c64a
call ebx
push eax
push 0x419b3c
push 0x419ea0
call fcn.0040dba4
add esp, 0xc
jmp 0x40c679
test edi, edi
je 0x40c672
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x40c672
call ebx
push eax
push 0x419b6c
call fcn.0040defd
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x416044]
mov eax, dword [edx + 0x10]
and eax, 0x7f
push eax
push 0x41cde0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
test eax, eax
jne 0x40c6ac
call ebx
push eax
push 0x419b88
push 0x419ea0
call fcn.0040dba4
add esp, 0xc
pop ebx
add esp, 0x10
ret
Function at 0x4110ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41a468
cmp edx, dword [eax]
je 0x4110cf
add eax, 8
inc ecx
cmp eax, 0x41a4f8
jl 0x4110c0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41a468]
jne 0x4111fd
mov eax, dword [0x41c3a8]
cmp eax, 1
je 0x4111d7
test eax, eax
jne 0x411100
cmp dword [0x41a2fc], 1
je 0x4111d7
cmp edx, 0xfc
je 0x4111fd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411137
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004127c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ff30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41117a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ff30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4157d0
push edi
call fcn.0040e270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004127c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004127d0
lea eax, [ebp - 0xa0]
push 0x4157b0
push eax
call fcn.004127d0
push dword [esi + 0x41a46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004127d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412be5
add esp, 0x2c
pop edi
jmp 0x4111fd
lea eax, [ebp + 8]
lea esi, [esi + 0x41a46c]
push 0
push eax
push dword [esi]
call fcn.0040ff30
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 0x4134b9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4134e4
test byte [esp + 8], 0x80
je 0x4134d3
and al, 0xfe
jmp 0x4134d5
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4134f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041217e
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x415991
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4159e8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x494940
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4159df
mov byte [0x49696c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x41736c
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4969a8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41739c
push 0
push dword [0x4969a8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4969b0]
push 0
mov ecx, dword [eax + 0x26c]
call fcn.004331c7
ret

Function at 0x41739d
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x4969a8]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0042ac86
cmp dword [eax], 1
je 0x417407
cmp dword [eax + 4], ebx
je 0x41745c
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41745c
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x4969a8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x401a27
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov esi, esp
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401a73
mov eax, dword [ebp - 8]
jmp 0x401ad0
cmp dword [ebp - 0x10], 1
je 0x401a86
cmp dword [ebp - 0x10], 2
je 0x401a86
mov eax, 0xd
jmp 0x401ad0
cmp dword [ebp + 0xc], 0
je 0x401ac4
cmp dword [ebp - 0x1c], 0
je 0x401abc
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x401ab3
mov edx, dword [ebp - 0x1c]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x401aba
mov eax, 0xd
jmp 0x401ad0
jmp 0x401ac4
mov edx, dword [ebp + 0xc]
mov word [edx], 0
mov eax, dword [ebp - 0x1c]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x401af4]
call fcn.004c3b59
pop eax
pop edx
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.004c3b36
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402d70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
push ecx
lea edi, [ebp - 0x50]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xac], 0
lea ecx, [ebp - 0x38]
call fcn.004033d0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x74
push edx
mov eax, dword [ebp + 8]
add eax, 0x58
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00402300
add esp, 0x14
test eax, eax
jne 0x402e32
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.00403570
push eax
push str.CheckExeExist_GetRegString_fail_name_s
mov esi, 0x4f8948
call fcn.0048aa50
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00403470
mov eax, dword [ebp - 0x4c]
jmp 0x402f1d
lea ecx, [ebp - 0x38]
call fcn.00403570
push eax
lea ecx, [ebp - 0x44]
call fcn.00402f90
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
add ecx, 0x90
call fcn.004035a0
test eax, eax
je 0x402e9e
lea ecx, [ebp - 0x44]
call fcn.00403160
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
cmp esi, esp
call fcn.004c3b36
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.00403220
lea ecx, [ebp - 0x44]
push ecx
call fcn.00402290
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 0x90
call fcn.00403570
push eax
lea ecx, [ebp - 0x44]
call fcn.00403050
lea ecx, [ebp - 0x44]
call fcn.0042cd20
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp esi, esp
call fcn.004c3b36
test eax, eax
je 0x402ece
mov dword [ebp - 0x18], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0xac], 1
lea ecx, [ebp - 0x44]
call fcn.0042cd20
push eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.00403570
push eax
push str.CheckExeExist_strPath_nmae_s_Exist_d_strPath_s
mov esi, 0x4f8948
call fcn.0048aa50
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00418010
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00403470
mov eax, dword [ebp - 0x50]
push edx
mov ecx, ebp
push eax
lea edx, [0x402f58]
call fcn.004c3b59
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1873
add esp, 0x50
cmp ebp, esp
call fcn.004c3b36
mov esp, ebp
pop ebp
ret 4
Function at 0x406a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push ecx
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x406acd
jmp 0x406b16
mov esi, esp
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406b03
cmp dword [ebp - 0x14], 4
je 0x406b07
jmp 0x406b16
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x406b3c]
call fcn.004c3b59
pop eax
pop edx
pop edi
pop esi
add esp, 0x30
cmp ebp, esp
call fcn.004c3b36
mov esp, ebp
pop ebp
ret 8

Function at 0x406b80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x406bb2
jmp 0x406be9
mov esi, esp
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x406be2
jmp 0x406be9
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.004c3b36
mov esp, ebp
pop ebp
ret 8