joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b5a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.00408006
push str.SiteAccess
call fcn.004073a1
mov dword [ebp - 0x10], eax
mov dword [esp], str.ExecAccess
call fcn.004073a1
mov dword [ebp - 8], eax
mov dword [esp], str.MonAccess
call fcn.004073a1
mov dword [ebp - 4], eax
mov dword [esp], str.UDiskAccess
call fcn.004073a1
pop ecx
xor ebx, ebx
push 4
mov dword [ebp - 0x1c], eax
pop esi
cmp dword [ebp - 0x10], ebx
je 0x408bbf
cmp dword [ebp - 8], ebx
je 0x408bd6
cmp dword [ebp - 4], ebx
je 0x408bd6
cmp eax, ebx
je 0x408bda
xor edi, edi
jmp 0x408be1
cmp dword [ebp - 8], ebx
jne 0x408bd2
cmp dword [ebp - 4], ebx
jne 0x408bd2
cmp eax, ebx
jne 0x408bd2
xor edi, edi
inc edi
jmp 0x408be1
push 2
jmp 0x408bdc
cmp eax, ebx
jne 0x408bdf
push 3
pop edi
jmp 0x408be1
mov edi, esi
call fcn.00406f7e
test eax, eax
jne 0x408bf3
call fcn.00406f2a
test eax, eax
je 0x408c00
call fcn.004071d8
cmp eax, 2
jne 0x408c00
xor ebx, ebx
inc ebx
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push str.NoNotiLeak
push 0x4840b8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [ebp - 0xc], 1
setne al
push eax
call fcn.0040729a
push eax
push ebx
push dword [ebp - 4]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 8]
push str.protect1_d_2_d_3_d_4_d_5_d_6_d_7_d
push dword [ebp + 8]
call fcn.004017d8
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408cdb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ecx, ecx
push 2
mov eax, 0x400
pop edx
mov esi, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042493b
mov ebx, dword [ebp + 0x10]
pop ecx
mov edi, eax
test ebx, ebx
jne 0x408d0b
mov ebx, 0x4841c0
test edi, edi
je 0x408d64
push dword [ebp + 0x18]
push esi
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esi - 2]
cmp eax, ecx
jb 0x408d4e
push edi
call fcn.00424946
add esi, esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042493b
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x408d0f
test edi, edi
je 0x408d64
mov ecx, dword [ebp + 0x14]
push edi
call fcn.004017b3
push edi
call fcn.00424946
pop ecx
jmp 0x408d6d
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.004017b3
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408d72
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00443860
push 0xffffffffffffffff
push 0x47ddd4
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4ac40c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004257e7
mov eax, dword [eax + 8]
mov esi, 0x400
push esi
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp]
push eax
lea eax, [ebp + 0x800]
push esi
push eax
call fcn.00443979
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add esp, 0x10
lea eax, [ebp + 0x800]
push eax
call edi
lea eax, [ebp + 0x800]
push eax
call edi
push esi
push str.360Ver.dll
lea eax, [ebp + 0x800]
push esi
push eax
call fcn.0044388b
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.00423b62
and dword [ebp - 4], 0
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408e40
lea eax, [ebp + 0x800]
push eax
lea ecx, [ebp - 0x20]
call fcn.00423bc6
test eax, eax
lea eax, [ebp + 0x800]
jne 0x408e43
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.004017b3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00423b9f
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004420f4
add ebp, 0x1004
leave
ret

Function at 0x4095f6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x40965d
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40965d
mov eax, dword [esi + 0xc]
mov dword [esi + 8], edi
test eax, eax
je 0x409620
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0xc], eax
test eax, eax
je 0x40965d
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x10]
push eax
mov ecx, esi
call fcn.00409413
xor eax, eax
inc eax
jmp 0x40965f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x409ae2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
call fcn.0040991f
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x409b33
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
cmp eax, edi
je 0x409b33
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x409874
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
cmp eax, edi
je 0x409b2a
xor eax, eax
inc eax
jmp 0x409b35
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x409f0e
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x54
push ebx
call fcn.00409c44
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x409f2b
xor eax, eax
jmp 0x409fd4
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x409f43
xor eax, eax
jmp 0x409fd3
push esi
push 0x1c
pop esi
lea eax, [ebp - 0x54]
push eax
push edi
mov dword [ebp - 0x54], esi
call sub.KERNEL32.dll_Thread32First
jmp 0x409fc4
cmp dword [ebp - 0x54], 0x10
jb 0x409fb7
cmp dword [ebp - 0x48], ebx
jne 0x409fb7
push dword [ebp - 0x4c]
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
je 0x409fb7
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
test eax, eax
je 0x409fb7
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00409eb4
lea eax, [ebp - 0x54]
push eax
push edi
mov dword [ebp - 0x54], esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x409f56
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x40a09d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40a0ac
xor al, al
jmp 0x40a113
cmp dword [ebp + 0xc], 0
je 0x40a0a8
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40a0c8
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x40a0cc
xor al, al
jmp 0x40a112
and dword [ebp + 8], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 8]
push eax
push 0x40
push edi
push ebx
call esi
test eax, eax
je 0x40a105
push edi
push dword [ebp + 0xc]
push ebx
call fcn.00442620
and dword [ebp + 0x10], 0
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
push edi
push ebx
call esi
test eax, eax
jne 0x40a10f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x40a111
mov al, 1
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x40f914
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x4ac40c]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
push ebx
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push 2
mov edi, eax
mov dword [ebp - 0x80], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, ebx
jne 0x40f955
xor eax, eax
jmp 0x40f9bd
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40f970
cmp dword [ebp - 0x78], edi
je 0x40f976
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f961
jmp 0x40f9b4
mov edi, dword [ebp - 0x68]
test edi, edi
je 0x40f9b4
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40f998
cmp dword [ebp - 0x78], edi
je 0x40f99e
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f989
jmp 0x40f9b4
push str.ZhuDongFangYu.exe
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40f9b4
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp + 0x1ac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004420f4
add ebp, 0x1b0
leave
ret

Function at 0x40fa95
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ac40c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push esi
mov esi, ecx
mov dword [ebp - 0x210], esi
jne 0x40fac3
push esi
call fcn.0040f86f
pop ecx
jmp 0x40fb70
push ebx
push edi
push str.deepscancloudsec2.dll
lea eax, [ebp - 0x20c]
push 0x208
push eax
xor edi, edi
xor ebx, ebx
call fcn.00407efe
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.0040234e
cmp eax, edi
je 0x40fb0d
push str.DSAsyncEvaluateExec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40fb0d
push esi
push 1
call eax
mov ebx, eax
cmp ebx, edi
jne 0x40fb6e
push 8
call fcn.0042490c
mov esi, eax
pop ecx
cmp esi, edi
je 0x40fb24
mov ecx, esi
call fcn.00401582
jmp 0x40fb26
xor esi, esi
cmp esi, edi
jne 0x40fb2e
xor eax, eax
jmp 0x40fb6e
push dword [ebp - 0x210]
mov ecx, esi
call fcn.004017b3
push edi
push edi
push esi
push 0x40f9d5
push edi
push edi
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x40fb6c
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40fb6c
mov ebx, dword [esi + 4]
push 1
mov ecx, esi
call fcn.0040892f
mov eax, ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004420f4
leave
ret
Function at 0x40fb7d
Capabilities:
Accept command line arguments

Disassembly:
push 8
mov eax, 0x47ea36
call fcn.00442103
push 0x487278
lea ecx, [ebp - 0x10]
call fcn.0040a2ca
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x40fbdd
cmp dword [ebp - 0x14], 1
jle 0x40fbdd
xor esi, esi
inc esi
cmp dword [ebp - 0x14], esi
jle 0x40fbdd
push 0x487274
lea ecx, [ebp - 0x10]
call fcn.00408f47
push dword [edi + esi*4]
lea ecx, [ebp - 0x10]
call fcn.00408cb6
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x40fbbf
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
push 0xbb8
call fcn.0040fa95
pop ecx
test eax, eax
jne 0x40fc11
mov esi, dword [ebp - 0x10]
call fcn.0040f9ef
test eax, eax
jne 0x40fc11
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401100
xor eax, eax
jmp 0x40fc1f
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401100
xor eax, eax
inc eax
call fcn.004421db
ret

Function at 0x413216
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x47eded
call fcn.00442103
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [edi + 8]
push ebx
push ebx
push 0x80
push 4
push 3
push SysReAllocString
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040a146
test eax, eax
je 0x413261
cmp dword [ebp - 0x10], ebx
je 0x41325d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4132ca
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x14], ebx
jne 0x41329e
cmp eax, 0x64
jb 0x41329e
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040a1ab
test eax, eax
jne 0x41329e
push 0x64
lea esi, [edi + 0xc]
push esi
lea ecx, [ebp - 0x10]
call fcn.004108a8
test eax, eax
jne 0x41329e
cmp dword [esi], 1
jge 0x4132b9
mov ecx, edi
call fcn.00412f4e
mov esi, eax
cmp dword [ebp - 0x10], ebx
je 0x4132b5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4132ca
cmp dword [ebp - 0x10], ebx
je 0x4132c7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.004421db
ret

Function at 0x4140b6
Capabilities:
Parse url

Disassembly:
xor edx, edx
cmp dword [esp + 4], edx
je 0x414102
mov eax, dword [esp + 8]
cmp eax, edx
je 0x414102
push eax
push edx
xor ecx, ecx
inc ecx
push edx
push dword [esp + 0x10]
mov dword [eax], 0x3c
mov dword [eax + 8], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 4], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x34], edx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
jmp 0x414104
xor eax, eax
ret 8
Function at 0x414107
Capabilities:
Check http status code

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ecx
mov dword [esp + 0x10], ebp
mov dword [eax], ebp
lea esi, [edi + 0x220]
push ebp
push ebp
push ebp
push ebp
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push esi
push 0x13
push ebx
mov ecx, edi
call fcn.00414089
test eax, eax
je 0x41417e
mov eax, dword [esi]
cmp eax, 0xc8
je 0x4141a6
cmp eax, 0x197
jne 0x41417e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push ebp
push 7
push 0x2eee
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, ebp
je 0x414196
cmp eax, 0x4c7
je 0x41418a
cmp eax, 0x2f00
jne 0x41417e
cmp dword [edi + 0x21c], ebp
je 0x414124
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
jmp 0x41417e
mov dword [esi], 0xc8
mov dword [esp + 0x10], 1
jmp 0x41417e
xor eax, eax
inc eax
jmp 0x414182

Function at 0x4141ff
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4ac40c]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3a8]
push esi
push edi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6c]
push eax
push 5
xor edi, edi
push ebx
mov esi, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], edi
call fcn.00414089
test eax, eax
je 0x41424d
mov dword [ebp - 0x78], 1
push 4
mov ecx, esi
mov dword [ebp - 0x68], edi
call fcn.004141ab
mov dword [ebp - 0x70], edi
jmp 0x4142c8
lea eax, [ebp - 0x74]
push eax
push 0x400
lea eax, [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4142d0
cmp dword [ebp - 0x74], edi
je 0x4142d0
cmp dword [ebp - 0x7c], 0xffffffff
je 0x414296
push edi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
push 0xa
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x4142b8
push 5
push dword [ebp - 0x6c]
mov ecx, esi
push dword [ebp - 0x68]
call fcn.004141ca
inc dword [ebp - 0x70]
cmp dword [ebp - 0x78], edi
je 0x4142c8
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x6c]
jae 0x4142d0
cmp dword [esi + 0x21c], edi
je 0x41425e
push 6
mov ecx, esi
call fcn.004141ab
mov ecx, dword [ebp + 0x39c]
xor eax, eax
cmp dword [esi + 0x21c], edi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.004420f4
add ebp, 0x3a0
leave
ret 8
Function at 0x4142fe
Capabilities:
Check if file exists
Connect to http server
Create http request

Disassembly:
push ebp
lea ebp, [esp - 0x1d4]
sub esp, 0x254
mov eax, dword [0x4ac40c]
xor eax, ebp
mov dword [ebp + 0x1d0], eax
mov eax, dword [ebp + 0x1e0]
push ebx
mov ebx, dword [ebp + 0x1dc]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], edi
mov dword [esi + 0x21c], edi
mov dword [esi + 0x220], edi
cmp ebx, edi
je 0x414505
call fcn.0040899c
test eax, eax
je 0x414505
cmp dword [esi + 0x21c], 1
je 0x414505
cmp dword [esi + 0x10], edi
jne 0x4143a7
call fcn.00403426
mov eax, dword [eax + 0xe8]
cmp eax, edi
je 0x414384
push 0x1388
push dword [ebp - 0x34]
push ebx
call eax
add esp, 0xc
jmp 0x414386
xor eax, eax
cmp eax, edi
je 0x414505
push dword [ebp - 0x34]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414505
xor eax, eax
inc eax
jmp 0x414507
lea eax, [ebp - 0x80]
push eax
push ebx
mov ecx, esi
mov dword [ebp - 0x3c], edi
call fcn.004140b6
test eax, eax
je 0x414505
cmp dword [ebp - 0x74], 3
jne 0x414505
or dword [ebp - 0x38], 0xffffffff
cmp dword [ebp - 0x34], edi
je 0x4143f5
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
je 0x414500
lea eax, [esi + 0x14]
cmp word [eax], di
jne 0x414402
mov eax, str.Mozila_4.0__compatible__MSIE_5.0__360Safe_
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x34], eax
cmp eax, edi
je 0x4144ce
cmp dword [esi + 0x21c], edi
jne 0x4144ce
push eax
mov ecx, esi
call fcn.00414039
push 2
mov ecx, esi
call fcn.004141ab
push dword [ebp - 0x6c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x70]
push pe_nt_image_headers32
push eax
call fcn.004022c0
push edi
push edi
push 3
push edi
push edi
push dword [ebp - 0x68]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
cmp ebx, edi
je 0x4144d0
cmp dword [esi + 0x21c], edi
jne 0x4144d0
push edi
push 0x84000100
push 0x4aa748
push edi
push 0x487750
push dword [ebp - 0x54]
push edi
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x3c], eax
cmp eax, edi
je 0x4144d0
cmp dword [esi + 0x21c], edi
jne 0x4144d0
lea ecx, [ebp - 0x44]
push ecx
push eax
mov ecx, esi
call fcn.00414107
test eax, eax
je 0x4144d0
cmp dword [esi + 0x220], 0xc8
jne 0x4144d0
cmp dword [esi + 0x21c], edi
jne 0x4144d0
push dword [ebp - 0x38]
mov ecx, esi
push dword [ebp - 0x3c]
call fcn.004141ff
mov dword [ebp - 0x40], eax
jmp 0x4144d0
mov ebx, edi
cmp dword [ebp - 0x38], 0xffffffff
je 0x4144df
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x3c], edi
je 0x4144ef
push dword [ebp - 0x3c]
call esi
cmp ebx, edi
je 0x4144f6
push ebx
call esi
cmp dword [ebp - 0x34], edi
je 0x414500
push dword [ebp - 0x34]
call esi
mov eax, dword [ebp - 0x40]
jmp 0x414507
xor eax, eax
mov ecx, dword [ebp + 0x1d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004420f4
add ebp, 0x1d4
leave
ret 8
Function at 0x4150dc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jne 0x4150fc
xor eax, eax
jmp 0x41514f
push esi
push edi
call fcn.00443495
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x41510e
xor eax, eax
jmp 0x41514e
push esi
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x415145
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x485360
push esi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push esi
call fcn.004433b8
pop ecx
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x415153
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x14c
mov eax, dword [0x4ac40c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0x24
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.00441830
add esp, 0xc
push str.GetNativeSystemInfo
push 0x4854f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4151a1
lea ecx, [ebp - 0xd4]
push ecx
call eax
jmp 0x4151ae
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0xd4], 9
push esi
push edi
je 0x4152e2
cmp word [ebp - 0xd4], 6
je 0x4152e2
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.00441830
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x415214
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
test eax, eax
je 0x415239
cmp dword [ebp - 0x98], 2
jne 0x4152e2
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x9c]
movzx edi, word [ebp + 0x6c]
jmp 0x415282
and dword [ebp - 0xac], edi
and dword [ebp - 0xb0], edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xac]
push eax
push str.kernel32.dll
call fcn.004150dc
add esp, 0xc
test eax, eax
jne 0x415269
xor eax, eax
inc eax
jmp 0x4152e4
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
movzx edx, word [ebp - 0xac]
shr eax, 0x10
shr ecx, 0x10
cmp eax, 5
jb 0x4152e2
jne 0x41529c
test edx, edx
jne 0x415295
cmp di, 4
jae 0x415264
jmp 0x4152e2
cmp edx, 2
jne 0x415264
jmp 0x4152e2
cmp eax, 6
jne 0x415264
test edx, edx
jne 0x4152bd
cmp ecx, 0x1770
je 0x415264
cmp ecx, 0x1771
je 0x415264
cmp ecx, 0x1772
jmp 0x4152e0
cmp edx, 1
jne 0x415264
cmp ecx, 0x1b58
je 0x415264
cmp ecx, 0x1bbc
je 0x415264
cmp ecx, 0x1db0
je 0x415264
cmp ecx, 0x1db1
je 0x415264
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.004420f4
add ebp, 0x78
leave
ret