joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411f00
Capabilities:
Get disk size

Disassembly:
mov eax, dword [eax]
sub esp, 0x1c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x411f25
xor edx, edx
add esp, 0x1c
ret
mov ecx, dword [esp + 4]
test ecx, ecx
mov eax, dword [esp]
mov edx, ecx
jg 0x411f40
jl 0x411f38
test eax, eax
jae 0x411f40
or eax, 0xffffffff
mov edx, SysReAllocString
add esp, 0x1c
ret

Function at 0x412250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e4d3d
mov eax, dword fs:[0]
push eax
mov eax, 0x1280
call fcn.004d5a20
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x1278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x1294]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x12a4]
xor edi, edi
mov dword [esp + 0x129c], edi
mov dword [esp + 0x1c], edi
mov eax, dword [0x5143cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143cc
mov dword [esp + 0x20], ebp
call edx
add eax, 0x10
mov dword [ebp], eax
push 0x20a
lea eax, [esp + 0x38]
push edi
mov esi, 1
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24c], edi
mov dword [esp + 0x30], str.8CEFC9E6_A2B4_4c2a_823C_6903A31139FA
mov dword [esp + 0x34], 0x26
call fcn.004be240
add esp, 0xc
mov dword [esp + 0x129c], esi
cmp dword [esp + 0x240], edi
jne 0x412310
lea esi, [esp + 0x24]
call fcn.0046b6c0
push 0x1046
lea ecx, [esp + 0x24a]
push edi
push ecx
mov dword [esp + 0x24], edi
mov word [esp + 0x250], di
call fcn.004be240
add esp, 0xc
cmp dword [esp + 0x240], edi
je 0x412380
lea edx, [esp + 0x18]
push edx
push 0x1048
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x250]
mov edx, str.IEHomepage
call fcn.0046b5a0
cmp eax, edi
jl 0x412380
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x248]
push ecx
mov edx, ecx
mov ecx, dword [esp + 0x30]
push eax
push edx
mov edx, dword [esp + 0x34]
call fcn.0046ba70
add esp, 0x10
lea eax, [esp + 0x244]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x412390
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x244]
mov ebx, eax
push ecx
mov eax, ebp
call fcn.00401470
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4123bf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x1294]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1278]
xor ecx, esp
call fcn.004b83ee
add esp, 0x128c
ret 4
Function at 0x4126b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e2020
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x40]
xor edi, edi
cmp eax, edi
jne 0x412809
mov ecx, dword [ebx + 0x90]
mov eax, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x412710
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x30]
call fcn.00402530
mov dword [esp + 0x50], edi
mov ecx, dword [ebx + 0x90]
mov eax, ecx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
mov word [esp + 0x10], di
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x412750
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x14]
call fcn.00402530
mov ecx, str.package.dat
lea edx, [esp + 0x28]
mov byte [esp + 0x50], 1
call fcn.0048b280
mov ecx, str.pkgdll.dat
mov edx, esi
call fcn.0048b280
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp dword [esp + 0x40], esi
jae 0x41279c
lea eax, [esp + 0x2c]
lea ecx, [ebx + 0x9c]
call fcn.004184d0
test eax, eax
jne 0x4127bd
push 0x4f18bc
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
cmp dword [esp + 0x24], esi
mov eax, dword [esp + 0x10]
jae 0x4127cb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x24], esi
jb 0x4127e5
mov eax, dword [esp + 0x10]
push eax
call fcn.004b83e9
add esp, 4
cmp dword [esp + 0x40], esi
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
mov word [esp + 0x10], di
jb 0x412809
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004b83e9
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004b83ee
add esp, 0x48
ret
Function at 0x412830
Capabilities:
Check if file exists
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e0478
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp dword [0x5157ac], 0
jne 0x412921
lea eax, [esp + 0x10]
push 0x515718
push eax
mov ebx, str.QQPCTray.exe
call fcn.00413a60
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4128a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x412999
push str.Run_QQPCMgr__and_wait_500_ms
mov ecx, 0x5158b0
call fcn.00489840
lea ecx, [esp + 0x14]
push 0x515718
push ecx
mov ebx, str.QQPCTray.exe
call fcn.00413a60
push 0
mov dword [esp + 0x30], 0
mov eax, dword [eax]
push 0x1f4
push eax
mov ecx, 1
mov edx, str._showui__setup
call fcn.00422000
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412999
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x412999
push str.Acl_Exist__RunMaster_By_Reg
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41298a
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x14], 1
je 0x412999
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push str.QQPCMgr
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x412999
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x412c50
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e3f51
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
cmp dword [0x5157ac], 0
je 0x412de1
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 0xa
or edi, 0xffffffff
jmp 0x412ca4
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push 0x515718
push eax
mov ebx, str.QQPCTray.exe
call fcn.00413a60
mov dword [esp + 0x38], 0
mov eax, dword [eax]
or dword [esp + 0x1c], 1
push eax
call fcn.00422210
add esp, 0xc
test eax, eax
jne 0x412cdc
test esi, esi
jle 0x412cdc
mov bl, 1
jmp 0x412cde
xor bl, bl
mov dword [esp + 0x30], edi
test byte [esp + 0x14], 1
je 0x412d0d
mov eax, dword [esp + 0x1c]
and dword [esp + 0x14], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x412de1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
test esi, esi
mov dword [esp + 0x18], esi
jg 0x412ca4
push 0x4f19b8
mov ecx, 0x5158b0
call fcn.00489840
lea ecx, [esp + 0x24]
push 0x515718
push ecx
mov ebx, str.QQPCTray.exe
call fcn.00413a60
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412d7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x412ca0
lea ecx, [esp + 0x24]
push 0x515718
push ecx
mov ebx, str.QQPCTray.exe
call fcn.00413a60
push 0
mov dword [esp + 0x3c], 1
mov eax, dword [eax]
push 0
push eax
xor ecx, ecx
mov edx, str._regrun
call fcn.00422000
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412ca0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x412ca0
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4136b0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e1ff0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x24], 0
mov ebp, dword [esp + 0x2c]
add ebp, 0xfffffff0
mov eax, ebp
call fcn.004012e0
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x24], 1
mov eax, dword [esi - 0xc]
test eax, eax
je 0x413737
lea ecx, [eax - 1]
test ecx, ecx
jl 0x41387e
cmp ecx, eax
jg 0x41387e
movzx eax, word [esi + ecx*2]
cmp ax, 0x5c
je 0x413737
cmp ax, 0x2f
je 0x413737
mov edx, 0x4f09a4
lea edi, [esp + 0x14]
call fcn.004139a0
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x41379f
test eax, 0x4800
je 0x41379f
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41376c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], edi
lea ecx, [ebp + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x413787
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
lea ecx, [esp + 0x14]
call fcn.00421520
lea ecx, [esp + 0x14]
call fcn.00468100
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x4137fd
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4137db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], edi
lea ecx, [ebp + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4137f6
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, 1
jmp 0x413789
push ecx
lea esi, [eax - 0x10]
mov eax, esi
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.004012e0
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.004136b0
mov byte [esp + 0x24], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test eax, eax
jne 0x413856
test edx, edx
jg 0x41383c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x24], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x41377a
test edx, edx
jg 0x413864
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x24], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x4137e9
push 0x80070057
call fcn.00401350
int3
Function at 0x413890
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push 0
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x413904
push edi
push str.QQPCRtp.exe
lea edi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.0048cbb0
add esp, 4
test eax, eax
pop edi
jne 0x413904
mov eax, dword [esp]
test eax, eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
je 0x413912
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push 0x4f0c0c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
test eax, eax
je 0x413912
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret 4

Function at 0x414650
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4de378
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.004020f0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4146a4
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00403580
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004020f0
cmp dword [esp + 0x24], 8
jb 0x4146ea
mov eax, dword [esp + 0x10]
push eax
call fcn.004b83e9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x4165a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
xor ebx, ebx
push edi
push 0x206
lea eax, [esp + 0xe]
push ebx
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov word [esp + 0x14], bx
call fcn.004be240
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x4f1bd8
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x416652
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push edi
mov dword [esi], 1
call ebx
push str.CloseThemeData
push edi
mov dword [esi + 4], eax
call ebx
push str.DrawThemeBackground
push edi
mov dword [esi + 8], eax
call ebx
push str.SetWindowTheme
push edi
mov dword [esi + 0xc], eax
call ebx
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x210]
pop edi
pop ebx
xor ecx, esp
mov eax, esi
call fcn.004b83ee
add esp, 0x20c
ret
Function at 0x416d60
Capabilities:
Write file on windows

Disassembly:
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x416d82
call fcn.00416d90
ret 4
xor eax, eax
ret 4
Function at 0x417500
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4dce28
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
xor edi, edi
call fcn.00412630
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], edi
call fcn.00416fc0
cmp eax, edi
je 0x4175cf
mov ecx, dword [esp + 0xc]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x40], eax
jne 0x417589
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
mov ecx, 0x5158b0
call fcn.00489840
add esp, 0xc
jmp 0x4175cf
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x100000
mov dword [esi + 0x2c], eax
jae 0x4175af
push str.the_packet_is_too_small
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
jmp 0x4175cf
cmp eax, 0x6400000
jbe 0x4175ca
push str.the_packet_is_too_large
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
jmp 0x4175cf
mov edi, 1
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4175f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret

Function at 0x417610
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e1f28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
lea edi, [esp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call fcn.00418280
mov edi, eax
test edi, edi
jne 0x41766e
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 4
lea esi, [esp + 0x28]
call fcn.0040fb40
push 0xe
push str.pluginctrl.xml
mov eax, esi
push eax
mov dword [esp + 0x2c], 0
call fcn.004060a0
mov ebp, dword [esp + 0x28]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41772a
call fcn.00416d90
test eax, eax
jl 0x4176ed
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4176da
call fcn.00416d90
test eax, eax
jl 0x4176e2
mov dword [esp + 0x14], 1
test esi, esi
je 0x4176ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417711
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 4
mov esi, eax
jmp 0x4176b9
Function at 0x4179c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e3d98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x5143cc]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x5143cc
mov dword [esp + 0x1c], edi
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edi
mov eax, dword [0x5143cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143cc
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push 1
push str.GetPacketData__d
mov ecx, 0x5158b0
mov byte [esp + 0x34], 1
mov dword [esp + 0x1c], edi
call fcn.00489840
mov ebx, dword [esp + 0x3c]
add esp, 8
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 1]
mov esi, ebx
call fcn.00418050
mov esi, eax
push esi
push str.GetPacketData_return:_d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
cmp esi, edi
je 0x417b50
mov ebp, dword [ebx + 0x3c]
cmp ebp, edi
je 0x417b50
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push esi
push ebp
call fcn.00465ab0
mov ecx, ebp
call fcn.00466d90
push ebp
call fcn.00466ef0
mov eax, dword [ebp + 0x20]
mov ebx, dword [eax]
lea esp, [esp]
cmp ebx, dword [ebp + 0x20]
je 0x417b33
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
je 0x417b22
add dword [esp + 0x14], 1
lea esi, [esp + 0x3c]
call fcn.00404ab0
mov byte [esp + 0x2c], 2
mov esi, dword [esp + 0x3c]
cmp dword [esi - 0xc], 0
je 0x417b01
push esi
push str._s.bad
lea edi, [esp + 0x20]
call fcn.00406130
mov edi, dword [esp + 0x20]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.004ba2e0
add esp, 8
test eax, eax
je 0x417b01
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2c], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417b22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, dword [ebp + 0x20]
jne 0x417b2c
call fcn.004b9ac9
mov ebx, dword [ebx]
jmp 0x417aa0
mov edx, dword [esp + 0x34]
xor ecx, ecx
cmp dword [esp + 0x14], ecx
sete cl
cmp dword [edx + 0x3c], ebp
mov edi, ecx
je 0x417b50
mov eax, dword [ebp]
mov ecx, dword [eax + 0x10]
push ebp
call ecx
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417b75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417b9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x418100
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
lea eax, [ebx - 0x100000]
cmp edi, eax
jb 0x418120
mov esi, ebx
sub esi, edi
jmp 0x418125
mov esi, 0x100000
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push esi
lea edx, [edi + ecx]
push edx
push eax
call ebp
test eax, eax
je 0x41815a
mov eax, dword [esp + 0xc]
cmp eax, esi
jne 0x41815a
add edi, eax
cmp edi, ebx
jb 0x418110
mov eax, 1
pop edi
pop esi
pop ebp
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadMem_new_error:_d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8

Function at 0x418180
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
cmp dword [esi + 0x40], 0xffffffff
push edi
mov dword [esp + 0x10], ebp
jne 0x4181a9
push str.LoadImageToMem_m_hFile_is_NUll
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
jmp 0x418252
mov eax, dword [esi + 0x2c]
push 0x514484
push eax
call fcn.004bae21
add esp, 8
cmp eax, ebp
mov dword [esi + 0x28], eax
jne 0x4181e3
mov dword [esi + 0x20], 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.m_pFileBuffer_new_error:_d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
jmp 0x418252
mov edx, dword [esi + 0x2c]
push ebp
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41824d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.ReadFile_new_error:_d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x28]
mov ebx, dword [esi + 0x2c]
push ecx
push edx
call fcn.00418100
test eax, eax
jne 0x41824d
call edi
push eax
push str.ReadMem_error:_d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
jmp 0x418252
mov ebp, 1
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x418268
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0xffffffff
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret