joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4125e0
Capabilities:
Check if file exists
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e0658
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 [0x51578c], 0
jne 0x4126d1
lea eax, [esp + 0x10]
push 0x5156f8
push eax
mov ebx, str.QQPCTray.exe
call fcn.00413810
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 0x412654
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x412749
push str.Run_QQPCMgr__and_wait_500_ms
mov ecx, 0x515890
call fcn.004899e0
lea ecx, [esp + 0x14]
push 0x5156f8
push ecx
mov ebx, str.QQPCTray.exe
call fcn.00413810
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.00422020
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 0x412749
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x412749
push str.Acl_Exist__RunMaster_By_Reg
mov ecx, 0x515890
call fcn.004899e0
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 0x41273a
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x14], 1
je 0x412749
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 0x412749
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 0x412a00
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e40d1
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 [0x51578c], 0
je 0x412b91
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 0xa
or edi, 0xffffffff
jmp 0x412a54
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push 0x5156f8
push eax
mov ebx, str.QQPCTray.exe
call fcn.00413810
mov dword [esp + 0x38], 0
mov eax, dword [eax]
or dword [esp + 0x1c], 1
push eax
call fcn.00422230
add esp, 0xc
test eax, eax
jne 0x412a8c
test esi, esi
jle 0x412a8c
mov bl, 1
jmp 0x412a8e
xor bl, bl
mov dword [esp + 0x30], edi
test byte [esp + 0x14], 1
je 0x412abd
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 0x412abd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x412b91
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
test esi, esi
mov dword [esp + 0x18], esi
jg 0x412a54
push 0x4f19b8
mov ecx, 0x515890
call fcn.004899e0
lea ecx, [esp + 0x24]
push 0x5156f8
push ecx
mov ebx, str.QQPCTray.exe
call fcn.00413810
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 0x412b2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x412a50
lea ecx, [esp + 0x24]
push 0x5156f8
push ecx
mov ebx, str.QQPCTray.exe
call fcn.00413810
push 0
mov dword [esp + 0x3c], 1
mov eax, dword [eax]
push 0
push eax
xor ecx, ecx
mov edx, str._regrun
call fcn.00422020
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 0x412a50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x412a50
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 0x413460
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e2110
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.004012d0
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x24], 1
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4134e7
lea ecx, [eax - 1]
test ecx, ecx
jl 0x41362e
cmp ecx, eax
jg 0x41362e
movzx eax, word [esi + ecx*2]
cmp ax, 0x5c
je 0x4134e7
cmp ax, 0x2f
je 0x4134e7
mov edx, 0x4f09a4
lea edi, [esp + 0x14]
call fcn.00413750
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x41354f
test eax, 0x4800
je 0x41354f
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 0x41351c
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 0x413537
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.00421490
lea ecx, [esp + 0x14]
call fcn.00421540
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x4135ad
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 0x41358b
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 0x4135a6
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, 1
jmp 0x413539
push ecx
lea esi, [eax - 0x10]
mov eax, esi
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.004012d0
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.00413460
mov byte [esp + 0x24], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test eax, eax
jne 0x413606
test edx, edx
jg 0x4135ec
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 0x41352a
test edx, edx
jg 0x413614
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 0x413599
push 0x80070057
call fcn.00401340
int3
Function at 0x413640
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 0x4136b4
push edi
push str.QQPCRtp.exe
lea edi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.0048ccf0
add esp, 4
test eax, eax
pop edi
jne 0x4136b4
mov eax, dword [esp]
test eax, eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
je 0x4136c2
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 0x4136c2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret 4

Function at 0x414530
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4de568
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.00402090
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414584
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00403530
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00402090
cmp dword [esp + 0x24], 8
jb 0x4145ca
mov eax, dword [esp + 0x10]
push eax
call fcn.004b84d9
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 0x4164c0
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.004be320
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 0x416572
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.004b84de
add esp, 0x20c
ret
Function at 0x416d20
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 0x416d42
call fcn.00416d50
ret 4
xor eax, eax
ret 4
Function at 0x4174c0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4dcf58
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.004123e0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], edi
call fcn.00416f80
cmp eax, edi
je 0x41758f
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 0x417549
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, 0x515890
call fcn.004899e0
add esp, 0xc
jmp 0x41758f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x100000
mov dword [esi + 0x2c], eax
jae 0x41756f
push str.the_packet_is_too_small
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
jmp 0x41758f
cmp eax, 0x6400000
jbe 0x41758a
push str.the_packet_is_too_large
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
jmp 0x41758f
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 0x4175b7
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 0x4175d0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e2048
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.00418240
mov edi, eax
test edi, edi
jne 0x41762e
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.0040f8f0
push 0xe
push str.pluginctrl.xml
mov eax, esi
push eax
mov dword [esp + 0x2c], 0
call fcn.00405fb0
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 0x4176ea
call fcn.00416d50
test eax, eax
jl 0x4176ad
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 0x41769a
call fcn.00416d50
test eax, eax
jl 0x4176a2
mov dword [esp + 0x14], 1
test esi, esi
je 0x4176ad
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 0x4176d1
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 0x417679
Function at 0x417980
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e3ee8
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 [0x5143ac]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x5143ac
mov dword [esp + 0x1c], edi
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edi
mov eax, dword [0x5143ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143ac
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push 1
push str.GetPacketData__d
mov ecx, 0x515890
mov byte [esp + 0x34], 1
mov dword [esp + 0x1c], edi
call fcn.004899e0
mov ebx, dword [esp + 0x3c]
add esp, 8
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 1]
mov esi, ebx
call fcn.00418010
mov esi, eax
push esi
push str.GetPacketData_return:_d
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
cmp esi, edi
je 0x417b10
mov ebp, dword [ebx + 0x3c]
cmp ebp, edi
je 0x417b10
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.00465c30
mov ecx, ebp
call fcn.00466f10
push ebp
call fcn.00467070
mov eax, dword [ebp + 0x20]
mov ebx, dword [eax]
lea esp, [esp]
cmp ebx, dword [ebp + 0x20]
je 0x417af3
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
je 0x417ae2
add dword [esp + 0x14], 1
lea esi, [esp + 0x3c]
call fcn.00404a40
mov byte [esp + 0x2c], 2
mov esi, dword [esp + 0x3c]
cmp dword [esi - 0xc], 0
je 0x417ac1
push esi
push str._s.bad
lea edi, [esp + 0x20]
call fcn.00406040
mov edi, dword [esp + 0x20]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.004baee3
add esp, 8
test eax, eax
je 0x417ac1
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 0x417ae2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, dword [ebp + 0x20]
jne 0x417aec
call fcn.004b9c0e
mov ebx, dword [ebx]
jmp 0x417a60
mov edx, dword [esp + 0x34]
xor ecx, ecx
cmp dword [esp + 0x14], ecx
sete cl
cmp dword [edx + 0x3c], ebp
mov edi, ecx
je 0x417b10
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 0x417b35
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 0x417b5d
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 0x4180c0
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 0x4180e0
mov esi, ebx
sub esi, edi
jmp 0x4180e5
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 0x41811a
mov eax, dword [esp + 0xc]
cmp eax, esi
jne 0x41811a
add edi, eax
cmp edi, ebx
jb 0x4180d0
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, 0x515890
call fcn.004899e0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8

Function at 0x418140
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 0x418169
push str.LoadImageToMem_m_hFile_is_NUll
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
jmp 0x418212
mov eax, dword [esi + 0x2c]
push 0x514464
push eax
call fcn.004baf11
add esp, 8
cmp eax, ebp
mov dword [esi + 0x28], eax
jne 0x4181a3
mov dword [esi + 0x20], 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.m_pFileBuffer_new_error:_d
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
jmp 0x418212
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 0x41820d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.ReadFile_new_error:_d
mov ecx, 0x515890
call fcn.004899e0
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.004180c0
test eax, eax
jne 0x41820d
call edi
push eax
push str.ReadMem_error:_d
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
jmp 0x418212
mov ebp, 1
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x418228
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
Function at 0x4184f0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4e2020
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 ebp, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call ebp
lea esi, [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.0040f8f0
push 0xd
push str.TestMSVCR.exe
mov eax, esi
xor ebx, ebx
push eax
mov dword [esp + 0x38], ebx
call fcn.00405fb0
lea esi, [esp + 0x14]
call fcn.0040f8f0
mov ecx, esi
mov byte [esp + 0x2c], 1
call fcn.00421490
mov ecx, esi
call fcn.00421540
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
cmp eax, ebx
je 0x418599
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4186a8
cmp ecx, eax
jg 0x4186a8
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x418599
cmp ax, 0x2f
je 0x418599
mov edx, 0x4f09a4
mov edi, esi
call fcn.00413750
push 0xd
push str.TestMSVCR.exe
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405fb0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41861c
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4185df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push esi
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x28], ebx
call fcn.00422020
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
call ebp
mov byte [esp + 0x2c], bl
lea eax, [esi - 0x10]
or edx, 0xffffffff
cmp dword [esp + 0x1c], 0x64
lea ecx, [eax + 0xc]
jne 0x41865b
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4185d3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41866e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418692
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0x80070057
call fcn.00401340
int3
Function at 0x4189c0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e0598
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
mov dword [ebx + 0x44], 1
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esi, dword [esp + 0x28]
shr esi, 0x14
push esi
push 0x4f21a4
mov ecx, 0x515890
call fcn.004899e0
xor edi, edi
add esp, 8
cmp dword [0x5156a8], edi
je 0x418a29
cmp esi, 0x96
jmp 0x418a2f
cmp esi, 0x190
jae 0x418a34
mov dword [ebx + 0x44], edi
cmp dword [ebx + 0x44], edi
jne 0x418a50
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea esi, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
call fcn.0040f8f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], edi
mov edi, dword [ebx + 0x3c]
push ecx
mov eax, 1
mov esi, ebx
call fcn.00418010
mov esi, eax
test esi, esi
je 0x418ae7
test edi, edi
je 0x418af8
push 0x4f21b8
mov ecx, 0x515890
call fcn.004899e0
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
mov ecx, dword [edx + 4]
add esp, 4
push eax
push esi
push edi
call ecx
xor edx, edx
mov esi, eax
test esi, esi
sete dl
mov ecx, 0x515890
push edx
push str.Uncompress
call fcn.004899e0
add esp, 8
test esi, esi
je 0x418adf
mov eax, edi
mov dword [ebx + 0x44], 0
call fcn.004663a0
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x28], eax
mov dword [esp + 0x14], 1
test edi, edi
je 0x418af8
cmp dword [ebx + 0x3c], edi
je 0x418af8
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push edi
call ecx
mov dword [esp + 0x48], 0xffffffff
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 0x418b20
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 + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret