joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e340
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f220
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1c], esi
mov ebx, ecx
mov dword [ebp - 0x24], ebx
push esi
lea ecx, [ebp - 0x14]
call fcn.1000af00
push str.0.0.0.0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.1000af00
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1000a8b0
test eax, eax
jle 0x1003e44d
lea ecx, [ebp - 0x14]
call fcn.100055d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003e44d
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x1003e44d
lea eax, [edi + 1]
push eax
call fcn.10153c5b
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
test esi, esi
je 0x1003e44d
push esi
push edi
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1003e403
push esi
call fcn.10153b58
add esp, 4
jmp 0x1003e44d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x101e9684
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1003e3f8
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x20]
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
call fcn.10153b58
movzx eax, si
push eax
shr esi, 0x10
push esi
movzx eax, di
push eax
shr edi, 0x10
lea eax, [ebp - 0x10]
push edi
push str._d._d._d._d
push eax
call fcn.10012d60
add esp, 0x1c
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.10009bf0
lea ecx, [ebp - 0x10]
call fcn.10009c10
lea ecx, [ebp - 0x14]
call fcn.10009c10
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003e480
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f24b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x214], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x21c], esi
push ecx
push eax
mov dword [ebp - 0x224], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x1003e4f3
push 0x101e9680
mov ecx, esi
call fcn.1000af00
jmp 0x1003e5ea
push ebx
call fcn.10153c5b
add esp, 4
mov edi, eax
push edi
push ebx
push 0
push dword [ebp - 0x214]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x220], 0
push eax
push str.VarFileInfoTranslation
push edi
call ebx
lea ecx, [ebp - 0x218]
call fcn.10007cc0
mov dword [ebp - 4], 0
test dword [ebp - 0x220], 0xfffffffc
jbe 0x1003e5c6
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10155de0
mov ecx, dword [ebp - 0x228]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x210]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call ebx
push dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
call fcn.1000aee0
push 1
push edi
call fcn.10153599
add esp, 8
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10009bf0
lea ecx, [ebp - 0x218]
call fcn.10009c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x1003e610
Capabilities:
Get common file path
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x800
mov edi, ecx
lea eax, [ebp - 0x804]
push 0
mov dword [ebp - 0x814], edi
push eax
mov dword [ebp - 0x814], edi
call fcn.10155de0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x810], 0
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, eax
mov dword [ebp - 0x814], 0
lea eax, [ebp - 0x818]
mov dword [ebp - 0x80c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x80c]
mov word [ebp - 0x808], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1003e6d1
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 0x818]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x814], 0
je 0x1003e721
test esi, esi
je 0x1003e6e8
mov eax, dword [ebp - 0x810]
test eax, eax
jne 0x1003e6fd
lea ecx, [ebp - 0x810]
call fcn.1003dee0
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x1003e73c
lea ecx, [ebp - 0x804]
push ecx
push 0
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 0x810]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003e738
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1003e766
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x804]
push eax
call esi
push str.SteamBerry
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x804]
push eax
call esi
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.1000af00
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x1003ebe0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f390
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003ec23
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x101e9964
lea ecx, [ebp - 0x10]
call fcn.1000af00
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.1001fbb0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x10]
test al, 0x10
je 0x1003ec55
push 0x101e9968
jmp 0x1003ec5a
push str.___grant_Everyone:F
call fcn.1001fbb0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.100055d0
push eax
push str.icacls.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x1003ecbe
lea ecx, [ebp - 0x14]
call fcn.10007cc0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.ShellExecute_failed:_d
push eax
call fcn.10012d60
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.100055d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x14]
call fcn.10009c10
lea ecx, [ebp - 0x10]
call fcn.10009c10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003ed60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f3c8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 8]
push 0x101e9a18
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.10163690
mov eax, dword [ebp - 0x5c]
add esp, 0xc
test eax, eax
jne 0x1003edbd
push 0x101e8558
lea ecx, [ebp - 0x58]
call fcn.10004f90
jmp 0x1003ee2f
push 2
push 0
push eax
call fcn.101640ba
push dword [ebp - 0x5c]
call fcn.101671da
push 0
push 0
push dword [ebp - 0x5c]
mov esi, eax
call fcn.101640ba
add esp, 0x1c
lea ecx, [ebp - 0x40]
call fcn.10004650
push 0
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.10009480
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
push 1
push esi
push 0
call fcn.10004160
push eax
call fcn.101642a1
push dword [ebp - 0x5c]
call fcn.101639dd
add esp, 0x14
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
call fcn.100045d0
lea ecx, [ebp - 0x40]
call fcn.10004780
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 1
call fcn.100044a0
shr eax, 1
lea ecx, [ebp - 0x58]
push eax
call fcn.1000b2d0
push eax
lea ecx, [ebp - 0x28]
call fcn.10036830
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10004970
mov ecx, ebx
mov esi, eax
call fcn.10004970
mov ecx, eax
push dword [eax + 0x10]
call fcn.10008c80
push eax
push 0
push dword [esi + 0x10]
mov ecx, esi
call fcn.10008c80
push eax
call fcn.10036cb0
add esp, 0x14
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
je 0x1003ef03
mov ecx, ebx
call fcn.100044a0
mov ecx, dword [ebp - 0x60]
mov esi, eax
call fcn.10004970
mov ecx, eax
push dword [eax + 0x10]
call fcn.10008c80
push eax
push esi
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
call fcn.1003efa0
lea ecx, [ebp - 0x28]
call fcn.100044a0
mov esi, eax
lea ecx, [ebp - 0x28]
add esi, esi
call fcn.100095b0
push 0x101e9a1c
mov ebx, eax
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.10163690
mov ecx, dword [ebp - 0x60]
add esp, 0xc
test ecx, ecx
je 0x1003ef03
push ecx
push 1
push esi
push ebx
call fcn.1016390f
push dword [ebp - 0x60]
call fcn.101639dd
add esp, 0x14
mov bl, 1
jmp 0x1003ef05
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.10009870
lea ecx, [ebp - 0x58]
call fcn.10004780
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x1003ef40
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 0x2000000
push 3
push esi
push 5
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003ef96
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1003ef8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003f2c0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f419
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0
call fcn.10007cc0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
mov ebx, 1
call fcn.1003f240
push 0x101e96f8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.10005370
add esp, 0xc
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.10005520
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], bl
call fcn.10009c10
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x264]
call fcn.100055d0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003f36c
jmp 0x1003f3ee
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [ebp - 0x234], 0x2e
je 0x1003f3d5
test byte [ebp - 0x260], 0x10
je 0x1003f3e5
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.10005370
add esp, 0xc
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.10005520
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.10009c10
push ecx
lea eax, [ebp - 0x264]
mov ecx, esp
push eax
call fcn.10009bf0
call fcn.1003f2c0
add esp, 4
lea eax, [ebp - 0x260]
push eax
push esi
call edi
test eax, eax
jne 0x1003f372
jmp 0x1003f3e7
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x264]
call fcn.10009c10
lea ecx, [ebp + 8]
call fcn.10009c10
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x1003f420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f477
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], esi
call fcn.10007cc0
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
call fcn.10007cc0
lea ecx, [esi + 8]
call fcn.10007cc0
push 0
push 0
mov byte [ebp - 4], 2
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10155de0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x1003f553
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call edi
test eax, eax
je 0x1003f4e3
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.1000aee0
mov ecx, esi
call fcn.1003f240
push dword [ebp - 0x21c]
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
call ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10155de0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x1003f553
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call edi
test eax, eax
je 0x1003f54b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 4]
call fcn.1000aee0
push dword [ebp - 0x21c]
call ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x1003f5b0
Capabilities:
Create shortcut via ishelllink
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
push eax
push 0x101db7f0
push 1
push 0
push 0x101db800
call esi
test eax, eax
jns 0x1003f609
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x101db7f0
push 1
push 0
push 0x101db800
call esi
test eax, eax
jns 0x1003f609
push str.create_shortcut_interface_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1003f626
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x1003f637
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x1003f648
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x1003f65b
mov eax, dword [ebp - 4]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x101db810
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x1003f600
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 2
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x1003f600
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ecx
mov ecx, esp
push esi
call fcn.1000af00
push reloc.WS2_32.dll_bind
call fcn.1003f900
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1003f6c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.1000a8b0
xor ecx, ecx
mov edx, 2
lea ebx, [eax + 2]
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10153c5b
add esp, 4
mov dword [ebp - 0x14], 0
mov edi, eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
push edi
call fcn.100401b0
xor eax, eax
mov byte [ebp - 4], 1
push ebx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push eax
push edi
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
mov word [ebp - 0x18], ax
call fcn.10155de0
add esp, 0xc
mov dword [ebp - 0x34], 0
lea ecx, [ebp + 8]
mov dword [ebp - 0x30], 3
xor esi, esi
call fcn.1000a8b0
test eax, eax
je 0x1003f79e
test esi, esi
js 0x1003f7ef
lea ecx, [ebp + 8]
call fcn.1000a8b0
cmp esi, eax
jg 0x1003f7ef
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
mov ax, word [eax + esi*2]
mov word [edi + esi*2], ax
inc esi
call fcn.1000a8b0
cmp esi, eax
jne 0x1003f776
xor eax, eax
mov dword [edi + ebx*2 - 4], eax
mov eax, 0x14
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x2c], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ebx, ebx
test eax, eax
sete bl
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1003f7d1
call fcn.1001f3c0
lea ecx, [ebp + 8]
call fcn.10009c10
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.1000afc0
int3
Function at 0x10053940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x600], 0
je 0x10053984
push esi
push 1
push edi
call fcn.100479e0
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.100479e0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x100539ba
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x10182a68
push 2
push eax
call fcn.1016390f
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1016390f
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x10053d50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1b8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.100542b0
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x10053e0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x10053dcc
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.10040970
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.100539c0
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x10054f60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x90], 2
je 0x10055174
mov eax, dword [esi + 0x294]
push ebx
push edi
test al, 2
jne 0x10055169
test eax, 0x8000000
jne 0x10055169
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x188]
mov ebx, dword [esi]
push eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10055002
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.10040970
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.100539c0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x104]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.10155de0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10055076
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.10040970
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.100539c0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x138]
push eax
lea edi, [esi + 0x10a]
lea eax, [ebp - 0x184]
push edi
push eax
call fcn.10055750
add esp, 0xc
test al, al
jne 0x100550d9
call fcn.1015973a
mov esi, dword [eax]
call fcn.1015973a
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.10040970
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.100539c0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x5c], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x6c], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x7c], xmm0
mov dword [esi + 0x84], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x88], ax
lea eax, [esi + 0x16c]
push eax
lea eax, [esi + 0x13c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.10055750
add esp, 0xc
test al, al
jne 0x10055169
call fcn.1015973a
mov esi, dword [eax]
call fcn.1015973a
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.10040970
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.100539c0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
push esi
call fcn.10054bb0
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10153588
mov esp, ebp
pop ebp
ret