joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6c91
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x2c4], eax
xor eax, eax
push 0x10
push str.QQPCFileOpen.exe
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x288], 7
mov dword [ebp - 0x28c], 0
mov word [ebp - 0x29c], ax
call fcn.00439160
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x29c]
mov edi, dword [ebp - 0x288]
lea ebx, [ebp - 0x29c]
mov esi, dword [ebp - 0x29c]
cmp edi, 8
mov eax, dword [ebp - 0x28c]
cmovae ecx, esi
mov dword [ebp - 0x2bc], fcn.004b5ae2
cmovae ebx, esi
lea edx, [ecx + eax*2]
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x29c]
cmovae ecx, esi
push ebx
call fcn.00455fc0
push 0x26c
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.004a83c0
add esp, 0x14
mov dword [ebp - 0x2c8], 0x136
lea eax, [ebp - 0x2b8]
mov byte [ebp - 4], 1
push eax
push 0x20019
push 0
push dword [ebp - 0x2c4]
mov dword [ebp - 0x2b8], 0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x454852
mov eax, dword [ebp - 0x2b8]
test eax, eax
je 0x454750
lea ecx, [ebp - 0x2c8]
push ecx
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x2bc]
push ecx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00438600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2b4]
mov edi, dword [ebp - 0x2a0]
lea ebx, [ebp - 0x2b4]
mov esi, dword [ebp - 0x2b4]
cmp edi, 8
mov eax, dword [ebp - 0x2a4]
cmovae ecx, esi
mov dword [ebp - 0x2bc], fcn.004b5ae2
cmovae ebx, esi
lea edx, [ecx + eax*2]
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x2b4]
cmovae ecx, esi
push ebx
call fcn.00455fc0
add esp, 8
lea eax, [ebp - 0x29c]
cmp dword [ebp - 0x288], 8
lea ecx, [ebp - 0x2b4]
cmovae eax, dword [ebp - 0x29c]
push dword [ebp - 0x28c]
push 0
push eax
call fcn.0044e0e0
cmp eax, 0xffffffff
je 0x4547ec
mov dword [ebp - 0x2c0], 1
jmp 0x454819
cmp dword [ebp - 0x288], 8
lea eax, [ebp - 0x29c]
cmovae eax, dword [ebp - 0x29c]
push eax
push dword [ebp - 0x2c4]
push str.CheckRegValue__s_not_find__s
push 0x515488
call fcn.0048d1f0
add esp, 0x10
mov eax, dword [ebp - 0x2b8]
test eax, eax
je 0x45482a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x2b8], 0
cmp eax, 8
jb 0x454863
inc eax
lea ecx, [ebp - 0x2b4]
push eax
push dword [ebp - 0x2b4]
call fcn.00433600
mov eax, dword [ebp - 0x2b8]
test eax, eax
je 0x454863
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x2b8], 0
cmp ecx, 8
jb 0x45488b
inc ecx
push ecx
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x29c]
call fcn.00433600
mov eax, dword [ebp - 0x2c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
Function at 0x455060
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6d50
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SOFTWAREMicrosoftInternet_ExplorerProtocolExecute_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0041c970
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
push eax
call fcn.0041c490
push dword [ebp - 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push dword [ebp + 8]
push SysReAllocString
call esi
neg eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
sbb esi, esi
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4550eb
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], edi
dec edi
test edi, edi
jg 0x45510a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x455930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
cmp dword [esi + 0x14], 8
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jb 0x455950
mov eax, dword [esi]
jmp 0x455952
mov eax, esi
push ebx
mov ebx, dword [ebp + 8]
push ecx
push eax
push ebx
lea ecx, [ebp - 0xc]
call fcn.00456190
test eax, eax
je 0x45597e
cmp dword [esi + 0x14], 8
jb 0x45596d
mov esi, dword [esi]
sub esp, 0x14
lea ecx, [ebp - 0xc]
push esi
push ebx
call fcn.004560a0
test eax, eax
jne 0x4559d3
mov edx, dword [ebp + 0x14]
cmp dword [edx + 0x14], 8
jb 0x455989
mov edx, dword [edx]
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 8
jb 0x455994
mov esi, dword [esi]
test edx, edx
je 0x4559d3
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4559a0
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
jmp 0x4559d6
mov esi, dword [ebp - 0xc]
pop ebx
test esi, esi
je 0x4559e2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x456220
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6f48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4f4a50
lea ecx, [ebp - 0x28]
call fcn.00438600
push 0x26
push str.7C260B4B_F7A0_40B5_B403_BEFCDC6A4C3B
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004402a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
cmovae eax, dword [ebp - 0x28]
sub esp, 0x14
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push eax
push SysReAllocString
call fcn.004560a0
mov esi, dword [ebp - 0x38]
test eax, eax
jne 0x4562c9
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 4
push 0
push str.Flags
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
jmp 0x4562cb
xor bl, bl
test esi, esi
je 0x4562d6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4562eb
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00433600
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x457c50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d71e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.GlobalQQPCMgrSetup_EB92E8C1_0DEB_4407_9EB4_F74AAEA09031
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x457d41
cmp edi, 5
je 0x457d41
push ecx
lea ecx, [ebp - 0x34]
call fcn.00457980
push str.GlobalQQPCMgrSetup_EB92E8C1_0DEB_4407_9EB4_F74AAEA09031
push esi
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [0x51545c]
mov esi, eax
test ecx, ecx
je 0x457cd7
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.GlobalQQPCMgrUninst
push 0
push 0x1f0003
mov dword [0x51545c], esi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x457d1c
cmp edi, 5
je 0x457d1c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x515438], 0
jne 0x457d39
push 0
push 0x4f2d2c
push 0x4f4db4
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
push 0x83
jmp 0x457d64
cmp dword [0x515438], 0
jne 0x457d5e
push 0
push 0x4f2d2c
push 0x4f4d48
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
push 0x82
mov ecx, dword [0x51544c]
mov eax, dword [ecx]
call dword [eax + 0x20]
test esi, esi
je 0x457d7a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x459190
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7348
mov eax, dword fs:[0]
push eax
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x4591e7
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 4
test al, 8
mov eax, 8
cmovne ecx, eax
push ecx
mov ecx, dword [0x51544c]
call fcn.00463730
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x45929b
lea eax, [ebp + 0xc]
push eax
push str.ExtendQQNavigation
lea ecx, [ebp + 8]
call fcn.004338c0
mov eax, dword [ebp + 8]
test eax, eax
je 0x459247
push str.ExtendQQNavigation
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp + 0xc]
cmp eax, 0xb
jne 0x45926a
mov ecx, dword [0x51544c]
push 8
call fcn.00463730
mov eax, dword [0x51544c]
mov dword [eax + 0x2c], 0
jmp 0x45929b
cmp eax, 0xc
jne 0x45928a
mov ecx, dword [0x51544c]
push 8
call fcn.00463730
mov eax, dword [0x51544c]
mov dword [eax + 0x2c], 1
jmp 0x45929b
cmp eax, 0xd
jne 0x45929b
mov eax, dword [0x51544c]
mov dword [eax + 0x30], 1
mov eax, dword [ebp + 8]
test eax, eax
je 0x4592a9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x459830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d741b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x220]
push 0x20a
push 0
push eax
call fcn.004a83c0
add esp, 0xc
mov dword [ebp - 0x22c], 0
lea eax, [ebp - 0x220]
push 0xffffffffffffffff
push dword [esi]
push 0x105
push eax
call fcn.004b67be
push 0x208
lea eax, [ebp - 0x220]
mov edx, 0x26
push eax
push 0x208
push eax
mov ecx, str.8CEFC9E6_A2B4_4c2a_823C_6903A31139FA
call fcn.00477530
add esp, 0x20
test eax, eax
jne 0x459972
lea ecx, [ebp - 0x228]
call fcn.0048af90
push str.QMPacket.dat
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.0041c010
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x228]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45990f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x459957
push 0
lea eax, [ebp - 0x22c]
push eax
push 0x208
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x459972
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 4
Function at 0x459990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7460
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
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
mov edi, dword [ebp + 0xc]
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x4599d3
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0
push 0x2e
push dword [edi]
call fcn.004a7ff1
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x459ab0
mov eax, dword [edi]
sub ebx, eax
sar ebx, 1
cmp ebx, 0xffffffff
je 0x459ab0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459ab0
push ebx
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call fcn.00421e80
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0041c6d0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x48]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459a53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], 0
je 0x459a77
push 4
push str..dat
lea ecx, [ebp - 0x44]
call fcn.0041c490
mov esi, dword [ebp - 0x44]
mov edx, esi
push ecx
mov ecx, dword [edi]
call fcn.004771d0
jmp 0x459aa7
lea eax, [ebp - 0x40]
push eax
push dword [edi]
call fcn.004b669a
add esp, 8
lea ecx, [ebp - 0x44]
push 4
push str..xml
call fcn.0041c490
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x44]
mov edx, esi
mov ecx, dword [edi]
lea eax, [eax + eax*4]
push eax
call fcn.004772c0
add esp, 4
test eax, eax
jne 0x459acc
jmp 0x459ab3
or ebx, 0xffffffff
push dword [edi]
push 0
push dword [ebp + 8]
push str.encrypttype_d_err_d_path_s.
push 0x515488
call fcn.0048d1f0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x459ae8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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 8
Function at 0x45a6f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d56a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
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
push str.QQPCRTP__t_begin
push 0x515488
call fcn.0048cf90
push str.QQPCRTP.exe
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.0041c010
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45a762
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x45a7d4
push str.QQPCRTP.exe
mov edx, ebx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x18]
call fcn.0041c010
add esp, 4
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
mov ecx, dword [eax]
mov edx, 0x4f5694
push 0
push 0xbb8
call fcn.0045aa40
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45a7bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
push str.QQPCRtp__t_return:__u
push 0x515488
call fcn.0048cf90
add esp, 0xc
push str.QQPCRTP__t_end
push 0x515488
call fcn.0048cf90
push str.QQPCRTP_Stop_begin
push 0x515488
call fcn.0048cf90
call fcn.0046ba30
push str.QQPCRTP_Stop_end
push 0x515488
mov esi, eax
call fcn.0048cf90
mov ecx, str.QQPCRTP.exe
call fcn.0048fe80
push str.QQPCRTP_CloseProcessByFile_ok
push 0x515488
call fcn.0048cf90
add esp, 0x20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a930
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7638
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0x40
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004a83c0
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0x181
movups xmmword [ebp - 0x24], xmm0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x45a995
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push str.__s___s
push eax
call fcn.00421db0
mov esi, dword [ebp - 0x14]
add esp, 0x10
xor eax, eax
mov word [ebp - 0x3c], ax
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x45aa04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_failed__the_error_code_is__d
push 0x515488
call fcn.0048cf90
add esp, 0xc
mov edi, dword [ebp - 0x24]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45aa26
mov ecx, dword [esi]
push esi
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
mov esp, ebp
pop ebp
ret
Function at 0x45aa40
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7668
mov eax, dword fs:[0]
push eax
sub esp, 0x68
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 edi, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.004a83c0
add esp, 0xc
mov dword [ebp - 0x74], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0x181
movups xmmword [ebp - 0x28], xmm0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x45aaaa
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push str.__s___s
push eax
call fcn.00421db0
mov esi, dword [ebp - 0x14]
xor eax, eax
add esp, 0x10
mov ecx, 0xa
cmp dword [ebp + 0xc], eax
cmovne ax, cx
push esi
mov word [ebp - 0x44], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x45ab31
push edi
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
push 0x515488
call fcn.0048cf90
add esp, 0x1c
jmp 0x45ab58
mov eax, dword [ebp + 8]
test eax, eax
je 0x45ab53
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45ab53
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, 1
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45ab6f
push eax
call edi
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x45ab80
push eax
call edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45ab9f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x22c
xor edi, edi
mov dword [ebp - 0x234], ecx
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.004a83c0
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x45b0bd
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45b0b6
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
nop word [eax + eax]
mov ecx, dword [ebp - 0x228]
cmp ecx, ebx
je 0x45b09c
test ecx, ecx
je 0x45b09c
cmp ecx, 4
je 0x45b09c
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.004ab57d
add esp, 8
test eax, eax
je 0x45b0b0
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x45b070
jmp 0x45b0b5
mov edi, 1
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a578d
mov esp, ebp
pop ebp
ret

Function at 0x45b0d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x508bd8
push 0x4aa6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], esi
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x30]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x45b185
lea eax, [ebp - 0x3c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x45b185
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, 1
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.0045b1b2
mov eax, esi
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 0x45b5e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
mov esi, edx
mov dword [ebp - 4], 0
push esi
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45b623
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
je 0x45b62c
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45b608
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret