joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410210
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x440
push esi
push edi
push 0
push 0x26
lea eax, [esp + 0x250]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0x248]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410240
mov ecx, dword [str.SAG]
mov dl, byte [0x47d410]
mov dword [edi], ecx
mov byte [edi + 4], dl
mov byte [esp + 0x48], al
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x248]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410276
lea edi, [esp + 0x48]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410284
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 + 0x48]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4102a1
mov eax, dword [str.XMonitor.sys]
mov ecx, dword [0x47d548]
mov edx, dword [0x47d54c]
mov dword [edi], eax
mov ax, word [0x47d550]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov word [edi + 0xc], ax
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0xf
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x49f518]
lea edi, [esp + 8]
dec edi
cmp eax, 5
jne 0x410340
mov eax, dword [0x509824]
test eax, eax
jne 0x410320
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410300
mov ecx, 7
mov esi, str._SSL_bin_vista_32_XMonitor.sys
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x41037d
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410320
mov ecx, 7
mov esi, str._SSL_bin_vista_64_XMonitor.sys
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x41037d
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410340
mov ecx, dword [str._SSL_bin_XMonitor.sys]
mov edx, dword [0x47d4f0]
mov eax, dword [0x47d4f4]
mov dword [edi], ecx
mov ecx, dword [0x47d4f8]
mov dword [edi + 4], edx
mov edx, dword [0x47d4fc]
mov dword [edi + 8], eax
mov ax, word [0x47d500]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov word [edi + 0x14], ax
mov ecx, dword [0x5030dc]
push ecx
mov ecx, dword [0x49f060]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push 0x4d3ed0
push edx
call fcn.004064e0
add esp, 0x18
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
pop edi
inc eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4103c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x840
push esi
push edi
xor eax, eax
mov byte [esp + 0x48], 0
mov ecx, 0x7f
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x200
lea eax, [esp + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x410443
mov byte [esp + 0x448], al
mov ecx, 0xff
lea edi, [esp + 0x449]
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 ecx, [esp + 0x44c]
push str.SSLTray:_GetSystemDirectoryA_failed_with_error__d.
push ecx
call fcn.0044dd9b
lea edx, [esp + 0x454]
push edx
call fcn.00402a90
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x248]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410450
lea edi, [esp + 0x48]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410460
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 + 0x48]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410480
mov ax, word [0x47a898]
mov word [edi], ax
mov eax, 0x4acbc8
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410498
lea edi, [esp + 0x48]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4104a6
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 ecx, [esp + 0x48]
push 0x47a858
push ecx
call fcn.0044dd88
mov esi, eax
add esp, 8
test esi, esi
je 0x410505
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 [0x5030e0]
add esp, 0x14
cmp edi, eax
jne 0x410505
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0xf
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410520
mov edx, dword [str._SSL_bin_]
mov eax, dword [0x47d3b0]
mov cx, word [0x47d3b4]
mov dword [edi], edx
mov dword [edi + 4], eax
mov eax, 0x4acbc8
mov word [edi + 8], cx
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410550
lea edi, [esp + 8]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410560
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [0x5030e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
mov edx, dword [0x49f060]
and ecx, 3
lea eax, [esp + 0x4c]
push eax
mov eax, dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x4d3ed0
push eax
call fcn.004064e0
add esp, 0x18
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4105b0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x508
push esi
push edi
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4105d3
mov cx, word [0x47a898]
mov eax, 0x4d3f6c
mov word [edi], cx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4105f0
lea edi, [esp + 8]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410600
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 8]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4ac544], eax
jne 0x410685
mov byte [esp + 0x110], al
mov ecx, 0xff
lea edi, [esp + 0x111]
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 + 0xc]
push eax
lea ecx, [esp + 0x118]
push str.SSLTray:_LoadLibrary_NSP__s_failed_with_error__d.
push ecx
call fcn.0044dd9b
lea edx, [esp + 0x120]
push edx
call fcn.00402a90
add esp, 0x14
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4107b0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x500
push esi
push edi
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4107d3
mov cx, word [0x47a898]
mov eax, 0x4acbc8
mov word [edi], cx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4107f0
lea edi, [esp + 8]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410800
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 8]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4ac79c], eax
jne 0x410885
mov byte [esp + 0x108], al
mov ecx, 0xff
lea edi, [esp + 0x109]
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 + 0xc]
push eax
lea ecx, [esp + 0x110]
push str.SSLTray:_LoadLibrary_ICMP__s_failed_with_error__d.
push ecx
call fcn.0044dd9b
lea edx, [esp + 0x118]
push edx
call fcn.00402a90
add esp, 0x14
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410d80
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ecx
push esi
push 0x509810
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call fcn.00406e90
push str.SoftwareMicrosoftInternet_ExplorerTypedURLs
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea eax, [esp + 4]
push eax
push 2
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 3
push 0x47d870
push 1
push 0
push str.Use_FormSuggest
push ecx
call esi
mov edx, dword [esp + 4]
push 3
push 0x47d870
push 1
push 0
push 0x47d848
push edx
call esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x509810]
mov eax, dword [0x509814]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x509818]
mov dword [ecx + 4], eax
mov eax, dword [0x50981c]
mov dword [ecx + 8], edx
mov edx, dword [0x503a38]
mov dword [ecx + 0xc], eax
mov eax, dword [0x503a3c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x503a40]
mov dword [ecx + 4], eax
mov eax, dword [0x503a44]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00406900
mov edx, dword [0x509810]
mov eax, dword [0x509814]
push 2
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x509818]
mov dword [ecx + 4], eax
mov eax, dword [0x50981c]
mov dword [ecx + 8], edx
mov edx, dword [0x503a38]
mov dword [ecx + 0xc], eax
mov eax, dword [0x503a3c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x503a40]
mov dword [ecx + 4], eax
mov eax, dword [0x503a44]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00406900
push 1
sub esp, 0x10
mov ecx, esp
mov edx, dword [0x509810]
mov eax, dword [0x509814]
mov dword [ecx], edx
mov edx, dword [0x509818]
mov dword [ecx + 4], eax
mov eax, dword [0x50981c]
mov dword [ecx + 8], edx
mov edx, dword [0x503a38]
mov dword [ecx + 0xc], eax
mov eax, dword [0x503a3c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x503a40]
mov dword [ecx + 4], eax
mov eax, dword [0x503a44]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00406ae0
mov edx, dword [0x509810]
mov eax, dword [0x509814]
push 2
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x509818]
mov dword [ecx + 4], eax
mov eax, dword [0x50981c]
mov dword [ecx + 8], edx
mov edx, dword [0x503a38]
mov dword [ecx + 0xc], eax
mov eax, dword [0x503a3c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x503a40]
mov dword [ecx + 4], eax
mov eax, dword [0x503a44]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00406ae0
pop esi
pop ecx
ret
Function at 0x411170
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x484e10
push 1
push 0
push 0x484e30
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [esp]
jl 0x4111f2
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov eax, dword [esp]
mov edx, dword [eax]
lea ecx, [esp + 4]
push ecx
push 0x484e50
push eax
call dword [edx]
test eax, eax
mov eax, dword [esp + 4]
mov edx, dword [eax]
jge 0x411204
push eax
call dword [edx + 8]
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp + 0x18]
push esi
push 1
push ecx
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x411240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x548
push esi
push edi
xor esi, esi
xor eax, eax
mov word [esp + 0x48], si
mov ecx, 0x81
lea edi, [esp + 0x4a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0x10]
push esi
push edi
lea eax, [esp + 0x50]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x48]
push 0x47d900
push ecx
call fcn.0044f65d
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.0044f65d
add esp, 0x10
push esi
mov dword [esp + 0xc], esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 8]
push ecx
push 0x484df0
push 1
push esi
push 0x484e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x411436
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 8]
push 0
push ecx
mov dword [esp + 0x14], 0
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
mov esi, eax
test esi, esi
jl 0x41142c
mov eax, dword [esp + 8]
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push 0x484e50
push eax
call dword [edx]
mov esi, eax
test esi, esi
jl 0x41142c
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push 1
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [edx + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push 0x484e60
push eax
call dword [edx]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x484e20
push eax
call dword [edx + 0x10]
push 0x100
lea edx, [esp + 0x254]
push edx
push 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 8
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 9
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [esp + 0x354]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x25c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
xor eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x350]
mov dword [esp + 0x30], edx
push 0
cmp edi, 7
sete cl
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
push 2
mov word [esp + 0x28], 3
mov dword [esp + 0x30], ecx
mov word [esp + 0x38], 0x1f
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push 1
push 0
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1304
call fcn.0044e0a0
push ebp
xor eax, eax
push esi
push edi
mov byte [esp + 0x110], 0
mov ecx, 0x7f
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x310], 0
mov ecx, 0x3ff
lea edi, [esp + 0x311]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x25
lea eax, [esp + 0x118]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0x110]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4115f0
mov ecx, dword [str.driversetchosts]
mov edx, dword [0x47adc4]
mov eax, dword [0x47adc8]
mov dword [edi], ecx
mov ecx, dword [0x47adcc]
mov dword [edi + 4], edx
mov dx, word [0x47add0]
mov dword [edi + 8], eax
mov al, byte [0x47add2]
mov dword [edi + 0xc], ecx
lea ecx, [esp + 0x110]
mov word [edi + 0x10], dx
push 0x47a858
push ecx
mov byte [edi + 0x12], al
call fcn.0044dd88
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x411664
push eax
push str.error
push str.Open_host
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
push ebp
lea edx, [esp + 0x14]
xor eax, eax
push 0x100
mov ecx, 0x40
lea edi, [esp + 0x18]
push edx
rep stosd dword es:[edi], eax
call fcn.0044ef88
add esp, 0xc
mov edi, str.added_by_sag_n
lea esi, [esp + 0x10]
mov ecx, 0x10
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x41169d
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x4116c3
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x10]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.0044ef88
add esp, 0xc
jmp 0x4116f9
lea ecx, [esp + 0x10]
mov esi, ecx
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4116d0
sub ecx, esi
lea edi, [esp + 0x310]
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4116e3
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
jne 0x411664
push ebp
call fcn.0044dc7d
lea ecx, [esp + 0x114]
push 0x47a884
push ecx
call fcn.0044dd88
lea eax, [esp + 0x31c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411726
push ebp
sub eax, edx
push 1
push eax
lea edx, [esp + 0x31c]
push edx
call fcn.0044ea05
push ebp
call fcn.0044dc7d
add esp, 0x14
pop edi
mov eax, 1
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x4118c0
Capabilities:
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x5a4
lea eax, [esp + 0x414]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x411909
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x18]
push str.SSLTray:_WSAStartup_failed_with_error__d.
push ecx
call fcn.0044dd9b
lea edx, [esp + 0x20]
push edx
call fcn.00402a90
add esp, 0x10
xor eax, eax
add esp, 0x5a4
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x509820], eax
jne 0x41192d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.SSLTray:_New_socket_failed_with_error__d
jmp 0x411997
mov eax, dword [esp + 0x5a8]
xor edx, edx
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
push eax
mov dword [esp + 0x10], edx
mov word [esp + 4], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 6], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [0x509820]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0xffff
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4119b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.SSLTray:_setsockopt_failed_with_error__d
lea eax, [esp + 0x1c]
push eax
call fcn.0044dd9b
lea ecx, [esp + 0x20]
push ecx
call fcn.00402a90
add esp, 0x10
xor eax, eax
add esp, 0x5a4
ret
mov eax, dword [0x509820]
push 0x10
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x411a16
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x18]
push str.SSLTray:_Bind_socket_failed_with_error__d
push ecx
call fcn.0044ee3f
lea edx, [esp + 0x20]
push edx
call fcn.00402a90
mov eax, dword [0x509820]
add esp, 0x10
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [0x509820]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
add esp, 0x5a4
ret
mov edx, dword [0x509820]
push 0x40
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x411a71
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x18]
push str.SSLTray:_Listen_socket_failed_with_error__d
push eax
call fcn.0044dd9b
lea ecx, [esp + 0x20]
push ecx
call fcn.00402a90
mov edx, dword [0x509820]
add esp, 0x10
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]
xor eax, eax
add esp, 0x5a4
ret
mov eax, dword [0x509820]
add esp, 0x5a4
ret
Function at 0x411a80
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x420
mov edx, dword [esp + 0x424]
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411adb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x28]
push str.SSLTray:_Accept_socket_failed_with_error__d
push eax
call fcn.0044dd9b
lea ecx, [esp + 0x30]
push ecx
call fcn.00402ab0
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x420
ret
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [esp + 0x14]
push edx
push 1
push 6
push esi
mov dword [esp + 0x24], 1
call edi
xor eax, eax
push 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0x1006
push 0xffff
push esi
call edi
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1005
push 0xffff
push esi
call edi
pop edi
mov eax, esi
pop esi
add esp, 0x420
ret

Function at 0x413630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
push ebx
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..PipeSAGNamedPipe
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413698
push str.SSLTray:_Error_occurred_while_Connect_to_the_server_pipe
call fcn.00402a90
mov eax, dword [0x503a48]
add esp, 4
push eax
call ebp
push 0
push 0x47a7a9
push 2
mov ecx, ebx
call fcn.00411760
push 0xfffffffffffffff5
call fcn.004082a0
add esp, 4
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0x40
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4136b4
push 0
sub eax, edx
lea ecx, [esp + 0x18]
push ecx
inc eax
push eax
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4136f5
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4136e3
mov ecx, dword [esp + 0x14]
sub eax, edx
inc eax
cmp eax, ecx
je 0x413727
push str.SSLTray:_Error_occurred_while_writing_to_the_server_pipe
call fcn.00402a90
add esp, 4
push esi
call edi
mov eax, dword [0x503a48]
push eax
call ebp
push 0
push 0x47a7a9
push 2
mov ecx, ebx
call fcn.00411760
push 0xfffffffffffffff4
call fcn.004082a0
add esp, 4
push esi
call edi
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret