joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418530
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4e1f00
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.0040fb40
push 0xd
push str.TestMSVCR.exe
mov eax, esi
xor ebx, ebx
push eax
mov dword [esp + 0x38], ebx
call fcn.004060a0
lea esi, [esp + 0x14]
call fcn.0040fb40
mov ecx, esi
mov byte [esp + 0x2c], 1
call fcn.00421520
mov ecx, esi
call fcn.00468100
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
cmp eax, ebx
je 0x4185d9
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4186e8
cmp ecx, eax
jg 0x4186e8
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4185d9
cmp ax, 0x2f
je 0x4185d9
mov edx, 0x4f09a4
mov edi, esi
call fcn.004139a0
push 0xd
push str.TestMSVCR.exe
lea ecx, [esp + 0x1c]
push ecx
call fcn.004060a0
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 0x41865c
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 0x41861f
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 0x418643
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.00422000
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 0x41869b
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x418613
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4186ae
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 0x4186d2
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.00401350
int3
Function at 0x418a00
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e03e8
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, 0x5158b0
call fcn.00489840
xor edi, edi
add esp, 8
cmp dword [0x5156c8], edi
je 0x418a69
cmp esi, 0x96
jmp 0x418a6f
cmp esi, 0x190
jae 0x418a74
mov dword [ebx + 0x44], edi
cmp dword [ebx + 0x44], edi
jne 0x418a90
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.0040fb40
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], edi
mov edi, dword [ebx + 0x3c]
push ecx
mov eax, 1
mov esi, ebx
call fcn.00418050
mov esi, eax
test esi, esi
je 0x418b27
test edi, edi
je 0x418b38
push 0x4f21b8
mov ecx, 0x5158b0
call fcn.00489840
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, 0x5158b0
push edx
push str.Uncompress
call fcn.00489840
add esp, 8
test esi, esi
je 0x418b1f
mov eax, edi
mov dword [ebx + 0x44], 0
call fcn.00466220
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 0x418b38
cmp dword [ebx + 0x3c], edi
je 0x418b38
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 0x418b60
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
Function at 0x418b80
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
xor eax, eax
cmp dword [0x515878], eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
je 0x418ba2
mov eax, 1
pop edi
add esp, 0x10
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push ebp
push esi
push str.QQSoftwareManagerSetup
push eax
push 0x1f0003
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x18], esi
call ebp
test esi, esi
jne 0x418cf6
cmp eax, 5
je 0x418cf6
push str.QQSoftwareManagerSetup
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x418bf9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push str.GlobalQQPCMgrUninst
push 0
push 0x1f0003
mov dword [edi], esi
call ebx
mov esi, eax
mov dword [esp + 0x14], esi
call ebp
test esi, esi
jne 0x418ce1
cmp eax, 5
je 0x418ce1
lea eax, [esp + 0x10]
call fcn.004210d0
test eax, eax
jge 0x418c4b
lea esi, [esp + 0x14]
call fcn.00489560
lea esi, [esp + 0x18]
call fcn.00489560
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x10
ret
cmp dword [esp + 0x10], 0
je 0x418cc1
mov eax, dword [0x515870]
mov esi, dword [eax]
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ebx, eax
push edi
push ebx
call ebp
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push ebx
call ebp
mov edi, 1
jmp 0x418cc5
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x14]
call fcn.00489560
lea esi, [esp + 0x18]
call fcn.00489560
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
cmp dword [esp + 0x24], 0
jne 0x418d11
push 0
push 0x4efd3c
push 0x4f249c
jmp 0x418d09
cmp dword [esp + 0x24], 0
jne 0x418d11
push 0
push 0x4efd3c
push 0x4f245c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
test esi, esi
je 0x418d1c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x10
ret
Function at 0x41a4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4dcf10
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [section..data]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x41a529
call fcn.00416d90
mov esi, eax
jmp 0x41a60f
mov edx, dword [ebp - 0x14]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41a545
call fcn.00416d90
jmp 0x41a606
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x41a55e
call fcn.00416d90
jmp 0x41a606
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jae 0x41a594
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x41a582
lea eax, [ebp]
call fcn.0041b880
lea esi, [ebp - 0x1c]
call fcn.0041a0c0
mov eax, 0x8007000e
jmp 0x41a622
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0041a660
mov dword [ebp - 4], 1
jmp 0x41a5bc
mov esi, dword [ebp]
test esi, esi
jne 0x41a5ca
mov esi, 0x8007000e
jmp 0x41a608
call dword [section..data]
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41a5eb
call fcn.00416d90
jmp 0x41a606
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0041a6a0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x41a620
lea eax, [ebp]
call fcn.0041b880
nop
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004b83ee
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b8d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x41b8e3
push 0x80004005
call fcn.00401350
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x41b8f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41ba70
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x41bade
test ecx, ecx
je 0x41bad0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x41baec
test ecx, ecx
je 0x41bb91
push ecx
jmp 0x41bb8b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x41bb5e
jmp 0x41bb20
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0041ba70
mov edi, eax
test edi, edi
jne 0x41bbad
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x41bb20
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41bb75
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41bb91
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b83ee
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41bbbc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41bb93
Function at 0x41c8e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e4cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov bx, word [esp + 0x30]
call fcn.0041cb60
mov word [eax + 0x98], bx
mov eax, dword [0x5143cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143cc
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
movzx eax, bx
push eax
mov dword [esp + 0x2c], 0
call fcn.0041cb60
mov ecx, dword [eax + 0x90]
push ecx
push str._s__d
lea edi, [esp + 0x1c]
call fcn.00406130
add esp, 0xc
call fcn.0041cb60
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
add eax, 0x60
push edi
call fcn.004194f0
test eax, eax
jne 0x41c9f9
call fcn.0041cb60
add eax, 0x90
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.004012e0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x35]
mov cl, bl
and cl, 1
sub cl, 1
neg cl
push eax
mov dl, bl
mov byte [esp + 0x30], 1
sbb ecx, ecx
add ecx, 1
xor eax, eax
and dl, 2
cmp dl, 2
sete al
push ecx
xor ecx, ecx
and bl, 4
cmp bl, 4
sete cl
push eax
push ecx
call fcn.0041cb60
mov ecx, eax
mov byte [esp + 0x3c], 0
call fcn.0041ca40
mov ebx, eax
test ebx, ebx
je 0x41c9fc
call fcn.0041cb60
mov esi, eax
add esi, 0x60
call fcn.0041cb00
mov dword [eax], ebx
jmp 0x41c9fc
mov ebx, dword [eax + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ca20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x421310
Capabilities:
Check if file exists
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e1da0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
lea eax, [esp + 0x18]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SYSTEMCurrentControlSet_servicesQQPCRTP
mov dword [esp + 0x48], edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x421379
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x421379
push str.RtpFlag
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.QQPCRTP__t_...
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea ecx, [esp + 0x18]
push esi
push ecx
mov ebx, str.QQPCRTP.exe
call fcn.00413a60
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
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 0x4213c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x421442
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ebx, str.QQPCRTP.exe
mov dword [esp + 0x20], 0
call fcn.00413a60
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x34], 1
mov eax, dword [eax]
push 0xbb8
push eax
xor ecx, ecx
mov edx, 0x4f2cac
call fcn.00422000
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42142b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
push str.QQPCRtp__t_return:__u
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
push str.QQPCRTP__t_OK
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
push str.QQPCRTP_Stop_begin
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
call fcn.00423110
push str.QQPCRTP_Stop_end
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
push str.QQPCRTP.exe
call fcn.0048cc80
add esp, 4
push str.QQPCRTP_CloseProcessByFile_ok
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
call fcn.004231a0
mov esi, eax
push esi
push str.QQPCRTP_CRTPService::Remove:__u
mov ecx, 0x5158b0
call fcn.00489840
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4214c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x421df0
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e2dc8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
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 esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00409c00
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x421eaa
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x421eaa
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x421eaa
lea ecx, [esp + 0x14]
call fcn.00468100
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x421e8b
lea ecx, [esp + 0x14]
call fcn.004016d0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
call fcn.00421df0
add esp, 4
test eax, eax
je 0x421e6c
push 0
push esi
call edi
test eax, eax
jne 0x421eaa
call ebx
cmp eax, 0xb7
jne 0x421e6c
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x421ecb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x421ef0
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4e1238
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004be240
mov edx, dword [0x5143cc]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5143cc
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 0x181
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
push edx
push str.__s___s
lea edi, [esp + 0x1c]
mov dword [esp + 0x84], 0
call fcn.00406130
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
mov word [esp + 0x58], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [esp + 0x14]
lea eax, [esi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421fe8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x70
ret
Function at 0x422000
Capabilities:
Access peb ldr_data
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e0308
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
xor edi, edi
push 0x40
lea eax, [esp + 0x34]
push edi
push eax
mov dword [esp + 0x24], edi
call fcn.004be240
mov edx, dword [0x5143cc]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5143cc
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 0x181
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov dword [esp + 0x88], edi
push str.__s___s
lea edi, [esp + 0x20]
call fcn.00406130
mov edi, dword [esp + 0x20]
add esp, 0xc
mov edx, esi
neg edx
sbb edx, edx
and edx, 0xa
push edi
mov word [esp + 0x60], dx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov eax, dword [ebp + 0xc]
jne 0x422101
mov edx, dword [ebp + 8]
push ebx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov ecx, 0x5158b0
call fcn.00489840
mov ebx, dword [esp + 0x30]
add esp, 0x18
jmp 0x422129
test eax, eax
je 0x422124
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x422124
mov edx, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, 1
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x422142
push eax
call esi
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x422155
push eax
call esi
mov dword [esp + 0x20], 0
lea eax, [edi - 0x10]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42217c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422590
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x500938
push 0x4be320
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x42263e
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x42263e
mov edi, 1
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x42263e
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00422661
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret