joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fb5dfb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x4fb5e11
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x4fb5e22
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call 0x4fb5e63
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
enter 0xffffffffffffcc8b, 0x39
push ecx
scasd eax, dword es:[edi]
pop ecx
ret 4

Function at 0x4fb81cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x4fb8118
add ebx, 0
push ecx
call 0x4fb812d
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x712a630e
sub ebx, dword [0x712c5b4d]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x712c5b3d
call fcn.04fb3bf7
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.04fb3105
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x4fb828b
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x4fb828b
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x4fb8242
mov eax, 1
lock xchg dword [0x712c5b49], eax
push 0x3dd1fc71
call 0x4fb81cf
push esi
add esp, 8
cmp eax, 0
jne 0x4fb81b8
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x4fb81de
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x4fb81f3
cmp ecx, edx
cmp eax, 0
je 0x4fb8218
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x4fb8202
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.04fb8231
dec eax
loope 0x4fb8234
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x712c5b49], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x4fb8268
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x4fb827d
jmp 0x4fb8288
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x4fb8176
Function at 0x4fbf2f0
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x4fbf5c6
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x712b27c1
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x712a9787
push 0xffffffffffffffff
call fcn.04fb64f0
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x4fbf35a
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.04fbf372
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x4fbf5ba
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x4fbf58e
Function at 0x4fcedc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4fcede2
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4fcede2
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4fcede2
ret
cmp word [ebx + 4], 0x14c
jne 0x4fcede2
test word [ebx + 0x16], 2
je 0x4fcede2
test word [ebx + 0x16], 0x100
je 0x4fcede2
cmp word [ebx + 0x18], 0x10b
jne 0x4fcede2
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4fcede2
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4fcee6e
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4fcee02
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.04fb5d4d
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4fcede2
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x4fcee6e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4fcede2
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4fcede2
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4fcede2
ret
cmp word [ebx + 4], 0x14c
jne 0x4fcede2
test word [ebx + 0x16], 2
je 0x4fcede2
test word [ebx + 0x16], 0x100
je 0x4fcede2
cmp word [ebx + 0x18], 0x10b
jne 0x4fcede2
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4fcede2
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4fcee6e
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4fcee02
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.04fb5d4d
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4fcede2
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x4fcef25
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4fcef7e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4fcef25
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4fcef34
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x53d4bd7
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4fcef85
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.04fb5dfb
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4fcf024
add edi, 4
add eax, 2
dec ecx
jne 0x4fcef6a
call 0x4fcefd1
loope 0x4fcefc7
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4fcf021
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4fcf032
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4fcefe5
cmp eax, ecx
ja 0x4fcefe5
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4fcf06f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4fcf065
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.04fb62da
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4fcef34
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4fcef7e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4fcef25
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4fcef34
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x53d4bd7
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4fcef85
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.04fb5dfb
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4fcf024
add edi, 4
add eax, 2
dec ecx
jne 0x4fcef6a
call 0x4fcefd1
loope 0x4fcefc7
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4fcf021
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4fcf032
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4fcefe5
cmp eax, ecx
ja 0x4fcefe5
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4fcf06f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4fcf065
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.04fb62da
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..data
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x4b6f6719
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data_1
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x71690ab9
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
add eax, eax
mov dword [esi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x10]
shr ecx, 1
mov dword [esi], ecx
pop esi
test eax, eax
jne 0x4017d1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4017cf
cmp eax, 2
je 0x4017cf
mov eax, 0xd
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc

Function at 0x4017e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
add eax, eax
mov dword [esi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40182a
cmp dword [ebp + 0xc], 7
je 0x401821
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x401830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40188a
mov edi, dword [ebp - 4]
test esi, esi
jne 0x40188a
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x401895
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4018d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
mov bl, byte [ebp + 0x10]
push edi
mov edi, ecx
cmp eax, 0xffffffff
jne 0x4018fb
test bl, bl
je 0x4018f1
pop edi
mov eax, 0x57
pop ebx
pop ebp
ret 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
mov ecx, 7
push eax
push dword [ebp + 8]
test bl, bl
mov eax, 1
cmovne eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x401a70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x21c]
mov dword [ebp - method.QMRegisterUtils::CQMRegistryHandle.virtual_0], vtable.QMRegisterUtils::CQMRegistryHandle.0
push edx
push 0x2001f
mov eax, ecx
mov dword [ebp - 0x210], 0
mov ecx, dword [ebp + 8]
push 0
push ecx
push dword [eax + 4]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x401ba7
mov eax, dword [ebp - 0x210]
xor esi, esi
test eax, eax
je 0x401aee
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x210], eax
test esi, esi
jne 0x401ba7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x22c]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], 0x100
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x401b79
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00401a70
mov esi, eax
test esi, esi
jne 0x401ba7
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x218], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x401b32
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x401b90
push eax
call ebx
mov dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x224]
push dword [ebp - 0x220]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - method.QMRegisterUtils::CQMRegistryHandle.virtual_0], vtable.QMRegisterUtils::CQMRegistryHandle.0
test eax, eax
je 0x401bbe
push eax
call ebx
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045be1b
mov esp, ebp
pop ebp
ret 4
Function at 0x403ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
push 0
push 0
push 0
push 0
push 0
push str.QMReportMgr::CReportManager::GetSupplyID
lea ecx, [esp + 0x30]
call fcn.00407b80
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
push 1
xor esi, esi
push esi
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403d16
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.SupplyID
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [esp + 0x10]
test esi, esi
je 0x403d25
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.00407aa0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409eb0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13c4
call fcn.0045be30
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfa0
lea eax, [ebp - 0x13b8]
mov dword [ebp - 0x13c4], ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x13bc], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x13c0], 0
lea eax, [ebp - 0x13bc]
push eax
push 0xfa0
lea eax, [ebp - 0x13b8]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40a018
mov ebx, dword [ebp - 0x13bc]
test ebx, ebx
je 0x40a018
shr ebx, 2
xor edi, edi
test ebx, ebx
je 0x40a018
nop dword [eax]
push dword [ebp + edi*4 - 0x13b8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40a00f
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x13c0], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x13bc]
push eax
push 4
lea eax, [ebp - 0x13c0]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40a008
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x13c0]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x40a008
push str.QQPCMgr.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a02b
push str.QQPCTray.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a02b
push str.QQPCRTP.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a02b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x409f50
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret
push 0x20a
lea eax, [ebp - 0x418]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x104
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a073
mov ebx, dword [ebp - 0x13c4]
lea eax, [ebp - 0x418]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00405f80
mov edx, dword [ebx + 0x14]
mov eax, edx
mov ecx, dword [ebx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40a0e2
lea esi, [ecx + 1]
mov dword [ebx + 0x10], esi
cmp edx, 8
jb 0x40a0b3
mov ebx, dword [ebx]
push 2
lea eax, [ebx + ecx*2]
push 0x472d40
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2], ax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret
push 1
push 0x472d40
mov byte [ebp - 0x13c4], 0
mov ecx, ebx
push dword [ebp - 0x13c4]
push 1
call fcn.0040a1f0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045be1b
mov esp, ebp
pop ebp
ret