joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407696
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4280c8]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push edi
xor edi, edi
cmp eax, edi
jne 0x4076b9
xor eax, eax
jmp 0x407760
push edi
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 5
push eax
mov dword [ebp - 0x48], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4076e8
lea eax, [ebp - 0x44]
push eax
call fcn.00410bbe
add eax, 8
pop ecx
and eax, 0xfffffff8
jmp 0x4076ed
mov eax, 0x400
push esi
mov esi, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x48], eax
call fcn.00406038
mov esi, eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x48]
push esi
push dword [ebx + 8]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x407747
cmp dword [ebp - 0x4c], 0
je 0x40774d
add edi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
cmp edx, edi
ja 0x407736
mov esi, dword [ebp + 0xc]
mov eax, edi
shr eax, 1
add edx, eax
mov dword [ebp - 0x48], edx
call fcn.00406038
mov edx, dword [ebp - 0x48]
mov esi, eax
lea eax, [ebp - 0x4c]
push eax
sub edx, edi
push edx
lea eax, [edi + esi]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call ebx
test eax, eax
jne 0x407710
mov esi, dword [ebp + 0xc]
mov eax, edi
call fcn.004072e4
xor eax, eax
cmp eax, edi
sbb eax, eax
neg eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.004120cb
leave
ret 8

Function at 0x40776e
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4280c8]
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
mov dword [ebp - 4], eax
je 0x4077c0
call fcn.004051e7
call fcn.004051d4
push edi
push 0x84400000
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x4077c4
push str.InternetOpenUrl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.0040782a
xor eax, eax
jmp 0x40781c
push ebx
push 0x20
pop ebx
push edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 0x13
push eax
mov dword [ebp - 0x48], ebx
call edi
test eax, eax
je 0x407818
lea eax, [ebp - 0x44]
push eax
call fcn.00410bbe
cmp eax, 0x194
pop ecx
je 0x407818
push 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push 5
push dword [esi + 8]
mov dword [ebp - 0x48], ebx
call edi
test eax, eax
je 0x407818
lea eax, [ebp - 0x44]
push eax
call fcn.00410bbe
pop ecx
jmp 0x40781b
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.004120cb
leave
ret 0xc
Function at 0x407c45
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4280c8]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x407c6b
or eax, 0xffffffff
jmp 0x407d31
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str._acctdata
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407caa
push 0xfffffffffffffffe
pop eax
jmp 0x407d30
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x218], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 1
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x407cf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AllocateAndInitializeSid_Error__u_n
call fcn.00411107
pop ecx
pop ecx
push 0xfffffffffffffffd
jmp 0x407ca4
push 3
push 2
push 0x10000000
push ebx
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push 1
push eax
call fcn.00407b65
cmp eax, ebx
jne 0x407d30
lea eax, [ebp - 0x214]
push eax
push str.Succeed_CreateDirectory__s._n
call fcn.00411107
pop ecx
pop ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.004120cb
leave
ret 4
Function at 0x407e0d
Capabilities:
Create directory
Get common file path
Get program files directory

Disassembly:
mov eax, 0x41d4bc
call fcn.004128c4
sub esp, 0x210
mov eax, dword [0x4280c8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov esi, ecx
mov dword [ebp - 0x21c], edi
mov eax, dword [0x4291ac]
mov ecx, 0x4291ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x407e53
mov esi, 0x42a460
push dword [esi]
push dword [ebp + 8]
push str.GetMiniInstallPath_bCreateDir__d__nMiniType_d_n
call fcn.0040b1f8
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [esi]
call fcn.0040c201
test eax, eax
je 0x407eb1
lea eax, [ebp - 0x218]
push eax
call fcn.0040c17b
test eax, eax
pop ecx
je 0x407eb1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00405080
mov esi, dword [ebp - 0x21c]
push esi
push str.GetMiniInstallPath_stdDir__s_n
jmp 0x407f39
cmp dword [esi], edi
jne 0x407ec8
lea esi, [ebp - 0x21c]
call fcn.00405040
mov esi, dword [ebp - 0x21c]
jmp 0x407f40
push edi
push 0x26
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Dianji
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [ebp + 8], edi
je 0x407efe
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [esi]
lea eax, [ebp - 0x218]
push 0x429fd8
push eax
lea eax, [ebp - 0x21c]
push str._sL_sMT_d_
push eax
call fcn.004023ad
mov esi, dword [ebp - 0x21c]
add esp, 0x14
cmp dword [ebp + 8], edi
je 0x407f33
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push str.GetMiniInstallPath_miniDir__s_n
call fcn.0040b1f8
pop ecx
pop ecx
add esi, 0xfffffff0
mov eax, esi
call fcn.00404f0d
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.00402528
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop esi
call fcn.004120cb
leave
ret
Function at 0x407f6e
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41d5d8
call fcn.004128c4
sub esp, 0x214
mov eax, dword [0x4280c8]
push esi
mov esi, ecx
cmp esi, 1
mov dword [ebp - 0x10], eax
je 0x408046
cmp esi, 2
je 0x408046
mov eax, dword [0x4291ac]
push ebx
push edi
mov ecx, 0x4291ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
xor eax, eax
cmp esi, eax
mov dword [ebp - 4], eax
lea ebx, [ebp - 0x220]
push eax
jne 0x407fd1
xor ecx, ecx
call fcn.00407e0d
pop ecx
mov byte [ebp - 4], 1
jmp 0x407fdd
mov ecx, esi
call fcn.00407e0d
pop ecx
mov byte [ebp - 4], 2
lea edi, [ebp - 0x21c]
call fcn.00404d7f
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00402528
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
je 0x408036
push dword [0x429110]
mov eax, edi
push eax
call fcn.00404e83
mov esi, dword [ebp - 0x21c]
push esi
push 0
push dword [0x429118]
push dword [0x429114]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor edi, edi
inc edi
cmp eax, edi
je 0x408038
xor edi, edi
lea eax, [esi - 0x10]
call fcn.00402528
mov eax, edi
pop edi
pop ebx
jmp 0x4080a4
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00410545
pop ecx
pop ecx
push dword [0x429110]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, 2
lea eax, [ebp - 0x218]
push eax
jne 0x40808a
push 0
jmp 0x40808f
push 0x420df0
push dword [0x429118]
push dword [0x429114]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.004120cb
leave
ret
Function at 0x408397
Capabilities:
Copy file
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x3ec]
sub esp, 0x46c
mov eax, dword [0x4280c8]
push ebx
push esi
mov dword [ebp + 0x3e8], eax
push 0x104
lea eax, [ebp - 0x28]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x28]
push 0x5c
push eax
call fcn.00410545
mov ebx, str.LVLV_221.EXE
add eax, 2
push ebx
push eax
call fcn.00410e34
add esp, 0x10
test eax, eax
je 0x4084ec
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x1e0]
push eax
call edi
lea eax, [ebp + 0x1e0]
push 0x5c
push eax
call fcn.00410545
pop ecx
pop ecx
push ebx
add eax, 2
push eax
call edi
push esi
lea eax, [ebp + 0x1e0]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040f270
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
call fcn.0040f270
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x1e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x4084b4
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
lea eax, [ebp + 0x1e0]
jne 0x408497
push eax
push str.RunCloneUpdate_CreateProcess_failed:_s___n
jmp 0x4084d0
push esi
push dword [ebp - 0x2c]
push eax
push str.RunCloneUpdate_CreateProcess_failed:_s___n_tError:__s_n
call fcn.0040b1f8
add esp, 0x10
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4084d7
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
lea eax, [ebp + 0x1e0]
push eax
push str.RunCloneUpdate_CreateProcess_OK:_s___n
call fcn.0040b1f8
pop ecx
pop ecx
push str.__RunCloneUpdate_exit__221___n_n
call fcn.0040b1f8
pop ecx
push 0xffffff23
call fcn.00410db9
mov ecx, dword [ebp + 0x3e8]
pop esi
pop ebx
call fcn.004120cb
add ebp, 0x3ec
leave
ret

Function at 0x4085f6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4280c8]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00410545
pop ecx
pop ecx
push str.llsetup.ini
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp byte [ebp + 0x10], 0
lea eax, [ebp - 0x20c]
push eax
je 0x40865d
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x40866b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
call fcn.004120cb
leave
ret
Function at 0x4096b2
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push dword [esp + 0x10]
push 0x4095cc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4096da
push esi
push esi
push 2
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret

Function at 0x4096dc
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x32c
mov eax, dword [0x4280c8]
push ebx
push esi
push edi
push 0x8000
mov dword [ebp + 0x6c], eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x31
mov dword [ebp - 0x268], eax
pop ecx
push dword [ebp + 0x78]
xor eax, eax
mov dword [ebp - 0x5c], 0x20
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x264]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4227fc
lea eax, [ebp - 0x264]
push eax
call edi
push 0x429f10
lea eax, [ebp - 0x264]
push eax
call edi
push 0x73
xor ecx, ecx
call fcn.00407d3d
xor edi, edi
test eax, eax
pop ecx
je 0x409764
push 0x4227f4
lea eax, [ebp - 0x5c]
jmp 0x40976c
cmp ebx, edi
je 0x40976f
push ebx
lea eax, [ebp - 0x5a]
push eax
call esi
lea eax, [ebp - 0x5c]
push eax
push str.TryRun_szCmd_s___n
call fcn.0040b1f8
push 0x44
pop esi
push esi
lea eax, [ebp - 0x2bc]
push edi
push eax
call fcn.0040f270
push 0x10
lea eax, [ebp - 0x278]
push edi
push eax
mov dword [ebp - 0x2bc], esi
call fcn.0040f270
add esp, 0x20
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x2bc]
push eax
push dword [ebp + 0x78]
lea eax, [ebp - 0x5c]
push edi
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4097e9
lea eax, [ebp - 0x264]
push eax
push str.TryRun_CreateProcess_failed:_s___n
call fcn.0040b1f8
pop ecx
pop ecx
jmp 0x40988c
push dword [ebp + 0x7c]
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
mov edi, 0x80
jne 0x40981a
mov dword [ebp - 0x290], edi
push dword [ebp - 0x278]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x274]
call esi
mov eax, dword [ebp - 0x290]
cmp eax, 2
je 0x409866
cmp eax, edi
je 0x40984d
cmp eax, 0x103
je 0x409866
cmp eax, 0xc0000135
jne 0x40986f
push eax
lea eax, [ebp - 0x264]
push eax
push str.TryRun_GetExitCodeProcess_failed:_s__Flags0x_x__n
call fcn.0040b1f8
add esp, 0xc
xor eax, eax
jmp 0x40989a
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x290]
lea eax, [ebp - 0x264]
push eax
push str.TryRun_CreateProcess_OK:_s_Flags0x_x__n
call fcn.0040b1f8
xor edi, edi
add esp, 0xc
inc edi
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, edi
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
pop ebx
call fcn.004120cb
add ebp, 0x70
leave
ret
Function at 0x409a4e
Capabilities:
Create directory
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push ecx
dec eax
push esi
push edi
je 0x409b29
dec eax
je 0x409b0b
dec eax
je 0x409aba
dec eax
je 0x409aab
dec eax
je 0x409a72
xor eax, eax
jmp 0x409bc8
call fcn.0040e177
mov esi, 0x42a8b0
call fcn.0040c65f
push str.QuietInstall__SetRegister_n
call fcn.0040b1f8
pop ecx
push 1
mov ecx, 0x42a678
call fcn.00404615
push 0
push dword [0x429000]
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x409bc5
mov ecx, 0x42a8b0
call fcn.0040c0ab
jmp 0x409bc8
test edx, edx
jl 0x409a6b
mov eax, dword [0x42a67c]
test eax, eax
je 0x409a6b
mov ecx, dword [0x42a680]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x409a6b
mov esi, edx
shl esi, 2
add eax, esi
mov eax, dword [eax]
mov edi, 0x42a8b0
push edi
push dword [eax + 0x38]
push str.QuietInstall__RunSfxSetup__s_at__s._n
call fcn.0040b1f8
mov eax, dword [0x42a67c]
add eax, esi
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
add esp, 0xc
call fcn.0040d7dc
jmp 0x409bc5
push 0x42a8b0
push 0
push 0
push 0
call fcn.0040db12
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x409bc8
mov eax, dword [0x42a460]
test eax, eax
push ebx
je 0x409b5f
cmp eax, 0xffffffff
je 0x409b5f
push 1
xor ecx, ecx
lea ebx, [ebp - 4]
call fcn.00407e0d
mov esi, dword [ebp - 4]
pop ecx
push esi
mov edi, 0x42a8b0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi - 0x10]
call fcn.00402528
jmp 0x409ba0
push 0
push 0x26
mov edi, 0x42a8b0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Dianji
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call ebx
push 0x4227fc
push edi
call esi
push dword [0x428ff8]
push edi
call esi
push 0
push edi
call ebx
push edi
push str.QuietInstall:_szInstallDir_s_n
call fcn.0040b1f8
pop ecx
pop ecx
push 0
mov ecx, 0x42a678
call fcn.00404615
push str.QuietInstall__SaveInstallReadyStatus_n
call fcn.0040b1f8
pop ecx
pop ebx
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x409fe8
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jbe 0x40a00a
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
shl eax, 8
shr esi, 0x18
or eax, edi
xor eax, dword [esi*4 + 0x4205f0]
inc ecx
dec edx
jne 0x409ff0
pop edi
pop esi
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x4205f0]
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x4205f0]
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x4205f0]
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x4205f0]
ret
Function at 0x40a047
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41d5ad
call fcn.004128c4
sub esp, 0x440
mov eax, dword [0x4280c8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x44], ebx
mov eax, dword [0x4291ac]
push edi
mov ecx, 0x4291ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
lea esi, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00405040
push ebx
push ebx
push 3
push ebx
push 1
push connect
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
je 0x40a1dc
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push ebx
push eax
call edi
cmp eax, 0x10
mov dword [ebp - 0x3c], eax
jbe 0x40a1d3
add eax, 4
push eax
mov dword [ebp - 0x44], ebx
call fcn.0040f0dc
mov esi, eax
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
push ebx
push esi
mov dword [ebp - 0x34], esi
call fcn.0040f270
add esp, 0x10
push ebx
push ebx
push ebx
push dword [ebp - 0x40]
call edi
mov edi, dword [ebp - 0x3c]
push ebx
lea eax, [ebp - 0x44]
push eax
push edi
push esi
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a1d3
cmp dword [ebp - 0x44], edi
jne 0x40a1d3
cmp dword [esi], 0x4d454f4c
je 0x40a14f
mov eax, dword [0x4291ac]
mov ecx, 0x4291ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push esi
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.00406015
mov edi, dword [ebp - 0x34]
push edi
lea eax, [ebp - 0x38]
call fcn.00405c98
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00402528
jmp 0x40a1cc
push dword [esi + 4]
lea edi, [ebp - 0x30]
push str._2_db_L_
push 0x20
pop eax
call fcn.00409f8c
pop ecx
pop ecx
mov eax, edi
push eax
push eax
call fcn.0040f390
pop ecx
push eax
lea esi, [ebp - 0x44c]
call fcn.0040ab3a
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
call fcn.0040f0dc
mov edi, dword [ebp - 0x3c]
mov esi, eax
mov dword [esi + edi], ebx
mov ebx, dword [ebp - 0x34]
lea eax, [edi - 8]
push eax
lea edx, [ebx + 8]
mov eax, esi
lea ecx, [ebp - 0x44c]
call fcn.0040ac33
push ebx
call fcn.00410b38
lea ebx, [esi + 4]
add esp, 0x14
lea edx, [edi - 0xc]
mov ecx, ebx
mov dword [ebp - 0x34], esi
call fcn.00409fe8
cmp dword [esi], eax
jne 0x40a1d3
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.00405080
push esi
call fcn.00410b38
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x38]
add esi, 0xfffffff0
mov eax, esi
call fcn.00404f0d
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00402528
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004120cb
leave
ret
Function at 0x40a56c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [0x42a670], 0
mov eax, dword [0x4280c8]
mov dword [ebp - 4], eax
jne 0x40a58b
or eax, 0xffffffff
jmp 0x40a5f7
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..dju
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [0x42a670]
test eax, eax
jne 0x40a5d7
push 0x80004003
call fcn.0041b9a0
mov eax, dword [0x42a670]
mov ecx, dword [eax]
push 0x10004
lea edx, [ebp - 0x20c]
push edx
push dword [ebp + 0x18]
lea edx, [ebp + 8]
push 0x420b70
push edx
push eax
call dword [ecx + 0xc]
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.004120cb
leave
ret

Function at 0x40a708
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4280c8]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00410545
pop ecx
pop ecx
push str.ppdownload.ini
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
push 0
push str.MODE
push str.PPDOWNLOAD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
call fcn.004120cb
leave
ret

Function at 0x40a87a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor esi, esi
push esi
push esi
push dword [ebp + 8]
push 0x40a77b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 8]
call fcn.004038ab
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x40a8ba
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
call edi
test eax, eax
jne 0x40a8a6
pop edi
pop esi
leave
ret
Function at 0x40a8cb
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x4280c8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp + 0x59c], eax
mov esi, 0x104
push esi
lea eax, [ebp + 0x394]
push eax
xor ebx, ebx
push ebx
call edi
lea eax, [ebp + 0x394]
push 0x5c
push eax
call fcn.00410545
pop ecx
pop ecx
push str.ppdownload.ini
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x394]
push eax
push esi
lea eax, [ebp - 0x7c]
push eax
push 0x420b70
push str.AutoRunKey
push str.PPDOWNLOAD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40a99e
push esi
lea eax, [ebp + 0x18c]
push eax
push ebx
call edi
push ebx
lea eax, [ebp - 0x80]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x18c]
push eax
push 1
push ebx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x59c]
pop edi
pop esi
pop ebx
call fcn.004120cb
add ebp, 0x5a0
leave
ret