joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e2f20
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x5bb7ac]
mov eax, dword [esp + 4]
mov edx, ecx
shr ecx, 8
xor edx, eax
and edx, 0xff
xor ecx, dword [edx*4 + 0x5aa230]
mov edx, dword [0x5bb7b4]
mov dword [0x5bb7ac], ecx
movzx ecx, cl
add ecx, dword [0x5bb7b0]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [0x5bb7b0], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x5aa230]
mov dword [0x5bb7b4], edx
ret 4

Function at 0x4e2f80
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
push 0x5aa230
call fcn.0043a970
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x5bb7ac], eax
mov dword [0x5bb7b0], edx
mov dword [0x5bb7b4], esi
mov cl, byte [edi]
test cl, cl
je 0x4e3010
jmp 0x4e2fc0
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5aa230]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x5aa230]
mov dword [0x5bb7ac], eax
mov dword [0x5bb7b0], edx
mov dword [0x5bb7b4], esi
mov cl, byte [edi]
test cl, cl
jne 0x4e2fc0
pop edi
pop esi
ret 4
Function at 0x4e3860
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0xdc]
cmp eax, 0xffffffff
je 0x4e38d1
cmp eax, 0x40
jbe 0x4e3887
lea edx, [esi + 0x40]
mov al, 1
call fcn.004e37b0
mov dword [esi + 0xdc], 0x14
mov eax, dword [esi + 0xdc]
mov ecx, 0x40
sub ecx, eax
push ecx
add eax, esi
push 0
push eax
call fcn.004e7df0
add esp, 0xc
xor eax, eax
xor dword [esi + eax*4], 0x36363636
inc eax
cmp eax, 0x10
jb 0x4e38a4
push edi
lea edi, [esi + 0x40]
push edi
call fcn.004684d0
push 1
push 0x40
push esi
push edi
call fcn.00468510
mov dword [esi + 0xdc], 0xffffffff
pop edi
test ebx, ebx
je 0x4e38e6
mov edx, dword [esp + 8]
push 1
push ebx
push edx
add esi, 0x40
push esi
call fcn.00468510
pop esi
ret 4

Function at 0x4e38f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x28], eax
cmp dword [edi + 0xdc], 0xffffffff
push ebx
push ebp
mov ebp, dword [esp + 0x38]
je 0x4e3918
push 0
mov eax, edi
xor ebx, ebx
call fcn.004e3860
push esi
lea ebx, [edi + 0x40]
mov al, 1
lea esi, [esp + 0x20]
mov edx, ebx
call fcn.004e37b0
xor eax, eax
pop esi
lea esp, [esp]
xor dword [edi + eax*4], 0x6a6a6a6a
inc eax
cmp eax, 0x10
jb 0x4e3930
push ebx
call fcn.004684d0
push 1
push 0x40
push edi
push ebx
call fcn.00468510
push 1
push 0x14
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00468510
push 1
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.004685d0
xor eax, eax
lea esp, [esp]
mov edx, eax
and edx, 3
mov ecx, 3
sub ecx, edx
add ecx, ecx
mov edx, eax
shr edx, 2
mov edx, dword [esp + edx*4 + 8]
add ecx, ecx
add ecx, ecx
shr edx, cl
inc eax
mov byte [esp + eax + 0x1b], dl
cmp eax, 0x14
jb 0x4e3970
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x4e39ae
push eax
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.004e7a80
add esp, 0xc
mov ecx, dword [esp + 0x30]
pop ebp
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x2c
ret 8
Function at 0x4e39d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x2e8], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push pe_nt_image_headers32
mov esi, ecx
lea ecx, [esp + 0x10c]
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], eax
call fcn.004e7df0
mov edi, dword [ebp + 8]
add esp, 0xc
push esi
lea esi, [esp + 0x10c]
call fcn.004e37f0
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x38
lea edi, [esp + 0x1ec]
lea eax, [esp + 0x1ec]
rep movsd dword es:[edi], dword [esi]
call fcn.004e3860
mov edx, dword [ebp + 0x18]
dec edx
mov eax, 0xcccccccd
mul edx
shr edx, 4
add edx, 1
mov dword [esp + 0x20], edx
je 0x4e3bd3
mov ebx, 1
lea eax, [esp + 0x2cc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x2cc], eax
mov dword [esp + 0x2d0], eax
mov dword [esp + 0x2d4], eax
mov dword [esp + 0x2d8], eax
mov dword [esp + 0x2dc], eax
mov eax, ebx
shr eax, 8
mov ecx, 0x38
lea esi, [esp + 0x1e8]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
mov byte [esp + 0x2e2], al
mov eax, dword [ebp + 0x10]
shr ecx, 0x18
mov byte [esp + 0x2e1], dl
mov byte [esp + 0x2e0], cl
mov byte [esp + 0x2e3], bl
mov edx, 4
test eax, eax
jbe 0x4e3b94
mov dword [esp + 0x18], eax
lea ebx, [ebx]
lea ecx, [esp + 0x2e0]
push ecx
lea eax, [esp + 0x2c]
mov ebx, edx
call fcn.004e3860
push 0x14
lea edx, [esp + 0x2e4]
push edx
lea edi, [esp + 0x30]
call fcn.004e38f0
xor edx, edx
jmp 0x4e3b20
movzx eax, byte [esp + edx + 0x2e0]
xor byte [esp + edx + 0x2cc], al
movzx ecx, byte [esp + edx + 0x2e1]
movzx eax, byte [esp + edx + 0x2e2]
xor byte [esp + edx + 0x2cd], cl
xor byte [esp + edx + 0x2ce], al
movzx ecx, byte [esp + edx + 0x2e3]
movzx eax, byte [esp + edx + 0x2e4]
xor byte [esp + edx + 0x2cf], cl
xor byte [esp + edx + 0x2d0], al
add edx, 5
cmp edx, 0x14
jb 0x4e3b20
sub dword [esp + 0x18], 1
mov ecx, 0x38
lea esi, [esp + 0x108]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
jne 0x4e3af0
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, dword [ebp + 0x18]
jae 0x4e3bb4
mov edx, dword [esp + 0x10]
mov dl, byte [edx + eax]
mov esi, dword [esp + 0x24]
mov byte [eax + esi], dl
inc ecx
inc eax
cmp ecx, 0x14
jb 0x4e3b9a
mov eax, 0x14
add dword [esp + 0x14], eax
sub dword [esp + 0x10], eax
inc ebx
lea eax, [ebx - 1]
mov dword [esp + 0x1c], ebx
cmp eax, dword [esp + 0x20]
jb 0x4e3a74
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e6b3a
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4e6b3a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x519bc0]
jne 0x4e6b44
repz ret
jmp fcn.004ed267
Function at 0x4f5bcc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004eca7f
and dword [ebp - 4], 0
cmp dword [0x5be1a0], 0
mov ebx, eax
jne 0x4f5c7d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4f5d2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4f5d2e
push eax
call fcn.004eca0d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5be1a0], eax
call esi
push eax
call fcn.004eca0d
mov dword [esp], 0x50c310
push edi
mov dword [0x5be1a4], eax
call esi
push eax
call fcn.004eca0d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5be1a8], eax
call esi
push eax
call fcn.004eca0d
pop ecx
mov dword [0x5be1b0], eax
test eax, eax
je 0x4f5c7d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004eca0d
pop ecx
mov dword [0x5be1ac], eax
mov eax, dword [0x5be1ac]
cmp eax, ebx
je 0x4f5cd5
cmp dword [0x5be1b0], ebx
je 0x4f5cd5
push eax
call fcn.004eca88
push dword [0x5be1b0]
mov esi, eax
call fcn.004eca88
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4f5cd5
test edi, edi
je 0x4f5cd5
call esi
test eax, eax
je 0x4f5ccc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4f5ccc
test byte [ebp - 0xc], 1
jne 0x4f5cd5
or dword [ebp + 0x10], 0x200000
jmp 0x4f5d0e
mov eax, dword [0x5be1a4]
cmp eax, ebx
je 0x4f5d0e
push eax
call fcn.004eca88
pop ecx
test eax, eax
je 0x4f5d0e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4f5d0e
mov eax, dword [0x5be1a8]
cmp eax, ebx
je 0x4f5d0e
push eax
call fcn.004eca88
pop ecx
test eax, eax
je 0x4f5d0e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5be1a0]
call fcn.004eca88
pop ecx
test eax, eax
je 0x4f5d2e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4f5d30
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402860
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x214]
push 0x208
push eax
push edi
call fcn.00402950
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x40293a
mov al, byte [esp + 8]
push esi
test al, al
je 0x402912
push 0x5c
push edi
call fcn.00412f50
mov esi, eax
add esp, 8
test esi, esi
je 0x4028ad
inc esi
jmp 0x4028af
mov esi, edi
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x41f1fc]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x4028d3
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402912
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
lea eax, [esp + 0x1c]
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]
push 0x41efb8
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
mov dword [0x41efb8], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
pop esi
pop edi
add esp, 0x20c
ret

Function at 0x402b70
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push edi
push 0x208
push eax
push esi
call fcn.00402950
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov edi, eax
mov al, byte [esp + 0xc]
test al, al
je 0x402c02
push 0x5c
push esi
call fcn.00412f50
add esp, 8
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x41f1fc]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402bd2
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402c02
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
je 0x402c25
push 0x41efb8
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
add esp, 0x20c
ret
Function at 0x402cd0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push 0x208
call fcn.004130a0
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x402cf6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push eax
push str.__s_
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x78]
add esp, 0xc
cmp edx, ebx
je 0x402d4f
cmp byte [edx], bl
je 0x402d4f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x41a548]
mov word [edi - 1], cx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x208
call fcn.004130a0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x402d75
push ebp
call fcn.00413203
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x68]
lea edi, [esi + 0x104]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402d91
push 0x5c
push edi
call fcn.00412f50
add esp, 8
cmp eax, ebx
je 0x402db3
push edi
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [eax], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00413203
push ebp
call fcn.00413203
add esp, 8
cmp edi, ebx
jne 0x402e1a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret
Function at 0x409630
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 0x409660
mov eax, 1
pop edi
add esp, 0x10
ret
mov edx, dword [0x41efe0]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4097b1
push eax
call fcn.004130a0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4097b1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x41efe0]
push ebx
push esi
push ebp
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4097a6
mov al, byte [edi + 8]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test al, 2
je 0x409738
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x41a87c
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409738
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x28]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x4096f6
jne 0x409738
mov edx, dword [edx + 0xc]
mov eax, dword [edi + 0x2c]
cmp edx, eax
jbe 0x409738
push 0x1d
push 7
call fcn.00403a00
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x40979e
mov ecx, dword [0x41f270]
test ecx, ecx
jne 0x40979e
mov ecx, dword [0x41efe0]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
jne 0x40979e
mov eax, dword [0x41f270]
test eax, eax
jne 0x4097a6
test byte [edi + 8], 4
je 0x4097a6
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 0x4097a6
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x38]
xor ecx, ecx
mov cx, word [edx]
cmp eax, ecx
je 0x4097a6
push 0x1e
push 7
call fcn.00403a00
add esp, 8
test eax, eax
je 0x4097a6
mov ecx, dword [0x41efe0]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
je 0x4097a6
mov dword [esp + 0x10], 0
push ebp
call fcn.00413203
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 0x409850
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 0x4098f9
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x41efe0]
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 0x4098bc
inc dword [esp]
jmp 0x4098cc
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 [0x41efe0]
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 0x40a020
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x1c
call fcn.00406c60
test eax, eax
je 0x40a0ab
call fcn.00409900
test eax, eax
je 0x40a0a3
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x40a096
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
je 0x40a083
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x40a064
call fcn.00409900
test eax, eax
jne 0x40a051
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
jmp fcn.00408b60
add esp, 0x1c
ret
Function at 0x40b370
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x40b390
push 0x180
push esi
call fcn.00412dbc
add esp, 8
mov eax, dword [0x41f1fc]
test eax, eax
je 0x40b3db
test esi, esi
jne 0x40b3bc
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 0x40b40e
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 0x40b470
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 0x41a8d0
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 0x40b588
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 0x40b57e
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.004011c0
add esp, 0xc
test eax, eax
jne 0x40b571
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x40b571
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x40b540
cmp byte [edx + 1], 0x79
jne 0x40b540
cmp byte [edx + 2], 0x7a
jne 0x40b540
cmp byte [edx + 3], 0x3d
jne 0x40b540
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 0x40b54b
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x40b504
jmp 0x40b571
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
Function at 0x412dbc
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 0x412de7
test byte [esp + 8], 0x80
je 0x412dd6
and al, 0xfe
jmp 0x412dd8
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x412df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ffa
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412f1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ffa
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x412f3e
test byte [esp + 8], 2
je 0x412f3e
mov dword [0x41f298], 0xd
mov dword [0x41f29c], 5
jmp 0x412f19
xor eax, eax
ret

Function at 0x416bf1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ef20
cmp edx, dword [eax]
je 0x416c13
add eax, 8
inc ecx
cmp eax, 0x41efb0
jl 0x416c04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ef20]
jne 0x416d41
mov eax, dword [0x41f2ec]
cmp eax, 1
je 0x416d1b
test eax, eax
jne 0x416c44
cmp dword [0x41c9b4], 1
je 0x416d1b
cmp edx, 0xfc
je 0x416d41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416c7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004175d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00415b70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x416cbe
lea eax, [ebp - 0x1a4]
push eax
call fcn.00415b70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a654
push edi
call fcn.004134d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004175d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004175e0
lea eax, [ebp - 0xa0]
push 0x418b2c
push eax
call fcn.004175e0
push dword [esi + 0x41ef24]
lea eax, [ebp - 0xa0]
push eax
call fcn.004175e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004179f5
add esp, 0x2c
pop edi
jmp 0x416d41
lea eax, [ebp + 8]
lea esi, [esi + 0x41ef24]
push 0
push eax
push dword [esi]
call fcn.00415b70
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