joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415390
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 0x4153a7
cmp esi, 0x20
jne 0x41557b
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 0x41557a
mov dword [edi], 0x10
push ebx
mov dword [edi + 4], eax
xor ebx, ebx
add edi, 8
test esi, esi
je 0x415412
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 0x4153e5
mov eax, dword [ebp - 8]
mov ebx, dword [edi + ebx*4 - 4]
mov ecx, esi
cmp esi, eax
jge 0x4154fa
mov dword [ebp + 8], 0
mov dword [ebp - 4], edi
lea ebx, [ebx]
mov eax, ecx
cdq
idiv esi
test edx, edx
jne 0x415490
mov eax, dword [ebp + 8]
cdq
idiv esi
mov dl, byte [eax + 0x4d6df0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + 0x4d4bf0]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x4d4bf0]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x4d4bf0]
xor esi, eax
movzx ebx, byte [ebx + 0x4d4bf0]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp - 0xc]
jmp 0x4154dd
cmp esi, 6
jbe 0x4154dd
cmp edx, 4
jne 0x4154dd
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x4d4bf0]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x4d4bf0]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x4d4bf0]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0x4d4bf0]
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 0x415430
xor esi, esi
sub ecx, 1
js 0x415579
lea eax, [edi + eax*4]
mov dword [ebp + 8], eax
mov ebx, dword [edi + ecx*4]
cmp esi, 4
jl 0x415569
cmp ecx, 4
jb 0x415569
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x4d4bf0]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x4d61f0]
movzx eax, byte [eax + 0x4d4bf0]
xor edx, dword [eax*4 + 0x4d65f0]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x4d4bf0]
xor edx, dword [eax*4 + 0x4d5df0]
movzx eax, bl
movzx eax, byte [eax + 0x4d4bf0]
xor edx, dword [eax*4 + 0x4d69f0]
mov eax, dword [ebp + 8]
jmp 0x41556b
mov edx, ebx
mov dword [eax], edx
inc esi
add eax, 4
sub ecx, 1
mov dword [ebp + 8], eax
jns 0x415507
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x415b80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7748
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov edi, dword [ebp + 8]
push esi
push eax
call fcn.00412440
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00415c50
add esp, 0xc
test eax, eax
jne 0x415bd5
xor esi, esi
jmp 0x415bf2
cmp dword [esi + 0x14], 8
jb 0x415bdd
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x415be5
mov edi, dword [edi]
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x415c28
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415c1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415c45
push edx
push ecx
call fcn.0048c65e
add esp, 8
mov eax, 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.0048c66c
mov esp, ebp
pop ebp
ret
call fcn.00497fa9
int3

Function at 0x415c50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7778
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x415c86
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415d0a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x415c9c
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x415d0a
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00412440
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x415d29
lea eax, [ebp - 0x28]
push eax
call fcn.00415c50
add esp, 4
test eax, eax
je 0x415d29
cmp dword [esi + 0x14], 8
jb 0x415ce8
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415d29
lea ecx, [ebp - 0x28]
call fcn.00402b00
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.00402b00
xor eax, eax
jmp 0x415d0f
Function at 0x415d80
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 0x415f58
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x415f58
test bl, 3
jne 0x415f58
lea eax, [ebx - 1]
xor edx, edx
add eax, ecx
mov dword [ebp - 8], edx
cmp byte [eax], 0x3d
jne 0x415dca
inc edx
dec eax
mov dword [ebp - 8], edx
cmp edx, 2
ja 0x415f58
cmp byte [eax], 0x3d
je 0x415db7
shr ebx, 2
xor edi, edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], ebx
test ebx, ebx
je 0x415f4d
lea esi, [ecx + 2]
mov dword [ebp - 4], esi
mov al, byte [esi - 2]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x415df2
sub al, 0x41
jmp 0x415e21
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x415dfe
sub al, 0x47
jmp 0x415e21
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x415e0a
add al, 4
jmp 0x415e21
cmp al, 0x2b
jne 0x415e12
mov al, 0x3e
jmp 0x415e21
cmp al, 0x2f
jne 0x415e1a
mov al, 0x3f
jmp 0x415e21
cmp al, 0x3d
sete al
sub al, 1
mov dl, byte [esi - 1]
lea ecx, [edx - 0x41]
cmp cl, 0x19
ja 0x415e31
sub dl, 0x41
jmp 0x415e65
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x415e3e
sub dl, 0x47
jmp 0x415e65
lea ecx, [edx - 0x30]
cmp cl, 9
ja 0x415e4b
add dl, 4
jmp 0x415e65
cmp dl, 0x2b
jne 0x415e54
mov dl, 0x3e
jmp 0x415e65
cmp dl, 0x2f
jne 0x415e5d
mov dl, 0x3f
jmp 0x415e65
cmp dl, 0x3d
sete dl
dec dl
mov bl, byte [esi]
lea ecx, [ebx - 0x41]
cmp cl, 0x19
ja 0x415e74
sub bl, 0x41
jmp 0x415ea8
lea ecx, [ebx - 0x61]
cmp cl, 0x19
ja 0x415e81
sub bl, 0x47
jmp 0x415ea8
lea ecx, [ebx - 0x30]
cmp cl, 9
ja 0x415e8e
add bl, 4
jmp 0x415ea8
cmp bl, 0x2b
jne 0x415e97
mov bl, 0x3e
jmp 0x415ea8
cmp bl, 0x2f
jne 0x415ea0
mov bl, 0x3f
jmp 0x415ea8
cmp bl, 0x3d
sete bl
dec bl
mov ah, byte [esi + 1]
mov cl, ah
sub cl, 0x41
cmp cl, 0x19
ja 0x415eba
sub ah, 0x41
jmp 0x415ef2
mov cl, ah
sub cl, 0x61
cmp cl, 0x19
ja 0x415ec9
sub ah, 0x47
jmp 0x415ef2
mov cl, ah
sub cl, 0x30
cmp cl, 9
ja 0x415ed8
add ah, 4
jmp 0x415ef2
cmp ah, 0x2b
jne 0x415ee1
mov ah, 0x3e
jmp 0x415ef2
cmp ah, 0x2f
jne 0x415eea
mov ah, 0x3f
jmp 0x415ef2
cmp ah, 0x3d
sete ah
dec ah
cmp al, 0xff
je 0x415f58
cmp dl, 0xff
je 0x415f58
cmp bl, 0xff
je 0x415f58
cmp ah, 0xff
je 0x415f58
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 0x415de3
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 0x4163a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
push edi
je 0x416513
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x416513
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 0x41650c
xor eax, eax
test ebx, ebx
je 0x416470
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 + 0x4d6fe8]
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 + 0x4d6fe8]
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 + 0x4d6fe8]
mov byte [eax + esi + 2], cl
movzx ecx, byte [edi - 3]
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4d6fe8]
mov byte [eax + esi + 3], cl
add eax, 4
sub ebx, 1
jne 0x416400
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
sub ecx, 1
je 0x4164d7
sub ecx, 1
jne 0x416509
mov ebx, dword [ebp + 8]
movzx ecx, byte [ebx + edi - 2]
shr ecx, 2
movzx ecx, byte [ecx + 0x4d6fe8]
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 + 0x4d6fe8]
mov byte [eax + esi + 1], cl
lea ecx, [eax + 2]
movzx eax, byte [ebx + edi - 1]
and eax, 0xf
mov al, byte [eax*4 + 0x4d6fe8]
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 + 0x4d6fe8]
mov byte [eax + esi], cl
movzx ecx, byte [edx + edi - 1]
and ecx, 3
shl ecx, 4
movzx ecx, byte [ecx + 0x4d6fe8]
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 0x419de0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x419e10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x419e4c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x419e4c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x419f31
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x419e74
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x419ea7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0049d50d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x419f31
cmp eax, 1
jle 0x419f04
cmp eax, 3
jne 0x419f31
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040d8f0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x419f21
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0049de84
add esp, 0x10
cmp edi, eax
jne 0x419f31
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x419e37
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c66c
mov esp, ebp
pop ebp
ret 4
Function at 0x41c670
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7e98
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x50b3e0]
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.0041d8e0
push 0x4d9100
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00402540
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x41c6c3
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 0x41c705
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c6fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c76b
push edx
push ecx
call fcn.0048c65e
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 0x41c74f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c745
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c76b
push edx
push ecx
call fcn.0048c65e
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.0048c66c
mov esp, ebp
pop ebp
ret
call fcn.00497fa9
int3

Function at 0x41c8d0
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 0x41c929
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c929
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 0x41c91a
cmp esi, edx
jae 0x41c929
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x41c908
cmp esi, edx
jae 0x41c929
cmp word [esi], 0
je 0x41c929
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41e5f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c81f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x50b3e0]
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 0x41e716
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
je 0x41e716
cmp dword [eax + 0x14], 8
jb 0x41e639
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041b7c0
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x41e651
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x10]
call fcn.0041b7c0
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_RegOpenKeyExA]
test eax, eax
jne 0x41e6c4
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_RegQueryValueExA]
test eax, eax
jne 0x41e6ae
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 0x41e6c7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e6c7
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 0x41e6e4
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 0x41e703
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 0x41ed00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c82c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x50b3e0]
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 0x41ee16
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
je 0x41ee16
cmp dword [eax + 0x14], 8
jb 0x41ed49
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041b7c0
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x41ed61
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x10]
call fcn.0041b7c0
lea eax, [ebp - 0x1c]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41edc5
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
test esi, esi
je 0x41edc7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41edc7
xor bl, bl
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ede4
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], esi
dec esi
test esi, esi
jg 0x41ee03
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f400
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x50b3e0]
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 0x41f468
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x130], 0x103
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret
push 0x124
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], 0x128
push 0
push eax
call fcn.0048ee50
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f4aa
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x12c]
xor bl, bl
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41f4dd
mov edi, edi
cmp dword [ebp - 0x124], edi
je 0x41f4db
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41f4c0
jmp 0x41f4dd
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.0048c66c
mov esp, ebp
pop ebp
ret
Function at 0x428290
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 0x4282c1
cmp esi, 0xffffffff
je 0x4282c1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 8

Function at 0x428300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4283de
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 0x4283de
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 0x42839d
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.0048ca60
jmp 0x4283a1
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.0048c66c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0048c66c
mov esp, ebp
pop ebp
ret 8
Function at 0x42c9c0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x511544]
test al, 1
jne 0x42ca78
or eax, 1
mov dword [0x511544], eax
mov dword [0x511530], 0
mov dword [0x511534], 0
mov dword [0x511538], 0
mov dword [0x51153c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x4da36c
push eax
call fcn.0048f3ff
add esp, 8
test eax, eax
setne byte [0x511540]
test eax, eax
je 0x42ca6b
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x511530], eax
test eax, eax
je 0x42ca6b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EventRegister
push eax
call esi
push str.EventWrite
push dword [0x511530]
mov dword [0x511534], eax
call esi
push str.EventUnregister
push dword [0x511530]
mov dword [0x51153c], eax
call esi
mov dword [0x511538], eax
pop esi
push 0x4d25e0
call fcn.0048c9ff
add esp, 4
mov eax, 0x511530
ret