joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x42aa24]
cmp byte [eax], 0
jne 0x4086ab
mov ecx, dword [0x42ae3c]
mov edx, dword [0x42a9b4]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40860a
mov ecx, dword [0x42a9b4]
push 0x5c
push ecx
call fcn.0041a320
add esp, 8
test eax, eax
je 0x40862c
inc eax
jmp 0x408631
mov eax, dword [0x42a9b4]
mov ecx, str.reginfo.txt
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40863a
mov edx, dword [0x42a9b4]
push edx
call fcn.00408540
mov eax, dword [0x42aa24]
add esp, 4
cmp byte [eax], 0
jne 0x4086ab
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4086ab
mov ecx, dword [0x42ae04]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4086ab
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4086a4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40869d
push eax
call fcn.004084b0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret
Function at 0x40c7c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov byte [ebp], 0
je 0x40c844
mov eax, dword [0x42ad10]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40c809
mov cl, byte [esi]
push edi
mov byte [esp + 0x10], cl
mov edi, ebp
mov eax, dword [esp + 0x10]
and eax, 0xff
inc esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov byte [eax + ebp], 0
pop esi
pop ebp
ret
mov edx, dword [0x42aa20]
mov eax, esi
sub eax, edx
mov dl, byte [esi]
mov cl, al
inc esi
xor cl, dl
xor cl, 0x6a
inc eax
test cl, cl
mov byte [esp + 0xc], cl
jbe 0x40c840
mov ecx, dword [esp + 0xc]
and ecx, 0xff
mov dl, byte [esi]
xor dl, al
xor dl, 0x6a
mov byte [ebp], dl
inc ebp
inc esi
inc eax
dec ecx
jne 0x40c830
mov byte [ebp], 0
pop esi
pop ebp
ret

Function at 0x40ca20
Capabilities:
Encode data using xor
Read .ini file

Disassembly:
mov ecx, dword [0x42ae1c]
sub esp, 0x24
push ebx
push esi
mov esi, dword [ecx*4 + 0x42ac10]
test esi, esi
je 0x40cb75
mov edx, dword [ecx*4 + 0x42ab50]
xor eax, eax
test edx, edx
jbe 0x40ca64
mov bl, byte [eax + esi]
mov cl, al
add cl, 0x40
xor bl, cl
mov byte [eax + esi], bl
mov edx, dword [0x42ae1c]
inc eax
cmp eax, dword [edx*4 + 0x42ab50]
jb 0x40ca47
xor eax, eax
mov ax, word [esi]
add esi, 2
test eax, eax
jbe 0x40cb75
push ebp
mov dword [esp + 0x14], eax
push edi
mov al, byte [esi]
inc esi
mov byte [esp + 0x13], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], esi
lea edx, [esi + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov ebp, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov ebx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov dword [esp + 0x14], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [edx + ecx + 1]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x42a9b4]
push ecx
push edx
call fcn.0040c990
mov al, byte [esp + 0x1b]
add esp, 8
test al, 1
je 0x40cb06
mov eax, dword [0x42a9b4]
lea ecx, [esp + 0x20]
push eax
push 0x14
push ecx
push 0x42ae68
push ebx
push ebp
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40cb64
mov edx, dword [esp + 0x14]
push 0xffdc
push edx
push 0
call fcn.0040c850
mov dword [esp + 0x28], eax
lea eax, [eax + eax + 1]
push eax
call fcn.0041a470
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc ecx
mov edi, eax
push ecx
push edx
push edi
call fcn.0040c850
mov eax, dword [0x42a9b4]
add esp, 0x1c
push eax
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebp
call ebx
mov ecx, dword [0x42a9b4]
push ecx
push 0
push 0
push 0
call ebx
push edi
call fcn.0041a5d3
add esp, 4
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x40ca7a
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x40d020
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x408
test edx, edx
push ebx
push edi
je 0x40d131
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40d131
mov ebx, dword [esp + 0x41c]
lea eax, [esp + 8]
mov ecx, ebx
push eax
or ecx, 0x10008
push ecx
push 0
push edx
mov edx, dword [esp + 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d136
mov edi, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x400
call ebp
mov esi, eax
cmp esi, 0x103
je 0x40d0e6
test esi, esi
jne 0x40d119
mov ecx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
push ecx
call fcn.0040d020
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d083
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x408
ret
test edi, edi
je 0x40d101
mov edx, dword [esp + 0x420]
mov eax, dword [esp + 0x41c]
push 0
push ebx
push edx
push eax
call edi
jmp 0x40d117
mov ecx, dword [esp + 0x420]
mov edx, dword [esp + 0x41c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x408
ret
mov eax, 0x3f2
pop edi
pop ebx
add esp, 0x408
ret
Function at 0x40dc50
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x8c
mov eax, dword [0x42aa44]
push esi
mov esi, dword [0x42aa40]
mov dword [esp + 4], 0
test eax, eax
jbe 0x40de63
push ebx
push ebp
push edi
mov ebx, 0x1000
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40de3f
mov eax, dword [0x42ae34]
test eax, eax
jne 0x40de20
push esi
call fcn.0040e4c0
mov edx, dword [0x42a9b4]
add esp, 4
cmp byte [edx], 0
je 0x40de20
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x14]
push 0x4000
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0x88
push eax
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40dd11
mov ecx, dword [0x42a9b4]
push ecx
call fcn.004013d0
add esp, 4
test eax, eax
je 0x40dd11
mov edx, dword [esi + 0x24]
mov eax, dword [0x42a9b4]
push edx
push eax
call fcn.00412610
add esp, 8
test eax, eax
je 0x40de6b
mov dword [0x42ae2c], 1
mov word [esi + 4], 0x1f4
jmp 0x40dd40
test dword [esi + 8], ebx
je 0x40dd28
mov eax, dword [esi + 0xc]
test ah, 0x60
jne 0x40dd28
push 0
call fcn.0040d5b0
add esp, 4
mov ecx, dword [esi + 0x24]
push ecx
push esi
call fcn.0040e7e0
add esp, 8
cmp word [esi + 4], 0x1b
je 0x40de77
mov eax, dword [esi + 0xc]
mov ebp, 0x80
test ebx, eax
je 0x40dd51
mov ebp, 0x81
test ah, 8
je 0x40dd59
or ebp, 2
cmp ebp, 0x80
je 0x40dd8a
cmp word [esi + 4], 0x1f4
mov edi, dword [0x42a9b4]
jne 0x40dd72
mov edi, dword [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40dd8a
and al, 0xfc
or eax, ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40ddba
mov eax, dword [esi + 8]
test ah, 4
je 0x40ddba
mov ax, word [esi + 4]
cmp ax, 0x17
je 0x40ddb5
cmp ax, 0x19
je 0x40ddb5
cmp ax, 0x1f5
je 0x40ddb5
cmp ax, 0x1f4
jne 0x40ddba
call fcn.0040f770
cmp dword [esi + 0x10], 3
jne 0x40dddf
mov ax, word [esi + 4]
cmp ax, 0x17
je 0x40ddd0
cmp ax, 0x19
jne 0x40dddf
mov edx, dword [0x42a9b4]
push edx
call fcn.00402860
add esp, 4
test dword [esi + 8], ebx
je 0x40de2c
mov ax, word [esi + 4]
cmp ax, 0x17
je 0x40ddfa
cmp ax, 0x19
je 0x40ddfa
cmp ax, 0x1f4
jne 0x40de2c
push esi
call fcn.0040d890
add esp, 4
test eax, eax
jne 0x40de2c
mov ecx, dword [0x42a9b4]
mov dword [0x42ae34], 0x16
push ecx
call fcn.00409ce0
add esp, 4
mov edx, dword [esi + 0x24]
push edx
call fcn.0041a8a0
add esp, 4
mov eax, dword [esi + 0x24]
push eax
call fcn.0041a5d3
add esp, 4
mov dword [esi + 0x24], 0
mov edx, dword [esp + 0x10]
push esi
inc edx
mov dword [esp + 0x14], edx
call fcn.00403d70
mov esi, eax
mov eax, dword [0x42aa44]
add esp, 4
cmp edx, eax
jb 0x40dc7a
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x8c
ret
mov dword [0x42ae34], 0x16
jmp 0x40de20
mov eax, dword [0x42a9b4]
mov dword [0x42ae34], 0x16
push eax
call fcn.00409ce0
mov eax, dword [esi + 8]
add esp, 4
test ebx, eax
je 0x40de20
mov eax, dword [esi + 0xc]
test ah, 0x60
jne 0x40de20
push 1
call fcn.0040d5b0
jmp 0x40de1d
Function at 0x40ea50
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
push eax
push 0x800
mov dword [esp + 0xc], 1
call fcn.004021c0
add esp, 8
test eax, eax
jne 0x40ea80
mov eax, 1
pop edi
add esp, 0x10
ret
mov edx, dword [0x42a9b4]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40ebd1
push eax
call fcn.0041a470
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40ebd1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x42a9b4]
push ebx
push esi
push ebp
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40ebc6
mov al, byte [edi + 8]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test al, 2
je 0x40eb58
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x425dc0
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40eb58
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x2e]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x40eb16
jne 0x40eb58
mov edx, dword [edx + 0xc]
mov eax, dword [edi + 0x32]
cmp edx, eax
jbe 0x40eb58
push 0x1d
push 7
call fcn.00403a00
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x40ebbe
mov ecx, dword [0x42ae30]
test ecx, ecx
jne 0x40ebbe
mov ecx, dword [0x42a9b4]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
jne 0x40ebbe
mov eax, dword [0x42ae30]
test eax, eax
jne 0x40ebc6
test byte [edi + 8], 4
je 0x40ebc6
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40ebc6
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x3e]
xor ecx, ecx
mov cx, word [edx]
cmp eax, ecx
je 0x40ebc6
push 0x1e
push 7
call fcn.00403a00
add esp, 8
test eax, eax
je 0x40ebc6
mov ecx, dword [0x42a9b4]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
je 0x40ebc6
mov dword [esp + 0x10], 0
push ebp
call fcn.0041a5d3
add esp, 4
pop esi
pop ebx
lea edx, [esp + 0x10]
push edx
call fcn.00402200
mov eax, dword [esp + 0xc]
add esp, 4
pop ebp
pop edi
add esp, 0x10
ret
Function at 0x40f770
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f819
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x42a9b4]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f7dc
inc dword [esp]
jmp 0x40f7ec
mov dword [esp], 1
mov dword [esp + 4], 4
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [0x42a9b4]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret
Function at 0x40fd30
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x42ad48]
sub esp, 0x208
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
jne 0x40fe13
push 0x42ad48
push 0x104
call fcn.004021c0
add esp, 8
test eax, eax
jne 0x40fd7b
pop edi
pop esi
pop ebp
mov dword [0x42ae34], 0xc
or eax, 0xffffffff
pop ebx
add esp, 0x208
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 1
mov eax, dword [0x42ad48]
push eax
push 0x104
call ebp
mov ecx, dword [0x42ad48]
push ecx
call fcn.00402110
mov edx, dword [0x42ad48]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
add ecx, edx
push str.icptmp_d
push ecx
call esi
mov edx, dword [0x42ad48]
push edx
call fcn.0041a668
add esp, 0x14
test eax, eax
jne 0x40fdda
inc ebx
cmp ebx, 0x3e7
jl 0x40fd86
jmp 0x40fdec
mov eax, dword [0x42ad48]
push eax
call fcn.0041a63c
add esp, 4
test eax, eax
je 0x40fe13
mov ecx, dword [0x42ad48]
mov dword [0x42ae34], 0x11
push ecx
call fcn.00409ce0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov edx, dword [0x42ad48]
push edx
call fcn.00402110
mov ebx, dword [esp + 0x220]
mov ecx, dword [0x42ad48]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 0x1c]
push eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [0x42ad48]
push eax
call fcn.00402150
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00401140
mov ebp, dword [esp + 0x244]
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
jne 0x40ff0e
mov eax, dword [0x42ad34]
mov edx, dword [ebx + 0x1c]
push edx
lea edx, [esp + 0x118]
mov ecx, dword [eax + 0x70]
add ecx, eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [esp + 0x230]
mov ecx, dword [ebx + 0x20]
push ebp
push eax
lea edx, [esp + 0x12c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0040fab0
add esp, 0x24
test eax, eax
je 0x40fee7
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00401140
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x40ff0e
lea edx, [esp + 0x10]
mov dword [0x42ae34], 0x10
push edx
call fcn.00409ce0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea eax, [esp + 0x114]
mov dword [0x42ae34], 0x10
push eax
call fcn.00409ce0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebp
call fcn.00401f00
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x40ff30
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x42ad48]
test eax, eax
je 0x40ffce
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
call ebx
test eax, eax
je 0x40ffc0
push esi
push 1
push 0x118
call fcn.0041a522
mov esi, eax
add esp, 8
test esi, esi
je 0x40ffa9
push edi
push esi
push str..bin
call fcn.0041b461
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x40ff9f
test byte [esi], 0x10
jne 0x40ff88
lea eax, [esi + 0x14]
push eax
call fcn.0041a8a0
add esp, 4
push esi
push edi
call fcn.0041b52b
add esp, 8
test eax, eax
je 0x40ff77
push edi
call fcn.0041b5f0
add esp, 4
push esi
call fcn.0041a5d3
add esp, 4
pop edi
push 0x425e1c
call ebx
mov ecx, dword [0x42ad48]
push ecx
call fcn.0041b437
add esp, 4
pop esi
push 0x42ad48
call fcn.00402200
add esp, 4
pop ebx
ret

Function at 0x410050
Capabilities:
Copy file

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x104
xor ebp, ebp
call fcn.004021c0
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov edx, ebx
add esp, 8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410075
push 0x5c
push ebx
call fcn.0041a320
add esp, 8
test eax, eax
je 0x410091
inc eax
jmp 0x410093
mov eax, ebx
mov edi, dword [esp + 0x20]
mov edx, eax
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x41009d
mov esi, dword [esp + 0x18]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4100e2
mov dword [0x42ae34], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x42ae24]
mov dword [0x42ae38], eax
mov ecx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4100d6
jmp 0x41010d
push 2
push esi
mov ebp, 1
call fcn.0041a2cd
add esp, 8
test eax, eax
je 0x41010d
cmp dword [0x42ae6c], 0xd
jne 0x41010d
push 0x180
push esi
call fcn.0041a18c
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call fcn.00402200
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x411fd0
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
mov eax, dword [0x42ae1c]
sub esp, 0x14
cmp eax, 0xffffffff
push ebx
push ebp
push esi
push edi
je 0x412120
mov ecx, dword [0x42ae20]
mov edx, dword [eax*4 + 0x42ac50]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x411ff2
mov eax, dword [0x42ad10]
test eax, eax
je 0x412120
cmp dword [eax + 8], 1
jne 0x412120
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x412120
mov edi, 0x4254a0
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [0x425394], 0x4087e0
test ecx, ecx
mov dl, 0x2c
lea ebp, [esp + 0x10]
jle 0x41205f
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [esi + 0x4254a0]
xor al, dl
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ecx
jl 0x412045
lea ecx, [esp + 0x10]
mov byte [ebp], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x4120ec
mov edi, 0x4254ac
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dl, 0x2c
test ecx, ecx
lea ebp, [esp + 0x10]
jle 0x4120ab
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [esi + 0x4254ac]
xor al, dl
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ecx
jl 0x412091
lea ecx, [esp + 0x10]
mov byte [ebp], 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
test eax, eax
mov dword [esp + 0x20], edx
je 0x4120ec
cmp byte [eax], 0xcc
je 0x4120e0
call eax
test eax, eax
je 0x4120ec
mov dword [0x42ad60], 1
jmp 0x412120
mov eax, dword [0x42ad10]
mov dword [0x425398], 0x409550
test eax, eax
je 0x412116
cmp dword [eax + 8], 1
jne 0x412116
mov ecx, dword [eax + 0x14]
mov dword [0x425394], 0x408d80
test ecx, ecx
je 0x412120
mov dword [0x425394], 0x409020
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [0x42ae1c], eax
mov dword [0x42aa44], esi
mov ecx, dword [eax*4 + 0x42acd0]
mov dword [0x42aa40], esi
cmp ecx, esi
je 0x412153
mov edx, dword [ecx]
add ecx, 4
mov dword [0x42aa44], edx
mov dword [0x42aa40], ecx
mov ecx, dword [eax*4 + 0x42ac90]
mov edx, dword [0x42ae20]
mov dword [0x42ad10], ecx
mov ecx, dword [eax*4 + 0x42ac50]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x41216d
mov eax, dword [0x42ad10]
cmp eax, esi
je 0x412195
cmp dword [eax + 8], 1
jne 0x412195
cmp dword [eax + 0x14], esi
jne 0x412195
mov dword [0x425394], 0x408d80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x412610
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x412630
push 0x180
push esi
call fcn.0041a18c
add esp, 8
mov eax, dword [0x42adbc]
test eax, eax
je 0x41267b
test esi, esi
jne 0x41265c
mov eax, dword [esp + 0x324]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov ecx, dword [esp + 0x324]
push 5
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov eax, dword [esp + 0x324]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x11c]
push 0x104
push edx
push eax
call edi
test esi, esi
je 0x4126ae
lea ecx, [esp + 0x220]
push 0x104
push ecx
push esi
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x18]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
je 0x412710
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
lea eax, [esp + 0x224]
push edx
push eax
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
push 0x425e3c
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401140
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x412828
push ebx
push ebp
call fcn.004012c0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebx
lea ecx, [ebx + 0x200]
push ecx
call fcn.00402180
add esp, 0xc
test eax, eax
je 0x41281e
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.004011c0
add esp, 0xc
test eax, eax
jne 0x412811
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x412811
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x4127e0
cmp byte [edx + 1], 0x79
jne 0x4127e0
cmp byte [edx + 2], 0x7a
jne 0x4127e0
cmp byte [edx + 3], 0x3d
jne 0x4127e0
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x120]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4127eb
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x4127a4
jmp 0x412811
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.00401260
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
call fcn.00401200
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call fcn.00402200
add esp, 4
push ebp
call fcn.004013c0
add esp, 4
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret