joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e330
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 0x1003e43d
lea ecx, [ebp - 0x14]
call fcn.100055d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003e43d
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 0x1003e43d
lea eax, [edi + 1]
push eax
call fcn.10153c5b
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
test esi, esi
je 0x1003e43d
push esi
push edi
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1003e3f3
push esi
call fcn.10153b58
add esp, 4
jmp 0x1003e43d
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 0x1003e3e8
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.10012d40
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 0x1003e470
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 0x1003e4e3
push 0x101e9680
mov ecx, esi
call fcn.1000af00
jmp 0x1003e5da
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 0x1003e5b6
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 0x1003e600
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 0x1003e6c1
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 0x1003e711
test esi, esi
je 0x1003e6d8
mov eax, dword [ebp - 0x810]
test eax, eax
jne 0x1003e6ed
lea ecx, [ebp - 0x810]
call fcn.1003ded0
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x1003e72c
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 0x1003e728
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 0x1003e756
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 0x1003ebd0
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 0x1003ec13
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.1001fb90
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x10]
test al, 0x10
je 0x1003ec45
push 0x101e9968
jmp 0x1003ec4a
push str.___grant_Everyone:F
call fcn.1001fb90
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 0x1003ecae
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.10012d40
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 0x1003ed50
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 0x1003edad
push 0x101e8558
lea ecx, [ebp - 0x58]
call fcn.10004f90
jmp 0x1003ee1f
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.10036820
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.10036ca0
add esp, 0x14
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
je 0x1003eef3
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.1003ef90
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 0x1003eef3
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 0x1003eef5
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 0x1003ef30
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 0x1003ef86
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 0x1003ef7f
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 0x1003f2b0
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.1003f230
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 0x1003f35c
jmp 0x1003f3de
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [ebp - 0x234], 0x2e
je 0x1003f3c5
test byte [ebp - 0x260], 0x10
je 0x1003f3d5
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.1003f2b0
add esp, 4
lea eax, [ebp - 0x260]
push eax
push esi
call edi
test eax, eax
jne 0x1003f362
jmp 0x1003f3d7
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 0x1003f410
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 0x1003f543
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call edi
test eax, eax
je 0x1003f4d3
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.1000aee0
mov ecx, esi
call fcn.1003f230
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 0x1003f543
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call edi
test eax, eax
je 0x1003f53b
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 0x1003f5a0
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 0x1003f5f9
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 0x1003f5f9
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 0x1003f616
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 0x1003f627
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 0x1003f638
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 0x1003f64b
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 0x1003f5f0
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 0x1003f5f0
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.1003f8f0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1003f6b0
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.100401a0
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 0x1003f78e
test esi, esi
js 0x1003f7df
lea ecx, [ebp + 8]
call fcn.1000a8b0
cmp esi, eax
jg 0x1003f7df
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 0x1003f766
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 0x1003f7c1
call fcn.1001f3a0
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 0x10045b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.100044f0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.1016c8dc

Function at 0x1004b040
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x1004b089
mov al, byte [esi]
push eax
call fcn.10056430
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x1004b067
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x1004c2a0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c0], 2
jne 0x1004c2b5
pop ebp
jmp fcn.1004c250
mov al, 1
pop ebp
ret

Function at 0x1004cd50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
test eax, eax
je 0x1004cd9b
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004cd9b
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004cfd0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
jne 0x1004cfe5
lea eax, [edi + 0x2b]
pop edi
pop esi
pop ebp
ret
push ebx
push esi
call fcn.1004ce10
mov ebx, dword [ebp + 0xc]
add esp, 4
test ebx, ebx
je 0x1004d09c
push 4
push ebx
call fcn.1016c331
test eax, eax
mov ecx, 0x1a
push ebx
cmovne edi, ecx
call dword [0x101f304c]
add esp, 0xc
mov dword [esi + 0x10], eax
test eax, eax
mov dword [esi + 0x40], 0xffffffff
mov ecx, 0x1b
mov dword [esi + 0x44], 0xffffffff
cmove edi, ecx
test edi, edi
jne 0x1004d056
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x1004d056
push ebx
call fcn.1004cd50
add esp, 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x18], 0x1004d410
push ebx
mov dword [esi + 0x14], 0x1004d3d0
mov dword [esi + 0x1c], 0x1004d390
mov dword [esi + 0xc], 2
call fcn.1004dd80
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1004d086
mov edi, 0x1b
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
push ebx
push esi
call fcn.1004d0b0
test eax, eax
push ebx
cmovne edi, eax
call dword [0x101f3044]
add esp, 0xc
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
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.10040960
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