joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416986
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea edx, [ebp - 0x210]
mov ecx, str.RenderOptimizeEnabled
call fcn.0041642b
test eax, eax
jne 0x416a19
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.AowConfig.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
push 1
push str.RenderOptimizeDefault
push str.Render
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, eax
jmp 0x416a1f
mov ecx, dword [ebp - 0x210]
xor eax, eax
cmp ecx, 1
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.00431fdc
mov esp, ebp
pop ebp
ret
Function at 0x416ec5
Capabilities:
Read .ini file

Disassembly:
push 0x288
mov eax, 0x43ac1b
call fcn.004385bc
and dword [ebp - 0x280], 0
lea ecx, [ebp - 0x260]
xorps xmm0, xmm0
xor esi, esi
push str.2.0.6235.123
movlpd qword [ebp - 0x288], xmm0
movlpd qword [ebp - 0x294], xmm0
call fcn.0040172f
and dword [ebp - 4], esi
lea edx, [ebp - 0x288]
xor ebx, ebx
lea ecx, [ebp - 0x260]
inc ebx
mov dword [ebp - 0x280], ebx
call fcn.004167f2
test al, al
je 0x416f50
push str.2.0.6266.123
lea ecx, [ebp - 0x248]
call fcn.0040172f
push 3
pop ebx
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x248]
call fcn.004167f2
mov byte [ebp - 0x279], 1
test al, al
jne 0x416f57
mov byte [ebp - 0x279], 0
test bl, 2
je 0x416f6b
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.0040178a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
xor ebx, ebx
push 0
inc ebx
push ebx
call fcn.0040178a
cmp byte [ebp - 0x279], 0
je 0x417061
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], ebx
push eax
call fcn.004040eb
mov ecx, eax
call fcn.004086ec
mov edi, eax
mov ebx, edx
call fcn.004040eb
lea ecx, [ebp - 0x278]
push ecx
mov ecx, eax
call fcn.0040eb9f
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x416fe0
mov eax, dword [eax]
lea ecx, [ebp - 0x230]
push ecx
push eax
call fcn.004084bf
push 0
push 1
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x280], edx
call fcn.004069d5
cmp ebx, dword [ebp - 0x284]
ja 0x417038
jb 0x41701a
cmp edi, dword [ebp - 0x288]
jae 0x417038
mov eax, dword [ebp - 0x280]
cmp eax, dword [ebp - 0x284]
jb 0x417052
ja 0x417038
mov eax, dword [ebp - 0x28c]
cmp eax, dword [ebp - 0x288]
jb 0x417052
push 0x3f
pop esi
cmp ebx, dword [ebp - 0x290]
jb 0x417052
ja 0x41704d
cmp edi, dword [ebp - 0x294]
jb 0x417052
mov esi, 0xff
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.004069d5
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.AowConfig.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
push str.RenderOptimizeMask
push str.Render
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
and eax, esi
call fcn.00438566
ret
Function at 0x4170cb
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x110
xor ebx, ebx
lea eax, [ebp - 0x31c]
push ebx
push eax
mov edi, edx
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x320], 0x114
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x314], 0x1770
ja 0x417128
mov dword [esi], ebx
mov dword [edi], ebx
jmp 0x4171fe
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.libOpenglRenderV3.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417176
and dword [esi], eax
and dword [edi], eax
jmp 0x4171fe
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.libEGL_translator_v3.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
push 0x104
sbb eax, eax
neg eax
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.libEGL.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov dword [edi], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431fdc
mov esp, ebp
pop ebp
ret

Function at 0x417653
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push str.APK_1D01453B_AFB4_4AD8_847D_297C27975CB0
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x41767c
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 8]
inc esi
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x4179f1
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x43ad89
call fcn.00438588
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x417b1b
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x10], 0
mov edi, eax
je 0x417b1b
test edi, edi
je 0x417b1b
call fcn.0040638e
push eax
lea ecx, [ebp - 0x18]
call fcn.004061a7
and dword [ebp - 4], 0
call fcn.0040638e
push eax
lea ecx, [ebp - 0x14]
call fcn.004061a7
xor ebx, ebx
xor esi, esi
inc ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x10], esi
jle 0x417aab
push str._tab
push dword [edi + esi*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x417a7c
lea eax, [esi + 1]
cmp eax, dword [ebp - 0x10]
jge 0x417a7c
lea ecx, [ebp - 0x18]
jmp 0x417a9b
push str._apk
push dword [edi + esi*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x417aa5
lea eax, [esi + 1]
cmp eax, dword [ebp - 0x10]
jge 0x417aa5
lea ecx, [ebp - 0x14]
mov esi, eax
push dword [edi + esi*4]
call fcn.0040692c
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x417a5b
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], 0
je 0x417b08
push str.94B0D218_2A54_48c0_A371_5716DC31FE11
push str.STATIC
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x417b08
push str.com.tencent.tmgp.pubgmhd
lea ecx, [ebp - 0x14]
call fcn.0040f00c
test eax, eax
je 0x417af2
push str.com.tencent.tmgp.pubgm
lea ecx, [ebp - 0x14]
call fcn.0040f00c
xor ebx, ebx
test eax, eax
push 2
pop ecx
cmove ebx, ecx
push ebx
lea ecx, [ebp - 0x18]
call fcn.004178cc
push eax
push 0x500
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406620
lea ecx, [esi - 0x10]
call fcn.00406620
call fcn.00438551
ret

Function at 0x417c31
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.94B0D218_2A54_48c0_A371_5716DC31FE11
mov edi, ecx
push esi
call fcn.00431bd0
pop ecx
test eax, eax
je 0x417c7a
push esi
push str.STATIC
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x417c76
xor esi, esi
push esi
push esi
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x417cb8
lea ecx, [ebp - 0x1c]
call fcn.0042a730
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
xor esi, esi
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
cmp eax, 0xb7
push esi
push 1
setne bl
call fcn.004069d5
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431fdc
mov esp, ebp
pop ebp
ret
Function at 0x418152
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
cmp dword [ebp + 8], ebx
je 0x418207
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov dword [ebp + 8], ebx
cmp dword [esi + 4], ebx
je 0x418221
xor ecx, ecx
lea eax, [esi + 0xc]
inc ecx
cmp dword [eax], ebx
je 0x418221
push 0x1cff
push 0x64
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x418203
cmp eax, 0xffffffff
je 0x418221
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebp - 0x20]
inc edi
push edi
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4181df
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x1c], 0x12
cmove eax, edi
mov dword [ebp + 8], eax
jmp 0x4181e2
mov eax, dword [ebp + 8]
test eax, eax
je 0x4181f6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x2710
ja 0x418221
lea eax, [esi + 0xc]
push 1
pop ecx
cmp dword [esi + 4], ebx
jne 0x418183
jmp 0x418221
xor eax, eax
jmp 0x41821e
cmp dword [esi + 0xc], ebx
je 0x418221
push 0xbb8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
lea ebx, [eax + 1]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419d87
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
push dword [esi]
push 1
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [esi + 8]
add esp, 0x10
lea ebx, [eax - 1]
mov eax, ecx
neg ebx
cdq
sbb bl, bl
idiv dword [esi + 0x18]
inc bl
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x1c], eax
test bl, bl
je 0x419f05
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
push ecx
mov ecx, esp
jb 0x419ddd
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
push 0x18
lea ecx, [esi + 0x20]
pop edx
mov dword [eax], str.read
call fcn.0041843a
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov edx, dword [esi + 0x18]
add esp, 0x10
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
test eax, eax
je 0x419ebb
mov ebx, ecx
dec eax
mov dword [esp + 0x18], eax
xor eax, eax
cmp dword [esp + 0x14], 1
jne 0x419e25
cmp byte [edi], al
jmp 0x419e2e
xor ebx, ebx
cmp word [edi], bx
mov ebx, dword [esp + 0x10]
sete al
test eax, eax
je 0x419e5d
test ecx, ecx
je 0x419e52
cmp edi, ecx
je 0x419e52
mov eax, edi
imul edx, ebx
sub eax, ecx
push eax
push ecx
sub ecx, edx
push ecx
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
mov edx, dword [esi + 0x18]
inc ebx
mov dword [esp + 0x10], ebx
lea ecx, [edx + edi]
mov eax, dword [esp + 0x18]
add edi, edx
test eax, eax
jne 0x419e13
mov ebx, dword [esp + 0x1c]
test ecx, ecx
je 0x419e8f
cmp edi, ecx
je 0x419e8f
mov eax, dword [esi + 0x18]
sub edi, ecx
push edi
mov edi, dword [esp + 0x14]
imul eax, edi
push ecx
sub ecx, eax
push ecx
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
jmp 0x419e93
mov edi, dword [esp + 0x10]
test edi, edi
je 0x419ebb
push 0xffffffffffffffff
push edi
push ecx
mov eax, esp
xor ecx, ecx
push ecx
xor edx, edx
inc edx
mov dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.nulls_removed
call fcn.0041843a
add esp, 0x10
sub dword [esi + 0x1c], edi
cmp dword [esi + 0x18], 1
jle 0x419f0c
test byte [esi + 4], 0x80
je 0x419f0c
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x419ee2
mov edx, dword [ebp + 8]
dec ecx
movzx eax, word [edx + ecx*2]
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x419ed1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor ecx, ecx
push ecx
mov edx, ecx
mov dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.endian_swap
call fcn.0041843a
add esp, 0x10
jmp 0x419f0c
mov ecx, esi
call fcn.004198b5
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41a293
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi + 0x18]
imul eax, dword [esi + 0x1c]
cmp dword [ebp + 0xc], 0
cmovne edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
test byte [esi + 4], 0x80
mov dword [esi + 8], eax
je 0x41a326
test edx, edx
jne 0x41a2f1
mov eax, dword [esi + 0x1c]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004327fc
mov ecx, dword [esi + 0x1c]
mov ebx, eax
add ecx, ecx
mov dword [ebp + 0xc], ebx
push ecx
push edi
push ebx
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0x10
mov edx, ebx
mov edi, ebx
mov ecx, dword [esi + 0x1c]
jmp 0x41a303
dec ecx
movzx eax, word [edx + ecx*2]
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x41a2f6
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
and dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.endian_swap
call fcn.0041843a
add esp, 0x10
push dword [esi]
push 1
push dword [esi + 8]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
lea ebx, [eax - 1]
mov eax, dword [ebp + 0xc]
neg ebx
sbb bl, bl
inc bl
test eax, eax
je 0x41a34e
push eax
call fcn.0043286e
pop ecx
test bl, bl
je 0x41a386
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
push 0xffffffffffffffff
push dword [esi + 0x1c]
push ecx
mov ecx, esp
jb 0x41a36b
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
push 0x18
lea ecx, [esi + 0x20]
pop edx
mov dword [eax], str.write
call fcn.0041843a
add esp, 0x10
jmp 0x41a38d
mov ecx, esi
call fcn.004198b5
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x41dca0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b2c9
mov eax, dword fs:[0]
push eax
mov eax, 0x1220
call fcn.00432b20
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
xor esi, esi
lea eax, [ebp - 0x21c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push dword [0x45e5a4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x1000
lea eax, [ebp - 0x121c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x121c]
mov edi, str.PATH
push 0x7ff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x121c]
push eax
push 0x44c7c0
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
lea eax, [ebp - 0x1224]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_Util::FS::GetParentDir_class_CTXStringW_]
push eax
lea eax, [ebp - 0x122c]
mov dword [ebp - 4], esi
push 0x22
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_wchar_t__class_CTXStringW_const__]
add esp, 0x14
push eax
lea eax, [ebp - 0x1228]
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
push eax
call esi
add esp, 0xc
push eax
lea eax, [ebp - 0x1220]
mov byte [ebp - 4], 2
push eax
call esi
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1228]
add esp, 0xc
call esi
lea ecx, [ebp - 0x122c]
call esi
lea ecx, [ebp - 0x1224]
call esi
lea ecx, [ebp - 0x1220]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x1220]
call esi
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.00431fdc
mov esp, ebp
pop ebp
ret
Function at 0x422a9b
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push 0x48
mov eax, 0x43bca0
call fcn.004385bc
xor ebx, ebx
mov dword [ebp - 0x14], 7
and dword [ebp - 0x18], ebx
xor eax, eax
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x50], edi
test edi, edi
jne 0x422add
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422bb5
lea eax, [ebp - 0x40]
push eax
call fcn.004040eb
mov ecx, eax
call fcn.00428be1
push eax
lea ecx, [ebp - 0x28]
call fcn.00405576
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004069d5
cmp dword [ebp - 0x18], 0
jne 0x422b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422bae
push 0xf01ff
push str.QMEmulatorService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x422bd0
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
xor edi, edi
push eax
push edi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov ecx, dword [ebp - 0x54]
mov ebx, eax
test ecx, ecx
je 0x422ba0
add ecx, 4
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x422ba0
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x422ba0
cmp dword [edi + 4], 2
je 0x422bcb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 8]
push 2
push dword [edi]
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
mov edi, dword [ebp - 0x50]
test esi, esi
je 0x422bae
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
lea ecx, [ebp - 0x28]
push 0
inc eax
push eax
call fcn.004069d5
mov eax, ebx
call fcn.00438566
ret
xor ebx, ebx
inc ebx
jmp 0x422ba0
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
push str.QMEmulatorService.exe
call esi
pop ecx
push eax
push str.QMEmulatorService.exe
lea ecx, [ebp - 0x28]
call fcn.00405768
push 0x445990
lea ecx, [ebp - 0x40]
call fcn.00405907
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x40]
call fcn.004056c6
push 0x445990
call esi
pop ecx
push eax
push 0x445990
lea ecx, [ebp - 0x40]
call fcn.00405768
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push str.COM_Infrastructure
push eax
push 1
push 2
push 0x110
push 0xf01ff
mov eax, str.QMEmulatorService
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
push 1
mov esi, eax
lea ecx, [ebp - 0x40]
pop eax
test esi, esi
push 0
push eax
cmovne ebx, eax
call fcn.004069d5
jmp 0x422ba3
Function at 0x4233a8
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x43bda8
call fcn.004385bc
xor eax, eax
mov dword [ebp - 4], eax
mov edi, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x28]
push eax
call fcn.004040eb
mov ecx, eax
call fcn.00405206
cmp dword [eax + 0x14], 8
jb 0x4233e0
mov eax, dword [eax]
push 0x2001f
push eax
push SysStringLen
lea ecx, [ebp - 0x38]
call fcn.00405e1e
push 0
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.004069d5
test esi, esi
jne 0x4234b5
push esi
push str.EB9B0DF4_6A99_4FD7_AF13_E5DA3F787D7A
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test eax, eax
je 0x423457
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x14], ecx
xor edx, edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x3c], ebx
push ecx
push 0xc350
push 2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 8
push ecx
push edx
push 0x4a
push eax
mov dword [ebp - 0x1c], 0x5fd
mov dword [ebp - 0x2c], edx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push 4
push 0
push str.hotkey1
push dword [ebp - 0x38]
call esi
test eax, eax
jne 0x4234b5
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
push 4
push 0
push str.hotkey2
push dword [ebp - 0x38]
call esi
test eax, eax
jne 0x4234b5
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
push ecx
cmovae eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
push eax
push str.hotkeyname
call fcn.00405cee
test eax, eax
push 1
pop eax
cmove edi, eax
lea ecx, [ebp - 0x38]
call fcn.00405e7c
lea ecx, [ebp - 0x38]
call fcn.00405e7c
xor eax, eax
lea ecx, [ebp + 0x10]
push 0
inc eax
push eax
call fcn.004069d5
mov eax, edi
call fcn.00438566
ret 0x20

Function at 0x4234dd
Capabilities:
Delete registry value

Disassembly:
push 0x40
mov eax, 0x43bdd5
call fcn.004385bc
xor edi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
call fcn.004040eb
mov ecx, eax
call fcn.00405206
cmp dword [eax + 0x14], 8
jb 0x42350f
mov eax, dword [eax]
push 0x2001f
push eax
push SysStringLen
lea ecx, [ebp - 0x34]
call fcn.00405e1e
push edi
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.004069d5
test esi, esi
jne 0x423557
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.hotkey1
push dword [ebp - 0x34]
call esi
push str.hotkey2
push dword [ebp - 0x34]
call esi
push str.hotkeyname
push dword [ebp - 0x34]
call esi
push edi
push str.EB9B0DF4_6A99_4FD7_AF13_E5DA3F787D7A
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x42359f
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], 8
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x38]
push ecx
push 0x1f4
push 2
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x5fe
push ecx
push edi
push 0x4a
push eax
mov dword [ebp - 0x38], edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [ebp - 0x34]
call fcn.00405e7c
lea ecx, [ebp - 0x34]
call fcn.00405e7c
call fcn.00438566
ret