joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8621
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x511070]
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
push 0x20a
lea eax, [ebp - 0x430]
mov dword [ebp - 0x438], 0
push 0
push eax
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x440], str.8CEFC9E6_A2B4_4c2a_823C_6903A31139FA
mov dword [ebp - 0x43c], 0x26
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x20a
push 0
push eax
call fcn.004a83c0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.00497150
xor ebx, ebx
call fcn.0041bed0
test eax, eax
je 0x464a26
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x444], edi
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x106
or eax, ecx
jge 0x4648fb
push 0x106
lea ecx, [ebp - 0x444]
call fcn.0041cb60
mov edi, dword [ebp - 0x444]
cmp dword [edi - 8], 0x106
jl 0x464a30
xor eax, eax
mov dword [edi - 0xc], 0x106
push eax
push ebx
push edi
push eax
mov word [edi + 0x20c], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [edi - 8]
mov esi, eax
push edi
call fcn.004ab819
add esp, 8
test eax, eax
js 0x464a30
cmp eax, dword [edi - 8]
jg 0x464a30
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
test esi, esi
je 0x4649d3
call fcn.0041bed0
test eax, eax
je 0x464a26
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x448], eax
push ebx
push str.defSpecialFolderPath_Cache_
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 2
push str._s_d
push eax
call fcn.00421db0
mov eax, dword [edi - 0xc]
lea ecx, [ebp - 0x44c]
mov esi, dword [ebp - 0x448]
add esp, 0x10
add eax, eax
mov dword [ebp - 0x44c], 0
push ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x440]
call fcn.00497310
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4649d3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4649ef
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, 0x3d
jle 0x4648b0
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x464a0a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.004a578d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041cdf0
push 0x80070057
call fcn.0041cdf0
int3
Function at 0x464a40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d84c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.UpdateTrayIcon.exe
lea edx, [edi + 0x60]
lea ecx, [ebp - 0x30]
call fcn.0041c010
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
je 0x464ab5
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464aa6
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.00439160
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464ae0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x464b85
push str._DoRollback_1
lea ecx, [ebp - 0x2c]
call fcn.0041c970
push 5
push str.__d__
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0041c490
mov eax, dword [edi + 0x58]
lea ecx, [ebp - 0x2c]
push dword [eax - 0xc]
push eax
call fcn.0041c490
push 1
push 0x4eecc0
lea ecx, [ebp - 0x2c]
call fcn.0041c490
push dword [ebp - 0x2c]
push str.UpdateTrayIcon.exe__ws
push 0x515488
call fcn.0048cf90
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
push 0
push 0
push 0
call fcn.0045aa40
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x464b85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x464b9a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x464bc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8660
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0041c670
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x464c36
lea eax, [ecx - 1]
test eax, eax
js 0x464c4d
cmp eax, ecx
jg 0x464c4d
movzx eax, word [esi + eax*2]
cmp eax, 0x5c
je 0x464c36
cmp eax, 0x2f
je 0x464c36
push str.0s
lea ecx, [ebp - 0x10]
call fcn.0041c190
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x464c57
test eax, 0x4800
je 0x464c57
xor edi, edi
jmp 0x464c93
push 0x80070057
call fcn.0041cdf0
lea ecx, [ebp - 0x10]
call fcn.00488b20
lea ecx, [ebp - 0x10]
call fcn.00488bd0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x464c77
mov edi, 1
jmp 0x464c93
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x14], edi
call fcn.0041c670
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.00464bc0
mov edi, eax
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464cb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x464cd0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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

Function at 0x464cf0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x4fcb70]
lea eax, [ebp - 0x2c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
push eax
movaps xmm0, xmmword [0x4fcb80]
push SysReAllocString
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 8], 0x5c
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x464d94
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 4
push eax
push esi
push 0x4f7098
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x464d94
mov eax, dword [ebp - 0x30]
push 0x4f7098
push dword [ebp - 0x2c]
mov dword [edi], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, 1
jmp 0x464d9e
mov eax, 2
cmp esi, eax
cmove esi, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x464dac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a578d
mov esp, ebp
pop ebp
ret 8
Function at 0x464e60
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5099b8
push 0x4aa6a0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1018
call fcn.004a6780
mov eax, dword [0x511070]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x1028], 0
push 0x802
push 0
lea eax, [ebp - 0x1024]
push eax
call fcn.004a83c0
push 0x802
push 0
lea eax, [ebp - 0x820]
push eax
call fcn.004a83c0
add esp, 0x18
mov dword [ebp - 0x1030], 0x400
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1028]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x464ff3
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x1024]
push eax
push 0
push 0
push str.AppInit_DLLs
push dword [ebp - 0x1028]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464ff3
push str.RCD_AppInit.dll
lea eax, [ebp - 0x1024]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x464ff3
mov dword [ebp - 0x102c], 0
lea edi, [ebp - 0x1024]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatW]
test edi, edi
je 0x464fbb
cmp word [edi], 0
je 0x464fbb
push 0x3b
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
mov dword [ebp - 0x102c], esi
test esi, esi
je 0x464f8f
xor eax, eax
mov word [esi], ax
add esi, 2
mov dword [ebp - 0x102c], esi
push str.RCD_AppInit.dll
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x464fb7
push edi
lea eax, [ebp - 0x820]
push eax
call ebx
push 0x4f5870
lea eax, [ebp - 0x820]
push eax
call ebx
mov edi, esi
jmp 0x464f62
lea ecx, [ebp - 0x820]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464fc4
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x820]
push eax
push 1
push 0
push str.AppInit_DLLs
push dword [ebp - 0x1028]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], 0xfffffffe
call fcn.0046501b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x465300
Capabilities:
Delete registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d86d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x58]
mov edi, 1
mov dword [ebp - 0x10], 0
push str.InstallDirNew
call fcn.0045f700
push dword [esi + 0x58]
mov dword [ebp - 0x14], eax
push 0x4f7378
push 0x515488
call fcn.0048d1f0
mov eax, dword [ebp + 0xc]
add esp, 8
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call fcn.0045a930
mov ebx, dword [ebp + 0x10]
mov esi, eax
add esp, 4
test esi, esi
je 0x4653dc
push 0xdbba0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4653b3
push 0
push esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x4f73b0
push 0x515488
call fcn.0048cf90
add esp, 0x10
jmp 0x4653dc
push ebx
push esi
mov dword [ebx], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebx]
push str.Uninst.exe_Silent_:return__d
push 0x515488
call fcn.0048d1f0
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x465445
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp + 0xc]
jne 0x465426
test eax, eax
je 0x465426
push str.InstallDirNew
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x10], 0
jne 0x46543a
mov ecx, dword [ebx]
cmp ecx, 0x67
je 0x465438
cmp ecx, 0x68
jne 0x46543a
xor edi, edi
test eax, eax
je 0x465445
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4683c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8905
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x10]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00421000
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x468434
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x50], eax
mov byte [ebp - 4], 1
push 0x34
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0xc], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0xffffffff
call fcn.004a57cf
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041d490
mov dword [edi + 0x40], eax
mov eax, edi
mov dword [edi], 0
mov dword [edi + 0x44], 0xffffffff
mov dword [edi + 0x3c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x48], 1
mov dword [edi + 0x4c], 1
mov dword [edi + 8], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 2
mov dword [edi + 0x5c], 2
mov dword [edi + 0x60], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x468ad0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push esi
call fcn.004685d0
test eax, eax
je 0x468b89
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x44], eax
cmp eax, 0xffffffff
jne 0x468b50
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x3c]
push eax
push 0x6e
call dword [esi + 0x20]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x515488
call fcn.0048cf90
mov ecx, dword [ebx + 0x3c]
add esp, 0x10
mov edx, dword [ecx]
push 0x19
call dword [edx + 0x1c]
xor eax, eax
pop esi
pop ebx
pop ecx
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0x2c], eax
cmp eax, 0x1400000
jae 0x468b9c
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x3c]
push eax
push 0x6f
call dword [esi + 0x20]
push str.the_packet_is_too_small
push 0x515488
call fcn.0048cf90
add esp, 8
mov ecx, dword [ebx + 0x3c]
push 0x19
mov edx, dword [ecx]
call dword [edx + 0x1c]
xor eax, eax
pop esi
pop ebx
pop ecx
pop ebp
ret 4
cmp eax, 0x7800000
jbe 0x468bbe
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x3c]
push eax
push 0x70
call dword [esi + 0x20]
push str.the_packet_is_too_large
jmp 0x468b7c
pop esi
mov eax, 1
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x468d90
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8a08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 0x14], edi
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x468dd7
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x24], eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x468e01
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
push 1
push str.GetPacketData__d
push 0x515488
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
call fcn.0048cf90
add esp, 0xc
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
call fcn.00469400
push eax
push str.GetPacketData_return:_d
push 0x515488
mov dword [ebp - 0x1c], eax
call fcn.0048cf90
mov eax, dword [ebp - 0x1c]
add esp, 0xc
or esi, 0xffffffff
test eax, eax
je 0x468f3d
mov edi, dword [ebp - 0x20]
mov edi, dword [edi + 0x40]
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x468f8a
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push eax
call fcn.0041d7a0
mov ecx, edi
call fcn.0041e9a0
mov ecx, edi
call fcn.0041eaa0
mov eax, dword [edi + 0x24]
mov edi, dword [eax]
cmp edi, eax
je 0x468f1e
nop dword [eax]
mov ecx, dword [edi + 8]
cmp dword [ecx + 0x1c], 0
je 0x468f0f
inc dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
call fcn.0041ce70
mov byte [ebp - 4], 3
mov esi, dword [ebp + 0x10]
cmp dword [esi - 0xc], 0
je 0x468ef3
push esi
lea eax, [ebp - 0x18]
push str._s.bad
push eax
call fcn.00421db0
mov ebx, dword [ebp - 0x18]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call fcn.004af34f
add esp, 8
test eax, eax
je 0x468ef3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x468f0f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [edi]
cmp edi, dword [ecx + 0x24]
jne 0x468ea0
or esi, 0xffffffff
jmp 0x468f21
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp dword [ebp - 0x10], eax
sete al
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x40], ecx
je 0x468f3a
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
mov edi, dword [ebp + 0x10]
mov byte [ebp - 4], 0
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x468f58
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x468f74
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor edi, edi
jmp 0x468f3d
Function at 0x4694f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 4], 0
xor esi, esi
lea ecx, [ebx - 0x100000]
nop dword [eax + eax]
mov eax, ebx
mov edi, 0x100000
sub eax, esi
cmp esi, ecx
push 0
cmovae edi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push edi
add eax, esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x469559
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x469559
add esi, eax
lea ecx, [ebx - 0x100000]
cmp esi, ebx
jb 0x469510
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadMem_new_error:_d
push 0x515488
call fcn.0048cf90
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x469580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push 0x5142bc
mov dword [ebp - 4], edi
push dword [ebx + 0x2c]
call fcn.004a600d
add esp, 8
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x4695e1
mov ecx, dword [ebx + 0x3c]
push 0x15
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebx + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [eax]
call edi
mov ecx, dword [ebx + 0x3c]
push eax
push 0x74
call dword [esi + 0x20]
call edi
push eax
push str.m_pFileBuffer_new_error:_d
push 0x515488
call fcn.0048cf90
add esp, 0xc
xor edi, edi
jmp 0x46966c
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebx + 0x2c]
push eax
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x469667
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_new_error:_d
push 0x515488
call fcn.0048cf90
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebx + 0x2c]
push dword [ebx + 0x44]
push dword [ebx + 0x28]
call fcn.004694f0
test eax, eax
jne 0x469667
mov ecx, dword [ebx + 0x3c]
push 0x1a
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x3c]
push eax
push 0x75
call dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadMem_error:_d
push 0x515488
call fcn.0048cf90
add esp, 0xc
jmp 0x46966c
mov edi, 1
mov ecx, dword [ebx + 0x44]
cmp ecx, 0xffffffff
je 0x469682
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x44], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469780
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x469840
push ebx
push edi
push str.RtlGetVersion
push str.ntdll.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov ebx, eax
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004a83c0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test ebx, ebx
je 0x4697ed
lea eax, [ebp - 0x120]
push eax
call ebx
test eax, eax
je 0x469813
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call ebx
test eax, eax
jne 0x469813
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call ebx
cmp dword [ebp - 0x11c], 0xa
jne 0x46982a
cmp dword [ebp - 0x118], edi
mov eax, 1
cmove edi, eax
mov dword [esi + 4], edi
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 4]
xor ecx, ebp
pop esi
call fcn.004a578d
mov esp, ebp
pop ebp
ret