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

Disassembly:
mov eax, dword [0x42aa04]
push esi
push edi
cmp byte [eax], 0
jne 0x408352
mov ecx, dword [0x42ae1c]
mov edx, dword [0x42a994]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4081dc
mov ecx, dword [0x42a994]
push 0x5c
push ecx
call fcn.0041a130
add esp, 8
test eax, eax
je 0x4081fe
inc eax
jmp 0x408203
mov eax, dword [0x42a994]
mov byte [eax], 0x72
inc eax
push ebx
push 0
mov byte [eax], 0x65
inc eax
mov byte [eax], 0x67
inc eax
mov byte [eax], 0x69
inc eax
mov byte [eax], 0x6e
inc eax
mov byte [eax], 0x66
inc eax
mov byte [eax], 0x6f
inc eax
mov byte [eax], 0x2e
inc eax
mov byte [eax], 0x74
inc eax
mov byte [eax], 0x78
inc eax
mov byte [eax], 0x74
mov byte [eax + 1], 0
mov edx, dword [0x42a994]
push edx
call fcn.00401140
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x4082c1
push ebx
call fcn.004012c0
mov esi, eax
add esp, 4
test esi, esi
jbe 0x4082b8
cmp esi, 0x186a0
jae 0x4082b8
lea eax, [esi + 1]
push eax
call fcn.0041a280
mov edi, eax
add esp, 4
test edi, edi
je 0x4082b8
push esi
push edi
push ebx
call fcn.004011c0
mov byte [edi + esi], 0
mov ecx, dword [0x42acf0]
add esp, 0xc
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40829c
push esi
push edi
call fcn.00407fb0
add esp, 8
jmp 0x4082af
xor edx, edx
cmp eax, 4
sete dl
push edx
push esi
push edi
call fcn.00408e90
add esp, 0xc
push edi
call fcn.0041a3e3
add esp, 4
push ebx
call fcn.004013c0
add esp, 4
mov eax, dword [0x42aa04]
pop ebx
cmp byte [eax], 0
jne 0x408352
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408352
mov ecx, dword [0x42ade4]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408352
push ebp
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
je 0x408349
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x408342
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x42acf0]
not ecx
mov eax, dword [eax + 8]
dec ecx
test eax, eax
mov esi, ecx
jne 0x40832f
push esi
push edx
call fcn.00407fb0
add esp, 8
jmp 0x408342
xor ecx, ecx
cmp eax, 4
sete cl
push ecx
push esi
push edx
call fcn.00408e90
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebp
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret
Function at 0x4085f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x42aa04]
cmp byte [eax], 0
jne 0x4086ab
mov ecx, dword [0x42ae1c]
mov edx, dword [0x42a994]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40860a
mov ecx, dword [0x42a994]
push 0x5c
push ecx
call fcn.0041a130
add esp, 8
test eax, eax
je 0x40862c
inc eax
jmp 0x408631
mov eax, dword [0x42a994]
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 [0x42a994]
push edx
call fcn.00408540
mov eax, dword [0x42aa04]
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 [0x42ade4]
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 0x40c7a0
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 0x40c824
mov eax, dword [0x42acf0]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40c7e9
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 [0x42aa00]
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 0x40c820
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 0x40c810
mov byte [ebp], 0
pop esi
pop ebp
ret

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

Disassembly:
mov ecx, dword [0x42adfc]
sub esp, 0x24
push ebx
push esi
mov esi, dword [ecx*4 + 0x42abf0]
test esi, esi
je 0x40cb55
mov edx, dword [ecx*4 + 0x42ab30]
xor eax, eax
test edx, edx
jbe 0x40ca44
mov bl, byte [eax + esi]
mov cl, al
add cl, 0x40
xor bl, cl
mov byte [eax + esi], bl
mov edx, dword [0x42adfc]
inc eax
cmp eax, dword [edx*4 + 0x42ab30]
jb 0x40ca27
xor eax, eax
mov ax, word [esi]
add esi, 2
test eax, eax
jbe 0x40cb55
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 [0x42a994]
push ecx
push edx
call fcn.0040c970
mov al, byte [esp + 0x1b]
add esp, 8
test al, 1
je 0x40cae6
mov eax, dword [0x42a994]
lea ecx, [esp + 0x20]
push eax
push 0x14
push ecx
push 0x42ae48
push ebx
push ebp
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40cb44
mov edx, dword [esp + 0x14]
push 0xffdc
push edx
push 0
call fcn.0040c830
mov dword [esp + 0x28], eax
lea eax, [eax + eax + 1]
push eax
call fcn.0041a280
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc ecx
mov edi, eax
push ecx
push edx
push edi
call fcn.0040c830
mov eax, dword [0x42a994]
add esp, 0x1c
push eax
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebp
call ebx
mov ecx, dword [0x42a994]
push ecx
push 0
push 0
push 0
call ebx
push edi
call fcn.0041a3e3
add esp, 4
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x40ca5a
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x40cfe0
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 0x40d0f1
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40d0f1
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 0x40d0f6
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 0x40d0a6
test esi, esi
jne 0x40d0d9
mov ecx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
push ecx
call fcn.0040cfe0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d043
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 0x40d0c1
mov edx, dword [esp + 0x420]
mov eax, dword [esp + 0x41c]
push 0
push ebx
push edx
push eax
call edi
jmp 0x40d0d7
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 0x40da80
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x8c
mov eax, dword [0x42aa24]
push esi
mov esi, dword [0x42aa20]
mov dword [esp + 4], 0
test eax, eax
jbe 0x40dc93
push ebx
push ebp
push edi
mov ebx, 0x1000
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40dc6f
mov eax, dword [0x42ae14]
test eax, eax
jne 0x40dc50
push esi
call fcn.0040e2f0
mov edx, dword [0x42a994]
add esp, 4
cmp byte [edx], 0
je 0x40dc50
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 0x40db41
mov ecx, dword [0x42a994]
push ecx
call fcn.004013d0
add esp, 4
test eax, eax
je 0x40db41
mov edx, dword [esi + 0x24]
mov eax, dword [0x42a994]
push edx
push eax
call fcn.00412420
add esp, 8
test eax, eax
je 0x40dc9b
mov dword [0x42ae0c], 1
mov word [esi + 4], 0x1f4
jmp 0x40db70
test dword [esi + 8], ebx
je 0x40db58
mov eax, dword [esi + 0xc]
test ah, 0x60
jne 0x40db58
push 0
call fcn.0040d420
add esp, 4
mov ecx, dword [esi + 0x24]
push ecx
push esi
call fcn.0040e5f0
add esp, 8
cmp word [esi + 4], 0x1b
je 0x40dca7
mov eax, dword [esi + 0xc]
mov ebp, 0x80
test ebx, eax
je 0x40db81
mov ebp, 0x81
test ah, 8
je 0x40db89
or ebp, 2
cmp ebp, 0x80
je 0x40dbba
cmp word [esi + 4], 0x1f4
mov edi, dword [0x42a994]
jne 0x40dba2
mov edi, dword [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40dbba
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 0x40dbea
mov eax, dword [esi + 8]
test ah, 4
je 0x40dbea
mov ax, word [esi + 4]
cmp ax, 0x17
je 0x40dbe5
cmp ax, 0x19
je 0x40dbe5
cmp ax, 0x1f5
je 0x40dbe5
cmp ax, 0x1f4
jne 0x40dbea
call fcn.0040f580
cmp dword [esi + 0x10], 3
jne 0x40dc0f
mov ax, word [esi + 4]
cmp ax, 0x17
je 0x40dc00
cmp ax, 0x19
jne 0x40dc0f
mov edx, dword [0x42a994]
push edx
call fcn.00402860
add esp, 4
test dword [esi + 8], ebx
je 0x40dc5c
mov ax, word [esi + 4]
cmp ax, 0x17
je 0x40dc2a
cmp ax, 0x19
je 0x40dc2a
cmp ax, 0x1f4
jne 0x40dc5c
push esi
call fcn.0040d6c0
add esp, 4
test eax, eax
jne 0x40dc5c
mov ecx, dword [0x42a994]
mov dword [0x42ae14], 0x16
push ecx
call fcn.00409ce0
add esp, 4
mov edx, dword [esi + 0x24]
push edx
call fcn.0041a6b0
add esp, 4
mov eax, dword [esi + 0x24]
push eax
call fcn.0041a3e3
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 [0x42aa24]
add esp, 4
cmp edx, eax
jb 0x40daaa
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x8c
ret
mov dword [0x42ae14], 0x16
jmp 0x40dc50
mov eax, dword [0x42a994]
mov dword [0x42ae14], 0x16
push eax
call fcn.00409ce0
mov eax, dword [esi + 8]
add esp, 4
test ebx, eax
je 0x40dc50
mov eax, dword [esi + 0xc]
test ah, 0x60
jne 0x40dc50
push 1
call fcn.0040d420
jmp 0x40dc4d
Function at 0x40e860
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 0x40e890
mov eax, 1
pop edi
add esp, 0x10
ret
mov edx, dword [0x42a994]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40e9e1
push eax
call fcn.0041a280
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40e9e1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x42a994]
push ebx
push esi
push ebp
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40e9d6
mov al, byte [edi + 8]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test al, 2
je 0x40e968
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x425da4
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40e968
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x2e]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x40e926
jne 0x40e968
mov edx, dword [edx + 0xc]
mov eax, dword [edi + 0x32]
cmp edx, eax
jbe 0x40e968
push 0x1d
push 7
call fcn.00403a00
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x40e9ce
mov ecx, dword [0x42ae10]
test ecx, ecx
jne 0x40e9ce
mov ecx, dword [0x42a994]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
jne 0x40e9ce
mov eax, dword [0x42ae10]
test eax, eax
jne 0x40e9d6
test byte [edi + 8], 4
je 0x40e9d6
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 0x40e9d6
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x3e]
xor ecx, ecx
mov cx, word [edx]
cmp eax, ecx
je 0x40e9d6
push 0x1e
push 7
call fcn.00403a00
add esp, 8
test eax, eax
je 0x40e9d6
mov ecx, dword [0x42a994]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
je 0x40e9d6
mov dword [esp + 0x10], 0
push ebp
call fcn.0041a3e3
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 0x40f580
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 0x40f629
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x42a994]
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 0x40f5ec
inc dword [esp]
jmp 0x40f5fc
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 [0x42a994]
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 0x40fb40
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x42ad28]
sub esp, 0x208
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
jne 0x40fc23
push 0x42ad28
push 0x104
call fcn.004021c0
add esp, 8
test eax, eax
jne 0x40fb8b
pop edi
pop esi
pop ebp
mov dword [0x42ae14], 0xc
or eax, 0xffffffff
pop ebx
add esp, 0x208
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 1
mov eax, dword [0x42ad28]
push eax
push 0x104
call ebp
mov ecx, dword [0x42ad28]
push ecx
call fcn.00402110
mov edx, dword [0x42ad28]
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 [0x42ad28]
push edx
call fcn.0041a478
add esp, 0x14
test eax, eax
jne 0x40fbea
inc ebx
cmp ebx, 0x3e7
jl 0x40fb96
jmp 0x40fbfc
mov eax, dword [0x42ad28]
push eax
call fcn.0041a44c
add esp, 4
test eax, eax
je 0x40fc23
mov ecx, dword [0x42ad28]
mov dword [0x42ae14], 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 [0x42ad28]
push edx
call fcn.00402110
mov ebx, dword [esp + 0x220]
mov ecx, dword [0x42ad28]
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 [0x42ad28]
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 0x40fd1e
mov eax, dword [0x42ad14]
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.0040f8c0
add esp, 0x24
test eax, eax
je 0x40fcf7
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00401140
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x40fd1e
lea edx, [esp + 0x10]
mov dword [0x42ae14], 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 [0x42ae14], 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 0x40fd40
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x42ad28]
test eax, eax
je 0x40fdde
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
call ebx
test eax, eax
je 0x40fdd0
push esi
push 1
push 0x118
call fcn.0041a332
mov esi, eax
add esp, 8
test esi, esi
je 0x40fdb9
push edi
push esi
push str..bin
call fcn.0041b271
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x40fdaf
test byte [esi], 0x10
jne 0x40fd98
lea eax, [esi + 0x14]
push eax
call fcn.0041a6b0
add esp, 4
push esi
push edi
call fcn.0041b33b
add esp, 8
test eax, eax
je 0x40fd87
push edi
call fcn.0041b400
add esp, 4
push esi
call fcn.0041a3e3
add esp, 4
pop edi
push 0x425e00
call ebx
mov ecx, dword [0x42ad28]
push ecx
call fcn.0041b247
add esp, 4
pop esi
push 0x42ad28
call fcn.00402200
add esp, 4
pop ebx
ret

Function at 0x40fe60
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 0x40fe85
push 0x5c
push ebx
call fcn.0041a130
add esp, 8
test eax, eax
je 0x40fea1
inc eax
jmp 0x40fea3
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 0x40fead
mov esi, dword [esp + 0x18]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40fef2
mov dword [0x42ae14], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x42ae04]
mov dword [0x42ae18], eax
mov ecx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40fee6
jmp 0x40ff1d
push 2
push esi
mov ebp, 1
call fcn.0041a0dd
add esp, 8
test eax, eax
je 0x40ff1d
cmp dword [0x42ae4c], 0xd
jne 0x40ff1d
push 0x180
push esi
call fcn.00419f9c
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 0x411de0
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
mov eax, dword [0x42adfc]
sub esp, 0x14
cmp eax, 0xffffffff
push ebx
push ebp
push esi
push edi
je 0x411f30
mov ecx, dword [0x42ae00]
mov edx, dword [eax*4 + 0x42ac30]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x411e02
mov eax, dword [0x42acf0]
test eax, eax
je 0x411f30
cmp dword [eax + 8], 1
jne 0x411f30
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x411f30
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 0x411e6f
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 0x411e55
lea ecx, [esp + 0x10]
mov byte [ebp], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x411efc
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 0x411ebb
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 0x411ea1
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 0x411efc
cmp byte [eax], 0xcc
je 0x411ef0
call eax
test eax, eax
je 0x411efc
mov dword [0x42ad40], 1
jmp 0x411f30
mov eax, dword [0x42acf0]
mov dword [0x425398], 0x409550
test eax, eax
je 0x411f26
cmp dword [eax + 8], 1
jne 0x411f26
mov ecx, dword [eax + 0x14]
mov dword [0x425394], 0x408d80
test ecx, ecx
je 0x411f30
mov dword [0x425394], 0x409020
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [0x42adfc], eax
mov dword [0x42aa24], esi
mov ecx, dword [eax*4 + 0x42acb0]
mov dword [0x42aa20], esi
cmp ecx, esi
je 0x411f63
mov edx, dword [ecx]
add ecx, 4
mov dword [0x42aa24], edx
mov dword [0x42aa20], ecx
mov ecx, dword [eax*4 + 0x42ac70]
mov edx, dword [0x42ae00]
mov dword [0x42acf0], ecx
mov ecx, dword [eax*4 + 0x42ac30]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x411f7d
mov eax, dword [0x42acf0]
cmp eax, esi
je 0x411fa5
cmp dword [eax + 8], 1
jne 0x411fa5
cmp dword [eax + 0x14], esi
jne 0x411fa5
mov dword [0x425394], 0x408d80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret