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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f9004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, edx
push esi
mov esi, dword [ebp + 0x10]
mov word [ebp - 0x1c], ax
lea eax, [ecx + 2]
mov dword [ebp - 0xc], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], 7
mov dword [ebp - 0x20], eax
jmp 0x40dd0c
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dd0c
sub ecx, dword [ebp - 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.004057cc
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x24]
push ecx
push 0x20219
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dd8f
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40dd8f
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x40dd8b
cmp eax, 2
jne 0x40dd8f
xor esi, esi
jmp 0x40dd94
mov esi, 0x80004005
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x40ddca
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ddc0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dddd
push edx
push ecx
call fcn.0040660b
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c9b
mov esp, ebp
pop ebp
ret
call fcn.0047c5cb
int3
Function at 0x40f38d
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ecx]
cmp esi, 0x10
je 0x40f3a4
cmp esi, 0x20
jne 0x40f578
shr esi, 2
mov edx, 4
cmp esi, edx
mov dword [ebp - 0xc], esi
mov eax, esi
cmovb eax, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 8], eax
test edi, edi
je 0x40f577
mov dword [edi], 0x10
push ebx
mov dword [edi + 4], eax
xor ebx, ebx
add edi, 8
test esi, esi
je 0x40f40f
lea edx, [ecx + 5]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [edi + ebx*4], ecx
inc ebx
cmp ebx, esi
jl 0x40f3e2
mov eax, dword [ebp - 8]
mov ebx, dword [edi + ebx*4 - 4]
mov ecx, esi
cmp esi, eax
jge 0x40f4f7
mov dword [ebp + 8], 0
mov dword [ebp - 4], edi
lea ebx, [ebx]
mov eax, ecx
cdq
idiv esi
test edx, edx
jne 0x40f48d
mov eax, dword [ebp + 8]
cdq
idiv esi
mov dl, byte [eax + 0x4cb770]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + 0x4c9570]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x4c9570]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x4c9570]
xor esi, eax
movzx ebx, byte [ebx + 0x4c9570]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp - 0xc]
jmp 0x40f4da
cmp esi, 6
jbe 0x40f4da
cmp edx, 4
jne 0x40f4da
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x4c9570]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x4c9570]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x4c9570]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0x4c9570]
xor ebx, edx
mov eax, dword [ebp - 4]
inc dword [ebp + 8]
xor ebx, dword [eax]
add eax, 4
mov dword [edi + ecx*4], ebx
inc ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x40f42d
xor esi, esi
sub ecx, 1
js 0x40f576
lea eax, [edi + eax*4]
mov dword [ebp + 8], eax
mov ebx, dword [edi + ecx*4]
cmp esi, 4
jl 0x40f566
cmp ecx, 4
jb 0x40f566
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x4c9570]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x4cab70]
movzx eax, byte [eax + 0x4c9570]
xor edx, dword [eax*4 + 0x4caf70]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x4c9570]
xor edx, dword [eax*4 + 0x4ca770]
movzx eax, bl
movzx eax, byte [eax + 0x4c9570]
xor edx, dword [eax*4 + 0x4cb370]
mov eax, dword [ebp + 8]
jmp 0x40f568
mov edx, ebx
mov dword [eax], edx
inc esi
add eax, 4
sub ecx, 1
mov dword [ebp + 8], eax
jns 0x40f504
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40fced
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
push edi
je 0x40fe60
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40fe60
mov eax, 0xaaaaaaab
mov ecx, edi
mul edi
push ebx
mov ebx, edx
shr ebx, 1
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebx + ebx*2]
sub ecx, eax
mov eax, 0
mov dword [ebp - 4], ecx
setne al
add eax, ebx
shl eax, 2
mov dword [ebp - 8], eax
test esi, esi
je 0x40fe59
xor eax, eax
test ebx, ebx
je 0x40fdbd
mov edi, dword [ebp + 8]
add edi, 2
lea ebx, [ebx]
movzx ecx, byte [edi - 2]
lea edi, [edi + 3]
shr ecx, 2
movzx ecx, byte [ecx + 0x4cb790]
mov byte [eax + esi], cl
movzx edx, byte [edi - 5]
movzx ecx, byte [edi - 4]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + 0x4cb790]
mov byte [eax + esi + 1], cl
movzx edx, byte [edi - 4]
movzx ecx, byte [edi - 3]
and edx, 0xf
shr ecx, 6
shl edx, 2
or edx, ecx
movzx ecx, byte [edx + 0x4cb790]
mov byte [eax + esi + 2], cl
movzx ecx, byte [edi - 3]
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4cb790]
mov byte [eax + esi + 3], cl
add eax, 4
sub ebx, 1
jne 0x40fd4d
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
sub ecx, 1
je 0x40fe24
sub ecx, 1
jne 0x40fe56
mov ebx, dword [ebp + 8]
movzx ecx, byte [ebx + edi - 2]
shr ecx, 2
movzx ecx, byte [ecx + 0x4cb790]
mov byte [eax + esi], cl
movzx edx, byte [ebx + edi - 2]
movzx ecx, byte [ebx + edi - 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + 0x4cb790]
mov byte [eax + esi + 1], cl
lea ecx, [eax + 2]
movzx eax, byte [ebx + edi - 1]
and eax, 0xf
mov al, byte [eax*4 + 0x4cb790]
mov byte [ecx + esi], al
mov eax, dword [ebp - 8]
mov byte [ecx + esi + 1], 0x3d
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + edi - 1]
shr ecx, 2
movzx ecx, byte [ecx + 0x4cb790]
mov byte [eax + esi], cl
movzx ecx, byte [edx + edi - 1]
and ecx, 3
shl ecx, 4
movzx ecx, byte [ecx + 0x4cb790]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
mov eax, dword [ebp - 8]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x412515
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
push ebx
push esi
push edi
test ecx, ecx
je 0x4126ed
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4126ed
test bl, 3
jne 0x4126ed
lea eax, [ebx - 1]
xor edx, edx
add eax, ecx
mov dword [ebp - 8], edx
cmp byte [eax], 0x3d
jne 0x41255f
inc edx
dec eax
mov dword [ebp - 8], edx
cmp edx, 2
ja 0x4126ed
cmp byte [eax], 0x3d
je 0x41254c
shr ebx, 2
xor edi, edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], ebx
test ebx, ebx
je 0x4126e2
lea esi, [ecx + 2]
mov dword [ebp - 4], esi
mov al, byte [esi - 2]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x412587
sub al, 0x41
jmp 0x4125b6
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x412593
sub al, 0x47
jmp 0x4125b6
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x41259f
add al, 4
jmp 0x4125b6
cmp al, 0x2b
jne 0x4125a7
mov al, 0x3e
jmp 0x4125b6
cmp al, 0x2f
jne 0x4125af
mov al, 0x3f
jmp 0x4125b6
cmp al, 0x3d
sete al
sub al, 1
mov dl, byte [esi - 1]
lea ecx, [edx - 0x41]
cmp cl, 0x19
ja 0x4125c6
sub dl, 0x41
jmp 0x4125fa
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x4125d3
sub dl, 0x47
jmp 0x4125fa
lea ecx, [edx - 0x30]
cmp cl, 9
ja 0x4125e0
add dl, 4
jmp 0x4125fa
cmp dl, 0x2b
jne 0x4125e9
mov dl, 0x3e
jmp 0x4125fa
cmp dl, 0x2f
jne 0x4125f2
mov dl, 0x3f
jmp 0x4125fa
cmp dl, 0x3d
sete dl
dec dl
mov bl, byte [esi]
lea ecx, [ebx - 0x41]
cmp cl, 0x19
ja 0x412609
sub bl, 0x41
jmp 0x41263d
lea ecx, [ebx - 0x61]
cmp cl, 0x19
ja 0x412616
sub bl, 0x47
jmp 0x41263d
lea ecx, [ebx - 0x30]
cmp cl, 9
ja 0x412623
add bl, 4
jmp 0x41263d
cmp bl, 0x2b
jne 0x41262c
mov bl, 0x3e
jmp 0x41263d
cmp bl, 0x2f
jne 0x412635
mov bl, 0x3f
jmp 0x41263d
cmp bl, 0x3d
sete bl
dec bl
mov ah, byte [esi + 1]
mov cl, ah
sub cl, 0x41
cmp cl, 0x19
ja 0x41264f
sub ah, 0x41
jmp 0x412687
mov cl, ah
sub cl, 0x61
cmp cl, 0x19
ja 0x41265e
sub ah, 0x47
jmp 0x412687
mov cl, ah
sub cl, 0x30
cmp cl, 9
ja 0x41266d
add ah, 4
jmp 0x412687
cmp ah, 0x2b
jne 0x412676
mov ah, 0x3e
jmp 0x412687
cmp ah, 0x2f
jne 0x41267f
mov ah, 0x3f
jmp 0x412687
cmp ah, 0x3d
sete ah
dec ah
cmp al, 0xff
je 0x4126ed
cmp dl, 0xff
je 0x4126ed
cmp bl, 0xff
je 0x4126ed
cmp ah, 0xff
je 0x4126ed
mov esi, dword [ebp + 0xc]
mov cl, dl
shl al, 2
shr cl, 4
or cl, al
shl dl, 4
mov byte [edi + esi], cl
mov al, bl
mov ecx, esi
shr al, 2
mov esi, dword [ebp - 4]
or al, dl
shl bl, 6
add esi, 4
or bl, ah
mov dword [ebp - 4], esi
mov byte [edi + ecx + 1], al
mov eax, dword [ebp + 8]
inc eax
mov byte [edi + ecx + 2], bl
add edi, 3
mov dword [ebp + 8], eax
cmp eax, dword [ebp + 0x10]
jb 0x412578
mov edx, dword [ebp - 8]
sub edi, edx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bfa6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6121
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4f9004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004176a3
push str.wps.exe
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00407249
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x41bff9
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x14]
test eax, eax
sete bl
cmp edx, 8
jb 0x41c03b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c031
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c0a1
push edx
push ecx
call fcn.0040660b
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x41c085
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c07b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c0a1
push edx
push ecx
call fcn.0040660b
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402c9b
mov esp, ebp
pop ebp
ret
call fcn.0047c5cb
int3

Function at 0x41ceda
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41cf0a
xor edi, edi
jmp 0x41cf4c
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
test esi, esi
cmove edi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov esi, eax
call fcn.0041cfaa
push 0
push edi
push edx
push eax
call fcn.0041d18f
fld qword [0x4ce350]
add esp, 0x14
fcompi st(1)
jbe 0x41cfa0
mov eax, 0x10624dd3
mul esi
shr edx, 6
mov dword [ebp - 0x10], edx
fild dword [ebp - 0x10]
test edx, edx
jns 0x41cf8c
fadd qword [0x4ce360]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fcompi st(1)
fstp st(0)
jbe 0x41cfa2
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
fstp st(0)
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d72f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d79b
mov esi, dword [ebp + 0x18]
mov dword [ebp - 8], 3
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 3
jne 0x41d79b
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41d915
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call fcn.0041cfaa
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41d97c
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4238a2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b72aa
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f9004]
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 eax, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 0x29], bl
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x423a6d
xor edi, edi
mov dword [ebp - 0x30], edi
cmp dword [ebp - 0x38], edi
jle 0x423a66
mov edx, dword [eax + edi*4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423925
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004057cc
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
cmp edx, 8
mov ecx, dword [ebp - 0x18]
cmovae eax, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], eax
cmp ecx, 0x10
jb 0x4239b3
add ecx, 0xfffffff1
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x3c], ecx
sub ecx, eax
sar ecx, 1
je 0x4239ad
lea esp, [esp]
cmp word [eax], 0x2f
je 0x423982
add eax, 2
sub ecx, 1
jne 0x423972
jmp 0x4239ad
mov edx, str._startup_source
mov edi, eax
mov esi, 0x10
sub edi, edx
mov edi, edi
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x4239ff
add edx, 2
sub esi, 1
jne 0x423992
sub eax, dword [ebp - 0x40]
sar eax, 1
cmp eax, 0xffffffff
jne 0x423a0a
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4239ee
lea ecx, [edx*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4239e4
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423a8b
push ecx
push ebx
call fcn.0040660b
add esp, 8
mov eax, dword [ebp - 0x34]
inc edi
mov dword [ebp - 0x30], edi
cmp edi, dword [ebp - 0x38]
jge 0x423a63
jmp 0x423909
mov ecx, dword [ebp - 0x3c]
add eax, 2
jmp 0x423968
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x28]
cmp edx, eax
je 0x423a29
cmp dword [ebp - 0x14], 8
mov ecx, edx
push dword [ebp - 0x18]
cmovae eax, ebx
push eax
call fcn.004057cc
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x29], 1
cmp ecx, 8
jb 0x423a60
lea ecx, [ecx*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x423a56
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423a8b
push ecx
push ebx
call fcn.0040660b
add esp, 8
mov eax, dword [ebp - 0x34]
mov bl, byte [ebp - 0x29]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, bl
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.00402c9b
mov esp, ebp
pop ebp
ret
call fcn.0047c5cb
int3
Function at 0x427917
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x427970
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x427970
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x427961
cmp esi, edx
jae 0x427970
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x42794f
cmp esi, edx
jae 0x427970
cmp word [esi], 0
je 0x427970
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x428a52
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6485
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4f9004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x428b78
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
je 0x428b78
cmp dword [eax + 0x14], 8
jb 0x428a9b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.00419c67
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x428ab3
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x10]
call fcn.00419c67
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x2001f
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x428b26
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428b10
cmp dword [ebp - 0x1c], 4
mov ecx, 0xd
cmovne eax, ecx
mov esi, dword [ebp + 0x14]
test eax, eax
cmove esi, dword [ebp - 0x20]
test edi, edi
je 0x428b29
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x428b29
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428b46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x428b65
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42eae7
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4f9004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42eb4f
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x234], 0x103
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c9b
mov esp, ebp
pop ebp
ret
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.00402780
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x42eb91
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c9b
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x230]
xor bl, bl
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x42ebc4
mov edi, edi
cmp dword [ebp - 0x228], edi
je 0x42ebc2
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42eba7
jmp 0x42ebc4
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00402c9b
mov esp, ebp
pop ebp
ret
Function at 0x434079
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x4340aa
cmp esi, 0xffffffff
je 0x4340aa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 8

Function at 0x4340de
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f9004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4341bc
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareKingsoftwpscloudperfinfoc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4341bc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x43417b
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
sub ecx, 0xd53e8000
push 0
push 0x2710
sbb eax, 0x19db1de
push eax
push ecx
call fcn.00473f00
jmp 0x43417f
xor eax, eax
xor edx, edx
push 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0xb
push 0
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c9b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00402c9b
mov esp, ebp
pop ebp
ret 8