joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6b81
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.PM_Requirement_InstallAfter_Begin_r_n
mov ebx, 0x55913c
mov edi, ecx
push ebx
call fcn.004a985e
mov eax, dword [edi + 0x44]
sub eax, 0x10
push eax
call fcn.00425c49
add esp, 0xc
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x50], esi
jne 0x4a6bd0
lea eax, [edi + 0x58]
push eax
lea ecx, [ebp - 0x50]
call fcn.00425bd3
mov esi, dword [ebp - 0x50]
push esi
push str.PM_Requirement_InstallAfter_Pid_ws_r_n
push ebx
call fcn.004a985e
add esp, 0xc
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.004a61c9
push str.p_17zy
lea ecx, [ebp - 0x50]
call fcn.00425b5f
test eax, eax
jne 0x4a6c02
mov ecx, edi
call fcn.004a5bf5
call fcn.0049c410
test eax, eax
je 0x4a6c21
mov ecx, edi
call fcn.004a412d
test eax, eax
jne 0x4a6c21
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.004a5da3
and dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
push 0x4fc6bc
push str.3.9.23.0000
push dword [edi + 0x4c]
call fcn.0049b3f5
add esp, 0x10
test eax, eax
je 0x4a6d44
cmp dword [ebp - 0x54], 0
jne 0x4a6c5c
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.004a6515
jmp 0x4a6d44
call fcn.00420e9a
push eax
lea ecx, [ebp - 0x50]
call fcn.00423ea0
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x50]
call fcn.00425bd3
lea eax, [ebp - 0x50]
push eax
call fcn.0049dd3c
mov ebx, str.Local_State
push ebx
call fcn.00424236
pop ecx
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x50]
call fcn.0043af25
push dword [ebp - 0x50]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a6d34
and dword [ebp - 0xc], eax
push 0x10
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], al
call fcn.0048156c
pop ecx
test eax, eax
je 0x4a6ccb
mov ecx, eax
call fcn.0040e570
mov ebx, eax
jmp 0x4a6ccd
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.00412320
pop ecx
pop ecx
push dword [ebp - 0x50]
lea ecx, [ebp - 0x34]
call fcn.004045b0
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00408630
push eax
call fcn.0040ac40
add esp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.00408680
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00402540
test ebx, ebx
je 0x4a6d28
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402490
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.004209ab
mov ebx, 0x55913c
cmp dword [edi + 0x70], 0
je 0x4a6d55
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.004a6539
cmp dword [edi + 0x28], 0
jne 0x4a6d62
mov ecx, edi
call fcn.004a61f1
cmp dword [edi + 0x70], 0
je 0x4a6d6f
mov ecx, edi
call fcn.004a8041
mov ecx, edi
call fcn.004a7f52
mov ecx, edi
call fcn.004a80b5
push str.PM_Requirement_InstallAfter_End_r_n
push ebx
call fcn.004a985e
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.004209ab
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x4a6e65
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push esi
push 0x4a6e95
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x78], eax
xor eax, eax
inc eax
cmp dword [esi + 0x30], edi
cmove edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x4a7590
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
push dword [esi + 0x11c]
mov ecx, dword [esi + 0x120]
call fcn.004aa336
mov edi, eax
test edi, edi
js 0x4a764a
mov ecx, dword [esi + 0x1c]
sub ecx, 0x10
push ebx
push ecx
call fcn.00425c49
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0049dd3c
mov ebx, str.install.dat
push ebx
call fcn.00424236
add esp, 0xc
lea ecx, [ebp - 0x20]
push eax
push ebx
call fcn.0043af25
push dword [0x5590d8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
je 0x4a760d
push dword [0x5590d8]
jmp 0x4a7619
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x4a763e
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.004045b0
mov ecx, dword [esi + 0x120]
lea eax, [ebp - 0x1c]
push eax
call fcn.004abc8f
push 0
push 1
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.00402540
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.004209ab
pop ebx
xor eax, eax
test edi, edi
setns al
mov dword [esi + 0x118], eax
test eax, eax
je 0x4a7666
mov ecx, dword [esi + 0x11c]
call fcn.00466585
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x118]
xor ecx, ebp
pop edi
pop esi
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x4a77c5
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push str.oleaut32.dll
mov dword [ebp - 4], ecx
call esi
push str.oleacc.dll
mov edi, eax
call esi
push str.winmm.dll
mov dword [ebp - 8], eax
call esi
push str.wininet.dll
mov dword [ebp - 0xc], eax
call esi
push str.netapi32.dll
mov dword [ebp - 0x10], eax
call esi
xor ebx, ebx
xor ecx, ecx
test edi, edi
je 0x4a7823
cmp dword [ebp - 8], ecx
je 0x4a7823
cmp dword [ebp - 0xc], ecx
je 0x4a7823
cmp dword [ebp - 0x10], ecx
je 0x4a7823
test eax, eax
lea eax, [ecx + 1]
jne 0x4a7825
mov eax, ebx
push eax
push str.StartInstall_LoadLibrary_:_d
push 0x55913c
call fcn.004a985e
mov edi, dword [ebp + 8]
add esp, 0xc
mov esi, dword [ebp - 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4a7853
cmp dword [esi + 0x70], ebx
jne 0x4a7853
push edi
lea ecx, [esi + 4]
call fcn.00425bd3
cmp dword [edi + 0x18], ebx
je 0x4a7962
cmp dword [esi + 0x70], ebx
je 0x4a7962
push dword [esi + 4]
call fcn.0049c928
pop ecx
test eax, eax
jne 0x4a7962
push str.bIsNewOverOld__false__return_r_n
push 0x55913c
call fcn.004a985e
push 0xc
call fcn.0048156c
add esp, 0xc
test eax, eax
je 0x4a789e
mov ecx, eax
call fcn.004a04f3
mov edi, eax
jmp 0x4a78a0
mov edi, ebx
push ebx
lea esi, [edi + 4]
mov dword [edi], 0x1b
push 0x50c74d
mov ecx, esi
call fcn.00431406
push 0x12
push str.reportver2.0.0.0
mov ecx, esi
call fcn.0043b050
push 0xc
push 0x4fce7c
mov ecx, esi
call fcn.0043b050
push dword [0x5590dc]
lea ecx, [ebp + 8]
call fcn.00467a70
mov ecx, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0043b050
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004209ab
push 0xd
push str.vermoreless
mov ecx, esi
call fcn.0043b050
push 1
push 0x4fcc58
mov ecx, esi
call fcn.0043b050
push ebx
push ebx
push edi
push 0x4a6f58
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4a795d
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a794e
push str.Report_timeout
push 0x55913c
call fcn.004a985e
pop ecx
pop ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4a79de
push edi
lea ecx, [esi + 0xac]
call fcn.004a078c
push dword [esi + 0xc4]
mov eax, dword [edi + 0x20]
push dword [esi + 0xc0]
mov dword [esi + 0xd4], eax
push dword [esi + 0xbc]
push dword [esi + 0xb4]
push dword [esi + 0xb0]
push str.bSyn_d_bSlient_d_bSetDefaultBrowser_d_bInstallAfterIsRun_d_bVerCheck_d_r_n
push 0x55913c
call fcn.004a985e
add esp, 0x1c
cmp dword [edi + 4], ebx
je 0x4a79b7
mov ecx, esi
call fcn.004a79e7
mov ebx, eax
jmp 0x4a79dc
push ebx
push ebx
push esi
push 0x4a30bd
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x34], ebx
push 1
mov dword [esi + 0x78], eax
pop eax
cmove ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a7ed7
Capabilities:
Check if file exists
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x120]
call fcn.004aa7e5
mov eax, dword [esi + 0x120]
push eax
mov edx, dword [eax]
call dword [edx + 8]
and dword [esi + 0x120], 0
cmp dword [esi + 0x30], 0
je 0x4a7f16
push 0
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x30], 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004a7fc8
test eax, eax
jne 0x4a7f3f
cmp dword [esi + 0x34], eax
je 0x4a7f3f
push eax
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x34], 0
lea ecx, [esi + 0x80]
call fcn.004a94ea
mov ecx, esi
pop esi
jmp fcn.004a0b75

Function at 0x4a7f52
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0x705
mov eax, dword [edi]
call dword [eax + 4]
push str.UpRegVer_Begin_r_n
mov ebx, 0x55913c
push ebx
call fcn.004a985e
pop ecx
pop ecx
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0x510ec4
push str.SOFTWAREliebao
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
push esi
push dword [edi + 0x4c]
push str.UpRegVer__ver_ws__hr0x_x_r_n
push ebx
call fcn.004a985e
mov edx, dword [edi]
add esp, 0x10
xor ebx, ebx
mov ecx, edi
test esi, esi
push esi
setns bl
push ebx
push 0x705
call dword [edx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4a8d8b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
push 0x600
mov eax, dword [ebx]
call dword [eax + 4]
mov eax, dword [ebx + 8]
sub eax, 0x10
push eax
call fcn.00425c49
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0049dd3c
mov esi, str.ModuleqqdlTencentdl.exe
push esi
call fcn.00424236
add esp, 0xc
lea ecx, [ebp - 4]
push eax
push esi
call fcn.0043af25
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a8df8
push 0
push 1
push 0
push str._install
push dword [ebp - 4]
call fcn.0049de8d
add esp, 0x14
mov edi, eax
jmp 0x4a8e0f
push dword [ebp - 4]
push str.no_exists__ws
push 0x55913c
call fcn.004a985e
add esp, 0xc
xor edi, edi
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x600
mov ecx, ebx
call dword [esi + 8]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004209ab
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a8f0b
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x24], ecx
xor edi, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], eax
call fcn.004918a6
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4a907b
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x4a8f88
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x55913c
call fcn.004a985e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x20]
add esp, 0x10
jmp 0x4a9070
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push esi
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x2c], eax
test esi, esi
jne 0x4a8fc0
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
push 0x55913c
call fcn.004a985e
jmp 0x4a8f7d
push dword [ebp - 0x30]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x4a8ff2
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
push 0x55913c
call fcn.004a985e
add esp, 0x10
jmp 0x4a9070
push 0x4ffb50
push 0x55913c
call fcn.004a985e
pop ecx
pop ecx
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x30]
push ebx
mov eax, dword [ecx]
push ecx
call dword [eax]
mov esi, eax
xor eax, eax
test esi, esi
sete al
push eax
push str.Extract_return:_d
push 0x55913c
call fcn.004a985e
add esp, 0xc
test esi, esi
je 0x4a906a
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x4a9049
mov esi, dword [esi]
push esi
call fcn.00424236
pop ecx
mov ecx, dword [ebp - 0x24]
push eax
push esi
add ecx, 0x1c
call fcn.004241bd
push edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402540
jmp 0x4a906d
xor edi, edi
inc edi
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x4a9087
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
cmp esi, 0xffffffff
je 0x4a9093
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4a909e
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4a90ad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8
Function at 0x4a917b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00420e9a
push eax
lea ecx, [ebp - 0x2c]
call fcn.00423ea0
push esi
push str.GetPacketData__d
push 0x55913c
call fcn.004a985e
add esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
push esi
call fcn.004a931d
mov esi, eax
push esi
push str.GetPacketData_return:_d
push 0x55913c
mov dword [ebp - 0x30], esi
call fcn.004a985e
add esp, 0xc
test esi, esi
mov esi, dword [ebp - 0x2c]
je 0x4a928b
call fcn.004918a6
mov dword [edi + 0x18], eax
test eax, eax
je 0x4a928b
push 0x4ffb50
push 0x55913c
call fcn.004a985e
mov eax, dword [edi + 0x18]
pop ecx
pop ecx
push dword [ebp - 0x34]
mov ecx, dword [eax]
push dword [ebp - 0x24]
push dword [ebp - 0x30]
push eax
call dword [ecx]
xor ecx, ecx
mov edi, eax
test edi, edi
sete cl
push ecx
push str.Extract_return:_d
push 0x55913c
call fcn.004a985e
add esp, 0xc
test edi, edi
je 0x4a9281
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [eax + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x4a9260
mov edi, dword [edi]
push edi
call fcn.00424236
pop ecx
mov ecx, dword [ebp - 0x20]
push eax
push edi
lea ecx, [ecx + 0x1c]
call fcn.004241bd
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402540
jmp 0x4a92aa
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], 1
cmp dword [esi - 0xc], ebx
je 0x4a9297
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4a92a7
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov dword [edi + 0x18], ebx
mov ebx, dword [ebp - 0x28]
lea ecx, [esi - 0x10]
call fcn.004209ab
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8
Function at 0x4a93d2
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
mov ebx, ecx
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004bf1a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a9463
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x55913c
call fcn.004a985e
add esp, 0x10
jmp 0x4a94d7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push esi
push 2
push esi
push edi
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx], eax
test edi, edi
jne 0x4a9496
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x4a94be
push dword [ebx + 8]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x4a94cd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
push 0x55913c
call fcn.004a985e
add esp, 0x10
jmp 0x4a94d0
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret

Function at 0x4a96d7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a9702
xor eax, eax
jmp 0x4a971d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4a9723
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, dword [ebp + 8]
mov ebx, ecx
lea edi, [ebp - 0xeb]
xor ecx, ecx
mov byte [ebp - 0xec], cl
stosd dword es:[edi], eax
push 0xc6
push ecx
mov dword [ebp - 0xd8], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.004bf1a0
push esi
call fcn.00424236
add esp, 0x10
lea ecx, [ebx + 0x14]
push eax
push esi
call fcn.004241bd
mov ecx, ebx
call fcn.004a9668
xor edi, edi
lea eax, [ebp - 0xec]
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push edi
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0xec]
mov dword [ebp - 0xd8], 0xc
mov dword [ebp - 0xd4], eax
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xcc]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.004c029a
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0xcc]
add esp, 0xc
push eax
push edi
push edi
lea eax, [ebp - 0xd8]
push eax
call esi
push 0
push 0
push edi
xor edi, edi
mov dword [ebx + 8], eax
push edi
call esi
mov dword [ebx + 0xc], eax
cmp dword [ebx + 8], edi
je 0x4a9849
test eax, eax
je 0x4a9849
push edi
push edi
push ebx
push 0x4a99c0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [ebx + 0x10], eax
test eax, eax
setne cl
mov eax, ecx
jmp 0x4a984b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 4

Function at 0x4a99cf
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebp
ret 8

Function at 0x4a9ba1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4a9bd1
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004c297c
push dword [esi + 4]
push 2
push 1
push 0x50ca34
call fcn.004c297c
add esp, 0x20
pop esi
pop ebp
ret 8
Function at 0x4aaa68
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4aab9b
push esi
push edi
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0x50
jb 0x4aab72
push edi
call fcn.004badc8
pop ecx
push esi
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aab74
cmp dword [ebp - 0xc], edi
jne 0x4aab74
mov edi, dword [ebp + 0xc]
mov esi, ebx
push 0x14
add edi, 4
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0x424b4c48
jne 0x4aab6d
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x18], ecx
jne 0x4aab6d
mov eax, dword [ebx + 0x24]
cmp eax, ecx
ja 0x4aab6d
mov edx, dword [ebx + 0x28]
add eax, edx
cmp eax, ecx
ja 0x4aab6d
xor edi, edi
inc edi
cmp dword [ebx + 0x2c], edi
jne 0x4aab6d
lea eax, [edx + 1]
push eax
call fcn.004badc8
push dword [ebx + 0x28]
mov esi, eax
mov eax, dword [ebx + 0x24]
add eax, ebx
push eax
push esi
call fcn.004beb50
mov al, byte [ebx + 0x30]
xor ecx, ecx
mov edx, dword [ebx + 0x28]
add esp, 0x10
mov byte [ebp + 0xb], al
mov eax, ecx
test edx, edx
jle 0x4aab56
mov cl, byte [ebp + 0xb]
xor byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x4aab4b
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 8], edi
mov byte [esi + eax], cl
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x54], esi
mov eax, dword [ebx + 0x28]
mov dword [ecx + 0x58], eax
jmp 0x4aab74
mov esi, dword [ebp - 4]
jmp 0x4aab74
mov esi, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x4aab8e
test esi, esi
je 0x4aab8e
push esi
call fcn.004bbc06
pop ecx
pop edi
pop esi
test ebx, ebx
je 0x4aab9b
push ebx
call fcn.004bbc06
pop ecx
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret 8