joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058d0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x404
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x405932
mov byte [esp + 0x10], al
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.SSLTray:_HookStart_open_SCManager_failed_with_error__d
push eax
call fcn.0044dd9b
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402a90
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
push 0xf01ff
push str.XMonitor
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40598e
mov byte [esp + 0x10], al
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x14]
push str.SSLTray:_DriverServiceStart_open_service_failed_with_error__d
push edx
call fcn.0044dd9b
lea eax, [esp + 0x1c]
push eax
call fcn.00402a90
add esp, 0x10
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4059f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
cmp edx, 0x420
je 0x4059f4
mov byte [esp + 0x10], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
push edx
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push str.SSLTray:_DriverServiceStart_start_service_failed_with_error__d.
push ecx
stosb byte es:[edi], al
call fcn.0044dd9b
lea edx, [esp + 0x1c]
push edx
call fcn.00402a90
add esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
xor eax, eax
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop edi
mov eax, 1
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x405a10
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
xor eax, eax
mov dword [esp + 1], eax
mov dword [esp + 5], eax
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
push esi
mov dword [esp + 0x1d], eax
lea ecx, [esp + 4]
push edi
mov word [esp + 0x25], ax
push ecx
mov byte [esp + 0xc], 0
mov byte [esp + 0x2b], al
call fcn.004052e0
add esp, 4
test eax, eax
jne 0x405a70
push str.XMonitor_get_version_failed.
call fcn.00402a90
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405a78
sub eax, edx
mov ecx, eax
lea esi, [esp + 8]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x405aa5
push str.XMonitor_verify_version_and_need_update.
call fcn.00402a90
add esp, 4
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0x7f
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x26
lea eax, [esp + 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x228]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ad7
lea edi, [esp + 0x28]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405ae5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405b02
mov ecx, dword [str.SAGXMonitor.sys]
mov edx, dword [0x47b80c]
mov eax, dword [0x47b810]
mov dword [edi], ecx
mov ecx, dword [0x47b814]
mov dword [edi + 4], edx
mov dx, word [0x47b818]
mov dword [edi + 8], eax
lea eax, [esp + 0x28]
mov dword [edi + 0xc], ecx
push 0x47a858
push eax
mov word [edi + 0x10], dx
call fcn.0044dd88
mov esi, eax
add esp, 8
test esi, esi
je 0x405b9f
push 2
push 0
push esi
call fcn.0044e4f6
push esi
call fcn.0044e426
push esi
mov edi, eax
call fcn.0044dc7d
mov eax, dword [ebp + 0xc]
add esp, 0x14
cmp edi, eax
je 0x405b89
push str.XMonitor_verify_length_and_need_update.
call fcn.00402a90
add esp, 4
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.XMonitor_need_not_update.
call fcn.00402a90
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.XMonitor_verify_file_exist_and_need_update.
call fcn.00402a90
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4060b0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ba58
push 0x44e7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
push eax
push esi
push 0x42a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, esi
je 0x406187
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x2c], eax
lea ebx, [eax + eax]
mov dword [ebp - 0x30], ebx
push 4
push 0x1000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x406187
push 0
push ebx
mov edx, dword [ebp + 0xc]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x406187
push str.LoadLibraryW
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x406187
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x406187
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004061af
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406900
Capabilities:
Enumerate internet cache

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x1000
mov dword [esp + 0x14], 0x1000
call fcn.0044ea51
mov ebx, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
mov dword [esi], eax
call ebx
mov edi, eax
test edi, edi
jne 0x406986
lea ebx, [ebx]
push esi
call fcn.0044e8f9
add esp, 4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x406ab3
cmp eax, 0x7a
jne 0x406986
mov edx, dword [esp + 0x10]
push edx
call fcn.0044ea51
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
mov dword [esi], eax
call ebx
mov edi, eax
test edi, edi
je 0x406940
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push ebx
sub esp, 0x10
mov edx, esp
mov dword [edx], ebp
mov dword [edx + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 8], edx
push esi
mov dword [esp + 0x3c], 1
mov dword [ecx + 0xc], eax
call fcn.00406820
test esi, esi
je 0x4069f0
push esi
call fcn.0044e8f9
add esp, 4
jmp 0x4069f0
push 0x1000
mov dword [esp + 0x14], 0x1000
call fcn.0044ea51
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
push edi
mov dword [esi], ecx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
jne 0x406a67
mov edi, edi
push esi
call fcn.0044e8f9
add esp, 4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x406ac6
cmp eax, 0x7a
jne 0x406aaa
mov eax, dword [esp + 0x10]
push eax
call fcn.0044ea51
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
push edi
mov dword [esi], ecx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
je 0x406a20
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 8], eax
push esi
mov dword [edx + 0xc], ecx
call fcn.00406820
inc dword [esp + 0x14]
jmp 0x4069d9
push edi
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x24
push edi
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x24
Function at 0x406ed0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x406ee0
mov dword [eax], edi
mov ebx, dword [esp + 0x18]
cmp ebx, edi
je 0x406eea
mov dword [ebx], edi
mov eax, dword [esp + 0x14]
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406f19
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push edi
push 0x48
push esi
call ebp
cmp eax, 0x48
jne 0x406fef
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, 0x48534148
cmp eax, edi
mov dword [esp + 0x18], 0
je 0x406f7b
jmp 0x406f50
push 0
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
test eax, eax
je 0x40700d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40700d
cmp dword [esp + 0x10], edi
jne 0x406f50
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
test eax, eax
je 0x40700d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40700d
mov edx, dword [esp + 0x10]
push 1
shl edx, 7
push 0
sub edx, 8
push edx
push esi
call ebp
mov edi, eax
test edi, edi
jbe 0x40700d
mov eax, dword [esp + 0x10]
mov ebp, 0x204c5255
cmp eax, ebp
je 0x406fe8
lea ecx, [ecx]
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
test eax, eax
je 0x40700d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40700d
mov eax, dword [esp + 0x10]
add edi, 4
cmp eax, ebp
jne 0x406fc0
mov ebx, dword [esp + 0x1c]
sub edi, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x406ffd
mov edx, dword [esp + 0x10]
mov dword [eax], edx
test ebx, ebx
je 0x407003
mov dword [ebx], edi
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x407080
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
push edi
je 0x40719a
mov edi, dword [esp + 0x18]
cmp edi, ebp
je 0x40719a
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebp
push eax
push ebx
call esi
cmp eax, dword [edi]
jne 0x40719a
push ebp
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call ebp
test eax, eax
je 0x407194
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407194
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push ebx
call ebp
test eax, eax
je 0x407194
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407194
push 1
push 0
push 0xfffffffffffffff8
push ebx
call esi
test eax, eax
mov dword [edi], eax
jbe 0x407194
mov edx, dword [esp + 0x18]
shl edx, 7
add edx, 0xc
push edx
call fcn.0044ea51
mov esi, dword [esp + 0x20]
mov dword [esi], eax
mov ecx, dword [edi]
mov dword [eax + 4], ecx
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
mov dword [edx + 8], eax
mov ecx, dword [esi]
add esp, 4
mov dword [ecx], 0x48534148
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
shl eax, 7
push eax
add ecx, 0xc
push ecx
push ebx
call ebp
test eax, eax
je 0x407183
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407183
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
shl edx, 7
add eax, edx
mov dword [edi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [esi]
push eax
call fcn.0044e8f9
add esp, 4
mov dword [esi], 0
mov dword [edi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x4071b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
push edi
je 0x4072d1
mov edi, dword [esp + 0x18]
cmp edi, ebp
je 0x4072d1
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebp
push eax
push ebx
call esi
cmp eax, dword [edi]
jne 0x4072d1
push ebp
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call ebp
test eax, eax
je 0x4072cb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4072cb
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push ebx
call ebp
test eax, eax
je 0x4072cb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4072cb
push 1
push 0
push 0xfffffffffffffff8
push ebx
call esi
test eax, eax
mov dword [edi], eax
jbe 0x4072da
mov edx, dword [esp + 0x18]
shl edx, 7
add edx, 0xc
push edx
call fcn.0044ea51
mov esi, dword [esp + 0x20]
mov dword [esi], eax
mov ecx, dword [edi]
mov dword [eax + 4], ecx
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
mov dword [edx + 8], eax
mov ecx, dword [esi]
add esp, 4
mov dword [ecx], 0x204c5255
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
shl eax, 7
push eax
add ecx, 0xc
push ecx
push ebx
call ebp
test eax, eax
je 0x4072ba
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4072ba
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
shl edx, 7
add eax, edx
mov dword [edi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
mov eax, dword [esi]
push eax
call fcn.0044e8f9
add esp, 4
mov dword [esi], 0
mov dword [edi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov dword [edi], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x4072f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
push edi
je 0x407411
mov edi, dword [esp + 0x18]
cmp edi, ebp
je 0x407411
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebp
push eax
push ebx
call esi
cmp eax, dword [edi]
jne 0x407411
push ebp
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call ebp
test eax, eax
je 0x40740b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40740b
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push ebx
call ebp
test eax, eax
je 0x40740b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40740b
push 1
push 0
push 0xfffffffffffffff8
push ebx
call esi
test eax, eax
mov dword [edi], eax
jbe 0x40741a
mov edx, dword [esp + 0x18]
shl edx, 7
add edx, 0xc
push edx
call fcn.0044ea51
mov esi, dword [esp + 0x20]
mov dword [esi], eax
mov ecx, dword [edi]
mov dword [eax + 4], ecx
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
mov dword [edx + 8], eax
mov ecx, dword [esi]
add esp, 4
mov dword [ecx], 0x52444552
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
shl eax, 7
push eax
add ecx, 0xc
push ecx
push ebx
call ebp
test eax, eax
je 0x4073fa
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4073fa
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
shl edx, 7
add eax, edx
mov dword [edi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
mov eax, dword [esi]
push eax
call fcn.0044e8f9
add esp, 4
mov dword [esi], 0
mov dword [edi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov dword [edi], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x407430
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 0xc]
push eax
xor edi, edi
push ebp
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push edi
push edi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jbe 0x40751f
cmp dword [esi], 0x204c5255
push ebx
jne 0x4074b9
mov ebx, dword [esi + 8]
mov dword [esp + 0x18], edi
shl ebx, 7
lea edi, [ebx + 1]
push edi
call fcn.0044ea51
mov esi, eax
add esp, 4
test esi, esi
je 0x4074b5
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0044e8f9
add esp, 4
mov esi, dword [esp + 0x20]
cmp dword [esi], 0x4c45414b
jne 0x40750e
mov ebx, dword [esi + 8]
shl ebx, 7
lea edi, [ebx + 1]
push edi
mov dword [esp + 0x24], 0
call fcn.0044ea51
mov esi, eax
add esp, 4
test esi, esi
je 0x40750e
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0044e8f9
add esp, 4
mov ecx, dword [esp + 0x1c]
push 0
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
Function at 0x407780
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
cmp esi, ebp
je 0x407911
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x407911
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [eax]
push ebp
push ebp
push edi
push esi
mov dword [esp + 0x2c], ebp
call ebx
cmp eax, edi
jne 0x4078db
push ebp
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407905
cmp dword [esp + 0x14], ebp
je 0x407905
mov eax, dword [esp + 0x1c]
cmp eax, 0x204c5255
je 0x407858
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x4c45414b
je 0x407858
cmp eax, 0x52444552
je 0x407858
cmp eax, 0x48534148
je 0x407858
push 1
push 0
push 0x7c
push esi
call ebx
lea edx, [esp + 0x14]
push edx
push esi
mov edi, eax
call ebp
cmp edi, eax
jae 0x407850
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407850
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407850
mov eax, dword [esp + 0x1c]
cmp eax, 0x204c5255
jne 0x4077f6
jmp 0x407858
mov dword [esp + 0x1c], 0
push 1
push 0
push 0xfffffffffffffffc
push esi
call ebx
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jbe 0x4078ef
cmp dword [esp + 0x1c], 0x48534148
mov ebx, dword [esp + 0x24]
jne 0x40788d
push ebx
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00407080
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x1c], 0x52444552
jne 0x4078a7
push ebx
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004072f0
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x1c], 0x204c5255
jne 0x4078c1
push ebx
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.004071b0
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x1c], 0x4c45414b
jne 0x4078db
push ebx
lea edx, [esp + 0x14]
push edx
push esi
call fcn.004071b0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
xor edi, edi
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret 0xc
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0xc
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0xc
Function at 0x4082a0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x400
push esi
mov esi, dword [esp + 0x408]
push esi
lea eax, [esp + 8]
push str.SSLTray:_exit__d.
push eax
call fcn.0044dd9b
lea ecx, [esp + 0x10]
push ecx
call fcn.00402ab0
add esp, 0x10
call fcn.0041c3a0
mov edx, dword [0x509820]
push 2
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [0x509820]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
call fcn.00417390
call fcn.00417510
push 0
call fcn.00417750
add esp, 8
call fcn.00417230
call fcn.004178d0
call fcn.00410710
push esi
call fcn.0044ede9
pop esi
int3

Function at 0x409140
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x409187
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x4091c8
cmp dword [esp + 0x18], 2
jne 0x4091c8
cmp dword [esp + 0xc], 5
jne 0x4091c8
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x4091a9
mov eax, 3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4091b9
mov eax, 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4091c8
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret